/* ============================================================
   Zahidiom Network — brand stylesheet
   Tokens: see brand-spec.md (OKLCh + hex, zinc + gold)
   ============================================================ */

:root {
    --bg: #09090b;
    --surface: rgba(255, 255, 255, 0.02);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --fg: #f3f4f6;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.1);
    --accent: #fbbf24;
    --accent-hover: #eab308;
    --accent-ink: #000;
    --success: #10b981;
    --danger: #ef4444;
    --glow: rgba(251, 191, 36, 0.2);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius-card: 12px;
    --radius-pill: 99px;
    --nav-h: 80px;
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.5em;
    color: var(--fg);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

main { min-height: 60vh; }

.muted { color: var(--muted); }
.hint { font-size: 0.85rem; color: var(--muted); }

.inline-form { display: inline; }

/* ---------- A11y / polish ---------- */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

:active { outline: none; }

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 100%;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

.logo-mark-sm { width: 1.5rem; height: 1.5rem; font-size: 0.9rem; }

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--fg);
    line-height: 1.1;
}

.logo-text small {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--fg); }
.nav-links a.on { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-tier {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--border-strong);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25), 0 8px 24px -8px var(--glow);
}

.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--fg);
    border-color: var(--border-strong);
}

.btn-ghost:hover { background: var(--surface-hover); color: var(--fg); transform: translateY(-1px); }

.btn-text {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
}

.btn-text:hover { color: var(--accent-hover); }

/* ---------- Flashes ---------- */

.flash {
    position: fixed;
    top: calc(var(--nav-h) + 1rem);
    right: 1.5rem;
    z-index: 60;
    max-width: 360px;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-card);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    animation: flash-in 0.25s ease;
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { border-color: rgba(16, 185, 129, 0.5); }
.flash-info { border-color: rgba(251, 191, 36, 0.5); }
.flash-error { border-color: rgba(239, 68, 68, 0.5); }

/* ---------- Badges / chips ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}

.sec-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.8rem;
}

.chip strong { color: var(--fg); font-weight: 600; }

.sec-head { max-width: 640px; margin-bottom: 2.5rem; }
.sec-head h2 { margin-bottom: 0.4em; }
.sec-head p { color: var(--muted); margin: 0; }

.pro-badge {
    display: inline-block;
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.pro-badge-static { position: static; transform: none; margin-bottom: 0.75rem; }

.tag-soon {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-pill);
}

.tag-tier {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    border: 1px solid var(--border-strong);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
}

.tier-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    color: var(--muted);
}

.tier-connect { color: var(--muted); }
.tier-network { color: var(--success); border-color: rgba(16, 185, 129, 0.4); }
.tier-collaborate { color: var(--accent); border-color: rgba(251, 191, 36, 0.4); }
.tier-circle { color: var(--fg); border-color: var(--border-strong); }

.skill-chip {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
}

/* ---------- Cards ---------- */

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

/* ---------- Hero (home) ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
    text-align: center;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 320px at 50% -5%, var(--glow), transparent 70%);
    pointer-events: none;
}

.hero-inner { position: relative; }

.hero h1 {
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.75rem, 7vw, 4.75rem);
}

.hero-sub {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: var(--muted);
    font-size: 1.125rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-chips { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Home sections ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.step { border-left: 2px solid var(--border-strong); padding-left: 1.5rem; }

.step-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.step h3 { margin: 0.5rem 0 0.35rem; }
.step p { color: var(--muted); margin: 0; }

section { padding: clamp(3rem, 7vw, 5rem) 0; }

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feat-card h3 { margin-bottom: 0.35rem; }
.feat-card p { color: var(--muted); margin: 0; }

.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

/* ---------- Plan card ---------- */

.plan-card { display: flex; flex-direction: column; padding: 2rem 1.75rem; }

.plan-card-popular {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 20px 50px -20px var(--glow);
}

.plan-card-open { border-color: var(--border-strong); }

.plan-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}

.plan-tagline { color: var(--muted); font-size: 0.95rem; }

.plan-features { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: 0.65rem; }

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--fg);
}

.plan-features li svg { flex: none; margin-top: 0.2rem; }

.plan-features li em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-pill);
    margin-left: 0.35rem;
}

.plan-features li .soon { color: var(--muted); }

.plan-cta { margin-top: auto; display: grid; gap: 0.6rem; }

.pricing-note {
    max-width: 620px;
    margin: 2.5rem auto 0;
    text-align: center;
    color: var(--muted);
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.stars { color: var(--accent); letter-spacing: 0.15em; font-size: 0.95rem; }

.testimonial blockquote {
    margin: 0.75rem 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--fg);
}

.testimonial figcaption { display: flex; flex-direction: column; font-size: 0.9rem; }
.testimonial figcaption strong { color: var(--fg); }
.testimonial figcaption span { color: var(--muted); }

.stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--fg);
}

.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin-inline: auto; display: grid; gap: 0.75rem; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: none;
    border: 0;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
}

.faq-icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); }

.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }

.faq-body p { color: var(--muted); padding: 0 1.25rem 1.1rem; margin: 0; }

/* ---------- CTA ---------- */

.cta { text-align: center; border-top: 1px solid var(--border); }

.cta h2 { margin-bottom: 0.5rem; }
.cta p { color: var(--muted); margin-bottom: 1.75rem; }

/* ---------- Page head ---------- */

.page-head {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.page-head h1 { margin-bottom: 0.5rem; }
.page-head p { color: var(--muted); max-width: 620px; margin-inline: auto; }

.hero-sub { color: var(--muted); }

/* ---------- Avatar ---------- */

.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.avatar-initials {
    display: inline-grid;
    place-items: center;
    background: hsl(var(--h, 40) 35% 22%);
    color: var(--fg);
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    border: 1px solid var(--border-strong);
}

.avatar-sm { width: 2rem; height: 2rem; font-size: 0.7rem; }
.avatar-md { width: 2.75rem; height: 2.75rem; font-size: 0.85rem; }
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.1rem; }
.avatar-xl { width: 5.5rem; height: 5.5rem; font-size: 1.4rem; }

/* ---------- Portal ---------- */

.portal-section, .portal-modules, .portal-pros, .directory, .feed,
.profile-feed, .messages, .resources, .resource-detail, .account,
.checkout, .admin { padding-top: 0.5rem; }

.portal-card { display: flex; flex-direction: column; }

.portal-card-locked { opacity: 0.85; }

.portal-card-locked:hover { transform: none; }

.portal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.portal-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
}

.portal-status-locked { color: var(--muted); border-color: var(--border-strong); }

.portal-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.portal-card h2 { font-size: 2.5rem; }

.portal-card h2 span {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
}

.upsell-banner {
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.06), transparent);
    border-radius: var(--radius-card);
}

.upsell-banner p { margin: 0; color: var(--muted); }

.feat-muted h3 { color: var(--muted); }

.feat-card-module h3 { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- Members ---------- */

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.member-card { display: flex; flex-direction: column; align-items: flex-start; }

.member-avatar { position: relative; margin-bottom: 1rem; }

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg);
}

.member-card h3, .member-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.25rem;
    color: var(--fg);
}

.member-headline {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.member-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }

.member-loc { font-size: 0.8rem; color: var(--muted); }

.member-skills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.member-actions { display: flex; gap: 0.6rem; align-items: center; margin-top: auto; }

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 3rem 0;
}

.pagination { margin-top: 2.5rem; }

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li { display: inline-flex; }

.pagination a,
.pagination .page-disabled,
.pagination .page-current {
    display: inline-grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--fg);
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }

.pagination .page-current {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
    font-weight: 600;
}

.pagination .page-disabled {
    color: var(--muted);
    opacity: 0.55;
    cursor: default;
}

.pagination .pagination-ellipsis { color: var(--muted); }

.pagination svg { display: none; }

/* ---------- Filter bar ---------- */

.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.field-inline { flex: 1 1 220px; margin: 0; }
.field-inline input,
.field-inline select { width: 100%; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.4rem; }

.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: 0.01em;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }

.field-error {
    font-size: 0.8rem;
    color: var(--danger);
}

.check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

.check input { accent-color: var(--accent); }

/* ---------- Auth ---------- */

.auth { padding: clamp(3rem, 6vw, 4rem) 0; }

.auth-card {
    max-width: 460px;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.25rem;
}

.auth-card h1 { font-size: 2rem; margin: 1rem 0 0.25rem; }

.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }

.auth-switch { text-align: center; color: var(--muted); margin: 1.5rem 0 0; font-size: 0.9rem; }

/* ---------- Community / feed ---------- */

.feed-column { max-width: 640px; }

.post-composer { margin-bottom: 1.5rem; }

.post-composer textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
    resize: vertical;
    outline: none;
    margin: 0.75rem 0;
}

.post-composer textarea:focus { border-color: var(--accent); }

.post-composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.post { margin-bottom: 1rem; }

.post-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.75rem; }

.post-head strong { color: var(--fg); }

.post-author { color: var(--fg); font-weight: 600; }

.post-meta-line { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem; }

.post-time { color: var(--muted); font-size: 0.75rem; }

.post p { margin: 0; color: var(--fg); }

/* ---------- Profile ---------- */

.profile-hero { padding: clamp(2rem, 5vw, 3rem) 0 0.5rem; }

.profile-identity { display: flex; align-items: flex-start; gap: 1.5rem; }

.profile-names h1, .profile-names h2 { margin-bottom: 0.25rem; }

.handle {
    font-family: var(--font-mono);
    font-size: 0.8em;
    font-weight: 400;
    color: var(--muted);
}

.profile-actions { margin-left: auto; display: flex; gap: 0.6rem; flex-wrap: wrap; }

.profile-bio { color: var(--muted); margin: 1.25rem 0; }

.profile-links { display: flex; gap: 1.25rem; margin-top: 1.25rem; flex-wrap: wrap; }

.avail {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
}

.avail-open { color: var(--success); border: 1px solid rgba(16, 185, 129, 0.4); }
.avail-busy { color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.4); }
.avail-full-time, .avail-part-time { color: var(--accent); border: 1px solid rgba(251, 191, 36, 0.4); }

/* ---------- Messages ---------- */

.convo-list { display: grid; gap: 0.75rem; max-width: 720px; }

.convo-item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.4rem; }

.convo-item:hover { transform: none; }

.convo-body { flex: 1; min-width: 0; }

.convo-top { display: flex; justify-content: space-between; gap: 1rem; }

.convo-top strong { color: var(--fg); }

.convo-preview { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.convo-preview.unread { color: var(--fg); font-weight: 500; }

.unread-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.4rem;
}

.thread {
    max-width: 720px;
    max-height: 480px;
    overflow-y: auto;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bubble-wrap { display: flex; }
.bubble-wrap.mine { justify-content: flex-end; }

.bubble {
    max-width: 75%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
}

.bubble p { margin: 0 0 0.3rem; }

.bubble-time { font-size: 0.7rem; color: var(--muted); }

.bubble-mine { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.bubble-theirs { background: var(--surface); }

.composer {
    max-width: 720px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.composer textarea {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
    resize: vertical;
    outline: none;
}

.composer textarea:focus { border-color: var(--accent); }

.chat-with { display: inline-flex; align-items: center; gap: 0.75rem; }

/* ---------- Resources ---------- */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.resource-card { display: flex; flex-direction: column; }

.resource-card h3 a { color: var(--fg); }

.resource-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

.resource-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.75rem 0 1rem; }

.resource-detail-card { max-width: 720px; }

.resource-body p { color: var(--fg); }

.locked-note {
    padding: 1.5rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
    margin-bottom: 1.25rem;
}

.locked-note p { color: var(--muted); margin: 0 0 1rem; }
.locked-note p:last-of-type { margin-bottom: 1.5rem; }

/* ---------- Account ---------- */

.account-card { max-width: 760px; }

.account-sections { display: grid; gap: 1.75rem; margin-top: 2rem; }

.account-section h3 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 0.5rem 1rem; margin: 0 0 1.25rem; }

.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--fg); }

/* ---------- Checkout ---------- */

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.checkout-form h2 { font-size: 1.35rem; }

.checkout-form p.muted { margin-bottom: 1.25rem; }

.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.checkout-summary { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

.checkout-summary h2 { font-size: 1.35rem; }

.checkout-summary .plan-features { margin: 1.25rem 0 1rem; }

/* ---------- Admin ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label { color: var(--muted); font-size: 0.9rem; }

.admin-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }

.admin-list h2 { font-size: 1.2rem; }

.admin-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }

.admin-list li { display: flex; align-items: center; gap: 0.75rem; }

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.9rem; max-width: 360px; }

.footer-links { display: flex; gap: 1.25rem; }

.footer-links a { color: var(--muted); font-size: 0.9rem; }

.footer-links a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .tier-grid, .feat-grid, .steps, .testimonial-grid, .member-grid,
    .resource-grid, .stat-grid, .admin-lists { grid-template-columns: repeat(2, 1fr); }

    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(9, 9, 11, 0.97);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1.25rem;
        display: none;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    }

    .nav-links.open { display: flex; }

    .nav-links a { padding: 0.75rem 0; width: 100%; }
}

@media (max-width: 620px) {
    .tier-grid, .feat-grid, .steps, .testimonial-grid, .member-grid,
    .resource-grid, .stat-grid, .admin-lists { grid-template-columns: 1fr; }

    .profile-identity { flex-direction: column; }
    .profile-actions { margin-left: 0; }
}
