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

/* ── Variables ───────────────────────────────────────── */
:root {
    --bg: #080C14;
    --surface: rgba(255,255,255,0.04);
    --surface-2: rgba(255,255,255,0.025);
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(217,119,6,0.35);
    --gold: #D97706;
    --gold-light: #F59E0B;
    --gold-glow: rgba(217,119,6,0.2);
    --text: #F1F5F9;
    --text-2: #94A3B8;
    --text-3: #475569;
    --green: #10B981;
    --error: #EF4444;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}

/* ── Base ────────────────────────────────────────────── */
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
}

.hidden { display: none !important; }

/* ── Grain ───────────────────────────────────────────── */
.grain {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── Orbs ────────────────────────────────────────────── */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(180,83,9,0.32) 0%, transparent 65%);
    top: -15%; left: -10%;
    animation: drift1 22s ease-in-out infinite alternate;
}
.orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(217,119,6,0.18) 0%, transparent 65%);
    bottom: -10%; right: -5%;
    animation: drift2 18s ease-in-out infinite alternate;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(120,53,15,0.22) 0%, transparent 65%);
    top: 40%; left: 55%;
    animation: drift1 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate(80px, 60px); } }
@keyframes drift2 { to { transform: translate(-60px, -40px); } }

/* ── Header ──────────────────────────────────────────── */
.glass-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8,12,20,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0.9rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
    position: relative; z-index: 1;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; color: #fff; }
.logo-title { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.logo-badge {
    font-size: 0.7rem; font-weight: 500; color: var(--gold);
    background: rgba(217,119,6,0.12); border: 1px solid rgba(217,119,6,0.25);
    border-radius: 100px; padding: 2px 8px; letter-spacing: 0.03em;
}

/* ── Pill buttons ────────────────────────────────────── */
.pill-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0.5rem 1.1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 100px; color: var(--text-2);
    font-family: 'Outfit', sans-serif; font-size: 0.83rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
}
.pill-btn:hover { background: rgba(255,255,255,0.07); color: var(--text); border-color: rgba(255,255,255,0.12); }
.pill-btn svg { width: 14px; height: 14px; }
.pill-btn.gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: transparent; color: #fff;
    box-shadow: 0 2px 12px rgba(217,119,6,0.3);
}
.pill-btn.gold:hover { box-shadow: 0 4px 20px rgba(217,119,6,0.45); transform: translateY(-1px); }

/* ── Container ───────────────────────────────────────── */
.container {
    max-width: 1280px; margin: 0 auto;
    padding: 0 2.5rem 6rem;
    position: relative; z-index: 1;
}

/* ── Modal ───────────────────────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(4,6,10,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
}
.modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%; max-width: 440px;
    background: rgba(12,17,28,0.95);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalIn {
    from { opacity: 0; transform: translate(-50%,-48%) scale(0.97); }
    to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.modal-top-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
    opacity: 0.6;
}
.modal-head { padding: 1.75rem 2rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; }
.modal-logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 9px; display: grid; place-items: center;
}
.modal-logo-icon svg { width: 18px; height: 18px; color: #fff; }
.modal-logo-name { font-size: 0.83rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.modal-head h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.4rem; }
.modal-head p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; font-size: 0.87rem;
    color: var(--text-2); line-height: 1.6;
}
.modal-body { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.modal-foot { padding: 1.25rem 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }

/* ── Fields ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.79rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.01em;
}
.field-label-icon {
    width: 20px; height: 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 6px; display: grid; place-items: center; flex-shrink: 0;
}
.field-label-icon svg { width: 11px; height: 11px; color: var(--gold-light); }
.field-input {
    width: 100%; padding: 0.72rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Outfit', sans-serif; font-size: 0.88rem; font-weight: 400;
    outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input::placeholder { color: var(--text-3); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300; }
.field-input:focus { border-color: rgba(217,119,6,0.5); box-shadow: 0 0 0 3px rgba(217,119,6,0.1); }
.field-hint {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; font-size: 0.74rem;
    color: var(--text-3); display: flex; align-items: center; gap: 5px;
}
.field-hint svg { width: 11px; height: 11px; flex-shrink: 0; }
.field-divider { height: 1px; background: var(--border); }

/* ── Modal buttons ───────────────────────────────────── */
.save-btn {
    width: 100%; padding: 0.82rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none; border-radius: var(--radius-sm);
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 20px rgba(217,119,6,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: var(--transition); position: relative; overflow: hidden;
}
.save-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%); transition: transform 0.5s ease;
}
.save-btn:hover::before { transform: translateX(100%); }
.save-btn:hover { box-shadow: 0 6px 28px rgba(217,119,6,0.45), inset 0 1px 0 rgba(255,255,255,0.15); transform: translateY(-1px); }
.save-btn:active { transform: scale(0.99); }
.cancel-btn {
    width: 100%; padding: 0.5rem; background: none; border: none;
    color: var(--text-3); font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; font-size: 0.83rem; cursor: pointer; transition: color 0.2s;
}
.cancel-btn:hover { color: var(--text-2); }

/* ── Upload Section ──────────────────────────────────── */
.upload-section { padding: 4rem 0 0; }
.section-lead { margin-bottom: 3rem; }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
    color: var(--text); margin-bottom: 0.75rem;
}
.gold-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; font-size: 1rem;
    color: var(--text-2); max-width: 52ch; line-height: 1.7; letter-spacing: 0.01em;
}

/* ── Upload Grid ─────────────────────────────────────── */
.upload-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem; margin-bottom: 2rem;
}
@media (max-width: 680px) { .upload-grid { grid-template-columns: 1fr; } }

.upload-card {
    position: relative;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem 2rem;
    cursor: pointer; overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
    animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.upload-card:nth-child(2) { animation-delay: 0.08s; }
.upload-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(217,119,6,0.06) 50%, transparent 70%);
    opacity: 0; transition: opacity 0.4s ease;
    pointer-events: none;
}
.upload-card:hover::before { opacity: 1; }
.upload-card:hover {
    border-color: rgba(217,119,6,0.28);
    background: rgba(217,119,6,0.03);
    transform: translateY(-3px);
}
.upload-card::after {
    content: ''; position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    pointer-events: none;
}
.upload-card.dragover {
    border-color: var(--gold);
    background: rgba(217,119,6,0.06);
    transform: scale(1.01);
}

.card-icon-wrap {
    width: 52px; height: 52px;
    background: rgba(217,119,6,0.1);
    border: 1px solid rgba(217,119,6,0.2);
    border-radius: 14px; display: grid; place-items: center;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.upload-card:hover .card-icon-wrap { background: rgba(217,119,6,0.17); border-color: rgba(217,119,6,0.35); }
.card-icon-wrap svg { width: 24px; height: 24px; color: var(--gold-light); }

.card-title { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.card-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; font-size: 0.85rem;
    color: var(--text-2); line-height: 1.6; letter-spacing: 0.01em; margin-bottom: 1.5rem;
}
.card-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0.55rem 1.1rem;
    background: transparent; border: 1px solid rgba(217,119,6,0.35);
    border-radius: 100px; color: var(--gold-light);
    font-family: 'Outfit', sans-serif; font-size: 0.83rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
}
.card-btn:hover { background: rgba(217,119,6,0.1); border-color: var(--gold); }
.card-btn svg { width: 14px; height: 14px; }

.drag-hint {
    position: absolute; bottom: 1rem; right: 1.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300;
    font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.04em;
    display: flex; align-items: center; gap: 4px;
}
.drag-hint svg { width: 11px; height: 11px; }

/* ── File list ───────────────────────────────────────── */
.file-list { margin-top: 1rem; }
.file-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.45rem 0.75rem;
    background: rgba(0,0,0,0.25); border: 1px solid var(--border);
    border-radius: 10px; margin-top: 0.4rem;
    font-size: 0.8rem; color: var(--text-2);
}

/* ── CTA Button ──────────────────────────────────────── */
.action-bar { text-align: center; animation: fadeUp 0.6s 0.2s cubic-bezier(0.16,1,0.3,1) both; }
.cta-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 1rem 2.8rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none; border-radius: 100px;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
    cursor: pointer; overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 24px rgba(217,119,6,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cta-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%); transition: transform 0.5s ease;
}
.cta-btn:not(:disabled):hover::before { transform: translateX(100%); }
.cta-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(217,119,6,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cta-btn:not(:disabled):active { transform: scale(0.98); }
.cta-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.cta-btn svg { width: 18px; height: 18px; }
.cta-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.5); position: relative; flex-shrink: 0;
}
.cta-dot::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
.cta-btn:disabled .cta-dot::after { animation: none; }
@keyframes pulse-dot {
    0%,100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.7); opacity: 0; }
}

/* ── Loading Section ─────────────────────────────────── */
.loading-section { padding: 4rem 0; }
.loading-inner {
    max-width: 640px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}

/* Ring */
.ring-wrap {
    position: relative; width: 96px; height: 96px;
    animation: fadeUp 0.5s ease both;
}
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3; }
.ring-fill {
    fill: none; stroke: url(#goldGrad); stroke-width: 3;
    stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 55;
    animation: ring-spin 2s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes ring-spin {
    0%   { stroke-dashoffset: 210; }
    50%  { stroke-dashoffset: 55; }
    100% { stroke-dashoffset: 210; }
}
.ring-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.ring-icon svg { width: 28px; height: 28px; color: var(--gold-light); }

/* Loading text */
.loading-text-block { text-align: center; animation: fadeUp 0.5s 0.1s ease both; }
.loading-label {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
.loading-status {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; font-size: 0.95rem;
    color: var(--text-2); line-height: 1.65; max-width: 44ch; margin: 0 auto;
}

/* Progress */
.progress-wrap { width: 100%; animation: fadeUp 0.5s 0.2s ease both; }
.progress-meta-row {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem;
}
.progress-pct { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.progress-time { display: none; }
.progress-bar {
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 100px; position: relative;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.progress-fill::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.progress-coffee {
    margin-top: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 400;
    font-size: 0.95rem; color: var(--text); font-style: italic;
}

/* ── Results Section ─────────────────────────────────── */
.results-section { padding: 3rem 0 0; }
.results-topbar {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap;
    animation: fadeUp 0.5s ease both;
}
.result-title {
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -0.025em; color: var(--text); margin-bottom: 0.25rem;
}
.result-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; font-size: 0.82rem; color: var(--text-3);
}
.results-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* ── Glass Panel ─────────────────────────────────────── */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    padding: 2rem;
    animation: fadeUp 0.5s 0.1s ease both;
}

/* ── Markdown ────────────────────────────────────────── */
.markdown-body { color: var(--text); }
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--text); letter-spacing: -0.01em;
}
.markdown-body h1:first-child, .markdown-body h2:first-child { margin-top: 0; }
.markdown-body p {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300;
    margin-bottom: 0.9rem; color: var(--text-2); line-height: 1.7;
}
.markdown-body ul, .markdown-body ol {
    margin-left: 1.5rem; margin-bottom: 1rem; color: var(--text-2);
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300; line-height: 1.7;
}
.markdown-body li::marker { color: var(--gold); }
.markdown-body blockquote {
    border-left: 2px solid rgba(217,119,6,0.4);
    padding: 0.5rem 1rem;
    background: rgba(217,119,6,0.04); border-radius: 0 8px 8px 0; margin: 0.75rem 0;
}
.markdown-body blockquote p { color: var(--text-2); font-style: italic; }
.markdown-body strong { color: var(--text); font-weight: 600; }

/* ── Category Section ────────────────────────────────── */
.category-section {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    padding: 1.75rem; margin-top: 1.25rem;
    animation: fadeUp 0.5s 0.2s ease both;
}
.cat-section-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.cat-section-sub {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300;
    font-size: 0.82rem; color: var(--text-3); margin-bottom: 1.25rem;
}
.cat-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.6rem; margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 14px; cursor: pointer;
    transition: var(--transition); user-select: none;
}
.cat-card:hover {
    background: rgba(217,119,6,0.06); border-color: rgba(217,119,6,0.25);
    transform: translateY(-1px);
}
.cat-card.selected {
    background: rgba(217,119,6,0.1); border-color: rgba(217,119,6,0.45);
    box-shadow: 0 0 0 1px rgba(217,119,6,0.15);
}
.cat-letter {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 10px; display: grid; place-items: center;
    font-size: 0.9rem; font-weight: 700;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--text-2); transition: var(--transition);
}
.cat-card.selected .cat-letter {
    background: rgba(217,119,6,0.15); border-color: rgba(217,119,6,0.35); color: var(--gold-light);
}
.cat-name { font-size: 0.83rem; font-weight: 500; color: var(--text); line-height: 1.3; margin-bottom: 2px; }
.cat-card.selected .cat-name { color: #fff; }
.cat-sub {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300;
    font-size: 0.72rem; color: var(--text-3);
}

/* ── Recs Button ─────────────────────────────────────── */
.recs-btn-wrap { display: flex; justify-content: center; }
.btn-get-recs {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 0.8rem 2.2rem;
    background: linear-gradient(135deg, rgba(217,119,6,0.15), rgba(245,158,11,0.18));
    border: 1px solid rgba(217,119,6,0.4);
    border-radius: 100px; color: #fff;
    font-family: 'Outfit', sans-serif; font-size: 0.92rem; font-weight: 600;
    cursor: pointer; letter-spacing: -0.01em;
    transition: var(--transition);
    animation: recs-glow 2.4s ease-in-out infinite;
}
.btn-get-recs:not(:disabled):hover {
    background: linear-gradient(135deg, rgba(217,119,6,0.25), rgba(245,158,11,0.28));
    border-color: rgba(217,119,6,0.65);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(217,119,6,0.3);
}
.btn-get-recs:disabled { opacity: 0.35; cursor: not-allowed; animation: none; }
@keyframes recs-glow {
    0%,100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); }
    50% { box-shadow: 0 0 18px rgba(217,119,6,0.2); }
}
.btn-recs-icon { display: flex; align-items: center; }
.btn-recs-arrow { transition: transform 0.2s ease; }
.btn-get-recs:not(:disabled):hover .btn-recs-arrow { transform: translateX(4px); }

/* Progress state for recs button */
.btn-get-recs.btn-progress {
    background: rgba(40,40,40,0.7) !important;
    border-color: #444 !important; color: #888 !important;
    animation: none !important; cursor: wait !important;
}
.btn-get-recs.btn-progress .btn-recs-icon,
.btn-get-recs.btn-progress .btn-recs-arrow { display: none; }
.btn-pct { color: var(--gold-light); font-weight: 700; margin-left: 0.4em; }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .header-inner { padding: 0.9rem 1.25rem; }
    .container { padding: 0 1.25rem 4rem; }
    .upload-section { padding: 2.5rem 0 0; }
    .section-title { font-size: 1.8rem; }
    .results-topbar { flex-direction: column; gap: 1rem; }
    .logo-title { display: none; }
}
