/* PayForFix — public styles */
:root {
    --pff-primary: #0B6E4F;
    --pff-accent: #F4A261;
    --pff-bg: #0F1419;
    --pff-surface: #1A2332;
    --pff-text: #E8EEF4;
    --pff-muted: #9AA8B8;
    --pff-danger: #E76F51;
    --pff-line: rgba(232, 238, 244, 0.12);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --radius: 10px;
    --wrap: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--pff-bg);
    color: var(--pff-text);
    line-height: 1.55;
    min-height: 100vh;
}
a { color: var(--pff-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { font-size: 0.9em; background: rgba(0,0,0,.25); padding: .1em .35em; border-radius: 4px; }

.skip-link {
    position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #000; padding: .5rem 1rem; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { --wrap: 720px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(15, 20, 25, 0.85);
    border-bottom: 1px solid var(--pff-line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 0; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--pff-text); text-decoration: none; }
.brand-mark {
    width: 1.35rem; height: 1.35rem; border-radius: 4px;
    background: linear-gradient(135deg, var(--pff-primary), var(--pff-accent));
    box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.25);
    animation: markPulse 4s ease-in-out infinite;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav a { color: var(--pff-text); opacity: 0.9; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 1.4rem; height: 2px; background: var(--pff-text); margin: 5px 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent; border-radius: 999px;
    padding: 0.7rem 1.25rem; font-weight: 600; cursor: pointer;
    font-family: inherit; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--pff-primary); color: #fff; }
.btn-accent { background: var(--pff-accent); color: #1a1208; }
.btn-ghost { background: transparent; border-color: var(--pff-line); color: var(--pff-text); }
.btn-small { padding: 0.4rem 0.85rem; font-size: 0.9rem; }
.linkish { background: none; border: 0; color: var(--pff-accent); cursor: pointer; font: inherit; padding: 0; }
.linkish.danger { color: var(--pff-danger); }
.inline-form { display: inline; }

.flash { padding: 0.75rem 1rem; margin: 1rem auto; border-radius: var(--radius); width: min(100% - 2rem, var(--wrap)); }
.flash-success { background: rgba(11, 110, 79, 0.25); border: 1px solid var(--pff-primary); }
.flash-error { background: rgba(231, 111, 81, 0.2); border: 1px solid var(--pff-danger); }

.hero {
    position: relative; min-height: min(88vh, 720px);
    display: grid; align-items: end; overflow: hidden;
    padding: 4rem 0 3.5rem;
}
.hero-atmosphere {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(11, 110, 79, 0.45), transparent 60%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(244, 162, 97, 0.18), transparent 55%),
        linear-gradient(180deg, #0a1016 0%, var(--pff-bg) 100%);
    animation: atmosphereDrift 18s ease-in-out infinite alternate;
}
.hero-content { position: relative; z-index: 1; max-width: 38rem; }
.brand-signal {
    font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4.2rem);
    margin: 0 0 0.35rem; letter-spacing: -0.03em; line-height: 1.05;
    background: linear-gradient(120deg, #fff 20%, var(--pff-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: brandIn 0.9s ease both;
}
.hero h1 {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem); margin: 0 0 0.75rem;
    color: var(--pff-text); opacity: 0.95; animation: brandIn 1s ease 0.1s both;
}
.hero-sub { color: var(--pff-muted); margin: 0 0 1.5rem; max-width: 32rem; animation: brandIn 1.1s ease 0.15s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; animation: brandIn 1.2s ease 0.2s both; }
.hero-hint { color: var(--pff-muted); font-size: 0.92rem; }

.section-block { padding: 3rem 0; }
.section-head { margin-bottom: 1.5rem; }
.section-head h2, .page h1, .admin-page h1 {
    font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.35rem;
}
.section-head p, .lede, .muted { color: var(--pff-muted); }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

.problem-list { display: flex; flex-direction: column; gap: 0.65rem; }
.problem-row {
    display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.75rem;
    padding: 1rem 1.1rem; border-radius: var(--radius);
    background: color-mix(in srgb, var(--pff-surface) 88%, transparent);
    border: 1px solid var(--pff-line);
    transition: border-color .15s ease, transform .15s ease;
}
.problem-row:hover { border-color: rgba(244, 162, 97, 0.35); transform: translateX(2px); }
.vote-col { display: flex; align-items: flex-start; justify-content: center; padding-top: 0.2rem; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.problem-title { color: var(--pff-text); font-weight: 700; font-size: 1.05rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.65rem; color: var(--pff-muted); font-size: 0.88rem; margin-top: 0.35rem; }
.tag {
    display: inline-block; padding: 0.1rem 0.5rem; border-radius: 4px;
    background: rgba(11, 110, 79, 0.35); color: #c8f0df; font-size: 0.8rem;
}
.status-pill { padding: 0.1rem 0.45rem; border-radius: 4px; background: rgba(255,255,255,0.08); }

.empty-state {
    text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--pff-line); border-radius: var(--radius);
}
.more-link { margin-top: 1.25rem; }
.steps { padding-left: 1.2rem; color: var(--pff-muted); }
.steps li { margin-bottom: 0.5rem; }
.steps strong { color: var(--pff-text); }

.page { padding: 2rem 0 3.5rem; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.form-stack label { display: flex; flex-direction: column; gap: 0.35rem; }
.form-stack label > span { font-weight: 600; font-size: 0.92rem; }
.form-stack.compact { margin: 0.5rem 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea, select {
    font: inherit; color: var(--pff-text); background: #131a24;
    border: 1px solid var(--pff-line); border-radius: 8px; padding: 0.65rem 0.75rem;
    color-scheme: dark;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--pff-primary);
    box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.25);
}
/* Chrome/Safari/Edge autofill dark styling fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--pff-text) !important;
    -webkit-box-shadow: 0 0 0px 1000px #131a24 inset !important;
    box-shadow: 0 0 0px 1000px #131a24 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}
select option, select optgroup {
    background: #131a24;
    color: #E8EEF4;
}
/* Force readable native selects across browsers */
select {
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--pff-accent) 50%), linear-gradient(135deg, var(--pff-accent) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}
.check { flex-direction: row !important; align-items: center; gap: 0.5rem !important; }
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.25rem;
}
.filter-bar input, .filter-bar select { min-width: 10rem; flex: 1; }
.pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a {
    padding: 0.35rem 0.65rem; border-radius: 6px; border: 1px solid var(--pff-line); color: var(--pff-text);
}
.pagination a.active { background: var(--pff-primary); border-color: var(--pff-primary); }

.thread-hero, .offer-card {
    display: grid; grid-template-columns: 3rem 1fr; gap: 1rem;
    padding: 1.25rem 0; border-bottom: 1px solid var(--pff-line);
}
.vote-widget { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.vote-widget.inline { flex-direction: row; gap: 0.35rem; margin-bottom: 0.35rem; }
.vote-btn {
    background: none; border: 0; color: var(--pff-muted); cursor: pointer; font-size: 0.85rem; padding: 0.15rem;
}
.vote-btn.active.up, .vote-btn.up:hover { color: var(--pff-primary); }
.vote-btn.active.down, .vote-btn.down:hover { color: var(--pff-danger); }
.prose p { margin: 0 0 0.85rem; }
.prose h2 { font-family: var(--font-display); margin-top: 1.75rem; }
blockquote {
    margin: 0.5rem 0; padding: 0.5rem 0.75rem; border-left: 3px solid var(--pff-accent);
    color: var(--pff-muted); background: rgba(255,255,255,0.03);
}
.selected-banner {
    margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px;
    background: rgba(11, 110, 79, 0.25); border: 1px solid var(--pff-primary);
}
.offer-form, .setup-box {
    padding: 1.25rem; border-radius: var(--radius); background: var(--pff-surface); border: 1px solid var(--pff-line);
    margin-bottom: 1.5rem;
}
.reply-node { margin: 1rem 0 1rem 0.5rem; padding-left: 0.85rem; border-left: 2px solid var(--pff-line); }
.reply-node.depth-1 { margin-left: 1rem; }
.reply-node.depth-2 { margin-left: 1.5rem; }
.reply-box { margin-top: 0.5rem; }
.reply-box summary { cursor: pointer; color: var(--pff-accent); }

.chat-page { display: flex; flex-direction: column; gap: 1rem; }
.chat-header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.chat-log {
    min-height: 280px; max-height: 55vh; overflow: auto;
    padding: 1rem; border-radius: var(--radius); background: var(--pff-surface); border: 1px solid var(--pff-line);
}
.chat-msg { margin-bottom: 0.85rem; }
.chat-msg.system { opacity: 0.75; font-style: italic; }
.chat-msg time { display: block; font-size: 0.75rem; color: var(--pff-muted); }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 0.65rem; align-items: end; }

/* Modern Footer Architecture */
.site-footer {
    margin-top: 4rem;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--pff-line);
    background: linear-gradient(180deg, rgba(20, 28, 38, 0.75) 0%, rgba(11, 16, 22, 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.3fr 1.1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 24rem;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--pff-text);
}
.footer-desc {
    color: var(--pff-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}
.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(11, 110, 79, 0.15);
    border: 1px solid rgba(11, 110, 79, 0.35);
    font-size: 0.78rem;
    color: #a3e6cb;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.footer-heading {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--pff-text);
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.9;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-links a {
    color: var(--pff-muted);
    font-size: 0.92rem;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--pff-accent);
    text-decoration: none;
    transform: translateX(2px);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pff-line);
    font-size: 0.85rem;
    color: var(--pff-muted);
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.footer-sep {
    opacity: 0.4;
}
.footer-back-to-top {
    color: var(--pff-muted);
}
.footer-back-to-top:hover {
    color: var(--pff-accent);
}

/* Auth Cards Modernization */
.auth-page-wrap {
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--pff-surface);
    border: 1px solid var(--pff-line);
    border-radius: 14px;
    padding: 2.25rem 2.25rem 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    position: relative;
}
.auth-card.auth-card-wide {
    max-width: 540px;
}
.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-icon-badge {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 110, 79, 0.35), rgba(244, 162, 97, 0.25));
    border: 1px solid rgba(244, 162, 97, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-icon-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pff-accent);
}
.auth-card-header h1 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    margin: 0 0 0.4rem;
    color: var(--pff-text);
}
.auth-subtitle {
    color: var(--pff-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.45;
}
.auth-form {
    margin-bottom: 1.25rem;
}
.auth-form label {
    margin-bottom: 0.35rem;
}
.auth-form label > span {
    font-size: 0.9rem;
    color: var(--pff-text);
    margin-bottom: 0.3rem;
}
.req {
    color: var(--pff-danger);
    text-decoration: none;
}
.opt {
    color: var(--pff-muted);
    font-weight: normal;
    font-size: 0.82rem;
}
.field-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--pff-muted);
    margin-top: 0.25rem;
}
.auth-form-extra {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}
.auth-forgot-link {
    font-size: 0.88rem;
    color: var(--pff-accent);
}
.btn-block {
    width: 100%;
    padding: 0.8rem 1.25rem;
    font-size: 1rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--pff-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--pff-line);
}
.auth-divider span {
    padding: 0 0.75rem;
}
.auth-card-footer {
    text-align: center;
    font-size: 0.92rem;
    color: var(--pff-muted);
}
.auth-card-footer p {
    margin: 0;
}
.auth-switch-link {
    font-weight: 700;
    color: var(--pff-accent);
}
.auth-callout-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    background: rgba(11, 110, 79, 0.15);
    border: 1px solid rgba(11, 110, 79, 0.35);
    font-size: 0.86rem;
    color: #e0f2fe;
    margin-bottom: 1.35rem;
    line-height: 1.45;
}
.auth-callout-pill.info {
    background: rgba(244, 162, 97, 0.12);
    border-color: rgba(244, 162, 97, 0.3);
    color: #fed7aa;
}
.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pff-accent);
    flex-shrink: 0;
    margin-top: 5px;
}

/* Guide Page & About Page Styles */
.guide-page {
    padding: 2.5rem 0 3.5rem;
}
.guide-hero-card {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 3rem;
}
.guide-hero-badge {
    margin-bottom: 0.85rem;
}
.guide-badge-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(244, 162, 97, 0.15);
    border: 1px solid rgba(244, 162, 97, 0.4);
    color: var(--pff-accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.guide-main-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin: 0 0 0.75rem;
    color: var(--pff-text);
    line-height: 1.15;
}
.guide-main-lede {
    font-size: 1.15rem;
    color: var(--pff-muted);
    margin: 0;
    line-height: 1.5;
}
.guide-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 52rem;
    margin: 0 auto 3rem;
}
.guide-step-card {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem;
    background: var(--pff-surface);
    border: 1px solid var(--pff-line);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.guide-step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 162, 97, 0.35);
}
.step-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-num-badge {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pff-primary), rgba(11, 110, 79, 0.4));
    border: 1px solid rgba(11, 110, 79, 0.6);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(11, 110, 79, 0.3);
}
.step-content-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.step-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.step-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pff-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.step-header h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin: 0;
    color: var(--pff-text);
}
.step-content-col p {
    color: #d1dbe6;
    margin: 0;
    line-height: 1.55;
    font-size: 0.98rem;
}
.guide-custom-hint {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid var(--pff-accent);
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
}
.step-action-row {
    margin-top: 0.5rem;
}
.guide-tips-box {
    max-width: 52rem;
    margin: 0 auto 3rem;
    padding: 1.75rem 2rem;
    border-left: 4px solid var(--pff-accent);
}
.tips-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.tips-icon {
    font-size: 1.35rem;
    color: var(--pff-accent);
}
.tips-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0;
    color: var(--pff-text);
}
.tips-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: #d1dbe6;
    line-height: 1.5;
}
.guide-cta-banner {
    max-width: 52rem;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(11, 110, 79, 0.4) 0%, rgba(26, 35, 50, 0.9) 100%);
    border: 1px solid rgba(11, 110, 79, 0.4);
    border-radius: 14px;
    padding: 2.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}
.cta-text h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin: 0 0 0.35rem;
    color: #fff;
}
.cta-text p {
    color: var(--pff-muted);
    margin: 0;
    font-size: 0.95rem;
}
.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* About Page Modern Layout */
.about-grid {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
}
.about-main-card {
    padding: 2.25rem 2.5rem;
}
.about-main-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: var(--pff-text);
}
.about-custom-text {
    font-size: 1.05rem;
    color: var(--pff-accent);
    margin-bottom: 1rem;
}
.about-main-card p {
    color: #d1dbe6;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.about-subhead {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    color: var(--pff-text);
}
.about-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
}
.about-feature-item {
    display: flex;
    gap: 0.75rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--pff-line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.feat-icon {
    font-weight: 700;
    color: var(--pff-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.about-feature-item strong {
    display: block;
    color: var(--pff-text);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.about-feature-item p {
    color: var(--pff-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .about-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .guide-step-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 1.35rem;
    }
    .step-badge-col {
        align-items: flex-start;
    }
    .guide-cta-banner {
        padding: 1.5rem;
    }
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
}

.bare-body { min-height: 100vh; display: grid; place-items: center; }
.bare-main { width: min(100% - 2rem, 480px); padding: 2rem 0; }
.setup-checklist { color: var(--pff-muted); }

@keyframes brandIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes atmosphereDrift {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.05) translate(-1%, 1%); }
}
@keyframes markPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(244, 162, 97, 0.2); }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: flex-start;
        background: var(--pff-bg); padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--pff-line);
    }
    .site-nav.open { display: flex; }
    .form-row, .footer-grid, .chat-compose { grid-template-columns: 1fr; }
    .thread-hero, .offer-card, .problem-row { grid-template-columns: 2.5rem 1fr; }
    .hero { min-height: 70vh; align-items: center; }
}

/* Content cards — problems, offers, replies, jobs */
.content-card {
    background: var(--pff-surface);
    border: 1px solid var(--pff-line);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}
.problem-card, .thread-hero.content-card {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}
.offer-card.content-card {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    border-bottom: none;
    padding: 1.25rem 1.35rem;
}
.discussion.content-card { margin-top: 1.5rem; }
.body-block {
    background: rgba(0,0,0,0.22);
    border: 1px solid var(--pff-line);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin: 0.75rem 0;
}
.budget-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}
.budget-chip {
    background: rgba(11, 110, 79, 0.2);
    border: 1px solid rgba(11, 110, 79, 0.45);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.budget-label { font-size: 0.8rem; color: var(--pff-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.budget-value { font-weight: 700; font-size: 1.05rem; }

.reply-node { margin: 0.75rem 0 0.75rem 0; padding-left: 0; border-left: none; }
.reply-shell {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--pff-line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.reply-node.depth-1 { margin-left: 1rem; }
.reply-node.depth-2 { margin-left: 1.75rem; }
.reply-node.depth-3 { margin-left: 2.5rem; }
.nested-replies { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px dashed var(--pff-line); }

.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job-card { padding: 1.35rem 1.5rem; }
.job-card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.job-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0; }
.job-title a { color: var(--pff-text); }
.job-card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.job-meta-item {
    background: rgba(0,0,0,0.22);
    border: 1px solid var(--pff-line);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}
.job-meta-label { display: block; font-size: 0.75rem; color: var(--pff-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.job-meta-value { font-weight: 600; }
.job-card-actions { display: flex; gap: 0.5rem; }
.status-completed { background: rgba(11,110,79,0.35); }
.status-active { background: rgba(244,162,97,0.25); color: #ffd7b0; }
.status-cancelled { background: rgba(231,111,81,0.25); }

.chat-sender { font-weight: 700; font-size: 0.88rem; color: var(--pff-accent); margin-bottom: 0.2rem; }
.chat-msg {
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--pff-line);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
}
.chat-msg.system { border-style: dashed; }
.chat-header.content-card { margin-bottom: 0.75rem; }

.budget-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.budget-field-box {
    background: rgba(0,0,0,0.22);
    border: 1px solid var(--pff-line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.color-field {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.65rem;
    align-items: center;
}
.color-field input[type="color"] {
    width: 3rem; height: 2.5rem; padding: 0; border: 0; background: transparent; cursor: pointer;
}

@media (max-width: 760px) {
    .budget-pair, .job-card-meta, .budget-fields { grid-template-columns: 1fr; }
    .reply-node.depth-1, .reply-node.depth-2, .reply-node.depth-3 { margin-left: 0.5rem; }
}

/* Nested offer responses — clear hierarchy */
.nested-replies {
    margin-top: 1.15rem;
    padding: 1rem 0 0.25rem 0.85rem;
    border-top: 1px dashed var(--pff-line);
    border-left: 3px solid rgba(244, 162, 97, 0.55);
    background: linear-gradient(90deg, rgba(244,162,97,0.06), transparent 42%);
    border-radius: 0 10px 10px 0;
}
.nested-replies > .reply-node {
    margin-top: 0.85rem;
}
.nested-replies .reply-shell {
    background: rgba(0, 0, 0, 0.32);
    border-color: rgba(244, 162, 97, 0.28);
}
.nested-replies .reply-node.depth-1 {
    margin-left: 0.85rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(11, 110, 79, 0.45);
}
.nested-replies .reply-node.depth-2 {
    margin-left: 1.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(11, 110, 79, 0.3);
}
.discussion .reply-node {
    margin: 1rem 0;
}
.discussion .reply-shell {
    background: rgba(0, 0, 0, 0.18);
}
.reply-toggle {
    display: inline-flex !important;
    margin-top: 0.5rem;
    list-style: none;
}
.reply-box > summary { list-style: none; }
.reply-box > summary::-webkit-details-marker { display: none; }
.reply-box[open] > .form-stack {
    margin-top: 0.75rem;
    padding: 0.85rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--pff-line);
    border-radius: 10px;
}
.offer-reply-box { margin-top: 0.85rem; }

.settings-group {
    margin: 1rem 0;
    padding: 0.75rem 1rem 1rem;
    border: 1px solid var(--pff-line);
    border-radius: 10px;
    background: rgba(0,0,0,0.15);
}
.settings-group summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}
.donation-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.rating-panel .form-stack { margin-top: 1rem; }
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}
.theme-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Modal system (replaces native confirm/prompt) */
.pff-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    display: grid;
    place-items: center;
    padding: 1rem;
}
.pff-modal-overlay[hidden] { display: none !important; }
.pff-modal {
    width: min(100%, 420px);
    background: var(--pff-surface);
    border: 1px solid var(--pff-line);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}
.pff-modal-title {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}
.pff-modal-body {
    color: var(--pff-muted);
    margin-bottom: 1rem;
    line-height: 1.45;
}
.pff-modal-input-wrap { margin-bottom: 1rem; }
.pff-modal-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--pff-line);
    background: rgba(0,0,0,0.25);
    color: var(--pff-text);
}
.pff-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.home-category-section { margin: 1.75rem 0; }
.home-category-section h3 {
    font-family: var(--font-display);
    margin: 0;
}
.seo-content-block {
    margin-top: 2rem;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid var(--pff-line);
}
.seo-content-block p { color: var(--pff-muted); max-width: 65ch; }
.adsense-slot {
    margin: 1.5rem auto 0;
    max-width: 1100px;
    padding: 0 1.25rem 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
}
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.65rem;
}
.toggle-row {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--pff-line);
    border-radius: 10px;
    position: relative;
}
.toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui {
    width: 2.6rem; height: 1.45rem; border-radius: 999px;
    background: rgba(255,255,255,0.12); border: 1px solid var(--pff-line); position: relative;
}
.toggle-ui::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #c9d4df;
    transition: transform 0.15s ease;
}
.toggle-input:checked + .toggle-ui { background: rgba(11, 110, 79, 0.55); border-color: var(--pff-primary); }
.toggle-input:checked + .toggle-ui::after { transform: translateX(1.15rem); background: #fff; }

@media (max-width: 760px) {
    .settings-grid, .toggle-grid { grid-template-columns: 1fr; }
}

