/* ==========================================================================
   GRANTERY — styles.css   
   ========================================================================== */

:root {
    --bg-deep: #061A11; 
    --bg-elevated: #0A2619;
    --bg-darker: #04120B;
    --bg-velvet: #082E1E;

    --gold: #D4B670;
    --gold-warm: #F4E0A3;
    --gold-deep: #A38245;
    --gold-soft: rgba(212, 182, 112, 0.45);
    --gold-faint: rgba(212, 182, 112, 0.18);

    --ivory: #FDF9F1;
    --ivory-soft: rgba(253, 249, 241, 0.85);
    --ivory-muted: rgba(253, 249, 241, 0.60);

    --font-serif: 'Cinzel', 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --fs-hero: clamp(2.8rem, 6.5vw, 5.5rem); 
    --fs-h2: clamp(2rem, 4.5vw, 3.5rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
    --fs-lede: clamp(1.25rem, 2vw, 1.85rem);
    --fs-body: 1.125rem;
    --fs-small: 0.9rem;
    --fs-eyebrow: 0.8125rem;

    --lh-tight: 1.15;
    --lh-normal: 1.6;
    --lh-loose: 1.8;

    --tracking-wide: 0.08em;
    --tracking-wider: 0.15em;
    --tracking-widest: 0.32em;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 9rem;

    --container: 1400px;
    --container-narrow: 800px;
    --header-height: 100px;

    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-lg: 12px;

    --shadow-glow: 0 0 25px rgba(212, 182, 112, 0.25);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--ivory);
    background-color: var(--bg-deep);
    min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-warm); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ==========================================================================
   4. TYPOGRAFI
   ========================================================================== */
h1, h2, h3, h4, .brand-name {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: var(--lh-tight);
}
p { line-height: var(--lh-loose); }

.eyebrow {
    font-family: var(--font-sans);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.section-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-lg);
    width: 100%;
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-height);
    background: linear-gradient(to bottom, rgba(4, 18, 11, 0.7) 0%, transparent 100%);
    border-bottom: 1px solid var(--gold-faint);
    transition: background var(--transition-base), border-color var(--transition-base);
}

.site-header.is-scrolled {
    background: rgba(4, 18, 11, 0.95);
    
    border-bottom-color: var(--gold-soft);
}

.nav {
    max-width: var(--container);
    height: 100%;
    margin-inline: auto;
    padding-inline: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.brand-name {
    font-size: 1.5rem;
    letter-spacing: var(--tracking-wider);
    color: var(--gold-warm);
    margin-right: var(--space-md);
}

.nav-link {
    color: var(--ivory);
    font-size: var(--fs-small);
    font-family: var(--font-serif);
    letter-spacing: var(--tracking-wide);
    position: relative;
}
.nav-link:hover { color: var(--gold); }

/* Center Wrapper for the Broadened / Noticeably Bigger Emblem */
.nav-center-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 3px;
    width: 94px;  /* Noticeably scaled up from 76px */
    height: 94px; /* Noticeably scaled up from 76px */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Premium Outer Frame holding our new graphic stone G */
 .center-emblem {
    width: 94px;
    height: 94px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 182, 112, 0.15);
    cursor: pointer;
    z-index: 2;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

/* Scaling the Vector G Inside and Padding appropriately */
.svg-g-icon {
    width: 200px;
    max-width: none;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Advanced CSS Linear Shimmer Overlay */
.center-emblem::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.0) 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.0) 70%, 
        transparent 100%
    );
    transform: skewX(-30deg);
    pointer-events: none;
    z-index: 3;
}

/* Hover Sweep Animations (Enlarges G and sweeps shine across paths) */
.nav-center-wrapper:hover .center-emblem {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(212, 182, 112, 0.4), inset 0 0 12px rgba(244, 224, 163, 0.15);
    border-color: var(--gold-warm);
}

.nav-center-wrapper:hover .svg-g-icon {
    transform: scale(1.03);
}

.nav-center-wrapper:hover .center-emblem::before {
    animation: waveShimmer 0.85s ease-out forwards;
}

@keyframes waveShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Refined Subtle Particle Zone Metrics */
.dust-container {
    position: absolute;
    inset: -10px;
    pointer-events: none;
    z-index: 1;
}
.dust-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFF 0%, var(--gold-warm) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 6px var(--gold-warm);
}

/* FILLED SILVER BUTTON WITH DARK GREEN TEXT */
.btn-silver-small {
    background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 100%); 
    color: var(--bg-deep); 
    padding: 0.55rem 1.15rem;
    border-radius: 4px;
    font-family: var(--font-serif);
    font-size: var(--fs-small);
    font-weight: 600;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
}
.btn-silver-small:hover { 
    background: #FFFFFF; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.nav-toggle { display: none; }
.nav-links-mobile { display: none; }

/* ==========================================================================
   7. HERO & BACKGROUND (PROPORTIONAL HEIGHT FIX)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-2xl);
    display: flex;
    align-items: center;
    
    background-image: url('../images/granterybackground.webp?v=2'); 
    background-color: var(--bg-deep); 
    
    background-size: auto 100%; 
    background-position: right center; 
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(4, 18, 11, 0.85) 0%, rgba(4, 18, 11, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px; 
    margin-left: 0;
    margin-right: auto;
}

.hero-title {
    font-size: var(--fs-hero); 
    letter-spacing: var(--tracking-wide);
    background: linear-gradient(to bottom, #F4E0A3 0%, #D4B670 60%, #A38245 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-sm);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.1; 
}

.hero-title span {
    display: block;
}

.hero-title .title-sep {
    font-size: 0.55em; 
    margin-block: 0.1em;
    font-family: var(--font-serif);
    text-transform: lowercase;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: var(--fs-lede);
    color: var(--gold-warm);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--ivory-soft);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-xl); }
.hero-footnote { font-size: var(--fs-small); color: var(--ivory-muted); font-family: var(--font-serif); }

/* ==========================================================================
   11. KNAPPAR (ORNATE BUTTONS)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-ornate {
    background-color: #061A11;
    color: var(--gold-warm);
    border: 1px solid var(--gold);
    box-shadow: 0 0 0 2px #061A11 inset, 0 0 0 3px var(--gold-soft) inset, var(--shadow-glow);
}
.btn-ornate:hover {
    box-shadow: 0 0 0 2px #061A11 inset, 0 0 0 3px var(--gold) inset, 0 0 30px rgba(212, 182, 112, 0.5);
    color: #FFF;
}

.btn-outline { background: transparent; color: var(--ivory); border: 1px solid var(--gold-soft); }
.btn-outline:hover { border-color: var(--gold); background: rgba(212, 182, 112, 0.1); }

/* ==========================================================================
   12. RESTORED SECTIONS & FOOTER LAYOUT BLOCKS
   ========================================================================== */
.section { padding: var(--space-3xl) 0; position: relative; }
.section:nth-child(even) { background: var(--bg-elevated); }
.section-title { font-size: var(--fs-h2); color: var(--ivory); margin-bottom: var(--space-lg); max-width: 700px; }
.section-lede { font-family: var(--font-serif); font-size: var(--fs-lede); font-style: italic; color: var(--gold); margin-bottom: var(--space-md); }

.section-body p { color: var(--ivory-soft); margin-bottom: var(--space-md); font-size: 1.0625rem; }
.section-body .emphasis { color: var(--ivory); font-style: italic; font-size: 1.1875rem; border-left: 2px solid var(--gold); padding-left: var(--space-md); margin-top: var(--space-lg); }

.section-grantification .section-inner, .section-membership .section-inner { text-align: center; }
.section-grantification .section-title, .section-grantification .section-body, .section-membership .section-title, .section-membership .section-body { margin-inline: auto; }
.section-membership .section-body .emphasis { border-left: none; border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); padding: var(--space-md); text-align: center; max-width: 560px; margin-inline: auto; margin-top: var(--space-lg); }

/* Pillars Grid Structure */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-top: var(--space-2xl); max-width: var(--container); text-align: left; }
.pillar { padding: var(--space-lg); background: var(--bg-velvet); border: 1px solid var(--gold-faint); border-radius: var(--radius-md); position: relative; transition: border-color var(--transition-base), transform var(--transition-base); }
.pillar:hover { border-color: var(--gold-soft); transform: translateY(-4px); }
.pillar-title { font-family: var(--font-serif); font-size: var(--fs-h3); color: var(--gold); margin-bottom: var(--space-sm); letter-spacing: var(--tracking-wide); }

/* Footer Elements */
.site-footer { background: var(--bg-darker); padding: var(--space-xl) 0; border-top: 1px solid var(--gold-faint); text-align: center; }
.footer-tagline { font-family: var(--font-serif); font-style: italic; color: var(--gold); margin-bottom: var(--space-sm); }
.footer-meta { color: var(--ivory-muted); font-size: var(--fs-small); }

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================= */
@media (max-width: 960px) {
    .nav-group, .nav-center-wrapper { display: none; }
    .site-header .nav-toggle { opacity: 1 !important; pointer-events: auto !important; }

    .nav-toggle { 
        display: flex; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; color: var(--gold); 
    }
    .nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform var(--transition-base), opacity var(--transition-base); }
    
    .nav-links-mobile {
        position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--bg-darker);
        display: flex; flex-direction: column; text-align: center; border-bottom: 1px solid var(--gold-soft);
        transform: translateY(-150%); transition: transform var(--transition-base); z-index: 99;
    }
    .nav-links-mobile.is-open { transform: translateY(0); }
    .nav-links-mobile a { display: block; padding: var(--space-md); color: var(--ivory); font-family: var(--font-serif); border-bottom: 1px solid var(--gold-faint); }
    
    .hero { background-position: 75% center; padding-inline: var(--space-lg); }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 3.2rem; }
    .pillars { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ==========================================================================
   AUTHENTICATION & LOGIN STYLING (ADDITION)
   ========================================================================== */
.auth-page {
    background-color: var(--bg-deep);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.auth-card {
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-darker) 100%);
    border: 1px solid var(--gold-faint);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: var(--space-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.auth-card:hover {
    border-color: rgba(212, 182, 112, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

/* Tab View Switcher */
.auth-toggle-container {
    display: flex;
    background-color: var(--bg-darker);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(212, 182, 112, 0.1);
}

.auth-toggle-btn {
    flex: 1;
    padding: 0.75rem var(--space-sm);
    font-family: var(--font-serif);
    font-size: var(--fs-small);
    letter-spacing: var(--tracking-wide);
    color: var(--ivory-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.auth-toggle-btn.active {
    background-color: var(--bg-velvet);
    color: var(--gold-warm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Interactive Floating Input System */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 1.25rem 1rem 0.5rem;
    background-color: var(--bg-darker);
    border: 1px solid var(--gold-faint);
    border-radius: var(--radius-md);
    color: var(--ivory);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 182, 112, 0.2);
}

/* Label Placement & Float Physics */
.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ivory-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Magic formula for float state trigger based on HTML placeholder technique */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--gold-warm);
    letter-spacing: var(--tracking-wide);
}

/* Dynamic Field Transitions (Sign In vs Register window shift) */
.dynamic-field {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease,
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 0;
}

.dynamic-field.visible {
    max-height: 80px; /* Accommodates the input slot height nicely */
    opacity: 1;
    transform: translateY(0);
    margin-bottom: var(--space-xs);
}

.form-actions {
    margin-top: var(--space-sm);
    display: flex;
    flex-direction: column;
}

.form-actions .btn {
    width: 100%;
}

/* ==========================================================================
   SANCTUARY DASHBOARD WORKSPACE ARCHITECTURE (OPTIMIZED)
   ========================================================================== */
.dashboard-workspace {
    background-color: var(--bg-deep);
    color: var(--ivory);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* Offsets layout below your premium sticky header */
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.workspace-wrapper {
    width: 100%;
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Header Alignment */
.dashboard-header-zone {
    text-align: center;
    margin-bottom: var(--space-xs);
}

.dashboard-greeting {
    font-family: var(--font-serif);
    font-size: calc(var(--fs-h2) * 0.9);
    color: var(--gold-warm);
    letter-spacing: var(--tracking-wide);
}

/* Twin-Column Layout Engine */
.workspace-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Premium Dashboard Card Base Styling */
.dashboard-card {
    background-color: var(--bg-elevated);
    border: 1px solid rgba(212, 182, 112, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-eyebrow {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--gold-warm);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

.card-mini-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--ivory);
    margin-bottom: var(--space-sm);
}

/* Textarea Input Window styling */
.mini-textarea-wrapper textarea {
    width: 100%;
    height: 90px;
    background-color: var(--bg-darker);
    border: 1px solid var(--gold-faint);
    border-radius: var(--radius-sm);
    color: var(--ivory);
    padding: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.mini-textarea-wrapper textarea:focus {
    border-color: var(--gold);
    background-color: var(--bg-elevated);
}

.tag-selector-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: var(--space-sm) 0 var(--space-lg);
}

.pill-tag.passive {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    background-color: rgba(212, 182, 112, 0.04);
    border: 1px solid rgba(212, 182, 112, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    color: var(--ivory-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pill-tag.passive:hover {
    color: var(--gold-warm);
    border-color: var(--gold);
    background-color: rgba(212, 182, 112, 0.08);
}

/* Video Frame Mock styling */
.video-mock-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-darker);
    border: 1px solid rgba(212, 182, 112, 0.12);
    border-radius: var(--radius-md);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.video-mock-frame:hover .video-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.play-icon {
    font-size: 1.75rem;
    color: var(--gold-warm);
    transition: transform var(--transition-base);
}

.video-mock-frame:hover .play-icon {
    transform: scale(1.1);
}

.media-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--ivory);
    line-height: 1.4;
    margin-bottom: var(--space-xs);
}

/* Bandwidth Quality Controller Layer */
.bandwidth-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.quality-badge {
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
}

.quality-selector-switches {
    display: flex;
    gap: 4px;
}

.q-btn {
    background-color: var(--bg-darker);
    border: 1px solid var(--gold-faint);
    color: var(--ivory-muted);
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.q-btn:hover {
    color: var(--gold-warm);
    border-color: var(--gold);
}

.q-btn.active {
    background-color: var(--gold-warm);
    color: var(--bg-deep);
    border-color: var(--gold-warm);
    font-weight: 600;
}

/* Sanitized Metric Layout - Adblocker Safe */
.alignment-stats {
    background: var(--bg-elevated);
    border: 1px solid var(--gold-faint);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.status-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--ivory-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-warm);
}

/* Fidelity and Atmosphere Structural Overlays */
.fidelity-panel, .atmosphere-panel {
    background: var(--bg-elevated);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.fidelity-options, .atmosphere-options {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

/* Right-Column Feed Components */
.workspace-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feed-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 182, 112, 0.15);
    padding-bottom: var(--space-sm);
}

.feed-section-title {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    color: var(--ivory);
    letter-spacing: var(--tracking-wide);
}

.feed-filters {
    display: flex;
    gap: var(--space-lg);
}

.filter-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--ivory-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: calc(var(--space-sm) + 2px);
    top: 1px;
}

.filter-link:hover {
    color: var(--gold-warm);
}

.filter-link.active {
    color: var(--gold-warm);
    font-weight: 600;
}

.filter-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold-warm);
}

/* User Thought Cards Custom Extensions */
.author-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.badge-emblem-gold, 
.badge-emblem-silver {
    font-size: 0.7rem;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-emblem-gold {
    background-color: rgba(212, 182, 112, 0.1);
    color: var(--gold-warm);
    border: 1px solid rgba(212, 182, 112, 0.25);
}

.badge-emblem-silver {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--ivory-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fluid Responsive Breakpoint Scale */
@media (max-width: 960px) {
    .workspace-container {
        grid-template-columns: 1fr;
    }
    .workspace-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-md);
    }
    .dashboard-card {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .workspace-sidebar {
        grid-template-columns: 1fr;
    }
    .feed-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    .filter-link {
        padding-bottom: var(--space-xs);
    }
}

/* ==========================================================================
   PATH B — BANDWIDTH NOTIFICATION SLIDER STYLES
   ========================================================================== */
.sanctuary-toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background-color: var(--bg-elevated);
    border: 1px solid var(--gold-faint);
    color: var(--ivory);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    
    /* Starts hidden and pulled down slightly */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Lights up and glides up smoothly when triggered */
.sanctuary-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-highlight {
    color: var(--gold-warm);
    font-weight: 600;
}

/* ==========================================================================
   PATH C — ATMOSPHERE THEME CONTROL ENGINE STYLES
   ========================================================================== */
.atmo-btn {
    flex: 1;
    background-color: var(--bg-darker);
    border: 1px solid var(--gold-faint);
    color: var(--ivory-muted);
    font-size: 0.7rem;
    font-family: var(--font-sans);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atmo-btn:hover {
    color: var(--gold-warm);
    border-color: var(--gold);
}

.atmo-btn.active {
    background-color: transparent;
    color: var(--gold-warm);
    border-color: var(--gold-warm);
    box-shadow: 0 0 8px rgba(212, 182, 112, 0.15);
}

/* --- THEME VARIATION OVERRIDES --- */

/* 1. MINIMAL MODE: Strips away the heavy background texture and limits golds for raw clarity */
body.atmosphere-minimal {
    --bg-deep: #0b0c0d;
    --bg-elevated: #121417;
    --bg-darker: #070809;
    --gold-warm: #e5e5e5; /* Shifts golds to a sharp, modern white/silver */
    --gold: #cccccc;
    --gold-faint: rgba(255, 255, 255, 0.08);
}
body.atmosphere-minimal .dashboard-card {
    border-radius: 0px; /* Monolithic sharp corners */
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

/* 2. ANCIENT MODE: Deeply saturated historic parchment, forest, and heavy gold tones */
body.atmosphere-ancient {
    --bg-deep: #050a07; /* Darker moss undertone */
    --bg-elevated: #0d1410;
    --bg-darker: #020403;
    --gold-warm: #ffd276; /* Richer, heavier royal gold brightness */
    --gold: #e2b353;
    --gold-faint: rgba(255, 210, 118, 0.12);
}
body.atmosphere-ancient .dashboard-card {
    border: 1px solid rgba(255, 210, 118, 0.15);
    background: linear-gradient(145deg, rgba(13,20,16,0.9), rgba(5,10,7,0.9));
}
body.atmosphere-ancient .dashboard-greeting {
    font-style: italic;
    text-shadow: 0 2px 10px rgba(255, 210, 118, 0.1);
}

/* ==========================================================================
   PATH C EXTRA — CINEMATIC ENTRY ENGINE (REPAIR PIECE)
   ========================================================================== */

/* 1. Invisible starting states */
.dashboard-greeting,
.workspace-sidebar,
.workspace-feed,
.feed-inner,
.garden-inner {
    opacity: 0;
    transform: translateY(18px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

body.loaded .dashboard-greeting {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 40ms;
}

body.loaded .workspace-sidebar {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 120ms;
}

body.loaded .workspace-feed {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 180ms;
}

body.loaded .feed-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 60ms;
}

body.loaded .garden-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 60ms;
}

/* ==========================================================================
   GRANTERY SETTINGS CARD & TOGGLES (COMBINED)
   ========================================================================== */

/* Base Card Container */
.sanctuary-settings-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    color: var(--ivory);
    font-family: var(--font-sans);
    max-width: 100%;
    margin-bottom: var(--space-lg);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.settings-title {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.25rem;
    margin: 0 0 4px 0;
    letter-spacing: var(--tracking-wide);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.settings-subtitle {
    font-size: var(--fs-small);
    color: var(--ivory-muted);
    margin: 0 0 var(--space-md) 0;
}

.settings-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
    margin: 20px 0;
}

/* Button Selectors (Tiers & Quality) */
.intensity-tier-selector, .quality-selector {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 6px;
    margin-top: 8px;
}

.tier-btn, .quality-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tier-btn.active, .quality-btn.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.1);
}

/* Premium Sliding Toggles Architecture */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-row:last-child {
    margin-bottom: 0;
}

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

.toggle-title {
    font-size: 0.95rem;
    color: var(--ivory);
}

.toggle-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* The Switch Track */
.sanctuary-toggle {
    position: relative;
    width: 46px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
}

/* The Switch Handle */
.sanctuary-toggle .toggle-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active State (ON) - Default/Regular Premium */
.sanctuary-toggle.is-on {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.sanctuary-toggle.is-on .toggle-handle {
    transform: translateX(22px);
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   DYNAMIC ATMOSPHERE THEME OVERRIDES
   ========================================================================== */

/* 1. MINIMAL TIER OVERRIDES */
.atmosphere-minimal .sanctuary-settings-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: #0d0d0d;
    box-shadow: none;
}

.atmosphere-minimal .settings-title {
    color: var(--ivory);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.atmosphere-minimal .sanctuary-toggle.is-on {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.atmosphere-minimal .sanctuary-toggle.is-on .toggle-handle {
    background: var(--ivory);
    box-shadow: none;
}

/* 2. ANCIENT TIER OVERRIDES */
.atmosphere-ancient .sanctuary-settings-card {
    background: radial-gradient(circle at top left, rgba(20, 16, 10, 0.9), var(--bg-elevated));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.atmosphere-ancient .settings-title {
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.3);
}

.atmosphere-ancient .sanctuary-toggle.is-on {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.atmosphere-ancient .tier-btn, 
.atmosphere-ancient .quality-btn {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

/* ==========================================================================
   GRANTERY SETTINGS CARD & TOGGLES (COMPLETED)
   ========================================================================== */

/* Settings Rows */
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-label {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ivory);
}


/* Settings Window Modal Styles */
.settings-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 18, 11, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-window {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--gold-warm);
}

/* ==========================================================================
POST MODAL
========================================================================== */
.post-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 11, 0.88);
    backdrop-filter: blur(8px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.post-modal-backdrop.active {
    display: flex;
}

.post-modal-window {
    width: 85vw;
    max-height: 88vh;
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-darker) 100%);
    border: 1px solid var(--gold-faint);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.post-modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    color: var(--gold);
    font-size: 1.8rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.post-modal-close:hover { color: var(--gold-warm); }

.post-modal-content {
    color: var(--ivory);
    font-family: var(--font-sans);
    padding-top: var(--space-sm);
}

/* Actions Row */
.post-modal-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gold-faint);
}

.blessing-btn, .repost-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.blessing-btn:hover, .repost-btn:hover {
    border-color: var(--gold);
    color: var(--ivory);
}

.blessing-icon, .repost-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

/* Blessed active state */
.blessing-btn.is-blessed .blessing-icon {
    filter: drop-shadow(0 0 8px rgba(91, 174, 245, 0.9));
    box-shadow: 0 0 0 3px #5BAEF5 inset;
    border-radius: 50%;
}

/* Reposted active state */
.repost-btn.is-reposted .repost-icon {
    filter: drop-shadow(0 0 8px rgba(200, 210, 220, 0.9));
    box-shadow: 0 0 0 3px #b0bec5 inset;
    border-radius: 50%;
}

/* Comment Zone */
.post-modal-comment-zone {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    border-top: 1px solid var(--gold-faint);
    padding-top: var(--space-sm);
}

.post-modal-comment-input {
    width: 100%;
    height: 90px;
    background: var(--bg-darker);
    border: 1px solid var(--gold-faint);
    border-radius: var(--radius-sm);
    color: var(--ivory);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: var(--space-sm);
    resize: none;
    outline: none;
    transition: border-color var(--transition-fast);
}

.post-modal-comment-input:focus {
    border-color: var(--gold);
}

.post-modal-comment-submit {
    align-self: flex-end;
    padding: 0.5rem 1.5rem;
    background: none;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--gold-warm);
    font-family: var(--font-serif);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.post-modal-comment-submit:hover {
    background: rgba(212, 182, 112, 0.1);
}

/* Crystal particles */
.blessing-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 6000;
}

.crystal-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff 0%, #5BAEF5 60%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.modal-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-category-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: var(--tracking-widest);
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.modal-author-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gold-faint);
}

/* =============================================
   SANCTUARY SIDEBAR
   ============================================= */

.sanctuary-stripe {
    position: fixed;
    left: 0;
    top: 20%;
    height: 60%;
    width: 6px;
    background: linear-gradient(to bottom, #c9a84c, #e8c96d, #c9a84c);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    z-index: 9999;
    transition: width 0.2s ease;
}

.sanctuary-stripe:hover {
    width: 9px;
}

.sanctuary-sidebar {
    position: fixed;
    left: 0;
    top: 20%;
    height: 60%;
    width: 0;
    overflow-y: auto;
    background: #13110d;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-left: none;
    border-radius: 0 14px 14px 0;
    z-index: 9998;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sanctuary-sidebar.open {
    width: 15vw;
    min-width: 180px;
}

.sanctuary-sidebar-header {
    padding: 16px 14px 12px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    flex-shrink: 0;
}

.sanctuary-sidebar-logo {
    font-family: var(--font-serif);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 0.18em;
    white-space: nowrap;
}

.sanctuary-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--ivory-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.sanctuary-sidebar-item:hover {
    background: rgba(201, 168, 76, 0.07);
    color: var(--gold-warm);
}

.sanctuary-sidebar-item .sb-icon {
    font-size: 15px;
    color: var(--gold);
    width: 16px;
    flex-shrink: 0;
}

.sanctuary-sidebar-item .sb-badge {
    margin-left: auto;
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 20px;
    flex-shrink: 0;
}

.sanctuary-sidebar-divider {
    height: 1px;
    background: rgba(201, 168, 76, 0.08);
    margin: 4px 0;
    flex-shrink: 0;
}

.sanctuary-sidebar-item.sb-soon {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.sanctuary-sidebar-item.sb-soon::after {
    content: 'soon';
    margin-left: auto;
    font-size: 9px;
    color: var(--gold);
    letter-spacing: 0.06em;
}

/* =============================================
   ALIGN WITH
   ============================================= */

.align-btn {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: var(--tracking-wide);
    color: var(--gold);
    border: 1px solid var(--gold-faint);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    white-space: nowrap;
}

.align-btn:hover {
    background: rgba(212, 182, 112, 0.08);
    border-color: var(--gold);
}

.align-btn.aligned {
    background: rgba(212, 182, 112, 0.12);
    border-color: var(--gold-warm);
    color: var(--gold-warm);
}

/* =============================================
   ALIGNMENTS ACCORDION (SIDEBAR)
   ============================================= */

.sidebar-accordion {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-accordion.open {
    max-height: 400px;
}

.sidebar-accordion-toggle-row {
    display: flex;
    gap: 6px;
    padding: 10px 14px 6px;
}

.sidebar-accordion-toggle-btn {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-faint);
    color: var(--ivory-muted);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.sidebar-accordion-toggle-btn.active {
    border-color: var(--gold);
    color: var(--gold-warm);
    background: rgba(212, 182, 112, 0.08);
}

.sidebar-accordion-list {
    padding: 4px 0 10px;
    overflow-y: auto;
    max-height: 280px;
}

.sidebar-accordion-list::-webkit-scrollbar { width: 3px; }
.sidebar-accordion-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-accordion-list::-webkit-scrollbar-thumb { background: var(--gold-faint); border-radius: 2px; }

.sidebar-accordion-name {
    padding: 7px 14px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--ivory-muted);
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-accordion-name:hover {
    background: rgba(212, 182, 112, 0.05);
}

.sidebar-accordion-name.mutual {
    color: var(--gold-warm);
    font-weight: 500;
}

.sidebar-accordion-empty {
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--ivory-muted);
    opacity: 0.5;
}

/* =============================================
   ALIGNMENTS CARD (DASHBOARD ONLY)
   ============================================= */

.alignments-card {
    background: var(--bg-elevated);
    border: 1px solid var(--gold-faint);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.alignments-card-title {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--gold-warm);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-sm);
}

.alignments-card-toggle-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.alignments-card-toggle-btn {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-faint);
    color: var(--ivory-muted);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.03em;
}

.alignments-card-toggle-btn.active {
    border-color: var(--gold);
    color: var(--gold-warm);
    background: rgba(212, 182, 112, 0.08);
}

.alignments-card-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 160px;
    overflow-y: auto;
}

.alignments-card-list::-webkit-scrollbar { width: 3px; }
.alignments-card-list::-webkit-scrollbar-track { background: transparent; }
.alignments-card-list::-webkit-scrollbar-thumb { background: var(--gold-faint); border-radius: 2px; }

.alignments-card-name {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--ivory-muted);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.alignments-card-name:hover {
    background: rgba(212, 182, 112, 0.05);
}

.alignments-card-name.mutual {
    color: var(--gold-warm);
    font-weight: 500;
}

.alignments-card-empty {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--ivory-muted);
    opacity: 0.5;
    padding: 6px 8px;
}