/* ===== LEADGEN AI - WHITE & ORANGE THEME ===== */
:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 0.75rem;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Backward-compat aliases used across older pages */
    --primary: var(--orange);
    --primary-dark: var(--orange-dark);
    --primary-light: var(--orange-light);
    --text-muted: var(--gray-600);
    --text-light: var(--gray-400);
    --border: var(--gray-200);
    --nav-height: 72px;
    --bar-height: 40px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── ANNOUNCEMENT BAR ── */
.announce-bar {
    background: linear-gradient(90deg, var(--orange-dark) 0%, var(--orange) 50%, #fb923c 100%);
    color: white; text-align: center; padding: 9px 24px;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.announce-bar a { color: white; text-decoration: underline; text-underline-offset: 3px; opacity: 0.92; }
.announce-bar a:hover { opacity: 1; }
.announce-bar-close {
    position: absolute; right: 16px; background: none; border: none;
    color: white; cursor: pointer; opacity: 0.7; font-size: 1rem; line-height: 1;
    padding: 2px 6px; border-radius: 4px; transition: opacity 0.2s;
}
.announce-bar-close:hover { opacity: 1; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 40px; left: 0; right: 0; z-index: 1000;
    height: 72px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229,231,235,0.8);
    display: flex; align-items: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.no-bar { top: 0; }
.navbar.shadow {
    height: 66px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px -4px rgba(0,0,0,0.1), 0 1px 0 rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(229,231,235,0.6);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 28px;
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.logo {
    font-size: 1.55rem; font-weight: 850; text-decoration: none; color: var(--gray-900);
    display: flex; align-items: center; gap: 10px;
    letter-spacing: -0.025em; flex-shrink: 0;
}
.logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 9px; display: grid; place-items: center;
    color: white; font-size: 1.15rem; transform: rotate(-10deg);
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-icon {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}
.logo span { color: var(--orange); }

/* nav centre links */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-links > a {
    padding: 7px 14px; border-radius: 8px; text-decoration: none;
    color: var(--gray-600); font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s ease; position: relative; white-space: nowrap;
}
.nav-links > a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-links > a.active { color: var(--orange); background: var(--orange-light); }
.nav-links > a.active::after {
    content: ''; position: absolute; bottom: 3px; left: 14px; right: 14px;
    height: 2px; background: var(--orange); border-radius: 2px;
}

/* nav right actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 8px; text-decoration: none;
    color: var(--gray-600); font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-chevron { font-size: 0.6rem; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); margin-top: 1px; }
.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 12px); left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: 16px;
    box-shadow: 0 8px 32px -4px rgba(0,0,0,0.12), 0 2px 8px -2px rgba(0,0,0,0.06);
    padding: 8px; min-width: 290px; z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px; text-decoration: none;
    color: var(--gray-700); transition: background 0.12s ease, transform 0.12s ease;
}
.nav-dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); transform: translateX(2px); }
.nav-dropdown-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: var(--orange-light); color: var(--orange);
    display: grid; place-items: center; font-size: 0.9rem;
    transition: transform 0.15s ease;
}
.nav-dropdown-item:hover .nav-dropdown-icon { transform: scale(1.08); }
.nav-dropdown-icon--fb { background: #e7f0fd; color: #1877f2; }
.nav-dropdown-icon--yt { background: #fff0f0; color: #ff0000; }
.nav-dropdown-icon--dl { background: #f0f7ff; color: #2563eb; }
.nav-dropdown-icon--green { background: #f0fdf4; color: #16a34a; }
.nav-dropdown-icon--reddit { background: #fff3ef; color: #ff4500; }
.nav-dropdown-icon--tt { background: #fff0f3; color: #fe2c55; }
.nav-dropdown-icon--ig { background: #fdf2f8; color: #c026d3; }
.nav-dropdown-icon--sn { background: #fefce8; color: #ca8a04; }
.nav-dropdown-icon--li { background: #eff6ff; color: #0a66c2; }
.nav-dropdown-icon--tw { background: #f3f4f6; color: #0f172a; }
.nav-dropdown-icon--mail { background: #ecfeff; color: #0891b2; }
.nav-dropdown-title { display: block; font-weight: 600; font-size: 0.8375rem; color: var(--gray-900); line-height: 1.3; }
.nav-dropdown-desc { display: block; font-size: 0.725rem; color: var(--gray-500); margin-top: 1px; line-height: 1.4; }
.nav-dropdown-divider { height: 1px; background: var(--gray-100); margin: 5px 2px; }
.nav-dropdown-menu--wide { min-width: 340px; max-height: 78vh; overflow-y: auto; }
.nav-dropdown-menu--wide::-webkit-scrollbar { width: 6px; }
.nav-dropdown-menu--wide::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }
.nav-dropdown-section-label {
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.09em; color: var(--gray-400);
    padding: 9px 12px 3px; pointer-events: none;
}

/* ── USER PROFILE NAV ── */
.user-profile-nav {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 12px 5px 6px; border-radius: 40px;
    background: var(--white); border: 1.5px solid var(--gray-200);
    cursor: pointer; text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.user-profile-nav:hover {
    border-color: var(--orange);
    box-shadow: 0 2px 10px rgba(249,115,22,0.12);
    transform: translateY(-1px);
}
.user-avatar-nav {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white; border-radius: 50%; display: grid; place-items: center;
    font-weight: 800; font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(249,115,22,0.3);
    flex-shrink: 0;
}
.user-nav-name { font-size: 0.825rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.user-nav-plan { font-size: 0.6rem; font-weight: 800; color: var(--orange); letter-spacing: 0.06em; line-height: 1.2; }

/* dashboard button */
.btn-dashboard {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 10px;
    background: var(--gray-100); color: var(--gray-700);
    font-weight: 600; font-size: 0.875rem;
    text-decoration: none; border: 1.5px solid var(--gray-200);
    transition: all 0.2s ease; white-space: nowrap;
}
.btn-dashboard:hover {
    background: var(--gray-200); color: var(--gray-900);
    border-color: var(--gray-300); transform: translateY(-1px);
}
.btn-dashboard i { opacity: 0.7; }

/* ── MOBILE MENU ── */
.mobile-toggle {
    display: none; width: 38px; height: 38px; border-radius: 9px;
    background: var(--gray-50); border: 1.5px solid var(--gray-200);
    color: var(--gray-700); cursor: pointer; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}
.mobile-toggle:hover { background: var(--gray-100); border-color: var(--gray-300); }

@media (max-width: 991px) {
    .announce-bar { font-size: 0.75rem; padding: 8px 40px 8px 16px; }
    .navbar { height: 66px; top: 36px; }
    .navbar.no-bar { top: 0; }
    .mobile-toggle { display: flex; }
    .nav-links {
        position: fixed; top: calc(66px + 36px); left: 0; right: 0;
        height: calc(100vh - 102px);
        background: white; flex-direction: column; padding: 24px 20px;
        gap: 4px; transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999; border-top: 1px solid var(--gray-100);
        overflow-y: auto;
    }
    .navbar.no-bar ~ * .nav-links,
    .navbar.no-bar + .nav-links { top: 66px; height: calc(100vh - 66px); }
    .nav-links.active { transform: translateX(0); }
    .nav-links > a { width: 100%; font-size: 1rem; padding: 13px 16px; }
    .nav-actions { display: none; }
    .nav-links .btn { margin-top: 8px; width: 100%; justify-content: center; }
    .nav-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav-dropdown-toggle { width: 100%; font-size: 1rem; padding: 13px 16px; }
    .nav-dropdown-menu {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: none; background: var(--gray-50);
        backdrop-filter: none;
        border-radius: 12px; padding: 6px; min-width: 0; width: 100%;
        margin-top: 4px;
    }
    .nav-chevron { display: none; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.9375rem;
    cursor: pointer; border: none; text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(249,115,22,0.32), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #fb8b3a 0%, var(--orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(249,115,22,0.42);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(249,115,22,0.3); }
.btn-secondary {
    background: var(--white); color: var(--gray-900);
    border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--gray-400); background: var(--gray-50); transform: translateY(-1px); }

.btn-outline {
    background: transparent; color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; border-radius: 10px; }

/* ── HERO ── */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--orange-light) 0%, var(--white) 60%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1.5px solid var(--gray-200);
    padding: 6px 16px; border-radius: 100px; font-size: 0.8125rem;
    font-weight: 600; color: var(--orange); margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.03em; margin-bottom: 20px;
    color: var(--gray-900);
}
.hero h1 .highlight { color: var(--orange); }
.hero p {
    font-size: 1.125rem; color: var(--gray-600);
    max-width: 560px; margin: 0 auto 40px;
}

/* ── SEARCH BOX ── */
.search-box {
    max-width: 680px; margin: 0 auto 16px;
    display: flex; gap: 0;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.1), var(--shadow-lg);
}
.search-input {
    flex: 1; padding: 16px 20px;
    border: none; outline: none;
    font-size: 1rem; background: transparent;
    color: var(--gray-900);
}
.search-input::placeholder { color: var(--gray-400); }
.search-btn {
    padding: 12px 24px; background: var(--orange); color: white;
    border: none; cursor: pointer; font-weight: 700; font-size: 0.9375rem;
    transition: background 0.15s; white-space: nowrap;
}
.search-btn:hover { background: var(--orange-dark); }
.hero-note { font-size: 0.8125rem; color: var(--gray-400); }
.hero-note a { color: var(--orange); text-decoration: none; font-weight: 600; }

/* ── RESULTS PANEL ── */
#results-panel {
    max-width: 900px; margin: 40px auto 0;
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.results-header {
    padding: 16px 24px; background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
}
.results-table { width: 100%; border-collapse: collapse; }
.results-table th {
    padding: 12px 16px; text-align: left; font-size: 0.75rem;
    font-weight: 700; color: var(--gray-400); text-transform: uppercase;
    letter-spacing: 0.05em; background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.results-table td {
    padding: 14px 16px; font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: var(--gray-50); }
.badge-rating {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--orange-light); color: var(--orange-dark);
    padding: 2px 8px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
}

/* ── SECTIONS ── */
.section { padding: 96px 24px; }
.section-alt { background: var(--gray-50); }
.section-padding { padding: calc(var(--nav-height) + 56px) 0 80px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
    display: inline-block; color: var(--orange); font-weight: 700;
    font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 16px;
}
.section-sub { font-size: 1.0625rem; color: var(--gray-600); max-width: 560px; }

/* ── FEATURE CARDS ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 56px;
}
.feature-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--orange-light); color: var(--orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.6; }

/* ── PRICING ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 56px; align-items: start;
}
.pricing-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 36px;
}
.pricing-card.featured {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.1), var(--shadow-xl);
}
.pricing-badge {
    background: var(--orange); color: white;
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 4px 12px; border-radius: 100px;
    display: inline-block; margin-bottom: 16px;
}
.pricing-price {
    font-size: 3rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--gray-900); line-height: 1;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 8px; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--gray-400); }
.pricing-features { list-style: none; margin: 28px 0; }
.pricing-features li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; font-size: 0.9375rem; color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--orange); font-weight: 700; flex-shrink: 0; }
.pricing-features .cross { color: var(--gray-300); flex-shrink: 0; }

/* ── DASHBOARD LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--white); border-right: 1px solid var(--gray-200);
    display: flex; flex-direction: column; padding: 24px;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
}
.sidebar-logo { margin-bottom: 32px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    text-decoration: none; font-weight: 500; font-size: 0.9375rem;
    color: var(--gray-600); transition: all 0.15s;
}
.sidebar-link:hover { color: var(--gray-900); background: var(--gray-100); }
.sidebar-link.active { color: var(--orange); background: var(--orange-light); font-weight: 600; }
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-footer {
    border-top: 1px solid var(--gray-200); padding-top: 16px; margin-top: 16px;
}
.app-main { margin-left: 260px; flex: 1; background: var(--gray-50); min-height: 100vh; }
.app-topbar {
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 16px 32px; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}
.app-content { padding: 32px; }

/* ── CARDS ── */
.card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow);
}
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }

/* ── FAQ ACCORDION ── */
.faq-item {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: 12px; overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item + .faq-item { margin-top: 0; }
.faq-item:hover { border-color: var(--gray-300); }
.faq-item[open] { border-color: rgba(249,115,22,0.4); box-shadow: 0 2px 14px rgba(249,115,22,0.06); }
.faq-item .faq-q {
    list-style: none; cursor: pointer;
    padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-weight: 700; color: var(--gray-900); font-size: 0.9375rem; line-height: 1.4;
    transition: background 0.15s;
}
.faq-item .faq-q::-webkit-details-marker { display: none; }
.faq-item .faq-q::marker { display: none; content: ''; }
.faq-item .faq-q:hover { background: var(--gray-50); }
.faq-q-text { flex: 1; }
.faq-q-text i { margin-right: 8px; }
.faq-chevron {
    color: var(--gray-400); font-size: 0.8125rem;
    transition: transform 0.2s, color 0.2s; flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gray-50);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--orange); background: rgba(249,115,22,0.1); }
.faq-item .faq-a {
    padding: 0 20px 18px;
    border-top: 1px solid var(--gray-100);
    animation: faqFadeIn 0.2s ease;
}
.faq-item .faq-a p {
    margin: 14px 0 0;
    color: var(--gray-600); font-size: 0.9375rem; line-height: 1.65;
}
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: 0.8125rem; color: var(--gray-400); font-weight: 500; }
.stat-change { font-size: 0.8125rem; color: #10b981; font-weight: 600; }

/* ── FORMS ── */
.form-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; color: var(--gray-700, #374151); }
.form-input {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
    border-radius: 8px; font-size: 0.9375rem; background: var(--white);
    color: var(--gray-900); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.form-group { margin-bottom: 20px; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 10px 16px; text-align: left; font-size: 0.75rem; font-weight: 700;
    color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200); background: var(--gray-50);
}
.data-table td {
    padding: 12px 16px; font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100); color: var(--gray-600);
}
.data-table tbody tr:hover td { background: var(--gray-50); }

/* ── KEY DISPLAY ── */
.api-key-box {
    display: flex; align-items: center; gap: 12px;
    background: var(--gray-50); border: 1.5px solid var(--gray-200);
    border-radius: 8px; padding: 12px 16px;
}
.api-key-text { flex: 1; font-family: monospace; font-size: 0.875rem; color: var(--orange-dark); word-break: break-all; }

/* ── FOOTER ── */
.footer {
    background: var(--white); color: var(--gray-900); padding: 100px 24px 40px;
    position: relative; overflow: hidden;
    border-top: 1px solid var(--gray-200);
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--orange);
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 64px;
    margin-bottom: 80px;
}
.footer-brand .logo { color: var(--gray-900); margin-bottom: 24px; display: inline-flex; font-size: 1.8rem; }
.footer-brand p { color: var(--gray-600); font-size: 1rem; line-height: 1.7; max-width: 340px; }
.footer-col h4 { 
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; 
    letter-spacing: 0.15em; color: var(--orange); margin-bottom: 28px; 
}
.footer-col a { 
    display: block; color: var(--gray-600); text-decoration: none; 
    font-size: 0.9375rem; margin-bottom: 16px; transition: all 0.25s ease;
    width: fit-content;
}
.footer-col a:hover { color: var(--orange); transform: translateX(6px); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto; padding-top: 40px;
    border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center;
    color: var(--gray-400); font-size: 0.875rem;
}
.footer-newsletter p { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 20px; }
.footer-newsletter form {
    display: flex; background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 6px; transition: border-color 0.3s;
}
.footer-newsletter form:focus-within { border-color: var(--orange); }
.footer-newsletter input {
    background: transparent; border: none; color: var(--gray-900); padding: 10px 14px; flex: 1; outline: none; font-size: 0.9rem;
}
.footer-newsletter button {
    background: var(--orange); color: white; border: none; width: 40px; height: 40px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.footer-newsletter button:hover { background: var(--orange-dark); transform: scale(1.05); }

/* ── AUTH ── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at top left, var(--orange-light) 0%, var(--white) 100%);
    padding: 0;
}
.auth-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 20px; padding: 48px; width: 100%; max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--gray-400); font-size: 0.9375rem; margin-bottom: 32px; }

/* ── UTILS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-400); }
.text-orange { color: var(--orange); }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.chip {
    display: inline-block; padding: 4px 12px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
}
.chip-orange { background: var(--orange-light); color: var(--orange-dark); }
.chip-green { background: #f0fdf4; color: #15803d; }
.chip-gray { background: var(--gray-100); color: var(--gray-600); }

/* ── PROGRESS ── */
.progress-bar { height: 6px; background: var(--gray-200); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 100px; transition: width 0.3s; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 0.5s ease forwards; }
.spinner {
    width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 120px 16px 80px; }
    .search-box { flex-direction: column; }
    .search-btn { border-radius: 0 0 10px 10px; padding: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .app-main { margin-left: 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Spinner */
.spinner {
    border-radius: 50%;
    border: 3px solid rgba(249, 115, 22, 0.1);
    border-top: 3px solid var(--orange);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -- FORMS -- */
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-input, .form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--gray-900);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.form-input:focus, .form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}
.form-input::placeholder, .form-control::placeholder {
    color: var(--gray-400);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ── FOLDER VIEW ── */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    padding: 24px;
}
.folder-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.folder-card:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.folder-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--orange-light);
    color: var(--orange);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    transition: all 0.3s;
}
.folder-card:hover .folder-icon-wrap {
    background: var(--orange);
    color: white;
}
.folder-name {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--gray-900);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
}
.folder-meta {
    font-size: 0.8125rem;
    color: var(--gray-400);
    font-weight: 500;
}
.folder-badge {
    position: absolute;
    top: 14px;
    right: 14px;
}
.folder-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}
.folder-card:hover .folder-actions {
    opacity: 1;
}

.folder-card.selected {
    border-color: var(--orange);
    background: var(--orange-light);
}

.menu-dots-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}
.menu-dots-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.folder-menu button:hover {
    background: var(--gray-50);
}
.folder-menu button {
    transition: background 0.15s;
}

.folder-checkbox {
    transition: transform 0.2s;
}
.folder-checkbox:hover {
    transform: scale(1.1);
}

.job-view-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 8px;
}
.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s;
}
.back-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-light);
}

/* ── PRICING PAGE ── */
.pricing-hero {
    padding: calc(var(--nav-height) + 64px) 24px 72px;
    text-align: center;
    background: linear-gradient(180deg, var(--orange-light) 0%, var(--white) 55%);
    position: relative; overflow: hidden;
}
.pricing-hero::before {
    content: '';
    position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.pricing-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
    color: var(--gray-900); margin-bottom: 16px;
}
.pricing-hero p {
    font-size: 1.0625rem; color: var(--gray-600); max-width: 520px; margin: 0 auto 40px;
}
.billing-toggle {
    display: inline-flex; align-items: center; gap: 0;
    background: var(--gray-100); border-radius: 10px; padding: 4px;
    margin-bottom: 64px;
}
.billing-toggle button {
    padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer;
    font-size: 0.875rem; font-weight: 600; color: var(--gray-500);
    background: transparent; transition: all 0.2s;
}
.billing-toggle button.active {
    background: var(--white); color: var(--gray-900);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.save-pill {
    background: #dcfce7; color: #15803d;
    font-size: 0.65rem; font-weight: 800; padding: 2px 8px;
    border-radius: 99px; letter-spacing: 0.04em; margin-left: 6px;
}

/* Pricing cards grid */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}
.pricing-card-new {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 24px;
    padding: 36px 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.pricing-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}
.pricing-card-new.featured {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.08), var(--shadow-xl);
    transform: translateY(-8px);
}
.pricing-card-new.featured:hover { transform: translateY(-14px); }
.featured-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white; font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; padding: 4px 16px; border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.plan-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.25rem;
    margin-bottom: 20px;
}
.plan-name { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); margin-bottom: 6px; }
.plan-price { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; color: var(--gray-900); line-height: 1; }
.plan-price sup { font-size: 1.25rem; vertical-align: top; margin-top: 10px; font-weight: 700; }
.plan-period { font-size: 0.875rem; color: var(--gray-400); font-weight: 500; }
.plan-desc { font-size: 0.875rem; color: var(--gray-600); margin: 12px 0 24px; line-height: 1.5; }
.plan-divider { height: 1px; background: var(--gray-100); margin: 24px 0; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.875rem; color: var(--gray-700); line-height: 1.4;
}
.plan-features li .feat-check { color: var(--orange); font-size: 0.75rem; margin-top: 2px; flex-shrink: 0; }
.plan-features li .feat-x { color: var(--gray-300); font-size: 0.75rem; margin-top: 2px; flex-shrink: 0; }
.plan-features li.feat-muted { color: var(--gray-400); }

/* Pricing comparison table */
.pricing-table-wrap {
    max-width: 900px; margin: 80px auto 0;
    padding: 0 24px;
}
.pricing-table-wrap h2 { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 40px; letter-spacing: -0.025em; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; border: 1.5px solid var(--gray-200); }
.compare-table th { padding: 20px 24px; background: var(--gray-50); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); text-align: left; border-bottom: 1.5px solid var(--gray-200); }
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td { padding: 16px 24px; font-size: 0.875rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); }
.compare-table td:not(:first-child) { text-align: center; font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--gray-50); }
.compare-table td .fa-check { color: var(--orange); }
.compare-table td .fa-times { color: var(--gray-300); }
.compare-table .col-featured { background: rgba(249,115,22,0.04); }

/* Pricing FAQ */
.pricing-faq { max-width: 720px; margin: 80px auto; padding: 0 24px; }
.pricing-faq h2 { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 40px; letter-spacing: -0.025em; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-q {
    width: 100%; background: none; border: none; text-align: left;
    padding: 20px 4px; cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); font-family: var(--font);
}
.faq-q:hover { color: var(--orange); }
.faq-q i { color: var(--gray-400); font-size: 0.75rem; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--orange); }
.faq-a { display: none; padding: 0 4px 20px; font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

@media (max-width: 900px) {
    .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
    .pricing-card-new.featured { transform: none; }
    .pricing-card-new.featured:hover { transform: translateY(-6px); }
}

/* ── Tier-upgrade modal (shown when user requests > their plan's cap) ── */
.tier-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: tier-modal-fade 0.18s ease-out;
}
.tier-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: tier-modal-pop 0.22s cubic-bezier(.2,.9,.4,1.2);
}
.tier-modal-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.tier-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
}
.tier-modal-text {
    color: #475569;
    line-height: 1.55;
    margin: 0 0 14px;
    font-size: 0.95rem;
}
.tier-modal-text strong { color: #0f172a; font-weight: 600; }
.tier-modal-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin-top: 22px;
}
.tier-modal-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tier-modal-btn-primary {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}
.tier-modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.42);
}
.tier-modal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.tier-modal-btn-secondary:hover { background: #e2e8f0; }
@keyframes tier-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes tier-modal-pop {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
