/* ==========================================================================
   TURACG — AAA CLIENT THEME & USER INTERFACE SYSTEM
   High-Fidelity Trading Card Game Experience
   ========================================================================== */

/* Design Tokens & CSS Custom Properties */
:root {
    --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
    --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Space Mono', 'SF Mono', Menlo, Consolas, monospace;

    /* Theme Palette: Deep Cosmic Obsidian & Radiant Mythic Glows */
    --bg-void: #02050e;
    --bg-surface-dark: #070d1d;
    --bg-surface-card: #0c152d;
    --bg-surface-elevated: #111e3f;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.18);
    --border-gold: rgba(245, 158, 11, 0.45);

    /* Rarity Core Accents */
    --color-common: #94a3b8;
    --color-uncommon: #10b981;
    --color-rare: #38bdf8;
    --color-very-rare: #c084fc;
    --color-legendary: #f59e0b;

    /* Lighting & Glare */
    --glow-cyan: rgba(56, 189, 248, 0.35);
    --glow-gold: rgba(245, 158, 11, 0.45);
    --glow-magenta: rgba(232, 121, 249, 0.4);
}

/* Reset & Global Canvas Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-void);
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Celestial Background Lighting */
.ambient-stars-bg {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 120px 180px, rgba(56, 189, 248, 0.6), transparent),
        radial-gradient(1px 1px at 240px 90px, rgba(254, 240, 138, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 340px 280px, rgba(192, 132, 252, 0.6), transparent),
        radial-gradient(1px 1px at 480px 140px, rgba(255, 255, 255, 0.4), transparent);
    background-size: 550px 550px;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

.ambient-nebula-glow {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle 800px at 15% 10%, rgba(30, 27, 75, 0.5) 0%, transparent 70%),
        radial-gradient(circle 700px at 85% 15%, rgba(12, 45, 92, 0.45) 0%, transparent 65%),
        radial-gradient(circle 900px at 50% 90%, rgba(15, 23, 42, 0.9) 0%, transparent 75%),
        radial-gradient(circle 600px at 50% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* AAA Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   NAVIGATION BAR / GAME CLIENT TOP HUD
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 8, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Brand Gem & Title */
.brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.brand-gem {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 14px rgba(245, 158, 11, 0.65),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border: 1px solid #fef08a;
}
.brand-wrap:hover .brand-gem {
    transform: rotate(225deg) scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.9), inset 0 1px 3px #ffffff;
}
.brand-gem span {
    transform: rotate(-45deg);
    font-size: 13px;
    color: #451a03;
    font-weight: 900;
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.season-nav-pill {
    background: rgba(245, 158, 11, 0.15);
    color: #fef08a;
    border: 1px solid rgba(251, 191, 36, 0.4);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 5px;
    line-height: 1;
}

/* Nav Tabs Group */
.nav-tabs-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(10, 18, 38, 0.85);
    padding: 3px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.nav-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    user-select: none;
    white-space: nowrap;
}
.nav-tab:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.nav-tab.active {
    color: #ffffff;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    box-shadow: 0 0 8px #38bdf8;
    border-radius: 2px;
}

.tab-icon {
    font-size: 14px;
    line-height: 1;
}

.nav-hotkey-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #64748b;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1;
}
.nav-tab.active .nav-hotkey-badge {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.12);
}

.nav-pack-bubble {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.65);
    border: 1px solid #fef08a;
    animation: pack-orb-glow 2.5s ease-in-out infinite alternate;
    line-height: 1.2;
}
.nav-pack-bubble.trade-badge {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: #7dd3fc;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.65);
}
@keyframes pack-orb-glow {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
    100% { transform: scale(1.08); box-shadow: 0 0 16px rgba(245, 158, 11, 0.85); }
}

/* Header Actions & Currency Displays */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-v-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 2px;
}

.header-credits-badge, .header-packs-badge {
    background: rgba(10, 18, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 4px 10px;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    user-select: none;
}
.header-credits-badge {
    border-color: rgba(251, 191, 36, 0.3);
}
.header-credits-badge:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.credits-count {
    color: #fbbf24;
    font-weight: 800;
    font-size: 13px;
    font-family: var(--font-mono);
}

.next-credit-pill {
    background: rgba(255, 255, 255, 0.07);
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.header-packs-badge {
    border-color: rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.08);
}
.header-packs-badge:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.packs-count {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 12px;
}

/* Tactile Icon Buttons (Audio, Shortcuts, Dev) */
.btn-icon-toggle {
    width: 32px;
    height: 32px;
    background: rgba(10, 18, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    padding: 0;
    user-select: none;
}
.btn-icon-toggle .btn-text {
    display: none;
}
.btn-icon-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.btn-icon-toggle.muted {
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

.dev-dropdown-wrap {
    position: relative;
}
.dev-toggle-btn {
    width: 38px;
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
    gap: 1px;
}
.dev-toggle-btn .dev-arrow {
    font-size: 8px;
    margin-left: 1px;
}
.dev-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(8, 14, 30, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 14px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(245, 158, 11, 0.15);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dev-dropdown-header {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #94a3b8;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dev-menu-item {
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.dev-menu-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    transform: translateX(2px);
}

/* User Session Cluster */
.user-nav-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 18, 38, 0.85);
    padding: 3px 8px 3px 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    max-width: 130px;
}
.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
    flex-shrink: 0;
}
.username-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f1f5f9;
}

.btn-header-logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-header-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.btn-auth-compact {
    padding: 6px 14px;
    font-size: 11.5px;
    border-radius: 9px;
}

/* ==========================================================================
   BUTTON SYSTEM (AAA TACTILE FEEL)
   ========================================================================== */
.btn-primary-glow {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid rgba(125, 211, 252, 0.4);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(2, 132, 199, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}
.btn-primary-glow:hover {
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(2, 132, 199, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    border-color: rgba(125, 211, 252, 0.8);
}
.btn-primary-glow:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.btn-primary-glow:disabled, .btn-primary-glow.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary-glow {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.btn-secondary-glow:hover {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.btn-secondary-glow:active {
    transform: translateY(1px);
}

.btn-danger-glow {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border: 1px solid rgba(254, 202, 202, 0.4);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(220, 38, 38, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}
.btn-danger-glow:hover {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(220, 38, 38, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    border-color: rgba(254, 202, 202, 0.8);
}
.btn-danger-glow:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   VIEWPORT WRAPPER
   ========================================================================== */
.main-viewport {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - 72px);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   SHOP VIEW ("THE OFFICIAL TRADING POST")
   ========================================================================== */
.shop-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Shop Hero Banner */
.shop-hero-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 18, 38, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 30px 34px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.shop-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), rgba(56, 189, 248, 0.6), transparent);
}

.shop-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative;
    z-index: 2;
}

.shop-hero-left {
    flex: 1;
}

.shop-badge {
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.shop-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #f8fafc;
    margin: 6px 0 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.shop-sub {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 16px;
}

.shop-hero-meta-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
}

/* Promo Card Showcase in Hero */
.shop-hero-art-showcase {
    position: relative;
}
.shop-promo-card {
    width: 114px;
    height: 154px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(254, 240, 138, 0.5);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(245, 158, 11, 0.35);
    transform: perspective(600px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.4s ease;
}
.shop-promo-card:hover {
    transform: perspective(600px) rotateY(0deg) rotateX(0deg) scale(1.05);
}
.shop-promo-img-wrap, .shop-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Credit Balance Card in Hero */
.shop-credits-card {
    background: rgba(4, 9, 22, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 18px 22px;
    text-align: center;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(245, 158, 11, 0.15);
    min-width: 180px;
}
.credit-card-top {
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.5px;
}
.credit-card-amount {
    font-size: 30px;
    font-weight: 900;
    color: #fbbf24;
    margin: 4px 0;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}
.credit-card-hint {
    font-size: 10.5px;
    color: #94a3b8;
    font-family: var(--font-mono);
}

/* Unopened Packs Alert Banner */
.unopened-alert-banner {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid #38bdf8;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(56, 189, 248, 0.25);
    animation: banner-pulse-subtle 4s ease-in-out infinite alternate;
}
@keyframes banner-pulse-subtle {
    0% { border-color: rgba(56, 189, 248, 0.6); }
    100% { border-color: rgba(56, 189, 248, 1); }
}

.alert-text {
    font-size: 13.5px;
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-banner-altar {
    padding: 10px 22px;
    font-size: 13px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Shop Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
}

.shop-card-tile {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 14, 30, 0.95) 100%);
    border: 1px solid #334155;
    border-radius: 22px;
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.shop-card-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.75);
}

.shop-card-tile.tile-standard:hover {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.2);
}

.shop-card-tile.tile-premium {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(180deg, rgba(30, 27, 75, 0.5) 0%, rgba(10, 16, 36, 0.95) 100%);
}
.shop-card-tile.tile-premium:hover {
    border-color: rgba(251, 191, 36, 0.85);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(245, 158, 11, 0.3);
}

.shop-tile-header-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.shop-tile-season-tag {
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #38bdf8;
    text-transform: uppercase;
}
.shop-tile-season-tag.tag-premium {
    color: #fbbf24;
}

.shop-pack-preview-wrap {
    margin: 12px 0 14px;
    cursor: grab;
}

.tile-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 8px;
}

.tile-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 320px;
}

.tile-features-list {
    list-style: none;
    margin: 10px 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    text-align: left;
}
.tile-features-list li {
    font-size: 11.5px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tile-features-list .feat-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Ergonomic Purchase Controller Box */
.tile-purchase-box {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) inset;
}

.qty-presets-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.presets-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-right: 2px;
}
.qty-chip {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.qty-chip:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
}
.qty-chip.active {
    background: rgba(56, 189, 248, 0.35);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.qty-chip.chip-max {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.35);
}
.qty-chip.chip-max:hover,
.qty-chip.chip-max.active {
    background: rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.qty-stepper-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.qty-step-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    flex-shrink: 0;
}
.qty-step-btn:hover {
    background: #334155;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.qty-step-btn:active {
    transform: scale(0.95);
}

.qty-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090e1f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0 10px;
    height: 36px;
    transition: border-color 0.2s;
}
.qty-input-wrapper:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.qty-number-input {
    width: 48px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    outline: none;
    font-family: var(--font-mono);
}
/* Hide native spin buttons */
.qty-number-input::-webkit-outer-spin-button,
.qty-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-number-input[type=number] {
    -moz-appearance: textfield;
}
.qty-unit-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-calculation-preview {
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.25);
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.4;
    transition: all 0.2s ease;
}
.price-calculation-preview.has-deficit {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.price-calculation-preview strong {
    color: #fbbf24;
}
.price-calculation-preview .deficit-warning {
    display: block;
    font-size: 10.5px;
    color: #ef4444;
    font-weight: 700;
    margin-top: 2px;
}

.btn-buy-submit {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.btn-buy-premium {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
    border-color: rgba(254, 240, 138, 0.5) !important;
    box-shadow: 
        0 4px 18px rgba(245, 158, 11, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset !important;
}
.btn-buy-premium:hover {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 
        0 8px 26px rgba(245, 158, 11, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.5) inset !important;
}

/* ==========================================================================
   BOOSTER ALTAR STAGE ("SUMMONING GROUND")
   ========================================================================== */
.booster-altar-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 24px 16px 30px;
    position: relative;
    user-select: none;
}

/* Pack Switcher Tabs */
.altar-pack-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 10;
}
.switcher-pill {
    background: rgba(10, 18, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.switcher-pill:hover:not(:disabled) {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
}
.switcher-pill.active {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}
.switcher-pill.active[data-type="premium"] {
    border-color: #fbbf24;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}
.switcher-pill:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.blue-dot { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.gold-dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }

/* Summoning Stage (Pack + Pedestal) */
.altar-pack-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 4px 0 20px 0;
    z-index: 2;
}

/* Summoning Pedestal */
.altar-pedestal {
    width: 320px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.55) 0%, rgba(14, 165, 233, 0.2) 45%, transparent 75%);
    margin: -16px auto 0 auto;
    position: relative;
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.35);
    pointer-events: none;
    z-index: 1;
}
.altar-pedestal.pedestal-premium {
    background: radial-gradient(ellipse at 50% 50%, rgba(251, 191, 36, 0.65) 0%, rgba(245, 158, 11, 0.25) 45%, transparent 75%);
    box-shadow: 0 0 55px rgba(245, 158, 11, 0.45);
}
.altar-pedestal::before,
.altar-pedestal::after {
    display: none !important;
    content: none !important;
}

.pedestal-beam {
    position: absolute;
    bottom: 40%;
    left: 0;
    right: 0;
    height: 380px;
    background: radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.08) 45%, transparent 75%);
    pointer-events: none;
    z-index: -1;
    animation: beamPulse 3.5s ease-in-out infinite alternate;
}
.pedestal-premium .pedestal-beam {
    background: radial-gradient(ellipse at 50% 100%, rgba(251, 191, 36, 0.28) 0%, rgba(245, 158, 11, 0.10) 45%, transparent 75%);
}
@keyframes beamPulse {
    0% { opacity: 0.75; transform: scaleX(0.95); }
    100% { opacity: 1.0; transform: scaleX(1.05); }
}

/* Pack Action Controls */
.pack-action-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    z-index: 10;
}

.cost-badge {
    background: rgba(10, 18, 38, 0.9);
    border: 1px solid #38bdf8;
    color: #38bdf8;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}
.cost-badge-premium {
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.btn-open-pack {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.2px;
    padding: 13px 36px;
    border-radius: 14px;
}
.btn-open-premium {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
    border-color: #fef08a !important;
    box-shadow: 
        0 6px 25px rgba(245, 158, 11, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.4) inset !important;
}

.pack-hint-text {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kbd-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #f1f5f9;
}

/* Empty Altar */
.empty-altar-pack .empty-altar-body {
    border: 2px dashed #334155;
    background: rgba(10, 18, 38, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
}
.empty-pack-icon { font-size: 38px; opacity: 0.5; }
.empty-pack-title { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #64748b; }
.empty-pack-sub { font-size: 9.5px; color: #475569; }

.cooldown-box {
    background: rgba(10, 18, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 26px 30px;
    text-align: center;
    max-width: 460px;
    margin-top: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}
.cooldown-badge {
    font-size: 10px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.empty-inv-heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 8px;
}
.cooldown-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 18px;
}
.empty-balance-row {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 18px;
}

/* ==========================================================================
   REVEAL STAGE & CARD FAN-OUT ARENA
   ========================================================================== */
.reveal-stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 16px 0 36px;
    user-select: none;
}

.reveal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    gap: 6px;
}

.reveal-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #f8fafc;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.reveal-sub {
    font-size: 12px;
    color: #94a3b8;
}

.reveal-progress-wrap {
    width: 260px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.reveal-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #fbbf24);
    transition: width 0.35s ease-out;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.reveal-counter-text {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1.5px;
    font-family: var(--font-mono);
}

.reveal-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.reveal-kbd-hints {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
}

/* 10-Card Fan-Out Deck Layout */
.cards-fanned-deck {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 16px;
    max-width: 1240px;
    width: 100%;
    justify-items: center;
    padding: 10px 0;
}

@media (max-width: 1180px) {
    .cards-fanned-deck {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .cards-fanned-deck {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 650px) {
    .cards-fanned-deck {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pull Summary Showcase Bar */
.pull-summary-bar {
    width: 100%;
    max-width: 980px;
    background: rgba(10, 18, 38, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(56, 189, 248, 0.15);
    margin-top: 24px;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.summary-stats {
    font-size: 12.5px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.summary-highlight {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8;
}

.summary-action-buttons {
    display: flex;
    gap: 10px;
}

/* Pull Rarity Breakdown Tags */
.tag-legendary { background: rgba(245, 158, 11, 0.2); border: 1px solid #fbbf24; color: #fef08a; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 10.5px; }
.tag-very-rare { background: rgba(147, 51, 234, 0.2); border: 1px solid #c084fc; color: #f5d0fe; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 10.5px; }
.tag-rare { background: rgba(2, 132, 199, 0.2); border: 1px solid #38bdf8; color: #bae6fd; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 10.5px; }
.tag-uncommon { background: rgba(16, 185, 129, 0.2); border: 1px solid #34d399; color: #a7f3d0; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 10.5px; }
.tag-common { background: rgba(148, 163, 184, 0.15); border: 1px solid #94a3b8; color: #cbd5e1; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 10.5px; }

/* ==========================================================================
   COLLECTION BINDER ("THE COLLECTOR'S ARCHIVE")
   ========================================================================== */
.binder-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Binder Header Archive Banner */
.binder-header-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 18, 38, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.binder-header-art-thumb {
    width: 60px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.binder-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.binder-stat-left {
    flex: 1;
}

.binder-set-tag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #f59e0b;
    text-transform: uppercase;
}

.binder-main-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #f8fafc;
    margin: 2px 0;
}

.binder-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.completion-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #38bdf8;
}
.completion-number {
    font-family: var(--font-mono);
    color: #ffffff;
}

.binder-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
}
.binder-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #fbbf24);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.binder-rarity-breakdown {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}
.rarity-summary-badge {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rarity-summary-badge:hover {
    background: #1e293b;
    color: #f8fafc;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.25);
}
.rarity-summary-badge.active {
    background: #1e293b;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.rarity-summary-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge-c .dot { background: #94a3b8; }
.badge-u .dot { background: #34d399; }
.badge-r .dot { background: #38bdf8; }
.badge-vr .dot { background: #c084fc; }
.badge-l .dot { background: #fbbf24; }

/* Binder Toolbar & Filter Controls */
.binder-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(10, 18, 38, 0.7);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rarity-filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-pill:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.filter-pill.active {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.pill-count {
    font-size: 10px;
    opacity: 0.8;
    font-family: var(--font-mono);
}

.binder-search-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.binder-select {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.binder-select:focus {
    border-color: #38bdf8;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 10px;
    transition: border-color 0.2s;
}
.search-input-wrap:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.search-input-wrap input {
    background: transparent;
    border: none;
    color: #f1f5f9;
    padding: 7px 8px;
    font-size: 12px;
    outline: none;
    width: 150px;
}
.search-icon { font-size: 12px; opacity: 0.5; }
.search-clear-btn { background: none; border: none; color: #64748b; cursor: pointer; padding: 2px 4px; font-size: 11px; }

.btn-reset-filters {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reset-filters:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

/* Binder Active Filter Chips Bar */
.binder-active-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.active-filter-chip:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    transform: translateY(-1px);
}
.active-filter-chip .chip-x {
    font-size: 10px;
    opacity: 0.7;
}

.btn-clear-chips {
    font-size: 11px;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    margin-left: auto;
    transition: color 0.15s ease;
}
.btn-clear-chips:hover {
    color: #f8fafc;
}

/* Binder Card Grid */
.binder-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
    gap: 22px;
    justify-items: center;
    padding: 10px 0;
}
.binder-slot {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.binder-slot:hover {
    z-index: 10;
}
.empty-binder-msg {
    text-align: center;
    color: #64748b;
    padding: 80px 20px;
    grid-column: 1 / -1;
    font-size: 14px;
}

/* Empty Binder State */
.empty-binder-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    margin: 20px auto;
    max-width: 520px;
    width: 100%;
}
.empty-state-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.empty-state-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 8px;
}
.empty-state-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 380px;
}
.btn-empty-reset {
    font-size: 12px;
    padding: 8px 18px;
}

.auth-required-box {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: rgba(10, 18, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-width: 520px;
    margin: 40px auto;
}
.auth-icon { font-size: 44px; }

/* ==========================================================================
   FULL-SCREEN CARD INSPECTOR MODAL
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.inspect-modal-card-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.inspect-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 18, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1005;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.inspect-nav-prev { left: -64px; }
.inspect-nav-next { right: -64px; }
.inspect-nav-btn:hover:not(.disabled) {
    background: #1e293b;
    border-color: #38bdf8;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}
.inspect-nav-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.inspect-dialog {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    gap: 36px;
    max-width: 820px;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.inspect-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.inspect-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.08);
}

/* Rarity-specific Modal Accents */
.inspect-dialog.inspect-uncommon {
    border: 2px solid rgba(5, 150, 105, 0.65);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(16, 185, 129, 0.25);
}

.inspect-dialog.inspect-rare {
    border: 2px solid rgba(2, 132, 199, 0.65);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(14, 165, 233, 0.30);
}
.inspect-dialog.inspect-rare .inspect-name {
    font-family: var(--font-display);
    background: linear-gradient(90deg, #e0f2fe 0%, #38bdf8 30%, #ffffff 50%, #38bdf8 70%, #e0f2fe 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-sapphire-shimmer 5s linear infinite;
}

.inspect-dialog.inspect-legendary {
    border: 2px solid rgba(245, 158, 11, 0.7);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(245, 158, 11, 0.35);
}
.inspect-dialog.inspect-legendary .inspect-name {
    font-family: var(--font-display);
    background: linear-gradient(90deg, #fef08a 0%, #f59e0b 25%, #ffffff 50%, #f59e0b 75%, #fef08a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gold-shimmer 3.5s linear infinite;
}

.inspect-dialog.inspect-very-rare {
    border: 2px solid rgba(168, 85, 247, 0.7);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(168, 85, 247, 0.35);
}
.inspect-dialog.inspect-very-rare .inspect-name {
    font-family: var(--font-display);
    background: linear-gradient(90deg, #e9d5ff 0%, #c084fc 25%, #ffffff 50%, #f472b6 75%, #e9d5ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-cosmic-shimmer 4s linear infinite;
}

.inspect-card-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.inspect-card-scaler {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.18);
}

.inspect-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 300px;
}

.inspect-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-family: var(--font-mono);
    color: #64748b;
}

.inspect-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.inspect-badges {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.badge-rarity, .badge-ascendency {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 14px;
}
.badge-rarity {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.badge-ascendency {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-ascendency.ascendency-arthur {
    background: rgba(220, 38, 38, 0.20);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.48);
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.55);
}
.badge-ascendency.ascendency-clara {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}
.badge-ascendency.ascendency-elodie {
    background: rgba(244, 114, 182, 0.18);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.45);
    text-shadow: 0 0 6px rgba(244, 114, 182, 0.5);
}
.badge-ascendency.ascendency-theodore {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.badge-ascendency.ascendency-dual {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecdd3;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
    text-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

.inspect-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.inspect-stat-tile {
    background: rgba(4, 9, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 8px;
    border-radius: 12px;
    text-align: center;
}
.tile-label {
    font-size: 8.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    display: block;
}
.tile-val {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 3px;
    display: block;
    font-family: var(--font-mono);
}

.inspect-lore-section h4 {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.inspect-quote {
    font-size: 13px;
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.5;
    border-left: 2px solid #38bdf8;
    padding-left: 12px;
}

.inspect-recycle-section {
    background: rgba(4, 9, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.recycle-info { display: flex; align-items: center; gap: 14px; }
.recycle-desc { display: flex; align-items: center; gap: 8px; }
.recycle-badge-icon { font-size: 22px; }
.recycle-title { font-size: 11.5px; font-weight: 800; color: #f8fafc; }
.recycle-subtitle { font-size: 9.5px; color: #64748b; }
.recycle-value-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 800;
}

.recycle-inventory-status {
    display: flex;
    align-items: center;
}
.recycle-last-copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.recycle-extra-copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.btn-recycle-action {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-recycle-action:hover {
    background: #334155;
    border-color: #38bdf8;
}
.btn-recycle-action.is-last-copy {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}
.btn-recycle-action.is-last-copy:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.inspect-unowned-warning {
    font-size: 11.5px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
}
.inspect-kbd-hint {
    font-size: 10.5px;
    color: #475569;
    text-align: center;
    font-family: var(--font-mono);
}

/* ==========================================================================
   TOAST NOTIFICATIONS (AAA FLOATING STACK SYSTEM)
   ========================================================================== */
.toast-stack-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 48px);
}
@media (max-width: 600px) {
    .toast-stack-container {
        right: 16px;
        left: 16px;
        bottom: 16px;
        width: auto;
        max-width: none;
    }
}

.app-toast {
    pointer-events: auto;
    background: rgba(10, 17, 36, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 
        0 16px 36px rgba(0, 0, 0, 0.7),
        0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    position: relative;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.app-toast.toast-exit {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.toast-message {
    font-size: 13px;
    color: #f1f5f9;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
}

.toast-action-btn {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.toast-action-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #ffffff;
    border-color: #38bdf8;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s ease;
    flex-shrink: 0;
}
.toast-close-btn:hover {
    color: #ffffff;
}

.toast-progress-bar {
    height: 3px;
    background: rgba(56, 189, 248, 0.65);
    width: 100%;
    animation: toastProgress linear forwards;
    transform-origin: left;
}
@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Variants */
.toast-info {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.2);
}
.toast-info .toast-progress-bar { background: #38bdf8; }

.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.25);
}
.toast-success .toast-progress-bar { background: #10b981; }

.toast-warning {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.25);
}
.toast-warning .toast-progress-bar { background: #f59e0b; }

.toast-error {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.3);
}
.toast-error .toast-progress-bar { background: #ef4444; }

.toast-recycle {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.25);
}
.toast-recycle .toast-progress-bar { background: #38bdf8; }

.toast-legendary {
    border-color: rgba(245, 158, 11, 0.85);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 32px rgba(245, 158, 11, 0.45);
}
.toast-legendary .toast-progress-bar { background: #fbbf24; }

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.08);
}

/* ==========================================================================
   SHORTCUTS MODAL
   ========================================================================== */
.shortcuts-dialog {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    max-width: 720px;
    width: 100%;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(56, 189, 248, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}
.shortcuts-header {
    margin-bottom: 24px;
}
.shortcuts-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.shortcuts-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 1px;
}
.shortcuts-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.shortcut-group {
    background: rgba(4, 9, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}
.shortcut-group-title {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}
.shortcut-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.shortcut-desc {
    font-size: 12.5px;
    color: #cbd5e1;
}
.kbd-pill, kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 7px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    color: #f1f5f9;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   CONFIRMATION MODAL
   ========================================================================== */
.confirm-dialog {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 32px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(239, 68, 68, 0.15);
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.confirm-icon-wrap {
    font-size: 38px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.confirm-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
}
.confirm-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 360px;
}
.confirm-actions-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}
.confirm-actions-row button {
    flex: 1;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN SCREEN
   ========================================================================== */
.login-screen-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    min-height: calc(100vh - 130px);
    padding: 24px 16px;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-hero-showcase {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 999px;
    align-self: flex-start;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.login-hero-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.login-hero-subtitle {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.6;
}

.login-promo-card-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.login-promo-card-wrap .login-promo-card {
    flex-shrink: 0;
    width: 124px;
    height: 168px;
}

.login-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
}

.login-feature-card {
    background: rgba(12, 21, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.login-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.login-feature-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 3px;
}

.login-feature-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
}

.login-card-container {
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
}

.auth-dialog {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(9, 14, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(56, 189, 248, 0.08);
}

.auth-header { text-align: center; margin-bottom: 22px; }
.auth-season-badge { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.auth-season-thumb { width: 26px; height: 34px; border-radius: 4px; object-fit: cover; border: 1px solid rgba(251, 191, 36, 0.5); }
.auth-season-tag { font-size: 9.5px; font-weight: 800; color: #f59e0b; letter-spacing: 1.2px; }
.auth-header h3 { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: #f8fafc; letter-spacing: 1px; }
.auth-header p { font-size: 12px; color: #64748b; margin-top: 4px; }

.auth-tabs-row { display: flex; border-bottom: 1px solid #1e293b; margin-bottom: 18px; }
.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #64748b;
    padding: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.auth-tab-btn.active { color: #38bdf8; border-color: #38bdf8; }
.auth-error { font-size: 11.5px; color: #ef4444; text-align: center; margin-bottom: 10px; min-height: 18px; font-weight: 600; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11.5px; font-weight: 700; color: #94a3b8; margin-bottom: 5px; }
.form-group input {
    width: 100%;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.password-input-wrap input {
    padding-right: 42px;
}
.btn-toggle-pwd {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: #94a3b8;
    opacity: 0.65;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
    user-select: none;
}
.btn-toggle-pwd:hover {
    opacity: 1;
    transform: scale(1.1);
}

.auth-switch-prompt {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.auth-switch-link {
    color: #38bdf8;
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
    padding: 0;
    margin-left: 4px;
    display: inline;
    font-family: inherit;
    transition: color 0.15s;
}
.auth-switch-link:hover {
    color: #7dd3fc;
}

.demo-users-box { margin-top: 20px; padding-top: 16px; border-top: 1px solid #1e293b; text-align: center; }
.demo-title { font-size: 9.5px; font-weight: 800; color: #64748b; letter-spacing: 1.5px; margin-bottom: 8px; }
.demo-buttons-row { display: flex; gap: 8px; justify-content: center; }
.btn-demo-user { background: #1e293b; border: 1px solid #334155; color: #94a3b8; padding: 5px 12px; border-radius: 8px; font-size: 10.5px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-demo-user:hover { color: #fff; background: #334155; border-color: #38bdf8; }

.auth-welcome-hero { text-align: center; padding: 90px 20px; max-width: 520px; margin: 0 auto; }
.hero-headline { font-family: var(--font-display); font-size: 28px; font-weight: 900; letter-spacing: 2px; color: #f8fafc; margin-bottom: 12px; }
.hero-subtext { font-size: 14px; color: #94a3b8; line-height: 1.6; margin-bottom: 24px; }

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
.fade-in-up { animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   AAA RESPONSIVE ERGONOMICS & INTERACTIVE POLISH
   ========================================================================== */
button:active:not(:disabled) {
    transform: scale(0.97) !important;
}
button:focus-visible, a:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

@media (max-width: 960px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 14px;
    }
    .brand-wrap { order: 1; }
    .header-actions { order: 2; gap: 6px; }
    .nav-tabs-group {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
    }
    .nav-tab {
        flex: 1;
        justify-content: center;
        padding: 6px 8px;
        font-size: 11.5px;
    }

    .login-screen-wrapper {
        flex-direction: column;
        gap: 32px;
        padding: 20px 8px;
    }
    .login-hero-showcase {
        max-width: 500px;
        text-align: center;
        align-items: center;
    }
    .login-hero-badge {
        align-self: center;
    }
    .login-hero-title {
        font-size: 30px;
    }
    .login-promo-card-wrap {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }
    .login-features-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .inspect-dialog {
        flex-direction: column;
        align-items: center;
        padding: 24px 18px;
        gap: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .inspect-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    .inspect-nav-prev { left: 6px; }
    .inspect-nav-next { right: 6px; }
    .inspect-card-scaler { transform: scale(1); }
    .inspect-info-column { min-width: 0; width: 100%; }
    .binder-header-card { flex-direction: column; text-align: center; }
    .binder-stat-left { text-align: center; }
    .binder-toolbar { flex-direction: column; align-items: stretch; }
    .binder-search-group { width: 100%; flex-direction: column; }
    .binder-search-group .binder-select,
    .binder-search-group .search-input-wrap { width: 100%; }
    .shop-hero-content { flex-direction: column; text-align: center; }
    .shop-hero-meta-pills { justify-content: center; }
    .shop-products-grid { grid-template-columns: 1fr; }
    .tile-buy-bar { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
    .tile-price { align-items: center; }
    .shop-buy-actions { justify-content: center; }
}

@media (max-width: 600px) {
    .nav-tab .nav-hotkey-badge {
        display: none;
    }
    .nav-tab {
        padding: 5px 6px;
        font-size: 11px;
        gap: 4px;
    }
    .user-profile-badge {
        max-width: 90px;
    }
    .next-credit-pill {
        display: none;
    }
    .header-actions {
        gap: 4px;
    }
}
