/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #e8edf3;
    --bg-secondary: #f1f5f9;
    
    /* Day Theme variables (Light UI) */
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-border: rgba(255, 255, 255, 0.6);
    --card-border-hover: rgba(255, 255, 255, 0.9);
    --text-primary: #0f172a;      /* slate-900 */
    --text-secondary: #334155;    /* slate-700 */
    --text-muted: #475569;        /* slate-600 */
    
    /* Active accents for Light Mode (high contrast) */
    --color-seeds: #047857;       /* emerald-700 */
    --color-seeds-glow: rgba(4, 120, 87, 0.08);
    --color-seeds-border: rgba(4, 120, 87, 0.25);
    
    --color-gears: #0369a1;       /* sky-700 */
    --color-gears-glow: rgba(3, 105, 161, 0.08);
    --color-gears-border: rgba(3, 105, 161, 0.25);
    
    --color-weather: #6d28d9;     /* violet-700 */
    --color-weather-glow: rgba(109, 40, 217, 0.08);
    --color-weather-border: rgba(109, 40, 217, 0.25);
    
    --color-pets: #dc2626;       /* red-600 */
    --color-pets-glow: rgba(220, 38, 38, 0.08);
    --color-pets-border: rgba(220, 38, 38, 0.25);
    
    --tab-bg: rgba(0, 0, 0, 0.04);
    --tab-btn-hover: #0f172a;
    
    /* Default active accent state mapping (Seeds - Emerald) */
    --active-color: var(--color-seeds);
    --active-glow: var(--color-seeds-glow);
    
    /* Rarity palette mapping */
    --rar-common: #475569;
    --rar-uncommon: #047857;
    --rar-rare: #1d4ed8;
    --rar-epic: #7c3aed;
    --rar-legendary: #b45309;
    --rar-mythic: #b91c1c;
    --rar-super: #dc2626;
    --rar-divine: #334155;
}

/* Dark Theme overrides (Night UI) */
html[data-ui=dark] {
    --bg-primary: #06080b;
    --bg-secondary: #0d1219;
    --card-bg: rgba(13, 20, 30, 0.55);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Active accents for Dark Mode (neon, glowing) */
    --color-seeds: #10b981;       /* emerald-500 */
    --color-seeds-glow: rgba(16, 185, 129, 0.15);
    --color-seeds-border: rgba(16, 185, 129, 0.3);
    
    --color-gears: #06b6d4;       /* cyan-500 */
    --color-gears-glow: rgba(6, 182, 212, 0.15);
    --color-gears-border: rgba(6, 182, 212, 0.3);
    
    --color-weather: #a78bfa;     /* violet-400 */
    --color-weather-glow: rgba(167, 139, 250, 0.15);
    --color-weather-border: rgba(167, 139, 250, 0.3);
    
    --color-pets: #ff4d4d;       /* light red */
    --color-pets-glow: rgba(255, 77, 77, 0.15);
    --color-pets-border: rgba(255, 77, 77, 0.3);
    
    --tab-bg: rgba(0, 0, 0, 0.25);
    --tab-btn-hover: #ffffff;
    
    --active-color: var(--color-seeds);
    --active-glow: var(--color-seeds-glow);
    
    /* Rarity palette mapping for Dark Mode */
    --rar-common: #64748b;
    --rar-uncommon: #10b981;
    --rar-rare: #3b82f6;
    --rar-epic: #a855f7;
    --rar-legendary: #eab308;
    --rar-mythic: #ef4444;
    --rar-super: #ff2a2a;
    --rar-divine: #475569;
}

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    transition: color 0.5s ease, background-color 0.5s ease;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--active-color);
}

/* ==========================================================================
   AMBIENT ANIMATED BACKGROUNDS
   ========================================================================== */
/* ==========================================================================
   DAY/NIGHT SKY SIMULATED BACKGROUND
   ========================================================================== */
.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.sky__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--sky-top, #8fd6ef), var(--sky-bottom, #cdeedd));
    will-change: background;
    transition: background 1.5s ease;
}

.sky__stars {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.sky__stars .star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: twinkle var(--tw, 2s) ease-in-out infinite alternate;
}

.sky__clouds {
    position: absolute;
    inset: 0;
    transition: opacity 1.5s ease;
}

.cloud {
    position: absolute;
    width: 70px;
    height: 26px;
    background: #fff;
    border-radius: 50px;
    opacity: 0.25;
    box-shadow: 28px 6px 0 -4px #fff, -26px 8px 0 -6px #fff, 12px -12px 0 -4px #fff;
    will-change: transform;
}

.cloud:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(180deg, #fff, #e7f3fb);
}

.cloud--a {
    top: 14%;
    left: -10%;
    --s: 1.1;
    animation: drift 80s linear infinite;
}

.cloud--b {
    top: 26%;
    left: -10%;
    --s: 0.8;
    animation: drift 120s linear infinite;
    animation-delay: -40s;
}

.cloud--c {
    top: 8%;
    left: -10%;
    --s: 0.65;
    animation: drift 100s linear infinite;
    animation-delay: -70s;
}

.sky__celestial {
    position: absolute;
    inset: 0;
}

.sky__sun, .sky__moon {
    position: absolute;
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
    border-radius: 50%;
    will-change: left, top, opacity;
    transition: opacity 1.5s ease, left 1.5s linear, top 1.5s linear;
}

.sky__sun {
    background: radial-gradient(circle at 42% 38%, #fff4b0, #ffd23a 58%, #ffae00);
    box-shadow: 0 0 0 8px rgba(255, 220, 90, 0.35), 0 0 40px 10px rgba(255, 200, 0, 0.4);
}

.sky__moon {
    background: radial-gradient(circle at 38% 32%, #fff, #dbe4ff 62%, #b3c0e8);
    box-shadow: 0 0 26px 6px rgba(200, 215, 255, 0.4);
}

.sky__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255, 215, 0, 0.4), rgba(255, 150, 0, 0.1) 45%, transparent 70%);
    will-change: opacity;
    transition: opacity 1.5s ease;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.95; }
}

@keyframes drift {
    0% { transform: translate(0) scale(var(--s, 1)); }
    100% { transform: translate(130vw) scale(var(--s, 1)); }
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}
.logo-link:hover {
    opacity: 0.85;
}
.logo-img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.nav-item:hover {
    color: var(--text-primary);
}

.btn-buy {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-buy:hover {
    background: #ffffff;
    color: var(--bg-primary);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .nav-links, .btn-buy {
        display: none;
    }
}

/* ==========================================================================
   APP CONTENT CONTAINER
   ========================================================================== */
.app-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem 1.5rem;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.zyne-house-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--active-color, #10b981);
    margin-bottom: 0.5rem;
}

.zynehouse-top-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    width: 100%;
}
.hero-title .highlight {
    background: linear-gradient(to right, var(--text-primary), var(--active-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.8s ease;
}
.hero-title .sub-highlight {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary, #888);
    margin-left: 0.5rem;
    -webkit-text-fill-color: var(--text-secondary, #888);
}
.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.header-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 0.875rem;
    }
}
@media (max-width: 520px) {
    .hero-title {
        font-size: 1.85rem;
    }
    .header-logo-img {
        height: 48px;
    }
    .console-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
        scrollbar-color: rgba(120, 120, 120, 0.35) transparent;
        padding-bottom: 0.5rem;
    }
    .console-tabs::-webkit-scrollbar {
        height: 4px;
        display: block;
    }
    .console-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    .console-tabs::-webkit-scrollbar-thumb {
        background: rgba(120, 120, 120, 0.35);
        border-radius: 10px;
    }
    .console-tabs::-webkit-scrollbar-thumb:hover {
        background: rgba(120, 120, 120, 0.55);
    }
    .tab-btn {
        flex: 0 0 auto;
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
    }
    .app-container {
        padding: 2rem 1rem 3rem 1rem;
    }
}

/* GitHub Link Button Floating Style */
.github-link-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
}
.github-link-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
}
.github-link-btn:active {
    transform: translateY(0.5px);
}
.github-link-btn svg {
    flex-shrink: 0;
}

/* Dark Mode Override for GitHub Link Button */
html[data-ui=dark] .github-link-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
html[data-ui=dark] .github-link-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Info Link Button Floating Style */
.floating-btns {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 8px;
    z-index: 50;
}
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--tab-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}
.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
.theme-toggle-btn svg {
    flex-shrink: 0;
}
/* Dark mode icon toggle */
html[data-ui=dark] .theme-toggle-btn .icon-sun { display: none; }
html[data-ui=dark] .theme-toggle-btn .icon-moon { display: block; }
.theme-toggle-btn .icon-moon { display: none; }
.theme-toggle-btn .icon-sun { display: block; }
html[data-ui=dark] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}
html[data-ui=dark] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.info-link-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    cursor: pointer;
}
.info-link-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
}
.info-link-btn:active {
    transform: translateY(0.5px);
}
.info-link-btn svg {
    flex-shrink: 0;
}
html[data-ui=dark] .info-link-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
html[data-ui=dark] .info-link-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .github-link-btn {
        top: 1rem;
        right: 1rem;
        padding: 8px;
    }
    .github-link-btn span {
        display: none;
    }
    
    .info-link-btn {
        top: 1rem;
        left: 1rem;
        padding: 8px;
    }
    .info-link-btn span {
        display: none;
    }
}

/* ==========================================================================
   CONSOLE / WIDGET
   ========================================================================== */
.console-widget {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Interactive custom switch tabs */
.console-tabs {
    display: flex;
    background: var(--tab-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.375rem;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.tab-btn:hover {
    color: var(--tab-btn-hover);
}

/* Dynamic Tab States */
#tabSeeds.active {
    background: var(--color-seeds-glow);
    color: var(--color-seeds);
    border-color: var(--color-seeds-border);
    box-shadow: inset 0 0 12px var(--color-seeds-glow);
}
#tabGears.active {
    background: var(--color-gears-glow);
    color: var(--color-gears);
    border-color: var(--color-gears-border);
    box-shadow: inset 0 0 12px var(--color-gears-glow);
}
#tabWeather.active {
    background: var(--color-weather-glow);
    color: var(--color-weather);
    border-color: var(--color-weather-border);
    box-shadow: inset 0 0 12px var(--color-weather-glow);
}
#tabPets.active {
    background: var(--color-seeds-glow);
    color: var(--color-seeds);
    border-color: var(--color-seeds-border);
    box-shadow: inset 0 0 12px var(--color-seeds-glow);
}

/* Global status panel */
.status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    transition: all 0.5s ease;
}

/* Override config classes added dynamically by javascript */
.status-panel {
    --active-color: var(--color-seeds);
    --active-glow-color: var(--color-seeds-glow);
    border-color: var(--color-seeds-border);
}
html[data-ui=dark] .status-panel {
    --active-color: var(--color-seeds);
    --active-glow-color: var(--color-seeds-glow);
    border-color: var(--color-seeds-border);
}
.status-panel.gears {
    --active-color: var(--color-gears);
    --active-glow-color: var(--color-gears-glow);
    border-color: var(--color-gears-border);
}
.status-panel.weather {
    --active-color: var(--color-weather);
    --active-glow-color: var(--color-weather-glow);
    border-color: var(--color-weather-border);
}
.status-panel.pets {
    --active-color: var(--color-pets);
    --active-glow-color: var(--color-pets-glow);
    border-color: var(--color-pets-border);
}

/* Phase Badge for Weather tab */
.phase-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    vertical-align: middle;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
}

html[data-ui=dark] .phase-chip {
    background: rgba(13, 20, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.phase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--active-color);
}

.phase-icon svg {
    display: block;
}

.phase-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-icon-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.status-details {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.status-subtitle-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--active-color);
    box-shadow: 0 0 10px var(--active-color);
    animation: indicatorPulse 2s infinite ease-in-out;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Giant Countdown Console Display */
.countdown-display {
    text-align: right;
}

.countdown-value {
    font-family: monospace;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--active-color);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px var(--active-glow-color);
    transition: color 0.5s ease;
}

@media (max-width: 640px) {
    .status-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    .countdown-display {
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 0.75rem;
    }
    .countdown-value {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   CARDS GRID & CARDS
   ========================================================================== */
.grid-section {
    position: relative;
    min-height: 200px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1rem;
}

/* Base style for dynamic output card row */
.row {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.25rem;
    min-height: 155px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease,
                background-color 0.5s ease;
    overflow: hidden;
}

.row:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.row .top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: auto;
}

.iconbox {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iconbox .sun {
    position: absolute;
    width: 140%;
    height: 140%;
    opacity: 0.1;
    animation: sunSpin 24s linear infinite;
    pointer-events: none;
}

@keyframes sunSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iconbox .ico {
    position: relative;
    width: 75%;
    height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.mid {
    flex: 1;
    min-width: 0;
}

.mid .name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
}

.mid .stock {
    font-size: 0.9375rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.875rem;
    margin-top: 1rem;
}

.price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    display: inline-block;
}

/* Check context inside Gears for coloring prices and indicators */
#rows:has(#tabGears) .price,
.app-container:has(#tabGears.active) .price {
    color: #06b6d4;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    display: inline-block;
}

/* Badge mapping */
.next-badge {
    align-self: flex-end;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
}

.next-badge.none {
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

/* Dark Mode Overrides for next-badge */
html[data-ui=dark] .next-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: none;
}
html[data-ui=dark] .next-badge.none {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.03);
}

.rar {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Active weather row highlighting */
.row.wcur {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(139, 92, 246, 0.02));
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.1);
}
.row.wcur .next-badge {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c084fc;
}

/* ==========================================================================
   EMPTY STATE CONTAINER
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 4.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.empty-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   WEATHER SCHEDULE NOTE
   ========================================================================== */
.weather-note {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    max-width: 600px;
    margin: 2rem auto 0 auto;
    text-align: center;
}

.note-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.note-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    border-top: 1px solid var(--card-border);
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--card-bg);
}

.app-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.footer-link {
    color: var(--active-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--active-color);
}

/* ==========================================================================
   RAREST PETS INDEX STYLES
   ========================================================================== */
.prp {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #fff;
    padding-block: clamp(8px, 2vh, 24px);
}
.prp.hidden {
    display: none !important;
}
.prp__head {
    text-align: center;
}
.prp__paw {
    font-size: 2.4rem;
    filter: drop-shadow(0 3px 0 rgba(0,0,0,.22));
}
.prp__title {
    margin: 4px 0 6px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 900;
    letter-spacing: .3px;
    text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.prp__sub {
    margin: 0 auto;
    max-width: 46ch;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.45;
    color: #ffffffe6;
    text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.prp__sub b {
    color: #fff;
}
.prp__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.prp__chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    transition: filter .12s ease, transform .08s ease, background-color .12s ease, border-color .12s ease;
    -webkit-tap-highlight-color: transparent;
}
.prp__chip:hover {
    background: rgba(255, 255, 255, 0.18);
}
.prp__chip:active {
    transform: translateY(1px);
}
.prp__chip.is-on {
    background: linear-gradient(180deg, var(--active-color), var(--active-color));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.prp__chip:focus-visible {
    outline: 3px solid var(--active-color);
    outline-offset: 2px;
}
.prp__card {
    border-radius: 22px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 18px 50px #0000004d, inset 0 1px #ffffff1f;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.prp__list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.prp__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--rar, #9aa6a0);
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.prp__row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.1);
}
.prp__row--legend {
    background: linear-gradient(180deg, rgba(240, 168, 30, 0.18), rgba(240, 168, 30, 0.08));
    border-color: rgba(255, 213, 122, 0.55);
    box-shadow: 0 0 18px rgba(240, 168, 30, 0.22);
}
.prp__row--legend .prp__avatar {
    opacity: .95;
}
.prp__rank {
    flex: 0 0 auto;
    width: 2rem;
    text-align: center;
    font-weight: 900;
    font-size: .95rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgba(0,0,0,.22);
}
.prp__row--legend .prp__rank {
    color: #ffd57a;
    font-size: 1.2rem;
}
.prp__avatar {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prp__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
    image-rendering: -webkit-optimize-contrast;
    -webkit-user-drag: none;
}
.prp__img-fallback {
    font-size: 1.5rem;
    filter: grayscale(.2) drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
@property --ang {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
.prp__avatar.is-rainbow {
    border: 0;
    padding: 2px;
    background: conic-gradient(from var(--ang), #ff5d5d, #ffb24d, #ffe24d, #6ee06a, #4dc9ff, #9a6bff, #ff5db0, #ff5d5d);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
    animation: prpRainbow 4s linear infinite;
}
.prp__avatar.is-rainbow:before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background: rgba(14, 20, 36, 0.85);
}
.prp__avatar.is-rainbow .prp__img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)) saturate(1.2);
}
@keyframes prpRainbow {
    to {
        --ang: 360deg;
    }
}
.prp__badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translate(-50%);
    padding: 1px 6px;
    border-radius: 999px;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .5px;
    color: #fff;
    background: linear-gradient(180deg, #5571ff, #3e5ef6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px rgba(0, 0, 0, 0.3);
    z-index: 2;
}
.prp__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.prp__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.prp__name {
    font-weight: 900;
    font-size: .98rem;
    color: var(--text-primary);
    text-shadow: 0 1px 0 rgba(0,0,0,.22);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prp__subline {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.prp__rartag {
    flex: 0 0 auto;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--rar, #9aa6a0);
}
.prp__count {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.prp__count:before {
    content: "· ";
}
.prp__score {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 6px 13px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--active-color), var(--active-color));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 900;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgba(0,0,0,.25);
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
    white-space: nowrap;
}
.prp__score--zero {
    background: linear-gradient(180deg, #ffd57a, #f0a81e);
    border-color: #7a5410;
    box-shadow: 0 2px #aa7212;
    color: #4a3208;
    text-shadow: none;
}
.prp__empty {
    padding: 18px 6px;
    text-align: center;
    font-weight: 800;
    font-size: .9rem;
    color: var(--text-secondary);
}
.prp__empty.hidden {
    display: none !important;
}
.prp__foot {
    margin: 0 auto;
    max-width: 48ch;
    text-align: center;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-muted);
}
@media (max-width: 677px) {
    .prp__paw {
        font-size: 3rem;
    }
    .prp__title {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }
    .prp__sub {
        font-size: 1.05rem;
    }
    .prp__chip {
        font-size: 1rem;
        padding: 9px 16px;
    }
    .prp__row {
        gap: 13px;
        padding: 12px 14px;
    }
    .prp__rank {
        width: 2rem;
        font-size: 1.15rem;
    }
    .prp__avatar {
        width: 60px;
        height: 60px;
    }
    .prp__img {
        width: 54px;
        height: 54px;
    }
    .prp__name {
        font-size: 1.1rem;
        white-space: normal;
    }
    .prp__rartag, .prp__count {
        font-size: .8rem;
    }
    .prp__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }
    .prp__score {
        margin-left: 0;
        font-size: .98rem;
        padding: 8px 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .prp__avatar.is-rainbow {
        animation: none;
    }
}

/* ==========================================================================
   SEED RESTOCK HISTORY STYLES
   ========================================================================== */
.srm-history-section {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #fff;
}
.srm-history-section.hidden {
    display: none !important;
}
.srm__card {
    border-radius: 22px;
    padding: clamp(16px, 2.4vh, 22px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 18px 50px rgba(0,0,0,0.3), inset 0 1px rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.srm__head {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}
.srm__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: .2px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.srm__sprout {
    font-size: 1.25rem;
    margin-right: 4px;
}
.srm__sub {
    margin: 6px 0 0;
    font-size: .84rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.srm__sub strong {
    color: var(--color-seeds);
    font-variant-numeric: tabular-nums;
}
.srm__sub-dim {
    color: var(--text-muted);
    font-weight: 600;
}
.srm__list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 10px;
}
.srm__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--rar, #9aa6a0);
    transition: transform 0.2s ease, background-color 0.3s ease;
}
.srm__row:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}
.srm__row.is-stocked {
    background: rgba(103, 194, 63, 0.15);
    border-color: rgba(142, 217, 106, 0.35);
    border-left-color: #67c23f;
}
.srm__img {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
    image-rendering: -webkit-optimize-contrast;
}
.srm__meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.srm__name {
    font-weight: 900;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.srm__rar {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--rar, #9aa6a0);
}
.srm__timing {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.srm__since {
    font-weight: 900;
    font-size: .86rem;
    color: var(--text-primary);
}
.srm__row.is-stocked .srm__since {
    color: #8ee06a;
}
.srm__foot {
    margin: 12px 0 0;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
}

/* ==========================================================================
   SEED RESTOCK MODAL (POPUP) STYLES
   ========================================================================== */
.srm {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 28px);
}
.srm.hidden {
    display: none !important;
}
.srm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 20, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: srmFade 0.22s ease both;
}
.srm__panel {
    position: relative;
    width: min(94vw, 440px);
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 2.4vh, 22px);
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    color: #fff;
    animation: srmPop 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.srm__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.12s ease;
    z-index: 10;
}
.srm__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.srm__close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.srm__head {
    padding-right: 36px;
    margin-bottom: 12px;
}
.srm__list {
    list-style: none;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Info Modal Custom Spacing & Typography */
.info-modal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 4px;
}
.info-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}
.info-modal-bullet {
    color: var(--active-color, #10b981);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.1;
    user-select: none;
}
.info-modal-text {
    flex: 1;
}
.info-modal-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* Modal Open state body freeze */
html.srm-modal-open {
    overflow: hidden !important;
}

@keyframes srmFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes srmPop {
    0% { opacity: 0; transform: translateY(16px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   SEED RESTOCK CHIP TRIGGER BUTTON STYLES
   ========================================================================== */
.srm-trigger-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
}
.srk {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    margin-right: auto;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    border: 1.5px solid rgba(16, 185, 129, 0.55);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 0 15px rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.srk.hidden {
    display: none !important;
}
.srk:hover {
    transform: translateY(-1.5px);
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.65);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 0 20px rgba(16, 185, 129, 0.3);
}
.srk:active {
    transform: translateY(0.5px);
}
.srk__icon {
    display: inline-flex;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
    animation: srbBob 2.6s ease-in-out infinite;
}
.srk__text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}
.srk__label {
    font-weight: 900;
}
.srk__sep {
    opacity: 0.7;
}
.srk__time {
    color: #10b981;
    font-weight: 900;
}
.srk__chev {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 2px;
}
@keyframes srbBob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-1.5px) rotate(-3deg); }
}

/* ==========================================================================
   ACTIVE STOCK & HAPPENING NOW HIGHLIGHTING
   ========================================================================== */
/* Seed row in stock highlight */
.row.in-stock-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.75), rgba(16, 185, 129, 0.50));
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}
.row.in-stock-highlight .next-badge {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}
.row.in-stock-highlight .price {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.row.in-stock-highlight .mid .stock {
    color: #ffffff;
    font-weight: 800;
}
.row.in-stock-highlight .name {
    color: #ffffff;
}

/* Gear row in stock highlight */
#rows:has(#tabGears) .row.in-stock-highlight,
.app-container:has(#tabGears.active) .row.in-stock-highlight {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.75), rgba(6, 182, 212, 0.50));
    border-color: rgba(6, 182, 212, 0.6) !important;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}
#rows:has(#tabGears) .row.in-stock-highlight .next-badge,
.app-container:has(#tabGears.active) .row.in-stock-highlight .next-badge {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}
#rows:has(#tabGears) .row.in-stock-highlight .price,
.app-container:has(#tabGears.active) .row.in-stock-highlight .price {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.4) !important;
}
#rows:has(#tabGears) .row.in-stock-highlight .mid .stock,
.app-container:has(#tabGears.active) .row.in-stock-highlight .mid .stock {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3) !important;
}
#rows:has(#tabGears) .row.in-stock-highlight .name,
.app-container:has(#tabGears.active) .row.in-stock-highlight .name {
    color: #ffffff !important;
}

/* Seed row out-of-stock but has upcoming restock - Yellow */
.row.next-stock-highlight {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.20), rgba(234, 179, 8, 0.10));
    border-color: rgba(234, 179, 8, 0.45) !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.15);
}
.row.next-stock-highlight .next-badge {
    background: rgba(234, 179, 8, 0.35);
    border-color: rgba(234, 179, 8, 0.5);
    color: #fff;
}
.row.next-stock-highlight .price {
    color: #fbbf24;
}

/* Gear row out-of-stock but has upcoming restock - Yellow */
#rows:has(#tabGears) .row.next-stock-highlight,
.app-container:has(#tabGears.active) .row.next-stock-highlight {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.20), rgba(234, 179, 8, 0.10));
    border-color: rgba(234, 179, 8, 0.45) !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.15);
}
#rows:has(#tabGears) .row.next-stock-highlight .next-badge,
.app-container:has(#tabGears.active) .row.next-stock-highlight .next-badge {
    background: rgba(234, 179, 8, 0.35);
    border-color: rgba(234, 179, 8, 0.5);
    color: #fff;
}
#rows:has(#tabGears) .row.next-stock-highlight .price {
    color: #fbbf24;
}

/* ==========================================================================
    SORTING CONTROLS STYLES
   ========================================================================== */
.console-footer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}
.console-footer-controls.hidden {
    display: none !important;
}
.sort-controls-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    animation: srmFade 0.22s ease both;
}
.sort-controls-container.hidden {
    display: none !important;
}
.sort-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    user-select: none;
}
.sort-select {
    padding: 6px 32px 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(15, 23, 42, 0.14);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}
.sort-select:hover {
    background-color: rgba(255, 255, 255, 0.65);
    border-color: rgba(15, 23, 42, 0.25);
}
.sort-select:focus-visible {
    border-color: var(--active-color);
}
.sort-select option {
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
}

/* Dark Mode Overrides for Sorting Controls */
html[data-ui=dark] .sort-select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
}
html[data-ui=dark] .sort-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}
html[data-ui=dark] .sort-select option {
    background: #0c1220;
    color: #ffffff;
}
