/* ==========================================================================
   SQript - Minimalist Cosmic Astral Components System
   Dual Symbol Cores, Sacred Geometry, Modern Glassmorphism & Cyber Aesthetics
   ========================================================================== */

/* ==========================================================================
   1. HERO STAGE & ASTRAL RESONANCE CORE
   ========================================================================== */
.cosmic-hero-stage {
    position: relative;
    min-height: 480px;
    background: radial-gradient(circle at center, rgba(30, 27, 75, 0.6) 0%, rgba(10, 10, 22, 0.85) 70%, transparent 100%);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.hero-cosmic-bg-runes {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle, rgba(139, 92, 246, 0.06) 2px, transparent 2px);
    background-size: 40px 40px, 80px 80px;
    opacity: 0.7;
    pointer-events: none;
}

/* Central Resonance Core Orbital System */
.hero-resonance-core-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-resonance-core-container:hover {
    transform: scale(1.04);
}

.cosmic-orbital-system {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.orbit-ring.ring-1 {
    width: 210px;
    height: 210px;
    border-color: rgba(56, 189, 248, 0.35);
    animation: rotateOrbit 16s linear infinite;
}

.orbit-ring.ring-2 {
    width: 170px;
    height: 170px;
    border-color: rgba(168, 85, 247, 0.4);
    border-style: dotted;
    border-width: 2px;
    animation: rotateOrbitReverse 12s linear infinite;
}

.orbit-ring.ring-3 {
    width: 130px;
    height: 130px;
    border-color: rgba(255, 255, 255, 0.3);
    animation: rotateOrbit 8s linear infinite;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateOrbitReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.resonance-core-sphere {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 0%, #38BDF8 50%, #1E1B4B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 5;
    animation: corePulse 3s ease-in-out infinite alternate;
}

@keyframes corePulse {
    0% { transform: scale(0.96); }
    100% { transform: scale(1.05); }
}

.core-glyph-display {
    font-size: 2.8rem;
    font-weight: 900;
    color: #0F172A;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    user-select: none;
    line-height: 1;
}

.hero-speech-bubble-floating {
    margin-top: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--theme-border);
    backdrop-filter: var(--glass-blur);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 480px;
    animation: floatBubble 4s ease-in-out infinite;
}

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

/* Floating Widgets on Hero */
.hero-widget-card-left {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 320px;
    box-shadow: var(--shadow-soft);
    z-index: 20;
}

.widget-avatar-box {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--theme-border);
    flex-shrink: 0;
}

.widget-symbol-box {
    font-size: 1.6rem;
    color: var(--accent-gold);
}

.widget-key-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #000;
    color: #FFF;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-dropdown-capsule-card {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    box-shadow: var(--shadow-soft);
    z-index: 25;
    min-width: 200px;
}

.dropdown-header-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown-list-items {
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
}

.dropdown-list-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.hero-persona-switch-capsule {
    position: absolute;
    bottom: 2rem;
    left: 2.5rem;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--theme-border);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 20;
    transition: all 0.25s ease;
}

.hero-persona-switch-capsule:hover {
    background: var(--theme-primary);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-cosmic);
}

.hero-floating-nav-capsule {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--theme-border);
    backdrop-filter: var(--glass-blur);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-soft);
    z-index: 20;
}

.floating-nav-pill-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.floating-nav-pill-item:hover, .floating-nav-pill-item.active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

/* ==========================================================================
   2. DUAL SYMBOL SELECTOR CARDS
   ========================================================================== */
.symbol-core-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.symbol-card {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.symbol-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
}

.symbol-card-white::before {
    background: radial-gradient(circle, #FFFFFF, transparent 70%);
}

.symbol-card-dark::before {
    background: radial-gradient(circle, #A855F7, transparent 70%);
}

.symbol-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cosmic);
}

.symbol-card.equipped {
    border-color: #38BDF8 !important;
    background: rgba(30, 27, 75, 0.5);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

.symbol-card-dark.equipped {
    border-color: #A855F7 !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.symbol-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.symbol-large-glyph {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.symbol-card-white .symbol-large-glyph {
    color: #FFF;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.symbol-card-dark .symbol-large-glyph {
    color: #C084FC;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

.btn-equip-core {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-equipped {
    background: rgba(56, 189, 248, 0.18);
    color: #38BDF8;
    border: 1px solid #38BDF8;
    cursor: default;
}

.assistant-content-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1.5rem;
    align-items: start;
}

/* Profile Card Styling */
#activeAssistantProfileCard {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.asst-profile-header-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(56, 189, 248, 0.1) 100%);
    padding: 1.5rem 1.25rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.asst-profile-symbol-orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    flex-shrink: 0;
}

/* ==========================================================================
   3. CHATBOT UI
   ========================================================================== */
.aira-chat-container {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-cosmic);
    min-height: 520px;
}

.aira-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(56, 189, 248, 0.08) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aira-header-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-symbol-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.aira-chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 280px;
    max-height: 340px;
    background: rgba(0, 0, 0, 0.15);
}

.chat-bubble {
    max-width: 82%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    line-height: 1.55;
    position: relative;
    animation: bubblePop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.chat-timestamp {
    font-size: 0.65rem;
    opacity: 0.45;
    margin-top: 0.3rem;
    font-family: var(--font-mono);
}

.bubble-aira {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(196, 181, 253, 0.3);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
    color: var(--text-primary);
    align-self: flex-start;
}

.bubble-user {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
    color: var(--text-primary);
    align-self: flex-end;
}

.chat-quick-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.chip-btn {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    color: #c4b5fd;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #FFF;
}

.aira-chat-input-row {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.chat-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    padding: 0.65rem 1.1rem;
    outline: none;
    transition: all 0.25s ease;
}

.chat-input-field:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

/* ==========================================================================
   4. TODAY'S FATE TAROT
   ========================================================================== */
.fate-tarot-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.tarot-card-wrapper {
    perspective: 1000px;
    width: 260px;
    height: 380px;
    cursor: pointer;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.tarot-card-inner.revealed {
    transform: rotateY(180deg);
}

.tarot-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.2);
}

.tarot-back {
    background: radial-gradient(circle at center, #1e1b4b 0%, #0b0e1b 100%);
}

.tarot-back-mandala {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandala-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    animation: rotateOrbit 12s linear infinite;
}

.mandala-symbol {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.tarot-front {
    background: radial-gradient(circle at top, #1e1b4b 0%, #080a14 100%);
    transform: rotateY(180deg);
}

.tarot-numeral {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.tarot-symbol-glyph {
    font-size: 3rem;
    margin: 0.5rem 0;
    color: #FFF;
    text-shadow: 0 0 20px var(--accent-gold);
}

.tarot-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.tarot-buff-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.tarot-quote {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.tarot-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   5. SEASON PASS (CONSTELLATION)
   ========================================================================== */
.season-pass-header-card {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.season-tiers-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.season-tier-card {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.season-tier-card.reached {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.season-tier-card.claimed {
    opacity: 0.7;
    border-color: var(--accent-emerald);
}

/* ==========================================================================
   6. COSMIC SHOP
   ========================================================================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}

.shop-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

.shop-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.shop-item-card.active-equipped {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   7. LEADERBOARD TABLE
   ========================================================================== */
.leaderboard-table-container {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.86rem;
}

.leaderboard-avatar-glyph {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-gold);
}

/* ==========================================================================
   8. GLYPH PRESET SELECTOR & PROFILE BADGES
   ========================================================================== */
.glyph-preset-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.glyph-preset-btn:hover, .glyph-preset-btn.active {
    background: var(--theme-primary);
    border-color: #FFF;
    box-shadow: 0 0 15px var(--theme-glow);
    transform: scale(1.1);
}

.profile-symbol-glyph-box {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #FFF;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.header-avatar-glyph-badge {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFF;
}

.dock-symbol-glyph {
    font-size: 1.2rem;
    color: var(--accent-gold);
}

/* ==========================================================================
   9. AUDIO TOGGLE PILL
   ========================================================================== */
.audio-toggle-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.22s ease;
}

.audio-toggle-pill:hover {
    background: rgba(255, 255, 255, 0.15);
}

.audio-toggle-pill.muted {
    opacity: 0.5;
}

.audio-wave-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 14px;
}

.wave-bar {
    width: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: wavePulse 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 14px; animation-delay: 0.4s; }

.audio-toggle-pill.muted .wave-bar {
    animation: none;
    height: 3px;
    background: var(--text-muted);
}

@keyframes wavePulse {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

/* ==========================================================================
   10. QUESTS & MODALS
   ========================================================================== */
.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.quest-card {
    background: var(--bg-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

.quest-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.quest-tier-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
}

.tier-s { background: rgba(236, 72, 153, 0.2); color: #F472B6; border: 1px solid #EC4899; }
.tier-a { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid #F59E0B; }
.tier-b { background: rgba(139, 92, 246, 0.2); color: #A78BFA; border: 1px solid #8B5CF6; }
.tier-c { background: rgba(56, 189, 248, 0.2); color: #38BDF8; border: 1px solid #38BDF8; }
.tier-d { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid #10B981; }
.tier-e { background: rgba(148, 163, 184, 0.2); color: #94A3B8; border: 1px solid #64748B; }

.quest-icon-frame {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.quest-card h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.quest-tagline {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.quest-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.quest-reward-strip {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0.85rem 0 0.4rem 0;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reward-exp { color: var(--accent-cyan); }
.reward-points { color: var(--accent-gold); }

.btn-quest-action {
    width: 100%;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-select-main {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-select-main:hover {
    background: var(--theme-primary);
    border-color: #FFF;
}

.btn-camera-trigger {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #FFF;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-give-up {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    text-align: center;
}

.btn-give-up:hover {
    color: #EF4444;
}

.section-title-editorial {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.title-with-jp .jp-subtitle {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    font-weight: 700;
    display: block;
}

.title-with-jp h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-top: 0.15rem;
}

.quest-category-divider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem 0;
}

.quest-category-divider h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

/* ==========================================================================
   LOCKED SIDEQUEST BANNER
   ========================================================================== */
.locked-sidequest-banner {
    background: radial-gradient(circle at left, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px dashed rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.locked-banner-icon {
    font-size: 2.8rem;
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.locked-banner-content {
    flex: 1;
}

.locked-banner-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 0.35rem;
}

.locked-banner-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.85rem;
}

.locked-progress-container {
    max-width: 450px;
}

.locked-progress-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-top: 0.4rem;
}

/* ==========================================================================
   AVATAR FRAMES & AURA EFFECTS
   ========================================================================== */
.frame-classic, .frame_classic {
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

.frame-royalty, .frame_astral_gold {
    border: 2px solid #F59E0B !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), inset 0 0 10px rgba(245, 158, 11, 0.4) !important;
    animation: goldAuraPulse 3s ease-in-out infinite alternate;
}

@keyframes goldAuraPulse {
    0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4), inset 0 0 8px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.8), inset 0 0 15px rgba(245, 158, 11, 0.6); }
}

.frame-cyber, .frame_cyber {
    border: 2px solid #38BDF8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.7), inset 0 0 10px rgba(56, 189, 248, 0.5) !important;
}

.frame-sakura, .frame_sakura {
    border: 2px solid #EC4899 !important;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6), inset 0 0 10px rgba(236, 72, 153, 0.3) !important;
}

.frame-glitch, .frame_glitch {
    border: 2px solid #8B5CF6 !important;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.8), inset 0 0 10px rgba(139, 92, 246, 0.4) !important;
    animation: glitchVectorGlow 2s steps(2, start) infinite alternate;
}

@keyframes glitchVectorGlow {
    0% { transform: scale(1); filter: hue-rotate(0deg); }
    50% { transform: scale(1.02); filter: hue-rotate(45deg); }
    100% { transform: scale(0.99); filter: hue-rotate(-30deg); }
}

.frame-hologram, .frame_hologram {
    border: 2px solid transparent !important;
    background-image: linear-gradient(var(--bg-surface), var(--bg-surface)), linear-gradient(135deg, #38bdf8, #8b5cf6, #ec4899, #f59e0b) !important;
    background-origin: border-box !important;
    background-clip: content-box, border-box !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 15px rgba(56, 189, 248, 0.5) !important;
    animation: rainbowSpin 6s linear infinite;
}

@keyframes rainbowSpin {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ==========================================================================
   SHOP BOOSTER CARDS
   ========================================================================== */
.shop-booster-card {
    background: var(--bg-surface);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

.shop-booster-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.booster-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

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

.cosmic-modal-dialog {
    background: #0f1423;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    max-width: 580px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-cosmic);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

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

.btn-primary-neon {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #FFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.btn-primary-neon:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-glass:hover, .btn-secondary-glass.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: #FFF;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 99999;
    pointer-events: none;
}

.toast-notification {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-cyan);
    color: #FFF;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(56, 189, 248, 0.3);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .app-container { padding-left: 1rem; padding-right: 1rem; }
    .left-capsule-dock { display: none; }
    .symbol-core-selector-grid { grid-template-columns: 1fr; }
    .assistant-content-split { grid-template-columns: 1fr; }
    .hero-widget-card-left, .hero-dropdown-capsule-card, .hero-persona-switch-capsule { display: none; }
}
