:root {
    --bg-obsidian: #06080d;
    --card-bg: rgba(14, 18, 27, 0.88);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(249, 115, 22, 0.35);
    --hearth-bg: rgba(10, 13, 20, 0.65);
    
    --flame-primary: #ff5500;
    --flame-amber: #f97316;
    --flame-gold: #fbbf24;
    --flame-crimson: #dc2626;
    --glow-orange: rgba(255, 85, 0, 0.2);
    
    --text-pure: #ffffff;
    --text-sub: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-pill: 9999px;
}

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

body {
    background-color: var(--bg-obsidian);
    color: var(--text-pure);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── AMBIENT GLOW ORBS ───────────────────────────────────────────────────── */

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(130px);
}

.glow-top {
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.15) 0%, rgba(220, 38, 38, 0.06) 60%, transparent 80%);
}

.glow-center {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
}

/* ─── PAGE CONTAINER ──────────────────────────────────────────────────────── */

.page-container {
    width: 100%;
    max-width: 1200px;
    padding: 1.5rem 2rem 5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── TOP BRAND NAV ───────────────────────────────────────────────────────── */

.top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-badge-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.open-app-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--flame-primary), var(--flame-amber));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 85, 0, 0.35);
    transition: all 0.25s ease;
}

.open-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 85, 0, 0.55);
}

.app-page-container {
    width: 100%;
    max-width: 1200px;
    padding: 1.25rem 2rem 3rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-terminal {
    width: 100%;
    max-width: 840px;
    margin: 1rem auto 3rem;
    padding: 2rem 2.25rem;
}

/* ─── USER PROFILE AVATAR & DROPDOWN ──────────────────────────────────────── */

.user-profile-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-avatar-btn:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.55);
}

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

.user-avatar-initial {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 270px;
    background: linear-gradient(180deg, rgba(22, 27, 40, 0.97) 0%, rgba(14, 17, 26, 0.97) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 85, 0, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dropdown-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.dropdown-avatar-initial {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-user-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-pure);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 0.76rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
}

.dropdown-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-sub);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    width: fit-content;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 1rem 0;
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-pure);
}

.dropdown-item.item-danger {
    color: #ef4444;
}

.dropdown-item.item-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.item-icon {
    font-size: 1rem;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.brand-badge-link:hover .brand-badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(249, 115, 22, 0.4);
}

.flame-pulse {
    font-size: 1.1rem;
    animation: flamePulse 2s infinite ease-in-out;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(2deg); filter: drop-shadow(0 0 8px var(--flame-primary)); }
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    color: var(--text-pure);
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--flame-amber);
    letter-spacing: 0.4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--flame-amber);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--flame-amber);
    animation: blink 1.8s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ─── HERO SECTION ────────────────────────────────────────────────────────── */

.hero-section {
    text-align: center;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 850px;
    margin: 0 auto;
    padding: 2.25rem 1rem 0;
}

.hero-badge {
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.glow-text {
    background: linear-gradient(135deg, #ffffff 20%, #fed7aa 50%, #f97316 80%, #ef4444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 16px rgba(249, 115, 22, 0.25));
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
}

/* ─── MAIN TERMINAL CARD ──────────────────────────────────────────────────── */

.terminal-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 5rem;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* ─── FLOATING PILL TABS ──────────────────────────────────────────────────── */

.tab-pill-container {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.25rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.15rem;
}

.tab-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.tab-pill.active {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ─── MOLTEN HEARTH DROPZONE ──────────────────────────────────────────────── */

.molten-dropzone {
    background: var(--hearth-bg);
    border: 1.5px dashed rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.molten-dropzone:hover,
.molten-dropzone.dragover {
    border-color: var(--flame-amber);
    border-style: solid;
    background: rgba(14, 18, 28, 0.85);
    box-shadow: 0 0 28px rgba(255, 85, 0, 0.14), inset 0 0 20px rgba(255, 85, 0, 0.04);
    transform: translateY(-2px);
}

.dropzone-core {
    position: relative;
    z-index: 1;
}

.icon-hearth {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.55rem;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.18) 0%, rgba(255, 85, 0, 0.02) 70%, transparent 100%);
    border: 1px solid rgba(255, 85, 0, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(255, 85, 0, 0.16);
}

.hearth-flame {
    font-size: 1.55rem;
    animation: hearthFloat 3s infinite ease-in-out;
}

@keyframes hearthFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 0 8px var(--flame-primary)); }
}

.hearth-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.hearth-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
}

.browse-btn-text {
    color: var(--flame-amber);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hearth-meta {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
}

#fileInput {
    display: none;
}

.file-selected {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--flame-gold);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-block;
}

.file-selected:empty {
    display: none;
}

/* ─── PASTE RAW TEXT ──────────────────────────────────────────────────────── */

.editor-frame {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    transition: border-color 0.2s ease;
}

.editor-frame:focus-within {
    border-color: var(--flame-amber);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

textarea#textInput {
    width: 100%;
    height: 145px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

textarea#textInput::placeholder {
    color: var(--text-muted);
}

/* ─── INTENSITY MODULE ────────────────────────────────────────────────────── */

.intensity-module {
    margin-top: 1rem;
    margin-bottom: 1.15rem;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.55rem;
}

.module-title {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-pure);
    letter-spacing: -0.01em;
}

.module-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.intensity-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.intensity-option {
    cursor: pointer;
    user-select: none;
}

.intensity-option input {
    display: none;
}

.intensity-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    transition: all 0.2s ease;
}

.intensity-card .opt-emoji {
    font-size: 1.15rem;
    margin-bottom: 0.05rem;
}

.intensity-card .opt-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-sub);
}

.intensity-card .opt-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.intensity-option:hover .intensity-card {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.intensity-option input:checked + .intensity-card {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--flame-amber);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.intensity-option input:checked + .intensity-card .opt-name {
    color: #ffffff;
}

.intensity-option input:checked + .intensity-card.savage-card {
    background: rgba(220, 38, 38, 0.12);
    border-color: var(--flame-crimson);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.22);
}

/* ─── IGNITE CTA BUTTON ───────────────────────────────────────────────────── */

.ignite-button {
    width: 100%;
    background: linear-gradient(135deg, #ff5500 0%, #ea580c 50%, #c2410c 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 24px -5px rgba(255, 85, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: all 0.2s ease;
}

.ignite-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 32px -5px rgba(255, 85, 0, 0.5),
        0 0 22px rgba(255, 85, 0, 0.35);
    background: linear-gradient(135deg, #ff6b1a 0%, #f97316 50%, #ea580c 100%);
}

.ignite-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(255, 85, 0, 0.3);
}

.ignite-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─── ERROR & LOADING STATES ──────────────────────────────────────────────── */

.error-message {
    display: none;
    margin-top: 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.5;
}

.loading-container {
    display: none;
    margin-top: 2rem;
    text-align: center;
    padding: 2rem 1rem;
}

.fire-pulse-loader {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.22) 0%, transparent 70%);
    border: 1px solid rgba(255, 85, 0, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderPulse 1.4s infinite ease-in-out;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.4); }
    50% { transform: scale(1.12); box-shadow: 0 0 20px rgba(255, 85, 0, 0.5); }
}

.loader-flame {
    font-size: 1.7rem;
}

#loadingStatusText {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--flame-gold);
    font-weight: 500;
}

/* ─── RESULTS CONTAINER ───────────────────────────────────────────────────── */

#resultContainer {
    display: none;
    margin-top: 2.75rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2.25rem;
}

.simulated-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.gating-banner {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.classification-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.class-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-pure);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
}

/* ─── SCORE HEADER CARD ───────────────────────────────────────────────────── */

.score-header-card {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.score-circle-wrap {
    text-align: center;
    flex-shrink: 0;
}

.score-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}

.score-green {
    background: radial-gradient(circle, #059669 0%, #047857 100%);
    border-color: #10b981;
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.35);
}

.score-yellow {
    background: radial-gradient(circle, #d97706 0%, #b45309 100%);
    border-color: #f59e0b;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.35);
}

.score-red {
    background: radial-gradient(circle, #b91c1c 0%, #991b1b 100%);
    border-color: #ef4444;
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.35);
}

.score-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-top: 0.45rem;
}

.score-headline-wrap {
    flex: 1;
}

.roast-headline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.stats-badge {
    display: flex;
    gap: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stats-badge strong {
    color: var(--flame-amber);
}

.verdict-banner {
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-left: 3px solid var(--flame-primary);
    padding: 1.1rem 1.35rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    line-height: 1.55;
    font-size: 0.95rem;
    color: var(--text-sub);
}

/* ─── CATEGORIES GRID ─────────────────────────────────────────────────────── */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.category-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: var(--radius-pill);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── FEEDBACK GRID ───────────────────────────────────────────────────────── */

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

.feedback-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.strengths-card {
    border-top: 2px solid #10b981;
}

.weaknesses-card {
    border-top: 2px solid #ef4444;
}

.feedback-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.feedback-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.feedback-card li {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-dim);
    padding-left: 1.25rem;
    position: relative;
}

.strengths-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
}

.weaknesses-card li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 800;
}

/* ─── STRATEGIC PROFILE BOOSTERS ──────────────────────────────────────────── */

.boosters-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-left: 4px solid var(--flame-gold);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.boosters-card h3 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--flame-gold);
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.boosters-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.boosters-card li {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-pure);
    padding-left: 1.4rem;
    position: relative;
}

.boosters-card li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--flame-gold);
}

/* ─── DETAILS & PREVIEW BOX ───────────────────────────────────────────────── */

.extracted-text-details {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.extracted-text-details summary {
    cursor: pointer;
    font-weight: 600;
}

.preview-box {
    margin-top: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── AUTHENTICATION GATE & USER PROFILE ───────────────────────────────────── */

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(18, 22, 34, 0.85);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--flame-amber);
}

.user-avatar-placeholder {
    font-size: 0.95rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-pure);
    letter-spacing: -0.01em;
}

.logout-btn {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.3);
    color: #ffffff;
    border-color: #ef4444;
}

.auth-gate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(10, 13, 20, 0.65);
    border: 1px dashed rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-gate-header {
    max-width: 520px;
    margin-bottom: 2rem;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-pure);
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

.auth-subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

.google-auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    min-height: 50px;
}

.google-btn-slot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dev-login-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.dev-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.15), rgba(249, 115, 22, 0.25));
    border: 1px solid rgba(249, 115, 22, 0.5);
    color: var(--text-pure);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 85, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-login-btn:hover {
    background: linear-gradient(135deg, var(--flame-primary), var(--flame-amber));
    box-shadow: 0 6px 28px rgba(255, 85, 0, 0.45);
    transform: translateY(-2px);
    border-color: transparent;
}

.auth-perks-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 600px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

.perk-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
}

.perk-pill .perk-icon {
    font-size: 0.9rem;
}

.nav-signin-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    color: var(--text-pure);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-signin-btn:hover {
    background: rgba(255, 85, 0, 0.15);
    border-color: rgba(255, 85, 0, 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.2);
}

/* ─── HERO BADGE & CTA BUTTONS ────────────────────────────────────────────── */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: #ff5500;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff5500;
    animation: pulse 1.8s infinite;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--flame-primary), var(--flame-amber));
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.85rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(255, 85, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 85, 0, 0.55);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-sub);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ─── SCROLLING FEATURES SECTION (Smart Learn Inspired) ───────────────────── */

.features-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem 6rem;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-top: 0.5rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--flame-amber);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--text-pure);
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.55;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(180deg, rgba(16, 20, 30, 0.85) 0%, rgba(10, 13, 20, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 85, 0, 0.1);
}

.card-glow-line {
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: radial-gradient(ellipse at center, var(--accent-color) 0%, transparent 70%);
    opacity: 0.9;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-emoji {
    font-size: 1.35rem;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */

.app-footer {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 2rem 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: var(--text-sub);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ─── AUTHENTICATION POPUP MODAL ──────────────────────────────────────────── */

.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-modal-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-gate-header {
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.auth-subtitle {
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-dim);
    line-height: 1.6;
}

/* CUSTOM GOOGLE BUTTON */
.custom-google-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
}

.google-theme-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.google-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 115, 22, 0.5); /* Glowing orange border */
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.hidden-gis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.01;
    overflow: hidden;
    z-index: 10;
}

/* FOOTER */
.auth-footer {
    color: #a0aab8;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #fbbc05;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

/* MISSING HERO BUTTON STYLES */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.cta-logged-out {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.cta-logged-in {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-btn-primary {
    background: var(--flame-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}

.hero-btn-primary:hover {
    background: var(--flame-amber);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.6);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}


/* ─── PROFILE SETTINGS PAGE ──────────────────────────────────────────────── */

.profile-settings-page {
    max-width: 580px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-page-header {
    text-align: center;
    margin-bottom: 0.25rem;
}

.profile-page-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.03em;
    margin-bottom: 0.15rem;
}

.profile-page-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.profile-back-link {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.profile-back-link:hover {
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* PROFILE CARD */

.profile-card {
    padding: 1.25rem 1.5rem !important;
}

.profile-card-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

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

.profile-avatar-initial-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--flame-amber), var(--flame-orange));
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.profile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-display-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
    letter-spacing: -0.02em;
    margin: 0;
}

.profile-email {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.profile-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    width: fit-content;
    margin-top: 0.15rem;
}

.profile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
}

/* SIGN OUT BUTTON */

.profile-signout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-signout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* DANGER ZONE */

.danger-zone-card {
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.02) !important;
    padding: 1.25rem 1.5rem !important;
}

.danger-zone-header {
    margin-bottom: 0.65rem;
}

.danger-zone-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
}

.danger-zone-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.danger-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.danger-action-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-pure);
    margin: 0;
}

.danger-warning-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.45;
    margin: 0;
}

.danger-warning-text strong {
    color: #f87171;
}

.danger-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.danger-delete-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}


/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .terminal-card {
        padding: 1.5rem;
    }
    .intensity-tabs {
        grid-template-columns: 1fr;
    }
    .categories-grid,
    .feedback-grid {
        grid-template-columns: 1fr;
    }
    .score-header-card {
        flex-direction: column;
        text-align: center;
    }
    .auth-perks-grid {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-group, .cta-logged-out {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn-primary, .hero-btn-secondary {
        width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .auth-modal-card {
        padding: 2rem 1.25rem;
    }
    .profile-card-top {
        flex-direction: column;
        text-align: center;
    }
    .profile-user-details {
        align-items: center;
    }
    .danger-zone-body {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-settings-page {
        padding: 1rem 0.75rem;
    }
}



