/* =====================================================
   TASKUO — Design System v3 "Vibrant"
   Brand: #FFD60A (yellow) · #FF8A00 (orange) · #FF3D71 (pink) · #7C3AED (violet)
   Тод өнгөлөг, залуулаг · gradient · Manrope + Unbounded
   ===================================================== */

:root {
    /* Brand */
    --brand: #FFD60A;
    --brand-hover: #ffe140;
    --brand-press: #e8b400;
    --brand-on: #292929;     /* текст шар фон дээр */
    --ink: #292929;          /* үндсэн хар саарал */

    /* Brand accents — логоны шар гэр бүл + итгэлийн хөх */
    --orange: #FFB300;
    --pink: #D9940A;          /* гүн алтлаг — текст/идэвхтэй төлөвт */
    --violet: #3B5BDB;        /* итгэлийн хөх — escrow, мэдээлэл */
    --cyan: #2D9CDB;

    /* Gradients */
    --grad-hot: linear-gradient(135deg, #FFE45C 0%, #FFD60A 45%, #FFB300 100%);
    --grad-cta: linear-gradient(135deg, #FFD60A 0%, #FFB300 100%);
    --grad-cool: linear-gradient(135deg, #2D9CDB 0%, #3B5BDB 100%);
    --grad-violet: linear-gradient(135deg, #2748C7 0%, #4F6EF7 100%);
    --grad-sun: linear-gradient(135deg, #FFE45C 0%, #FFD60A 100%);

    /* Fonts */
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Unbounded', 'Manrope', -apple-system, sans-serif;

    /* Light theme (default) — цайвар, дулаан */
    --bg: #FFFDF6;
    --bg-soft: #FFF7E8;
    --surface: #ffffff;
    --surface-2: #FBF7EE;
    --surface-hover: #F6F0E4;
    --input-bg: #ffffff;

    --text: #241F2D;
    --text-soft: #5b5566;
    --text-mute: #8d8797;
    --text-dim: #b6b0c0;

    --border: #eee7dc;
    --border-strong: #ddd3c4;
    --divider: #f2ecE2;

    --accent-tint: rgba(255, 214, 10, 0.20);
    --pink-tint: rgba(255, 197, 10, 0.14);
    --violet-tint: rgba(59, 91, 219, 0.09);
    --cyan-tint: rgba(45, 156, 219, 0.10);
    --ink-tint: rgba(36, 31, 45, 0.06);

    --success: #10b981;
    --success-bg: #e5f8f0;
    --warning: #f59e0b;
    --warning-bg: #fef3dc;
    --danger: #f43f5e;
    --danger-bg: #ffe9ed;
    --info: #0ea5e9;
    --info-bg: #e5f4fc;

    --shadow-xs: 0 1px 2px rgba(36, 31, 45, 0.04);
    --shadow-sm: 0 2px 8px rgba(36, 31, 45, 0.06);
    --shadow-md: 0 10px 26px rgba(36, 31, 45, 0.08);
    --shadow-lg: 0 24px 48px rgba(36, 31, 45, 0.12);
    --shadow-hot: 0 10px 26px rgba(230, 160, 0, 0.30);
    --ring: 0 0 0 3px rgba(255, 197, 10, 0.40);

    --radius-sm: 10px;
    --radius: 14px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 999px;

    --t-fast: 0.15s ease;
    --t: 0.22s ease;
    --t-slow: 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-theme="dark"] {
    /* Логоны бараан саарал — дулаан charcoal */
    --bg: #171717;
    --bg-soft: #1c1c1c;
    --surface: #262626;
    --surface-2: #2e2e2e;
    --surface-hover: #363636;
    --input-bg: #202020;

    --text: #f4f2ec;
    --text-soft: #c6c2b8;
    --text-mute: #918d84;
    --text-dim: #605c55;

    --border: #3a3a3a;
    --border-strong: #4c4c4c;
    --divider: #313131;

    --accent-tint: rgba(255, 214, 10, 0.14);
    --pink-tint: rgba(255, 197, 10, 0.14);
    --violet-tint: rgba(79, 110, 247, 0.14);
    --cyan-tint: rgba(45, 156, 219, 0.14);
    --ink-tint: rgba(255, 255, 255, 0.06);

    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.14);
    --danger: #fb7185;
    --danger-bg: rgba(251, 113, 133, 0.14);
    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.14);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.55);
    --shadow-hot: 0 10px 28px rgba(230, 160, 0, 0.35);
    --ring: 0 0 0 3px rgba(255, 214, 10, 0.35);
}

/* =====================================================
   RESET / BASE
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t), color var(--t);
}

::selection { background: var(--brand); color: var(--brand-on); }

a { color: inherit; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   APP LAYOUT
   ===================================================== */
.app-body {
    padding-bottom: 70px;
    background: var(--bg);
}

.app-header {
    position: sticky;
    top: 0;
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 900;
    transition: background var(--t), border-color var(--t);
}

.app-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.app-header .logo { text-decoration: none; flex-shrink: 0; }

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.app-main { min-height: calc(100vh - 130px); }

.app-view {
    display: none;
    animation: viewFade 0.25s ease;
}
.app-view.active { display: block; }

@keyframes viewFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-inner {
    padding-top: 24px;
    padding-bottom: 40px;
}

.view-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    color: var(--text);
}

.view-subtitle {
    color: var(--text-soft);
    margin-bottom: 24px;
}

/* Mini hero */
.mini-hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-soft) 100%);
    padding: 40px 20px 48px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.mini-hero h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0;
    color: var(--text);
}

.mini-hero .hero-subtitle {
    max-width: 600px;
    margin: 0 auto 22px;
    color: var(--text-soft);
}

.mini-hero .hero-buttons { justify-content: center; }

/* =====================================================
   BOTTOM TAB BAR
   ===================================================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: color-mix(in oklab, var(--surface) 94%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    color: var(--text-mute);
    font-family: inherit;
    position: relative;
    transition: color var(--t);
}

.tab-btn .tab-icon {
    font-size: 22px;
    transition: transform var(--t);
}

.tab-btn .tab-label {
    font-size: 11px;
    font-weight: 600;
}

.tab-btn.active { color: var(--text); }

.tab-btn.active .tab-icon { transform: scale(1.18); }

.tab-btn.active::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
}

.tab-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    margin-right: -22px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(217, 67, 67, 0.4);
}

.app-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-mute);
    font-size: 13px;
}

.app-footer a {
    color: var(--text-soft);
    text-decoration: none;
}

.app-footer a:hover { color: var(--text); }

/* =====================================================
   ESCROW NOTICE
   ===================================================== */
.escrow-notice {
    background: var(--success-bg);
    border: 1px solid color-mix(in oklab, var(--success) 40%, transparent);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--success);
}

[data-theme="dark"] .escrow-notice { color: var(--text); }

.lock-badge {
    background: var(--success);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-left: 4px;
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.status-accepted { background: var(--warning-bg); color: var(--warning); }
.status-done { background: var(--success-bg); color: var(--success); }

.btn-disabled {
    background: var(--surface-2) !important;
    color: var(--text-mute) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* =====================================================
   BOOKINGS
   ===================================================== */
.booking-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.booking-tab {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    font-family: inherit;
    color: var(--text-soft);
    transition: all var(--t);
}

.booking-tab:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.booking-tab.active {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

[data-theme="dark"] .booking-tab.active {
    background: var(--brand);
    color: var(--brand-on);
    border-color: var(--brand);
}

.booking-tab span {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: 4px;
    font-size: 12px;
}

.booking-tab:not(.active) span {
    background: var(--ink-tint);
    color: var(--text-soft);
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-xs);
    border-left: 4px solid var(--border-strong);
    transition: box-shadow var(--t), transform var(--t);
}

.booking-card:hover {
    box-shadow: var(--shadow-sm);
}

.booking-card.status-requested { border-left-color: var(--warning); }
.booking-card.status-accepted { border-left-color: var(--brand); }
.booking-card.status-worker_done { border-left-color: #8b5cf6; }
.booking-card.status-done { border-left-color: var(--success); }
.booking-card.status-rejected { border-left-color: var(--danger); opacity: 0.7; }

.booking-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.booking-thumb, .booking-thumb-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.booking-thumb-placeholder {
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.booking-card-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text);
}

.booking-card-info small {
    color: var(--text-mute);
    display: block;
    margin-bottom: 4px;
}

.booking-amount {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

.booking-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-requested { background: var(--warning-bg); color: var(--warning); }
.status-worker-done { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.status-rejected { background: var(--danger-bg); color: var(--danger); }

.booking-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.booking-completion-photos {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.booking-completion-photos small {
    display: block;
    color: var(--text-mute);
    font-size: 12px;
    margin-bottom: 4px;
}

.completion-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* =====================================================
   PROFILE VIEW
   ===================================================== */
.profile-view-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .profile-view-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-view-header .profile-balance { text-align: center; }
    .view-inner { padding-left: 12px; padding-right: 12px; }
}

/* =====================================================
   BUTTONS — modern pill style
   ===================================================== */
.btn {
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primary — brand yellow */
.btn-primary {
    background: var(--brand);
    color: var(--brand-on);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 14px rgba(248, 223, 17, 0.25);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 24px rgba(248, 223, 17, 0.35);
}

.btn-primary:active { background: var(--brand-press); }

/* Outline — solid border */
.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--text);
}

/* Dark — ink button */
.btn-dark {
    background: var(--ink);
    color: white;
}
.btn-dark:hover {
    background: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
}

[data-theme="dark"] .btn-dark {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
[data-theme="dark"] .btn-dark:hover {
    background: var(--surface-hover);
}

/* White — for use on colored hero/banner */
.btn-white {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 15px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-full { width: 100%; }

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Theme toggle button — icon-only pill */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--t);
    font-family: inherit;
    padding: 0;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.theme-toggle:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* =====================================================
   LEGACY NAVIGATION (landing only)
   ===================================================== */
.navbar {
    position: sticky;
    top: 0;
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.logo-icon { font-size: 28px; }
.logo-img {
    height: 34px;
    width: auto;
    border-radius: 8px;
    display: block;
}

.logo-text { color: var(--text); }

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--t);
}

.nav-menu a:hover { color: var(--brand-press); }

/* =====================================================
   HERO (landing)
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-soft) 100%);
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-tint);
    color: var(--brand-press);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

[data-theme="dark"] .hero-badge { color: var(--brand); }

.hero-content h1 {
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--brand-press), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-soft);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat h3 {
    font-size: 30px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.stat p {
    color: var(--text-soft);
    font-size: 14px;
}

.hero-image { position: relative; height: 500px; }

.floating-card {
    position: absolute;
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
    min-width: 200px;
}

.card-1 { top: 50px; left: 20px; animation-delay: 0s; }
.card-2 { top: 200px; right: 30px; animation-delay: 1s; }
.card-3 { bottom: 50px; left: 80px; animation-delay: 2s; }

.card-icon { font-size: 32px; }

.floating-card p { font-weight: 600; color: var(--text); }

.price {
    color: var(--brand-press);
    font-weight: 700;
}

[data-theme="dark"] .price { color: var(--brand); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 17px;
    margin-bottom: 36px;
}

/* =====================================================
   BOARD
   ===================================================== */
.board-section {
    padding: 64px 0;
    background: var(--bg);
    min-height: 600px;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 20px;
}

.board-header .section-title,
.board-header .section-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.board-header .section-subtitle { margin-top: 6px; }

/* Board tabs */
.board-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.board-tab {
    padding: 14px 18px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-mute);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    transition: color var(--t), border-color var(--t);
}

.board-tab:hover { color: var(--text); }

.board-tab.active {
    color: var(--text);
    border-bottom-color: var(--brand);
}

.tab-count {
    background: var(--ink-tint);
    color: var(--text-soft);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.board-tab.active .tab-count {
    background: var(--brand);
    color: var(--brand-on);
}

/* Category filters */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--t);
    font-family: inherit;
}

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

.filter-btn.active {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--brand);
    color: var(--brand-on);
    border-color: var(--brand);
}

/* Ads grid */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* Ad cards */
.ad-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.ad-card-job { border-top: 3px solid var(--brand); }
.ad-card-worker { border-top: 3px solid var(--success); }

.ad-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ad-badge-job {
    background: var(--accent-tint);
    color: var(--brand-press);
}
[data-theme="dark"] .ad-badge-job { color: var(--brand); }

.ad-badge-worker {
    background: var(--success-bg);
    color: var(--success);
}

.ad-category {
    color: var(--text-mute);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ad-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ad-description {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-info {
    background: var(--surface-2);
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-soft);
}

.ad-info-icon { font-size: 16px; }

.ad-price {
    color: var(--text);
    font-weight: 800;
    font-size: 16px;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--divider);
}

.ad-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ad-meta strong { font-size: 14px; color: var(--text); }

.ad-meta small {
    color: var(--text-mute);
    font-size: 12px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    color: var(--text-soft);
    margin-bottom: 20px;
}

/* =====================================================
   HOW SECTION (landing)
   ===================================================== */
.how-section {
    padding: 80px 0;
    background: var(--bg-soft);
}

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

.step {
    text-align: center;
    padding: 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--t), box-shadow var(--t);
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--brand);
    color: var(--brand-on);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.step-icon {
    font-size: 52px;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.step p { color: var(--text-soft); font-size: 14px; }

/* =====================================================
   EXAMPLES (landing)
   ===================================================== */
.examples-section {
    padding: 80px 0;
    background: var(--bg);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.example-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--t);
}

.example-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.example-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.example-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text);
}

.example-item p {
    color: var(--text-soft);
    font-size: 13px;
}

/* =====================================================
   CTA
   ===================================================== */
.cta-section {
    padding: 80px 0;
    background: var(--ink);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, var(--brand) 0%, transparent 60%);
    opacity: 0.08;
    pointer-events: none;
}

.cta-section > * { position: relative; }

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 17px;
    margin-bottom: 25px;
    opacity: 0.85;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--ink);
    color: #cccccc;
    padding: 56px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 15px;
    color: white;
}

.footer-col ul { list-style: none; }

.footer-col li {
    padding: 5px 0;
    color: #aaa;
    font-size: 14px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: color var(--t);
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a3a3a;
    color: #aaa;
    font-size: 13px;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--surface);
    color: var(--text);
    padding: 32px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: modalIn 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-large { max-width: 650px; }

.close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-soft);
    line-height: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}

.close:hover {
    background: var(--ink);
    color: white;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* Post type toggle */
.post-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.type-btn {
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--t);
    font-family: inherit;
    color: var(--text);
}

.type-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.type-btn.active {
    border-color: var(--brand);
    background: var(--accent-tint);
}

.type-icon { font-size: 28px; }

.type-btn strong {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.type-btn small {
    color: var(--text-soft);
    font-size: 12px;
}

/* Form */
.post-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    font-family: inherit;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
    background: var(--surface);
}

/* Contact modal */
.contact-modal-content { text-align: center; }

.contact-icon {
    font-size: 60px;
    margin-bottom: 14px;
}

.contact-modal-content h2 { margin-bottom: 20px; }

.contact-label {
    color: var(--text-soft);
    margin-bottom: 8px;
}

.contact-phone {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    padding: 18px;
    background: var(--accent-tint);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: background var(--t);
}

.contact-phone:hover {
    background: var(--brand);
    color: var(--brand-on);
}

/* =====================================================
   USER MENU & AUTH
   ===================================================== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    font-weight: 600;
    color: var(--text);
    padding: 8px 12px;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-mute);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-family: inherit;
    transition: all var(--t);
}

.auth-tab.active {
    color: var(--text);
    border-bottom-color: var(--brand);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-error {
    padding: 10px 14px;
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent);
}

.auth-success {
    padding: 10px 14px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid color-mix(in oklab, var(--success) 30%, transparent);
}

.auth-forgot {
    text-align: right;
    margin-top: -8px;
}

.btn-link-forgot {
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    padding: 4px 0;
    text-decoration: underline;
    transition: color var(--t);
}

.btn-link-forgot:hover { color: var(--brand-press); }
[data-theme="dark"] .btn-link-forgot:hover { color: var(--brand); }

.btn-delete {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent);
    padding: 6px 12px;
    font-size: 12px;
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}

/* Danger zone (account delete) */
.danger-zone {
    margin-top: 28px;
    padding: 20px;
    background: var(--danger-bg);
    border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent);
    border-radius: var(--radius-md);
}

.danger-zone-title {
    font-size: 15px;
    color: var(--danger);
    margin-bottom: 8px;
    font-weight: 700;
}

.danger-zone-desc {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 14px;
    line-height: 1.5;
}

.btn-delete-account {
    background: var(--danger);
    color: white;
    border: 1px solid var(--danger);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--t);
}

.btn-delete-account:hover {
    background: #b73838;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(217, 67, 67, 0.30);
}

.delete-warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text);
}

.delete-warning ul {
    margin: 8px 0 8px 20px;
    color: var(--text-soft);
}

.delete-warning li { margin-bottom: 4px; }

.delete-warning-strong {
    margin-top: 12px;
    color: var(--danger);
    font-weight: 600;
}

.ad-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Loading spinner */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   NAVBAR BUTTONS
   ===================================================== */
.balance-btn {
    background: var(--ink);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--ink);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    transition: all var(--t);
    white-space: nowrap;
    flex-shrink: 0;
}

.balance-btn:hover {
    transform: translateY(-1px);
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-on);
    box-shadow: 0 6px 14px rgba(248, 223, 17, 0.30);
}

[data-theme="dark"] .balance-btn {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-on);
}
[data-theme="dark"] .balance-btn:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.profile-btn {
    background: var(--surface-2);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: all var(--t);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-btn:hover { background: var(--surface-hover); }

/* Modern profile pill */
.profile-btn-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 3px 14px 3px 3px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    transition: all var(--t);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

.profile-btn-modern:hover {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .profile-btn-modern:hover {
    background: var(--brand);
    color: var(--brand-on);
    border-color: var(--brand);
}

.navbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}

.navbar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-avatar-letter {
    color: var(--brand-on);
    font-weight: 800;
    font-size: 14px;
    transition: color var(--t);
}

.navbar-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 968px) {
    .navbar-name { display: none; }
    .profile-btn-modern { padding: 3px; }
}

@media (max-width: 600px) {
    .nav-container { padding: 10px 12px; }
    .balance-btn { padding: 7px 12px; font-size: 12px; }
    .theme-toggle { width: 34px; height: 34px; font-size: 16px; }
}

/* =====================================================
   PROFILE MODAL
   ===================================================== */
.profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 22px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-on);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    border: 1px solid var(--border);
}

.photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-on);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-upload-info small {
    color: var(--text-soft);
    font-size: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
    font-family: inherit;
    text-align: left;
}

.btn-link:hover { text-decoration: underline; }

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-top: 12px;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--divider);
}

.profile-info h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: var(--text);
}

.profile-email, .profile-phone {
    color: var(--text-soft);
    font-size: 14px;
    margin: 2px 0;
}

.profile-balance { text-align: right; }

.profile-balance small {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 4px;
}

.profile-balance strong {
    display: block;
    font-size: 26px;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.profile-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.profile-tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-mute);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-family: inherit;
    transition: all var(--t);
}

.profile-tab:hover { color: var(--text); }

.profile-tab.active {
    color: var(--text);
    border-bottom-color: var(--brand);
}

.profile-tab-content { min-height: 200px; }

/* =====================================================
   TRANSACTIONS
   ===================================================== */
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border-left: 3px solid var(--border-strong);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tx-item.tx-positive { border-left-color: var(--success); }
.tx-item.tx-negative { border-left-color: var(--danger); }

.tx-icon { font-size: 26px; }

.tx-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-info strong { font-size: 14px; color: var(--text); }
.tx-info small { color: var(--text-mute); font-size: 12px; }

.tx-amount {
    font-weight: 800;
    font-size: 16px;
}

.tx-positive .tx-amount { color: var(--success); }
.tx-negative .tx-amount { color: var(--danger); }

/* =====================================================
   TOP-UP MODAL
   ===================================================== */
.topup-subtitle {
    color: var(--text-soft);
    margin-bottom: 20px;
    font-size: 14px;
}

.topup-amounts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 14px 6px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    transition: all var(--t);
}

.amount-btn:hover {
    border-color: var(--text);
    transform: translateY(-1px);
}

.amount-btn.active {
    background: var(--brand);
    color: var(--brand-on);
    border-color: var(--brand);
    box-shadow: 0 6px 14px rgba(248, 223, 17, 0.30);
}

@media (max-width: 480px) {
    .topup-amounts { grid-template-columns: repeat(3, 1fr); }
}

.payment-methods { margin-top: 22px; }

.payment-methods h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text);
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
    font-family: inherit;
    transition: all var(--t);
}

.payment-btn:hover {
    border-color: var(--brand);
    background: var(--accent-tint);
    transform: translateY(-1px);
}

.payment-icon { font-size: 30px; }

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-info strong { color: var(--text); font-size: 15px; }
.payment-info small { color: var(--text-soft); font-size: 12px; }

.demo-notice {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--warning-bg);
    color: var(--warning);
    border-radius: var(--radius);
    font-size: 13px;
    border-left: 4px solid var(--warning);
}

/* QPay modal */
.qpay-content { text-align: center; }

.qpay-amount {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    margin: 16px 0;
    letter-spacing: -0.01em;
}

.qpay-qr {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 16px;
}

.qr-placeholder { color: var(--text-soft); }

.qpay-help {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Featured modal */
.featured-content { text-align: center; }

.featured-icon {
    font-size: 60px;
    margin-bottom: 12px;
}

.featured-price, .featured-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface-2);
    border-radius: var(--radius);
    margin: 10px 0;
    font-size: 15px;
    color: var(--text);
}

.featured-price strong { color: var(--text); font-size: 20px; font-weight: 800; }
.featured-balance strong { color: var(--success); }

.featured-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--brand);
    color: var(--brand-on);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(248, 223, 17, 0.35);
    letter-spacing: 0.04em;
}

.ad-card.ad-featured {
    border: 1px solid var(--brand);
    box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow-sm);
    position: relative;
}

.btn-featured {
    background: var(--brand);
    color: var(--brand-on);
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
}

.btn-featured:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(248, 223, 17, 0.35);
}

@media (max-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-balance { text-align: center; }
    .profile-tabs { overflow-x: auto; }
}

/* =====================================================
   SEARCH BAR
   ===================================================== */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 14px;
    margin-bottom: 18px;
    transition: border-color var(--t), box-shadow var(--t);
}

.search-bar:focus-within {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.search-icon {
    font-size: 16px;
    color: var(--text-mute);
    margin-right: 8px;
}

#searchInput {
    flex: 1;
    padding: 12px 4px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
    color: var(--text);
}

#searchInput::placeholder { color: var(--text-dim); }

.search-clear {
    background: var(--surface-2);
    border: none;
    color: var(--text-soft);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}

.search-clear:hover {
    background: var(--danger);
    color: white;
}

/* =====================================================
   AD PHOTO
   ===================================================== */
.ad-photo {
    margin: -20px -20px 14px -20px;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--surface-2);
}

.ad-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-photo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 2px dashed var(--border-strong);
    margin-bottom: 8px;
}

.ad-photo-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.ad-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-photo-placeholder {
    font-size: 30px;
    color: var(--text-mute);
}

.ad-photo-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-photo-info small {
    color: var(--text-soft);
    font-size: 12px;
}

.ad-user-clickable {
    cursor: pointer;
    transition: color var(--t);
}

.ad-user-clickable:hover strong {
    color: var(--brand-press);
    text-decoration: underline;
}

[data-theme="dark"] .ad-user-clickable:hover strong { color: var(--brand); }

/* =====================================================
   PUBLIC PROFILE
   ===================================================== */
.public-profile { padding: 0; }

.public-profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

.public-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand);
    color: var(--brand-on);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

.public-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-profile-info h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: var(--text);
}

.public-bio {
    color: var(--text-soft);
    line-height: 1.5;
    margin: 4px 0;
}

.public-bio.empty {
    color: var(--text-dim);
    font-style: italic;
    font-size: 14px;
}

.public-profile-stats {
    display: flex;
    gap: 16px;
    color: var(--text-mute);
    font-size: 13px;
    margin-top: 8px;
}

.public-profile-details {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.profile-info-row {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
}

.public-section { margin-bottom: 22px; }

.public-section h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--accent-tint);
    color: var(--brand-press);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}

[data-theme="dark"] .skill-tag { color: var(--brand); }

.skill-tag.lang-tag {
    background: var(--warning-bg);
    color: var(--warning);
}

.public-contact {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    text-align: center;
}

.empty-text {
    color: var(--text-mute);
    padding: 20px;
    text-align: center;
    font-style: italic;
}

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-page {
    padding: 56px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 34px;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.legal-meta {
    color: var(--text-mute);
    font-size: 14px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--divider);
}

.legal-page section { margin-bottom: 30px; }

.legal-page h2 {
    font-size: 21px;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.legal-page p,
.legal-page li {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 15px;
}

.legal-page ul {
    padding-left: 22px;
    margin-bottom: 12px;
}

.legal-page ul li { margin-bottom: 6px; }

.legal-page a {
    color: var(--brand-press);
    text-decoration: underline;
}

[data-theme="dark"] .legal-page a { color: var(--brand); }

/* Товч хэлбэрийн линкүүдэд underline/yellow text хэрэглэхгүй */
.legal-page a.btn,
.legal-page a.btn-primary,
.legal-page a.btn-outline,
.legal-page a.btn-dark,
.legal-page a.btn-white {
    text-decoration: none;
}
.legal-page a.btn-primary { color: var(--brand-on); }
.legal-page a.btn-outline { color: var(--text); }
.legal-page a.btn-dark    { color: white; }
.legal-page a.btn-white   { color: var(--text); }
[data-theme="dark"] .legal-page a.btn-dark { color: var(--text); }

.legal-footer {
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.auth-terms-note {
    font-size: 12px;
    color: var(--text-mute);
    text-align: center;
    margin-top: -8px;
    line-height: 1.5;
}

.auth-terms-note a {
    color: var(--brand-press);
    text-decoration: underline;
}

[data-theme="dark"] .auth-terms-note a { color: var(--brand); }

/* =====================================================
   REPORT & VERIFIED BADGE
   ===================================================== */
.verified-badge {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
}

[data-theme="dark"] .verified-badge {
    background: var(--brand);
    color: var(--brand-on);
}

.btn-report {
    background: transparent;
    color: var(--text-mute);
    border: 1px solid var(--border);
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: all var(--t);
}

.btn-report:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: color-mix(in oklab, var(--danger) 30%, transparent);
}

.report-reason-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.report-reason {
    padding: 12px 14px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all var(--t);
}

.report-reason:hover, .report-reason.selected {
    border-color: var(--brand);
    background: var(--accent-tint);
}

/* =====================================================
   PHONE VERIFICATION
   ===================================================== */
.phone-verify-section {
    background: var(--surface-2);
    padding: 16px;
    border-radius: var(--radius);
    margin: 16px 0;
    border-left: 4px solid var(--warning);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.phone-verify-section.verified {
    border-left-color: var(--success);
    background: var(--success-bg);
}

.phone-verify-section h4 {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text);
}

#recaptcha-container { margin: 12px 0; }

/* =====================================================
   WITHDRAWAL / DISPUTE / RATING
   ===================================================== */
.withdraw-balance {
    background: var(--accent-tint);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text);
}
.withdraw-balance strong { color: var(--text); font-size: 18px; font-weight: 800; }

.balance-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-dispute {
    background: transparent;
    color: var(--danger);
    border: 1px solid color-mix(in oklab, var(--danger) 30%, transparent);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--t);
}
.btn-dispute:hover { background: var(--danger-bg); }

.status-disputed { background: var(--warning-bg); color: var(--warning); }
.booking-card.status-disputed { border-left-color: var(--warning); }

/* Star rating */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}
.star {
    font-size: 40px;
    color: var(--brand);
    cursor: pointer;
    transition: transform 0.15s;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(248, 223, 17, 0.25));
}
.star:hover { transform: scale(1.2); }

.rating-display {
    display: inline-block;
    background: var(--accent-tint);
    color: var(--text);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    margin: 4px 0;
}
.rating-display small { font-weight: 500; opacity: 0.8; }

/* =====================================================
   MONETIZATION
   ===================================================== */
.fee-breakdown, .withdraw-summary {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-soft);
}
.fee-row.fee-total {
    border-top: 1px solid var(--divider);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
    color: var(--text);
}
.fee-row.fee-total strong { color: var(--text); font-weight: 800; }

.withdraw-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.withdraw-tier {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--t);
    color: var(--text);
}
.withdraw-tier:has(input:checked) {
    border-color: var(--brand);
    background: var(--accent-tint);
}
.withdraw-tier input { width: auto; }
.withdraw-tier strong { display: block; font-size: 14px; }
.withdraw-tier small { color: var(--text-soft); font-size: 12px; }

/* Pro badge */
.pro-badge {
    background: var(--brand);
    color: var(--brand-on);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    margin-left: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pro-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-tint) 0%, color-mix(in oklab, var(--brand) 12%, transparent) 100%);
    border: 1px solid var(--brand);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pro-banner.active {
    background: var(--brand);
    color: var(--brand-on);
}
.pro-banner strong { font-size: 15px; display: block; color: var(--text); }
.pro-banner.active strong { color: var(--brand-on); }
.pro-banner small { color: var(--text-soft); font-size: 12px; }
.pro-banner.active small { color: var(--brand-on); opacity: 0.8; }

/* =====================================================
   TOAST
   ===================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--ink);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: all var(--t-slow);
    font-weight: 600;
    border: 1px solid #3a3a3a;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

[data-theme="dark"] .toast {
    background: var(--brand);
    color: var(--brand-on);
    border-color: var(--brand-press);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 20px;
    }
    .hero-content h1 { font-size: 36px; }
    .hero-image { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-badge { display: inline-block; }

    .nav-menu { display: none; }

    .steps,
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .board-header {
        flex-direction: column;
        align-items: stretch;
    }

    .board-header .section-title,
    .board-header .section-subtitle {
        text-align: center;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .post-type-toggle {
        grid-template-columns: 1fr;
    }

    .section-title { font-size: 28px; }
}

@media (max-width: 600px) {
    .examples-grid { grid-template-columns: 1fr 1fr; }
    .ads-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 24px; border-radius: var(--radius-lg); }
}

/* =====================================================
   V3 VIBRANT LAYER — тод, залуулаг, gradient reskin
   (Доорх дүрмүүд дээрх бүх дүрмийг дарж хэрэгжинэ)
   ===================================================== */

/* ---------- Typography ---------- */
body {
    font-family: var(--font-body);
    font-optical-sizing: auto;
}

.view-title,
.section-title,
.mini-hero h1,
.hero-content h1,
.cta-section h2,
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo { font-size: 19px; }

.logo-text {
    background: var(--grad-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Ambient colorful background ---------- */
.app-body { position: relative; }

.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(640px 480px at 8% -5%, rgba(255, 214, 10, 0.18), transparent 60%),
        radial-gradient(720px 520px at 96% 4%, rgba(255, 179, 0, 0.10), transparent 60%),
        radial-gradient(860px 640px at 50% 108%, rgba(59, 91, 219, 0.06), transparent 60%);
}

[data-theme="dark"] .app-body::before {
    background:
        radial-gradient(640px 480px at 8% -5%, rgba(255, 214, 10, 0.07), transparent 60%),
        radial-gradient(720px 520px at 96% 4%, rgba(255, 179, 0, 0.06), transparent 60%),
        radial-gradient(860px 640px at 50% 108%, rgba(79, 110, 247, 0.08), transparent 60%);
}

/* ---------- Header ---------- */
.app-header {
    border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

/* ---------- HERO — томруулж, амьдруулав ---------- */
.mini-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 20px 64px;
    border-bottom: none;
    background:
        radial-gradient(560px 340px at 12% 0%, rgba(255, 214, 10, 0.30), transparent 65%),
        radial-gradient(640px 400px at 88% 10%, rgba(255, 61, 113, 0.18), transparent 65%),
        radial-gradient(500px 360px at 50% 115%, rgba(124, 58, 237, 0.14), transparent 60%),
        var(--bg-soft);
}

[data-theme="dark"] .mini-hero {
    background:
        radial-gradient(560px 340px at 12% 0%, rgba(255, 214, 10, 0.12), transparent 65%),
        radial-gradient(640px 400px at 88% 10%, rgba(255, 61, 113, 0.16), transparent 65%),
        radial-gradient(500px 360px at 50% 115%, rgba(124, 58, 237, 0.25), transparent 60%),
        var(--bg-soft);
}

/* Хөвөгч өнгөт бөмбөлгүүд */
.mini-hero::before,
.mini-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    pointer-events: none;
    animation: heroBlob 9s ease-in-out infinite alternate;
}

.mini-hero::before {
    width: 260px; height: 260px;
    left: -70px; top: -60px;
    background: var(--grad-sun);
}

.mini-hero::after {
    width: 300px; height: 300px;
    right: -90px; bottom: -120px;
    background: var(--grad-violet);
    animation-delay: 2.5s;
    opacity: 0.35;
}

@keyframes heroBlob {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(24px, 18px) scale(1.12); }
}

.mini-hero > * { position: relative; z-index: 1; }

.mini-hero h1 {
    font-size: clamp(32px, 6vw, 46px);
    line-height: 1.12;
    margin: 16px 0 14px;
}

.mini-hero .hero-subtitle {
    font-size: 16.5px;
    font-weight: 500;
}

.hero-badge {
    background: var(--grad-cta);
    color: var(--brand-on);
    box-shadow: var(--shadow-hot);
    animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .hero-badge { color: var(--brand-on); }

@keyframes badgePop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.highlight {
    background: var(--grad-hot);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- BUTTONS — pill + gradient ---------- */
.btn { border-radius: var(--radius-pill); font-weight: 700; }

.btn-primary {
    background: var(--grad-cta);
    color: var(--brand-on);
    border: none;
    box-shadow: 0 6px 16px rgba(230, 160, 0, 0.30);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFE140 0%, #FFC533 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(230, 160, 0, 0.40);
}

.btn-primary:active {
    background: linear-gradient(135deg, #F5C500 0%, #EFA400 100%);
}

.btn-outline {
    border-width: 1.5px;
}

.btn-outline:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-tint);
}

.btn-large { border-radius: var(--radius-pill); }
.btn-sm { border-radius: var(--radius-pill); }

.theme-toggle:hover { transform: translateY(-1px) rotate(-12deg); }

/* ---------- BOARD TABS ---------- */
.board-tab.active {
    color: var(--pink);
    border-bottom-color: var(--pink);
}

.board-tab.active .tab-count {
    background: var(--grad-cta);
    color: var(--brand-on);
}

/* ---------- CATEGORY FILTER PILLS ---------- */
.filter-btn {
    border-width: 1.5px;
    padding: 9px 18px;
}

.filter-btn:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-tint);
    transform: translateY(-1px);
}

.filter-btn.active,
[data-theme="dark"] .filter-btn.active {
    background: var(--grad-cta);
    color: var(--brand-on);
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(230, 160, 0, 0.30);
}

/* ---------- BOOKING TABS ---------- */
.booking-tab.active,
[data-theme="dark"] .booking-tab.active {
    background: var(--grad-cta);
    color: var(--brand-on);
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(230, 160, 0, 0.28);
}

.booking-tab.active span { background: rgba(41, 41, 41, 0.12); color: var(--brand-on); }

/* ---------- AD CARDS ---------- */
.ad-card {
    border-radius: var(--radius-xl);
    border-top: 1px solid var(--border);
}

.ad-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1;
}

.ad-card-job { border-top: 1px solid var(--border); }
.ad-card-worker { border-top: 1px solid var(--border); }

.ad-card-job::before { background: var(--grad-hot); }
.ad-card-worker::before { background: var(--grad-cool); }

.ad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(230, 160, 0, 0.16);
    border-color: color-mix(in oklab, var(--orange) 35%, var(--border));
}

[data-theme="dark"] .ad-card:hover {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.50);
}

.ad-badge-job {
    background: var(--accent-tint);
    color: #c77700;
}
[data-theme="dark"] .ad-badge-job { color: var(--brand); }

.ad-badge-worker {
    background: var(--cyan-tint);
    color: var(--cyan);
}

.ad-price {
    background: var(--grad-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 17px;
}

/* ---------- BOTTOM TAB BAR — хөвөгч dock ---------- */
.app-body { padding-bottom: 96px; }

.tab-bar {
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 8px 6px;
    box-shadow: 0 12px 32px rgba(36, 31, 45, 0.14);
    background: color-mix(in oklab, var(--surface) 88%, transparent);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
}

[data-theme="dark"] .tab-bar {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.tab-btn { border-radius: 18px; }

.tab-btn.active { color: var(--pink); }

.tab-btn.active::after {
    top: -8px;
    width: 34px;
    height: 4px;
    background: var(--grad-cta);
}

.tab-btn.active .tab-icon { transform: scale(1.22) translateY(-1px); }

/* ---------- FORMS ---------- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--pink);
}

.type-btn.active {
    border-color: var(--pink);
    background: var(--pink-tint);
    box-shadow: 0 4px 12px rgba(255, 61, 113, 0.12);
}

.auth-tab.active {
    color: var(--pink);
    border-bottom-color: var(--pink);
}

/* ---------- MODALS ---------- */
.modal-content {
    border-radius: 28px;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 28px 28px 0 0;
    background: var(--grad-hot);
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    border: 2px dashed color-mix(in oklab, var(--orange) 30%, var(--border));
    border-radius: var(--radius-xl);
    background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.empty-icon { animation: emptyBounce 2.4s ease-in-out infinite; }

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- SPINNER — өнгөлөг ---------- */
.spinner {
    border-color: var(--pink-tint) !important;
    border-top-color: var(--pink) !important;
}

/* ---------- ESCROW NOTICE ---------- */
.escrow-notice {
    background: var(--violet-tint);
    border: 1px solid color-mix(in oklab, var(--violet) 35%, transparent);
    border-left: 5px solid var(--violet);
    color: var(--text);
    border-radius: var(--radius-lg);
}

.lock-badge { background: var(--violet); }

/* ---------- CONTACT PHONE ---------- */
.contact-phone {
    background: var(--accent-tint);
    border-radius: var(--radius-lg);
}

.contact-phone:hover {
    background: var(--grad-cta);
    color: #fff;
}

/* ---------- SECTION TITLE accent ---------- */
.board-header .section-title {
    position: relative;
    display: inline-block;
}

.board-header .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--grad-hot);
}

.board-header .section-subtitle { margin-top: 12px; }

/* ---------- CTA section (landing) ---------- */
.cta-section {
    background: linear-gradient(135deg, #292929 0%, #1f1f1f 100%);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: color-mix(in oklab, var(--orange) 40%, var(--border-strong));
}

/* ---------- Card entrance animation ---------- */
.ad-card, .booking-card {
    animation: cardIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.ad-card:nth-child(2) { animation-delay: 0.05s; }
.ad-card:nth-child(3) { animation-delay: 0.10s; }
.ad-card:nth-child(4) { animation-delay: 0.15s; }
.ad-card:nth-child(5) { animation-delay: 0.20s; }
.ad-card:nth-child(6) { animation-delay: 0.25s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .mini-hero { padding: 44px 16px 52px; }
    .mini-hero h1 { font-size: 30px; }
    .tab-bar { left: 8px; right: 8px; }
}

/* =====================================================
   V3.1 UX LAYER — байршил, хялбар хэрэглээ
   ===================================================== */

/* ---------- HEADER auth buttons ---------- */
.nav-actions .btn-outline {
    border: none;
    background: transparent;
    color: var(--text-soft);
    padding: 9px 14px;
    font-weight: 700;
}

.nav-actions .btn-outline:hover {
    color: var(--pink);
    background: var(--pink-tint);
}

.nav-actions .btn-primary {
    padding: 10px 20px;
}

/* Нэвтэрсэн үеийн header товчнууд */
.balance-btn {
    border-radius: var(--radius-pill) !important;
    font-weight: 800;
}

.profile-btn-modern {
    border-radius: var(--radius-pill) !important;
}

/* ---------- HERO glass button + trust chips ---------- */
.btn-glass {
    background: color-mix(in oklab, var(--surface) 72%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid var(--border-strong);
    color: var(--text);
    font-weight: 700;
}

.btn-glass:hover {
    transform: translateY(-2px);
    border-color: var(--pink);
    color: var(--pink);
    box-shadow: var(--shadow-md);
}

.hero-trust {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: color-mix(in oklab, var(--surface) 78%, transparent);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ---------- SEARCH — илүү тод, дээр байрлана ---------- */
.search-bar {
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-pill) !important;
}

.search-bar:focus-within {
    box-shadow: var(--ring), var(--shadow-md);
    border-color: var(--pink) !important;
}

/* ---------- Category chips — mobile дээр гүйлгэдэг ---------- */
@media (max-width: 700px) {
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; }
}

/* ---------- DOCK — төв FAB ---------- */
.tab-fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: var(--grad-cta);
    color: var(--brand-on);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -30px;
    box-shadow: 0 10px 24px rgba(230, 160, 0, 0.42), 0 0 0 6px color-mix(in oklab, var(--bg) 80%, transparent);
    transition: transform var(--t), box-shadow var(--t);
    -webkit-tap-highlight-color: transparent;
    animation: fabGlow 3s ease-in-out infinite;
}

.tab-fab:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 32px rgba(230, 160, 0, 0.52), 0 0 0 6px color-mix(in oklab, var(--bg) 80%, transparent);
}

.tab-fab:active { transform: scale(0.95); }

.tab-fab-icon {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    transition: transform var(--t);
}

.tab-fab:hover .tab-fab-icon { transform: rotate(90deg); }

@keyframes fabGlow {
    0%, 100% { box-shadow: 0 10px 24px rgba(230, 160, 0, 0.42), 0 0 0 6px color-mix(in oklab, var(--bg) 80%, transparent); }
    50% { box-shadow: 0 10px 30px rgba(255, 214, 10, 0.55), 0 0 0 6px color-mix(in oklab, var(--bg) 80%, transparent); }
}

.tab-bar { overflow: visible; }

/* ---------- AUTH MODAL — угтах хэсэг ---------- */
.auth-hero {
    text-align: center;
    padding-top: 6px;
    margin-bottom: 18px;
}

.auth-hero-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin: 0 auto 12px;
    box-shadow: var(--shadow-md);
}

.auth-hero h2 {
    margin-bottom: 6px !important;
    font-family: var(--font-display);
    font-size: 24px !important;
}

.auth-hero-sub {
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: 500;
}

.auth-tabs {
    border-bottom: none;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 4px;
}

.auth-tab {
    border-radius: var(--radius-pill);
    border-bottom: none !important;
    margin-bottom: 0;
    padding: 10px;
}

.auth-tab.active {
    background: var(--grad-cta);
    color: var(--brand-on);
    box-shadow: 0 4px 10px rgba(230, 160, 0, 0.28);
}

/* =====================================================
   V3.2 BENTO LAYER — нүүрний bento grid
   ===================================================== */
.bento-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 10px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 14px;
}

.bento-tile {
    border-radius: 26px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    animation: bentoIn 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.bento-tile:nth-child(2) { animation-delay: 0.08s; }
.bento-tile:nth-child(3) { animation-delay: 0.16s; }
.bento-tile:nth-child(4) { animation-delay: 0.24s; }

@keyframes bentoIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bento-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.bento-tile-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* --- 1. CTA tile (том, бараан, gradient) --- */
.bento-cta {
    grid-column: span 2;
    grid-row: span 2;
    background:
        radial-gradient(420px 300px at 88% -10%, rgba(255, 214, 10, 0.22), transparent 60%),
        radial-gradient(380px 280px at -10% 110%, rgba(79, 110, 247, 0.16), transparent 60%),
        linear-gradient(150deg, #2e2e2e 0%, #232323 60%, #1c1c1c 100%);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 38px 36px;
}

.bento-cta::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: var(--grad-sun);
    filter: blur(60px);
    opacity: 0.30;
    animation: heroBlob 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.bento-cta > * { position: relative; z-index: 1; }

.bento-cta .hero-badge { margin-bottom: 4px; }

.bento-cta h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.14;
    color: #ffffff;
    margin: 16px 0 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bento-cta .hero-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15.5px;
    margin-bottom: 24px;
    max-width: 420px;
}

.bento-cta .hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-weight: 700;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* --- 2. Categories tile --- */
.bento-cats { grid-column: span 2; }

.bento-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bento-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t), border-color var(--t);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.bento-cat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.bento-cat:active { transform: scale(0.97); }

.bento-cat-icon { font-size: 20px; }

.bento-cat-yellow { background: var(--accent-tint); }
.bento-cat-cyan { background: var(--cyan-tint); }
.bento-cat-pink { background: var(--pink-tint); }
.bento-cat-violet { background: var(--violet-tint); }

.bento-cat-yellow:hover { border-color: var(--brand); }
.bento-cat-cyan:hover { border-color: var(--cyan); }
.bento-cat-pink:hover { border-color: var(--pink); }
.bento-cat-violet:hover { border-color: var(--violet); }

/* --- 3. Escrow tile --- */
.bento-escrow {
    background: linear-gradient(160deg, var(--violet-tint), transparent 80%), var(--surface);
    border-color: color-mix(in oklab, var(--violet) 25%, var(--border));
}

.bento-escrow .bento-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 14px;
    background: var(--grad-violet);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
    margin-bottom: 14px;
}

.bento-escrow .bento-tile-title { margin-bottom: 6px; }

.bento-escrow p {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.5;
}

/* --- 4. Steps tile --- */
.bento-steps { display: flex; flex-direction: column; }

.bento-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
    padding: 7px 0;
}

.bento-step-n {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-cta);
    color: var(--brand-on);
    font-size: 12.5px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(230, 160, 0, 0.28);
}

/* --- Responsive --- */
@media (max-width: 980px) {
    .bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
    .bento-cta { grid-column: span 2; grid-row: span 1; padding: 30px 26px; }
    .bento-cats { grid-column: span 2; }
}

@media (max-width: 600px) {
    .bento-hero { padding: 14px 12px 4px; }
    .bento-grid { grid-template-columns: 1fr; gap: 10px; }
    .bento-cta, .bento-cats { grid-column: span 1; }
    .bento-tile { padding: 20px; border-radius: 22px; }
    .bento-cta h1 { font-size: 30px; }
    .bento-escrow { display: flex; flex-direction: column; }
}

/* =====================================================
   V3.3 — SVG icons, зарын горим, баталгаа, CV
   ===================================================== */

/* ---------- SVG icon систем ---------- */
.icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -3px;
    flex-shrink: 0;
    display: inline-block;
}

.tab-icon .icon { width: 22px; height: 22px; display: block; }
.tab-fab-icon .icon { width: 26px; height: 26px; stroke-width: 2.5; display: block; }
.filter-btn .icon { width: 15px; height: 15px; vertical-align: -2.5px; }
.board-tab .icon { width: 17px; height: 17px; }
.type-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.theme-toggle .icon { width: 18px; height: 18px; display: block; }
.icon-title { width: 20px; height: 20px; vertical-align: -3px; }
.ad-category .icon { width: 14px; height: 14px; vertical-align: -2px; }
.bento-cat-icon .icon { width: 20px; height: 20px; display: block; }
.escrow-badge .icon { width: 12px; height: 12px; vertical-align: -2px; }

/* ---------- Зарын горим сонгогч ---------- */
.escrow-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.mode-btn {
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--t);
    font-family: inherit;
    color: var(--text);
}

.mode-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }

.mode-btn strong { display: block; font-size: 14px; }
.mode-btn small { color: var(--text-soft); font-size: 12px; }

.mode-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--pink);
    flex-shrink: 0;
}

.mode-icon-trust { background: var(--violet-tint); color: var(--violet); }

.mode-btn.active {
    border-color: var(--brand);
    background: var(--accent-tint);
    box-shadow: 0 4px 12px rgba(230, 160, 0, 0.15);
}

#modeEscrowBtn.active {
    border-color: var(--violet);
    background: var(--violet-tint);
    box-shadow: 0 4px 12px rgba(59, 91, 219, 0.15);
}

/* ---------- Баталгаат badge (зарын карт) ---------- */
.escrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
    margin-left: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--violet-tint);
    color: var(--violet);
    width: fit-content;
}

/* ---------- Hero guarantee strip ---------- */
.hero-guarantee {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 22px;
    max-width: 460px;
}

.hg-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--grad-violet);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(39, 72, 199, 0.40);
}

.hg-icon .icon { width: 20px; height: 20px; }

.hero-guarantee .hg-text strong {
    display: block;
    color: #fff;
    font-size: 13.5px;
    margin-bottom: 2px;
}

.hero-guarantee .hg-text small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.45;
    display: block;
}

/* ---------- Booking доторх хэрэглэгчийн линк ---------- */
.user-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    color: var(--pink);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.user-link:hover { opacity: 0.8; }

.user-link-hint {
    font-size: 11px;
    color: var(--text-mute);
}

/* ---------- CV preview ---------- */
.cv-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-xs);
}

.cv-preview-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.cv-preview-header h3 { font-size: 18px; margin-bottom: 4px; }

.cv-avatar { width: 64px; height: 64px; font-size: 26px; }

.cv-rate { color: var(--pink); font-weight: 700; font-size: 14px; }

.cv-bio { color: var(--text-soft); line-height: 1.6; margin-bottom: 12px; }
.cv-bio.cv-empty { color: var(--text-mute); font-style: italic; }

.cv-meta { font-size: 13px; color: var(--text-soft); margin-top: 8px; }

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