:root {
    --color-primary: #0f9f6e;
    --color-primary-dark: #0b7a55;
    --color-primary-soft: rgba(15, 159, 110, .12);
    --color-accent: #2bb673;
    --color-ink: #121a16;
    --color-text: #1c2922;
    --color-muted: #5d6f66;
    --color-border: #dde5e0;
    --color-bg: #eef3ef;
    --color-surface: #f7faf8;
    --color-white: #ffffff;
    --color-success: #0f9f6e;
    --color-error: #e11d48;
    --color-warning: #d97706;
    --color-deep: #0a1a14;
    --color-deep-2: #123028;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 10px 28px rgba(10, 26, 20, .06);
    --shadow-lg: 0 22px 50px rgba(10, 26, 20, .12);
    --font: 'Figtree', system-ui, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --header-h: 68px;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 6rem;
    --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--color-text);
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(15, 159, 110, .08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 20%, rgba(15, 159, 110, .05), transparent 50%),
        var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.15rem, 3.5vw, 1.75rem);
}

.site-main { min-height: 50vh; }

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: none; }

.demo-banner {
    background: #fef0c7;
    color: #93370d;
    text-align: center;
    padding: .5rem 1rem;
    font-size: .8125rem;
    font-weight: 700;
}

/* ——— Header ——— */
.site-header {
    background: rgba(247, 250, 248, .86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 8px 24px rgba(10, 26, 20, .04);
    background: rgba(255, 255, 255, .92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: var(--header-h);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .25rem 1.5rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
}

.header-balance {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857 !important;
    font-weight: 800;
    font-size: .85rem;
    text-decoration: none !important;
    white-space: nowrap;
}
.header-balance:hover {
    background: #d1fae5;
    text-decoration: none !important;
}

.header-dropdown { position: relative; }
.header-icon-btn,
.header-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    color: var(--color-text);
    position: relative;
    padding: 0;
}
.header-icon-btn:hover,
.header-avatar-btn:hover { border-color: #86efac; }

.header-sound-btn.is-muted {
    color: #94a3b8;
}
.header-sound-btn .sound-icon-off[hidden],
.header-sound-btn .sound-icon-on[hidden] { display: none; }

.header-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.header-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), #0d9488);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
}
.header-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.header-avatar-btn { position: relative; }
.header-avatar-btn .user-presence {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #94a3b8;
}
.header-avatar-btn .user-presence.is-online { background: #12b76a; }

.header-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    z-index: 80;
    padding: .4rem;
    overflow: hidden;
}
.header-dropdown-menu a,
.header-dropdown-menu .link-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: .65rem .75rem;
    border-radius: 10px;
    color: var(--color-text);
    text-decoration: none !important;
    font-weight: 600;
    font-size: .9rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.header-dropdown-menu a:hover,
.header-dropdown-menu .link-btn:hover {
    background: var(--color-bg);
    text-decoration: none !important;
}
.header-dropdown-menu a.is-danger { color: #dc2626; }
.header-dropdown-user {
    padding: .75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: .25rem;
}
.header-dropdown-user strong { display: block; }
.header-dropdown-user span {
    font-size: .78rem;
    color: var(--color-muted);
}
.header-dropdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border-bottom: 1px solid var(--color-border);
}
.header-dropdown-head .link-btn {
    width: auto;
    padding: .25rem .4rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}
.header-dropdown-head .link-btn:hover {
    background: var(--color-bg);
}
.header-dropdown-head .link-btn[hidden] { display: none !important; }
.header-notify-list { max-height: 360px; overflow-y: auto; }
.header-dropdown-empty {
    padding: 1rem .75rem;
    color: var(--color-muted);
    font-size: .875rem;
}
.header-notify-menu { min-width: 300px; max-width: 340px; }
.header-notify-item {
    display: flex !important;
    flex-direction: column;
    gap: .15rem;
    padding: .7rem .75rem !important;
}
.header-notify-item span {
    font-weight: 500;
    font-size: .8rem;
    color: var(--color-muted);
}
.header-notify-item time {
    font-size: .72rem;
    color: #94a3b8;
    font-weight: 500;
}
.header-notify-item.is-unread {
    background: #ecfdf5;
}
.header-dropdown.is-open .header-dropdown-menu { display: block; }
.header-dropdown-menu[hidden] { display: none !important; }

.lang-switcher {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
}
.lang-switcher a {
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-muted);
    text-decoration: none;
    padding: .2rem .45rem;
    border-radius: 6px;
}
.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}
.lang-switcher-footer {
    margin-top: .75rem;
}
.footer-links .lang-switcher-footer a { color: rgba(255,255,255,.7); }
.footer-links .lang-switcher-footer a.active,
.footer-links .lang-switcher-footer a:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.site-footer-compact .lang-switcher-footer {
    margin-top: 0;
}
.site-footer-compact .lang-switcher-footer a {
    color: var(--color-muted);
}
.site-footer-compact .lang-switcher-footer a.active,
.site-footer-compact .lang-switcher-footer a:hover {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.site-footer-compact .footer-bottom { border-top: 1px solid var(--color-border); }
.site-footer-compact .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -.055em;
    color: var(--color-primary);
    line-height: 1;
}

.logo-wordmark-light { color: #8ef0c2; }

.logo-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -.04em;
    color: #fff;
    background: linear-gradient(145deg, #0f9f6e 0%, #0b7a55 100%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -.02em;
}

.logo-img { max-height: 38px; width: auto; max-width: min(200px, 42vw); }

.nav-item {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    color: var(--color-muted) !important;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none !important;
    padding: .45rem .2rem;
    min-width: 0;
    transition: color .15s;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    opacity: .7;
    flex-shrink: 0;
}
.nav-item:hover,
.nav-item:hover svg { color: var(--color-ink) !important; opacity: 1; }

.nav-login {
    font-weight: 700;
    font-size: .9rem;
    color: var(--color-text);
    text-decoration: none;
}

.nav-login:hover { color: var(--color-primary-dark); }

.btn-create {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 8px 18px rgba(15, 159, 110, .22) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.btn-create:hover {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 2px;
    transition: .2s;
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.4rem;
    border-radius: 14px;
    border: 1.5px solid transparent;
    font-family: var(--font);
    font-weight: 700;
    font-size: .9375rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .15s, background .15s, border-color .15s, box-shadow .15s, color .15s;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
    box-shadow: 0 10px 22px rgba(15, 159, 110, .22);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff !important;
}

.btn-outline {
    background: var(--color-white);
    color: var(--color-ink) !important;
    border-color: var(--color-border);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark) !important;
    background: var(--color-primary-soft);
}

.btn-ghost {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.28);
    color: #fff !important;
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--color-ink) !important;
    border-color: #fff;
}

.btn-sm { padding: .42rem .95rem; font-size: .8125rem; border-radius: 10px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { flex-shrink: 0; }

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 15%, rgba(15,159,110,.5), transparent 58%),
        radial-gradient(ellipse 55% 45% at 88% 75%, rgba(46,180,120,.22), transparent 52%),
        linear-gradient(155deg, var(--color-deep) 0%, var(--color-deep-2) 48%, #0e241c 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    opacity: .7;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(3.75rem, 11vw, 7rem);
    font-weight: 800;
    letter-spacing: -.07em;
    line-height: .88;
    margin-bottom: 1.35rem;
    background: linear-gradient(115deg, #fff 10%, #9af0c8 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroRise .75s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.4vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 14ch;
    animation: heroRise .75s .08s ease both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.72);
    margin-bottom: 2.1rem;
    max-width: 34ch;
    line-height: 1.55;
    animation: heroRise .75s .14s ease both;
}

.hero-actions {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    animation: heroRise .75s .2s ease both;
}

.hero-note {
    margin-top: 1.25rem;
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    animation: heroRise .75s .26s ease both;
}

.hero-visual {
    position: relative;
    min-height: 340px;
    animation: heroRise .85s .16s ease both;
}

.hero-stage {
    position: relative;
    height: 100%;
    min-height: 340px;
}

.hero-float {
    position: absolute;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    color: #fff;
}

.hero-float-a {
    top: 8%;
    right: 6%;
    width: min(260px, 78%);
    padding: 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    animation: float 7s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.hero-float-tag {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}

.hero-float-a strong {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: #8ef0c2;
    letter-spacing: -.03em;
}

.hero-float-a em {
    font-style: normal;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
}

.hero-float-b {
    left: 4%;
    bottom: 22%;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    animation: float 8.5s ease-in-out infinite reverse;
}

.hero-float-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .2);
}

.hero-float-c {
    left: 14%;
    top: 28%;
    width: min(200px, 58%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    animation: float 9s ease-in-out infinite;
}

.hero-mini-row {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.hero-mini-row i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.hero-mini-row i.muted { background: rgba(255,255,255,.3); }

.hero-mini-row b {
    display: block;
    height: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.16);
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ——— Stats ——— */
.stats-strip {
    background: linear-gradient(180deg, #0e241c 0%, #123028 100%);
    color: #fff;
    padding: clamp(1.75rem, 4vw, 2.5rem) 0;
    border-top: 1px solid rgba(255,255,255,.06);
}

.stats-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.25rem;
}

.stat-item { text-align: center; padding: .25rem .5rem; }

.stat-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: #8ef0c2;
    letter-spacing: -.03em;
    margin-bottom: .4rem;
}

.stat-item span {
    font-size: .8125rem;
    color: rgba(255,255,255,.58);
    line-height: 1.4;
}

/* ——— Sections ——— */
.section {
    padding: clamp(3.75rem, 8vw, 6.25rem) 0;
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.9));
}

.section-head {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--color-ink);
    margin: 0 0 .85rem;
}

.section-title-left { text-align: left; margin-bottom: .65rem; }

.section-lead {
    text-align: center;
    color: var(--color-muted);
    max-width: 38rem;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.55;
}

.section-head .section-lead { margin-top: 0; }

.page-intro { margin-bottom: 2.25rem; }
.page-intro-text {
    color: var(--color-muted);
    max-width: 40rem;
    margin-bottom: 1.35rem;
    font-size: 1.05rem;
}
.page-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}
.feed-count-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .4rem;
    margin-left: .35rem;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    font-size: .75rem;
    font-weight: 800;
}

.container-narrow { max-width: 720px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.75rem, 4vw, 3rem);
}

.step-item {
    position: relative;
    padding-top: .25rem;
}

.step-num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
    color: rgba(15, 159, 110, .22);
    margin-bottom: 1rem;
}

.step-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .55rem;
    letter-spacing: -.025em;
    color: var(--color-ink);
}

.step-item p {
    color: var(--color-muted);
    font-size: .98rem;
    line-height: 1.55;
    max-width: 28ch;
}

/* ——— Benefits ——— */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.benefit-item {
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    transition: background .2s;
}

.benefit-item:nth-child(2n) { border-right: 0; }

.benefit-item:hover { background: rgba(15, 159, 110, .04); }

.benefit-index {
    display: block;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--color-primary);
    margin-bottom: .75rem;
}

.benefit-item h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

.benefit-item p {
    color: var(--color-muted);
    font-size: .95rem;
    line-height: 1.55;
    max-width: 36ch;
}

/* ——— Category catalog ——— */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.section-block {
    background: rgba(255,255,255,.72);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem 1.2rem;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}

.section-catalog .section-block {
    background: var(--color-white);
    border-color: var(--color-border);
}

.section-block:hover {
    border-color: rgba(15, 159, 110, .35);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    background: #fff;
}

.section-block-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none !important;
    color: var(--color-ink);
    margin-bottom: 1rem;
}

.section-block-head h2,
.section-block-head h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
}

.section-block-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-block-icon img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 6px;
}

.section-block-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.section-block-list a {
    color: var(--color-muted);
    font-size: .9rem;
    text-decoration: none;
    line-height: 1.35;
}

.section-block-list a:hover {
    color: var(--color-primary-dark);
}

.section-block-more { font-weight: 700; color: var(--color-primary-dark) !important; }
.section-block-empty { font-size: .9rem; color: var(--color-muted); }

.subcats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 2.25rem;
}

.subcats-grid-lg { justify-content: center; }

.subcat-chip {
    display: inline-flex;
    align-items: center;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: .15s;
}

.subcat-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--color-muted);
    margin-bottom: 1.35rem;
}

.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary-dark); }

.subsection-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.15rem;
    letter-spacing: -.02em;
}

/* ——— FAQ ——— */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .1rem 1.2rem;
    transition: border-color .15s;
}

.faq-item[open] { border-color: rgba(15, 159, 110, .35); }

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 1.05rem 0;
    list-style: none;
    position: relative;
    padding-right: 1.75rem;
    color: var(--color-ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    color: var(--color-primary);
    font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    color: var(--color-muted);
    font-size: .95rem;
    padding-bottom: 1.1rem;
    line-height: 1.6;
}

/* ——— CTA banner ——— */
.section-cta-banner { padding-top: 0; padding-bottom: clamp(3.75rem, 8vw, 6rem); }

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    flex-wrap: wrap;
    padding: clamp(1.85rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.4rem);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 55% 90% at 92% 15%, rgba(15,159,110,.4), transparent 55%),
        linear-gradient(135deg, var(--color-deep) 0%, var(--color-deep-2) 100%);
    color: #fff;
}

.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: .45rem;
}

.cta-banner p { color: rgba(255,255,255,.68); max-width: 34rem; line-height: 1.5; }

.cta-banner-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.section-cta {
    display: flex;
    justify-content: center;
    gap: .85rem;
    flex-wrap: wrap;
    text-align: center;
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* ——— Legacy category cards ——— */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .9rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1.2rem 1.1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: .2s;
}

.section-alt .category-card { background: var(--color-surface); }

.category-card:hover {
    border-color: rgba(15,159,110,.35);
    box-shadow: var(--shadow);
    text-decoration: none;
    transform: translateY(-3px);
}

.category-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-categories-page,
.section-category-show {
    padding-top: clamp(2rem, 4vw, 2.75rem);
}
.site-footer { color: rgba(255,255,255,.7); }

.footer-top {
    background: var(--color-deep-2);
    padding: clamp(1.75rem, 4vw, 2.35rem) 0;
}

.footer-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.footer-label { font-size: .8125rem; font-weight: 600; margin-right: .25rem; }
.footer-social-link {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.08); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: .15s;
}
.footer-social-link:hover { background: var(--color-primary); text-decoration: none; color: #fff; }

.footer-brand-block { text-align: right; }
.footer-brand-block p { margin: .4rem 0 0; font-size: .875rem; max-width: 280px; color: rgba(255,255,255,.55); }

.footer-links {
    background: var(--color-deep);
    padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-links h4 {
    color: #fff;
    font-size: .8125rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .85rem;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    margin-bottom: .45rem;
    text-decoration: none;
}
.footer-links a:hover { color: #fff; }

.footer-note { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.5; margin: 0; }

.footer-bottom {
    background: #06110d;
    padding: 1.1rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .8125rem;
    color: rgba(255,255,255,.45);
}

.footer-bottom p { margin: 0; }
.footer-payments { display: flex; gap: .75rem; flex-wrap: wrap; }
.footer-payments span {
    padding: .2rem .55rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ——— Auth ——— */
.auth-page {
    padding: 3.5rem 1rem;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--header-h) - 120px);
    align-items: center;
}

.auth-card {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2rem 2rem 1.75rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--color-border);
}

.auth-card-wide { max-width: 640px; }
.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}
.auth-card h3 { margin-bottom: 1rem; }
.auth-link { margin-top: 1.15rem; text-align: center; font-size: .9rem; }
.auth-lead {
    margin: -.35rem 0 1.15rem;
    color: var(--color-muted, #5d6f66);
    font-size: .92rem;
    line-height: 1.45;
}
.novice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    padding: 1.05rem 1.2rem;
    grid-column: 1 / -1;
    background:
        radial-gradient(ellipse 70% 120% at 0% 50%, rgba(15,159,110,.14), transparent 55%),
        linear-gradient(135deg, #0f1f18 0%, #143528 100%);
    border-radius: 18px;
    color: #e8f5ee;
    box-shadow: 0 12px 32px rgba(10,26,20,.18);
    transition: opacity .25s, transform .25s;
	margin-top:10px;
}
.novice-banner.is-leaving { opacity: 0; transform: translateY(-8px); }
.novice-banner strong {
    display: block;
    font-family: "Bricolage Grotesque", Figtree, sans-serif;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    margin-bottom: .3rem;
    color: #fff;
}
.novice-banner p {
    margin: 0;
    color: rgba(232,245,238,.78);
    font-size: .9rem;
    line-height: 1.4;
    max-width: 36rem;
}
.novice-banner .btn {
    flex-shrink: 0;
    background: #0f9f6e;
    border-color: #0f9f6e;
    color: #fff;
    font-weight: 800;
}

body.nq-open { overflow: hidden; }
.nq-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}
.nq-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.nq-overlay[hidden] {
    display: none !important;
}
.nq-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 14, .55);
    backdrop-filter: blur(4px);
}
.nq-sheet {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(92vh, 820px);
    overflow: auto;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(15,159,110,.12), transparent 60%),
        #f7fbf8;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(10,26,20,.28);
    padding: 1.35rem 1.25rem 1.75rem;
    transform: translateY(24px);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.nq-overlay.is-visible .nq-sheet { transform: translateY(0); }
@media (min-width: 640px) {
    .nq-overlay { align-items: center; padding: 1.5rem; }
    .nq-sheet {
        border-radius: 24px;
        padding: 1.75rem 1.6rem 1.85rem;
        transform: translateY(16px) scale(.98);
    }
    .nq-overlay.is-visible .nq-sheet { transform: none; }
}
.nq-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(18,36,28,.06);
    color: #12241c;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.nq-body.is-busy { pointer-events: none; opacity: .72; }
.nq-loading {
    display: flex;
    justify-content: center;
    gap: .4rem;
    padding: 3rem 0;
}
.nq-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f9f6e;
    animation: nq-bounce 1s ease-in-out infinite;
}
.nq-loading span:nth-child(2) { animation-delay: .12s; }
.nq-loading span:nth-child(3) { animation-delay: .24s; }
@keyframes nq-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: .4; }
    40% { transform: translateY(-7px); opacity: 1; }
}
.nq-hero { padding-right: 1.5rem; margin-bottom: 1.15rem; }
.nq-badge {
    display: inline-flex;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #e8f8ef;
    color: #0b7a55;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.nq-hero h2 {
    font-family: "Bricolage Grotesque", Figtree, sans-serif;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    letter-spacing: -.03em;
    margin: 0 0 .55rem;
    color: #12241c;
    line-height: 1.15;
}
.nq-hero p { margin: 0; color: #5d6f66; line-height: 1.5; }
.nq-progress-meta {
    margin-top: .85rem;
    font-size: .82rem;
    font-weight: 700;
    color: #0b7a55;
}
.nq-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.25rem; }
.nq-list-item {
    display: flex;
    gap: .75rem;
    padding: .85rem .9rem;
    background: #fff;
    border: 1px solid #dde5e0;
    border-radius: 14px;
}
.nq-list-item.is-next {
    border-color: #9fd9b8;
    box-shadow: 0 0 0 3px rgba(15,159,110,.1);
}
.nq-list-num {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: #12241c;
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nq-list-item strong { display: block; color: #12241c; font-size: .95rem; }
.nq-list-item p { margin: .25rem 0 0; color: #5d6f66; font-size: .85rem; line-height: 1.4; }
.nq-list-item em {
    display: block;
    margin-top: .35rem;
    font-style: normal;
    font-size: .75rem;
    font-weight: 700;
    color: #7a8b82;
}
.nq-primary { width: 100%; }
.nq-quiz-top { margin-bottom: 1.15rem; padding-right: 1.75rem; }
.nq-quiz-kicker {
    font-size: .78rem;
    font-weight: 800;
    color: #0b7a55;
    margin-bottom: .55rem;
}
.nq-bar {
    height: 6px;
    border-radius: 999px;
    background: #dde5e0;
    overflow: hidden;
    margin-bottom: .45rem;
}
.nq-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0b7a55, #0f9f6e);
    border-radius: inherit;
    transition: width .35s ease;
}
.nq-quiz-step { font-size: .78rem; font-weight: 700; color: #7a8b82; }
.nq-q-title {
    font-family: "Bricolage Grotesque", Figtree, sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 0 0 1.1rem;
    color: #12241c;
}
.nq-options { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.35rem; }
.nq-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    text-align: left;
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid #dde5e0;
    background: #fff;
    color: #12241c;
    font-size: .95rem;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.nq-option:hover { border-color: #9fd9b8; transform: translateY(-1px); }
.nq-option.is-selected {
    border-color: #0f9f6e;
    background: #f0faf5;
    box-shadow: 0 0 0 3px rgba(15,159,110,.12);
}
.nq-option-mark {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .1rem;
    border-radius: 50%;
    border: 2px solid #b7cfc2;
    position: relative;
}
.nq-option.is-selected .nq-option-mark {
    border-color: #0f9f6e;
    background: #0f9f6e;
}
.nq-option.is-selected .nq-option-mark::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}
.nq-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}
.nq-nav .btn:disabled { opacity: .45; cursor: not-allowed; }
.nq-result { text-align: center; padding: 1.25rem .5rem .5rem; }
.nq-result-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    animation: nq-pop .45s cubic-bezier(.22, 1, .36, 1);
}
.nq-result.is-pass .nq-result-icon { background: #e8f8ef; color: #0b7a55; }
.nq-result.is-fail .nq-result-icon { background: #fef2f2; color: #b42318; }
@keyframes nq-pop {
    from { transform: scale(.6); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.nq-result h2 {
    font-family: "Bricolage Grotesque", Figtree, sans-serif;
    margin: 0 0 .35rem;
    letter-spacing: -.03em;
    color: #12241c;
}
.nq-score {
    font-family: "Bricolage Grotesque", Figtree, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: .25rem 0 .5rem;
    color: #0b7a55;
}
.nq-result.is-fail .nq-score { color: #b42318; }
.nq-result > p { color: #5d6f66; margin: 0 0 1.25rem; line-height: 1.45; }
.nq-result-actions { display: flex; flex-direction: column; gap: .55rem; }
.nq-result-actions .btn { width: 100%; }
.nq-error {
    padding: 1.5rem;
    text-align: center;
    color: #912018;
    background: #fee4e2;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 .55rem;
    border-radius: 10px;
    border: 1px solid #dde5e0;
    background: #fff;
    color: #12241c;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: #0b7a55;
    color: #0b7a55;
    text-decoration: none;
}

.pagination-btn.is-current {
    background: #0b7a55;
    border-color: #0b7a55;
    color: #fff;
}

.pagination-btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0 .2rem;
    color: #7a8b82;
    font-weight: 700;
}

/* ——— Forms ——— */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 600;
    font-size: .8125rem;
    color: var(--color-ink);
}

.form-control {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    display: block;
    color: var(--color-muted);
    font-size: .8125rem;
    margin-top: .3rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    cursor: pointer;
}
.checkbox-label.block { display: flex; margin-bottom: .5rem; }

.alert {
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert-success { background: #dcfae6; color: #05603a; }
.alert-error { background: #fee4e2; color: #912018; }
.alert-warning { background: #fef0c7; color: #93370d; }

/* ——— Task feed ——— */
.feed-section { margin-bottom: 1.35rem; }
.feed-section:last-child { margin-bottom: 0; }
.feed-section-title {
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 .55rem;
    color: var(--color-muted);
}
.task-card-bids-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.task-card.has-new-bids {
    box-shadow: inset 3px 0 0 var(--color-primary);
}


.feed-page.is-personal .feed-toolbar,
.feed-page.is-personal .feed-categories { display: none !important; }
.feed-page.is-personal .feed-header { margin-top: .25rem; }

.feed-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: start;
}

.feed-layout-wide {
    grid-template-columns: 1fr;
    max-width: 820px;
	    margin-bottom: .85rem;

}

.feed-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: .85rem;
}

.feed-search {
    display: flex;
    gap: .5rem;
    flex: 1;
    min-width: 220px;
    align-items: stretch;
}
.feed-search .search-field {
    flex: 1;
    margin-bottom: 0;
}
.feed-search .btn {
    min-height: 42px;
    box-shadow: none;
}

.feed-sort {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 160px;
}
.feed-sort label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-muted);
    font-weight: 700;
}
.feed-sort .form-control {
    min-height: 42px;
    background: var(--color-white);
}

.feed-categories {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

.feed-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.feed-cat-children {
    padding-top: .45rem;
    border-top: 1px solid var(--color-border);
}

.feed-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem .3rem .3rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-muted);
    transition: .15s;
}
.feed-cat-chip:hover {
    color: var(--color-ink);
    background: rgba(15, 26, 20, .04);
}
.feed-cat-chip.is-active {
    border-color: var(--color-border);
    background: var(--color-white);
    color: var(--color-ink);
    box-shadow: none;
}

.feed-cat-chip-sm {
    padding: .28rem .7rem;
}

.feed-cat-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-bg);
}
.feed-cat-icon-fallback,
.feed-cat-icon-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 800;
    color: var(--color-muted);
    background: rgba(15, 26, 20, .06);
}

.feed-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.feed-header h1 {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--color-ink);
}
.feed-count { color: var(--color-muted); font-size: .8125rem; }

.new-tasks-banner {
    background: linear-gradient(90deg, var(--color-primary), #0d9488);
    color: #fff;
    text-align: center;
    padding: .75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    font-weight: 700;
    font-size: .875rem;
    animation: pulse 1.4s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .88; }
}

.task-feed {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.task-feed.is-loading { opacity: .55; pointer-events: none; }

.task-feed-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.feed-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.25rem;
}

.feed-promo-text { font-size: .9rem; color: var(--color-text); }
.feed-promo-text strong { color: var(--color-primary-dark); font-family: var(--font-display); }

.feed-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.1rem;
    padding: 0;
}
.feed-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: .7rem .9rem .65rem;
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-muted);
    cursor: pointer;
}
.feed-tab:hover { color: var(--color-ink); }
.feed-tab.is-active {
    color: var(--color-ink);
    border-bottom-color: var(--color-ink);
}
.feed-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
}
.feed-tab-badge[hidden] { display: none !important; }
.feed-tab-cta {
    margin-left: auto;
    margin-bottom: .35rem;
}

.toast-host {
    position: fixed;
    top: calc(var(--header-h, 72px) + 12px);
    right: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}
.toast-notify {
    pointer-events: auto;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
    padding: .85rem 1rem;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .28s ease, transform .28s ease;
}
.toast-notify.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.toast-notify strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.toast-notify span {
    display: block;
    font-size: .8125rem;
    color: var(--color-muted);
    line-height: 1.35;
}
.toast-notify time {
    display: block;
    margin-top: .35rem;
    font-size: .7rem;
    color: #94a3b8;
}
.toast-notify:hover,
.toast-notify:focus,
.toast-notify:focus-visible {
    border-color: #93c5fd;
    text-decoration: none !important;
    color: inherit;
}

.role-switch {
    width: calc(100% - 1.5rem);
    margin: .35rem .75rem .7rem;
}
.role-switch-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .2rem;
    padding: .2rem;
    border-radius: 999px;
    background: var(--color-primary-soft, rgba(15, 159, 110, .12));
    border: 1px solid rgba(15, 159, 110, .18);
}
.role-switch-btn {
    appearance: none;
    border: 0;
    margin: 0;
    padding: .5rem .55rem;
    border-radius: 999px;
    background: transparent;
    color: var(--color-primary-dark, #0b7a55);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.role-switch-btn.is-active,
.role-switch-btn:disabled.is-active {
    background: var(--color-primary, #0f9f6e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 159, 110, .28);
    cursor: default;
}
.role-switch-btn:not(.is-active):hover {
    background: rgba(15, 159, 110, .1);
}
.role-switch-btn:focus-visible {
    outline: 2px solid var(--color-primary, #0f9f6e);
    outline-offset: 1px;
}

.header-role-label {
    display: block;
    margin-top: .25rem;
    font-size: .75rem;
    color: var(--color-primary-dark, #039855);
    font-weight: 700;
}
.header-role-form { margin: 0; }
.header-role-switch {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--color-primary-soft, rgba(18,183,106,.12));
    border: 0;
    border-radius: 8px;
    padding: .55rem .75rem;
    margin: .35rem 0 .5rem;
    font: inherit;
    font-weight: 700;
    font-size: .875rem;
    color: var(--color-primary-dark, #039855);
    cursor: pointer;
}
.header-role-switch:hover { filter: brightness(.97); }

.search-field {
    position: relative;
    margin-bottom: .75rem;
}
.search-field svg {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
}
.search-field .form-control { padding-left: 2.4rem; }

.filter-form .btn { margin-top: .25rem; }

.task-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
    overflow: hidden;
}
.task-card.is-removing {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.task-card-new {
    animation: slideIn .35s ease;
    border-color: rgba(15, 159, 110, .45);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-card:hover {
    border-color: #c5d4cb;
    box-shadow: 0 4px 14px rgba(10, 26, 20, .05);
}
.task-card.is-open {
    border-color: rgba(15, 159, 110, .45);
    box-shadow: 0 6px 18px rgba(10, 26, 20, .07);
}

.task-card-toggle {
    display: block;
    width: 100%;
    padding: .9rem 1.05rem 1rem;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.task-card-link {
    display: block;
    padding: .9rem 1.05rem 1rem;
    text-decoration: none;
    color: inherit;
}
.task-card-link:hover { text-decoration: none; }

.task-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.task-card-title {
    font-size: .98rem;
    color: #1a4f8c;
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .45rem;
    font-family: var(--font);
    letter-spacing: -.01em;
}
.task-card:hover .task-card-title,
.task-card.is-open .task-card-title {
    color: #123a6b;
}

.task-card-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.task-card.has-unread {
    border-color: #fecaca;
}
.task-card-bids-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.task-card.has-new-bids {
    border-color: #86efac;
}

.task-card-aside {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
}

.task-card-head-meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
}

.task-card-status,
.task-expand-status {
    display: inline-flex;
    align-items: center;
    padding: .22rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: #f1f5f9;
    color: #64748b;
}
.task-card-status.status-completed,
.task-expand-status.status-completed {
    background: #ecfdf3;
    color: #027a48;
}
.task-card-status.status-cancelled,
.task-expand-status.status-cancelled {
    background: #fef2f2;
    color: #b42318;
}
.task-card-status.status-dispute,
.task-expand-status.status-dispute {
    background: #fef2f2;
    color: #b42318;
}
.task-card-status.status-review,
.task-expand-status.status-review {
    background: #fef9c3;
    color: #a16207;
}
.task-card-status.status-in_progress,
.task-card-status.status-awaiting_payment,
.task-expand-status.status-in_progress,
.task-expand-status.status-awaiting_payment {
    background: #eff6ff;
    color: #2563eb;
}
.task-card-status.status-published,
.task-expand-status.status-published {
    background: #ecfdf3;
    color: #039855;
}
.task-card-status.status-paused,
.task-expand-status.status-paused {
    background: #fff7ed;
    color: #c2410c;
}
.task-card-status.status-draft,
.task-expand-status.status-draft {
    background: #f1f5f9;
    color: #64748b;
}

.task-card-price {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: #e8f8ef;
    color: #0b7a55;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -.015em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.task-card-desc {
    margin: .45rem 0 0;
    color: #6b7c74;
    font-size: .84rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.task-card.is-open .task-card-desc,
.task-card.is-open .task-card-foot {
    display: none;
}

.task-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    margin-top: .55rem;
}
.task-card-foot-item {
    font-size: .72rem;
    color: #8a9a92;
    font-weight: 600;
}
.task-card-foot-time {
    color: #6b7c74;
}
.task-card-city.is-match {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .12rem .45rem;
    border-radius: 999px;
    background: #e8f8ef;
    color: #0b7a55;
    font-weight: 700;
}
.task-card.has-city-match {
    border-color: #86efac;
}
.task-expand-city.is-match {
    background: #e8f8ef;
    color: #0b7a55;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 999px;
}

.feed-section {
    margin-bottom: 1.35rem;
}
.feed-section:last-child { margin-bottom: 0; }
.feed-section-title {
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 .55rem;
    color: var(--color-muted);
}

/* legacy hooks */
.task-card-row,
.task-card-main,
.task-card-meta,
.task-card-top,
.task-card-bottom,
.task-card-stats,
.task-card-body,
.task-card-tags,
.task-card-chevron { display: none; }

.task-card-tag,
.task-card-city {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    color: var(--color-muted);
    font-weight: 600;
}

a.task-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    padding: .9rem 1.05rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
a.task-card-link:hover {
    border-color: #c5d4cb;
    box-shadow: 0 4px 14px rgba(10, 26, 20, .05);
}

.task-card-expand {
    border-top: 1px solid #d1fae5;
    background: #f0fdf4;
}

.task-expand-inner { padding: 1rem 1.2rem 1.15rem; }
.task-expand-loading { padding: 1rem 1.2rem; color: var(--color-muted); }

.task-expand-head { margin-bottom: .75rem; }
.task-expand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    font-size: .85rem;
    color: var(--color-muted);
}
.task-expand-price {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}
.task-expand-note {
    margin: 0 0 .75rem;
    font-size: .875rem;
    color: var(--color-text);
    line-height: 1.45;
}
.task-order-actions {
    justify-content: flex-start;
    position: static;
}
.task-expand-city {
    color: #16a34a;
    font-weight: 700;
}

.task-expand-body {
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.task-expand-files {
    margin: 0 0 1rem;
    padding: .75rem .85rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.task-expand-files strong {
    display: block;
    font-size: .8125rem;
    margin-bottom: .5rem;
}
.task-expand-files ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
}
.task-expand-file a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary-dark, #039855);
}
.task-expand-file a:hover { text-decoration: none; }
.task-expand-file.is-image a {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    padding: .35rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    max-width: 160px;
}
.task-expand-file.is-image img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.task-expand-file.is-image span {
    font-size: .72rem;
    color: var(--color-muted);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-expand-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.task-expand-author-main {
    flex: 1;
    min-width: 0;
}
.task-report-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
}
.task-report-btn:hover {
    color: #be123c;
    border-color: #fecdd3;
    background: #fff1f2;
}
.task-expand-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #0d9488);
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
}
.task-expand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.task-expand-avatar-fallback { line-height: 1; }
.task-expand-avatar .user-presence {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #94a3b8;
}
.task-expand-avatar .user-presence.is-online { background: #12b76a; }
.task-expand-avatar .user-presence.is-offline { background: #94a3b8; }
.task-expand-presence {
    font-size: .75rem;
    margin-top: .1rem;
    font-weight: 600;
}
.task-expand-presence.is-online { color: #039855; }
.task-expand-presence.is-offline { color: var(--color-muted); }

.task-urgent-badge {
    display: inline-flex;
    align-items: center;
    padding: .1rem .4rem;
    border-radius: 4px;
    background: transparent;
    color: #b45309;
    border: 1px solid #fcd34d;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.task-card.is-urgent {
    border-color: #fcd34d;
}
.task-expand-meta .task-urgent-badge { margin-right: .15rem; }
.task-expand-author .muted {
    font-size: .8rem;
    color: var(--color-muted);
}
.task-expand-ratings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .65rem;
    margin-top: .2rem;
    font-size: .8125rem;
}
.task-expand-rating {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    font-weight: 600;
}
.task-expand-rating.is-up { color: #15803d; }
.task-expand-rating.is-down { color: #be123c; }
.task-expand-ratings-total {
    color: var(--color-muted);
    font-weight: 500;
    font-size: .75rem;
}

.task-expand-reply {
    background: var(--color-surface);
    border-radius: 12px;
    padding: .9rem 1rem;
}
.task-expand-inner.is-order .task-expand-reply {
    background: transparent;
    padding: .25rem 0 0;
}

.task-expand-payout {
    font-weight: 800;
    margin: 0 0 .65rem;
    font-size: .95rem;
}

.task-expand-notice {
    font-weight: 600;
    color: var(--color-muted);
}
.task-expand-notice.is-success { color: #15803d; }

.task-bid-message-wrap textarea {
    width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: .75rem .9rem;
    font: inherit;
    resize: vertical;
    min-height: 84px;
    background: #fff;
}
.task-bid-message-wrap textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.task-bid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    justify-content: center;
    margin-top: .85rem;
    position: relative;
}
.task-bid-collapse {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    padding: .35rem;
}

.feed-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--color-muted);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.feed-load-more { margin-top: 1rem; }

.admin-icon-preview {
    margin-bottom: .5rem;
}
.admin-icon-preview img {
    border-radius: 10px;
    border: 1px solid var(--color-border);
    object-fit: cover;
}
.form-hint {
    margin: .35rem 0 0;
    font-size: .8rem;
    color: var(--color-muted);
}

/* ——— Task detail ——— */
.container-narrow { max-width: 800px; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: .875rem; font-weight: 600; }

.task-detail {
    background: var(--color-white);
    border-radius: 18px;
    border: 1px solid var(--color-border);
    padding: 1.6rem;
}

.task-detail-category {
    font-size: .8125rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.task-detail-header h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: -.03em;
    margin: .5rem 0 1rem;
}

.task-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .875rem;
    color: var(--color-muted);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.task-detail-price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-success);
}

.task-detail-body { padding: 1.5rem 0; line-height: 1.7; }

.task-detail-author {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .875rem;
    color: var(--color-muted);
}

.task-detail-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* ——— Portfolio ——— */
.portfolio-page { padding: 2rem 0 3rem; }
.portfolio-header { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; }
.portfolio-avatar {
    width: 96px; height: 96px; border-radius: 50%; overflow: visible; flex-shrink: 0;
    background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 2rem; font-weight: 800;
    position: relative;
}
.portfolio-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portfolio-avatar .user-presence {
    position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px;
    border-radius: 50%; border: 2px solid #fff; background: #94a3b8;
}
.portfolio-avatar .user-presence.is-online { background: #12b76a; }
.presence-label.is-online { color: #12b76a; font-weight: 600; }
.presence-label.is-offline { color: var(--color-muted); }
.portfolio-info h1 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: .25rem; letter-spacing: -.03em; }
.portfolio-subtitle { color: var(--color-muted); margin-bottom: .75rem; }
.portfolio-stats { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .875rem; align-items: center; }
.level-badge {
    background: var(--color-primary-soft); color: var(--color-primary-dark); padding: .25rem .625rem;
    border-radius: 8px; font-weight: 700; font-size: .8125rem;
}
.portfolio-bio, .portfolio-reviews {
    background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.portfolio-bio h2, .portfolio-reviews h2 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: .75rem; }
.portfolio-page .level-block { margin-bottom: 1.5rem; }
.portfolio-page .level-bar { height: 8px; background: var(--color-bg); border-radius: 4px; overflow: hidden; margin-bottom: .375rem; }
.portfolio-page .level-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), #0ea5e9); border-radius: 4px; }
.portfolio-page .level-meta { font-size: .8125rem; color: var(--color-muted); }
.portfolio-page .portfolio-stats span { font-size: .875rem; color: var(--color-muted); }

.level-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.level-help-btn {
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    opacity: .7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.level-help-btn:hover,
.level-help:focus-within .level-help-btn {
    opacity: 1;
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
.level-help-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + .45rem);
    transform: translateX(-50%);
    width: min(320px, 78vw);
    padding: .85rem .95rem;
    background: #12241c;
    color: #e8f5ee;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 26, 20, .28);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
}
.level-help-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #12241c;
}
.level-help:hover .level-help-tip,
.level-help:focus-within .level-help-tip {
    opacity: 1;
    visibility: visible;
}
.level-help-title {
    display: block;
    font-size: .85rem;
    font-weight: 800;
    margin-bottom: .35rem;
    color: #fff;
}
.level-help-lead {
    margin: 0 0 .65rem;
    color: rgba(232, 245, 238, .78);
}
.level-help-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.level-help-list li {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding-top: .4rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.level-help-list li:first-child { border-top: 0; padding-top: 0; }
.level-help-name { font-weight: 800; color: #8ef0c2; }
.level-help-req { color: rgba(232, 245, 238, .72); font-size: .74rem; }

.review-card { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.review-card:last-child { border-bottom: none; }
.review-card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .375rem; flex-wrap: wrap; }
.review-date { margin-left: auto; font-size: .8125rem; color: var(--color-muted); }
.review-card p { font-size: .9375rem; margin-bottom: .25rem; }

/* ——— Responsive ——— */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.25rem; }
    .hero-visual { min-height: 280px; max-width: 440px; }
    .hero { min-height: auto; padding: 2.5rem 0 3.25rem; }
    .hero-title { max-width: none; }
    .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
    .sections-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit-item { border-right: 0 !important; }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .main-nav,
    .nav-actions { display: none; }
    .site-header.nav-open .header-inner { flex-wrap: wrap; }
    .site-header.nav-open .main-nav,
    .site-header.nav-open .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        flex: none;
        justify-content: flex-start;
        gap: .2rem;
        padding: .65rem 0;
        border-top: 1px solid var(--color-border);
    }
    .site-header.nav-open .nav-actions {
        padding-bottom: 1rem;
        gap: .65rem;
    }
    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: .7rem;
        font-size: .95rem;
        padding: .7rem 0;
        min-width: 0;
    }
    .header-inner { position: relative; }
    .feed-layout { grid-template-columns: 1fr; }
    .feed-sidebar { position: static; }
    .sections-grid { grid-template-columns: 1fr; }
    .stats-strip-inner { grid-template-columns: 1fr 1fr; }
    .cta-banner { padding: 1.6rem 1.25rem; border-radius: 18px; }
    .cta-banner-actions { width: 100%; }
    .cta-banner-actions .btn { flex: 1; justify-content: center; }
    .section { padding: 3.25rem 0; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .feed-toolbar { flex-direction: column; align-items: stretch; }
    .feed-sort { width: 100%; min-width: 0; }
    .task-card-head { gap: .75rem; }
    .task-card-title { font-size: .94rem; }
    .task-bid-collapse { position: static; transform: none; margin-left: auto; }
    .portfolio-header { flex-direction: column; align-items: center; text-align: center; }
    .portfolio-stats { justify-content: center; }
    .review-date { margin-left: 0; width: 100%; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-block { text-align: left; }
    .footer-bottom-inner { justify-content: center; text-align: center; flex-direction: column; }
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}

/* ——— TOP freelancers ——— */
.top-freelancers-page { padding: 2rem 0 3.5rem; }
.top-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.top-list-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
}
.top-list-item:last-child { border-bottom: 0; }
.top-list-rank {
    font-family: var(--font-display, inherit);
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -.02em;
}
.top-list-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}
.top-list-user:hover { color: var(--color-primary-dark); text-decoration: none; }
.top-list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.top-list-avatar.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #12b76a, #0d9488);
    color: #fff;
    font-size: .85rem;
}
.top-list-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-list-meta {
    display: flex;
    gap: .65rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--color-muted);
    white-space: nowrap;
}
.top-list-meta .is-up { color: var(--color-primary-dark); }
.top-list-meta .is-down { color: #b42318; }
@media (max-width: 560px) {
    .top-list-item { grid-template-columns: 2.75rem 1fr; }
    .top-list-meta { grid-column: 2; }
}
