/* RET Global Theme System */
:root {
    --neon-pink: #ff00ff;
    --neon-pink-dark: #b300b3;
    --gold-light: #fcf6ba;
    --gold-main: #ffd700;
    --gold-dark: #aa771c;
    --bg-black: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.85);
    --border-color: rgba(255, 215, 0, 0.2);
    --transition-fast: 0.3s ease;
}

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

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 255, 0.08) 0%, transparent 50%);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .neon-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    overflow-wrap: break-word;
    hyphens: auto;
}

.neon-pink-text {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink),
        0 0 80px var(--neon-pink);
}

.gold-text {
    background: linear-gradient(to right, #bf953f, var(--gold-light), #b38728, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--gold-main));
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--gold-light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

@keyframes nav-alarm-pulse {
    0% { transform: scale(1); color: var(--gold-light); text-shadow: none; }
    50% { transform: scale(1.1); color: #ff3333; text-shadow: 0 0 15px #ff3333, 0 0 30px #ff0000; }
    100% { transform: scale(1); color: var(--gold-light); text-shadow: none; }
}

.nav-link.alarm-active {
    animation: nav-alarm-pulse 0.8s infinite !important;
    position: relative;
    z-index: 1001;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: linear-gradient(45deg, #bf953f, var(--gold-light), #b38728);
    color: var(--bg-black);
    border: 2px solid var(--gold-light);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    transform: translateY(-3px);
}

.btn-neon {
    background: transparent;
    color: #fff;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink), inset 0 0 10px var(--neon-pink);
    text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-pink);
}

.btn-neon:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink), inset 0 0 20px var(--neon-pink-dark);
    transform: translateY(-3px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--gold-main);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    border-color: var(--neon-pink);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: #050505;
    border-top: 2px solid var(--neon-pink);
}

/* Sections */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 3rem;
}

/* Utility */
.text-center { text-align: center; }
.m-auto { margin: 0 auto; }

/* =========================================
   GLOBAL UTILITIES & ENHANCEMENTS
   ========================================= */

/* Animations */
.fade-in { 
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
    opacity: 0; 
    transform: translateY(20px); 
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Subtitles */
.section-subtitle {
    text-align: center;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Enhanced Card Elements */
.card-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 16px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.card-value.gold { color: var(--gold-main); text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
.card-value.purple { color: var(--neon-pink); text-shadow: 0 0 15px rgba(255, 0, 255, 0.4); }

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:first-of-type {
    margin-top: 10px;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-value {
    font-weight: 800;
    font-size: 0.95rem;
}

.trend-up { color: #00ff00; }
.trend-down { color: #ff3333; }

/* Forms & Inputs */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

input, select, textarea {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold-main);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

textarea {
    width: 100%;
    height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Premium Select Styling */
.premium-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    transition: var(--transition-fast);
    outline: none;
    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='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.premium-select:hover, .premium-select:focus {
    border-color: var(--gold-main);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.premium-select option {
    background: #111;
    color: #fff;
}

/* --- Global Radio Player Widget --- */
.radio-player-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--neon-pink);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.radio-player-widget:hover {
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
    border-color: var(--gold-main);
}

.radio-player-widget.playing {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(255, 0, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 255, 0.6); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 255, 0.2); }
}

/* Collapsed State */
.radio-player-widget.collapsed {
    padding: 10px;
    width: 50px;
    height: 50px;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.radio-player-widget.collapsed .radio-content {
    display: none;
}

.radio-player-widget.collapsed .radio-toggle {
    display: none; /* Hide minus button */
}

.radio-player-widget.collapsed::after {
    content: "📻";
    font-size: 1.5rem;
    display: block;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-toggle {
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.2rem;
    padding: 5px;
}

.radio-toggle:hover {
    color: var(--gold-main);
}

.radio-btn-icon, .radio-info {
    cursor: pointer;
}

.radio-btn-icon {
    font-size: 1.5rem;
    color: var(--gold-main);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: 0.3s;
    min-width: 30px;
    text-align: center;
}

.radio-btn-icon:hover {
    transform: scale(1.1);
    color: var(--neon-pink);
}

.radio-info {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.radio-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.radio-status {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

/* Volume System Fix */
.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    flex: 1; /* Take remaining space */
    min-width: 150px;
}

.volume-icon {
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    user-select: none;
}

.volume-icon:hover {
    transform: scale(1.2);
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    border: none; /* Reset default border if any */
    padding: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--gold-main);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-main);
    transition: 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--gold-main);
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px var(--gold-main);
    transition: 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .radio-player-widget:not(.collapsed) {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .radio-info {
        display: none; /* Hide text on small mobiles to save space */
    }
}


/* Tech Specs Redesign */
.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.spec-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-fast);
}

.spec-card:hover {
    border-color: var(--gold-main);
    background: rgba(255, 215, 0, 0.05);
}

.spec-card h4 {
    color: var(--gold-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.spec-card p {
    color: #ccc;
    font-size: 0.9rem;
}

.fee-display {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    margin: 1rem 0 0.5rem 0;
    font-family: 'Orbitron', sans-serif;
}

@media (min-width: 1024px) {
    .tech-specs {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* =========================================
   LIST VIEW SYSTEM (TERMINAL MODE)
   ========================================= */

.view-controls {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.view-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #94a3b8;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--neon-pink);
}

.view-btn.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-main);
    border-color: var(--gold-main);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.list-header {
    display: none;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 0.5fr;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
    margin-top: 10px;
}

.list-mode-active .list-header {
    display: grid;
}

.charts-column.list-mode {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    align-content: start !important;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.list-mode-active .charts-column.list-mode {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.list-mode .glass-card {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 !important;
    padding: 12px 25px !important;
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 0.5fr !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    transition: background 0.2s !important;
}

.list-mode .glass-card:last-child {
    border-bottom: none !important;
}

.list-mode .glass-card:hover {
    background: rgba(255, 215, 0, 0.05) !important;
}

.list-mode .crypto-title {
    grid-column: 1;
    font-size: 0.9rem !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
}

.list-mode .crypto-price {
    grid-column: 2;
    font-size: 0.95rem !important;
    margin: 0 !important;
    font-weight: 700 !important;
    color: var(--gold-light) !important;
}

.list-mode .list-mode-data {
    display: block !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.list-mode .list-mode-data[id^="list-var-"] { grid-column: 3; }
.list-mode .list-mode-data[id^="list-low-"] { grid-column: 4; }
.list-mode .list-mode-data[id^="list-high-"] { grid-column: 5; }

.list-mode .card-actions {
    grid-column: 6;
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.list-mode .card-actions .chart-controls-wrapper {
    display: none !important;
}

.list-mode .card-actions .btn-expand {
    height: 28px !important;
    width: 28px !important;
    padding: 0 !important;
    font-size: 14px !important;
}

.list-mode .chart-container,
.list-mode .crypto-var {
    display: none !important;
}

@media (max-width: 768px) {
    .list-header {
        grid-template-columns: 1fr 1fr !important;
        padding: 12px 15px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    .list-header div:nth-child(2) { text-align: right; }

    .list-mode .glass-card {
        grid-template-columns: 1fr 1fr !important;
        padding: 15px !important;
        gap: 5px !important;
        cursor: pointer;
        transition: all 0.3s ease !important;
    }
    
    .list-mode .glass-card.expanded {
        padding-bottom: 15px !important;
        background: rgba(255, 215, 0, 0.08) !important;
    }

    .list-mode .crypto-title {
        grid-column: 1 !important;
        font-size: 0.85rem !important;
    }
    
    .list-mode .crypto-price {
        grid-column: 2 !important;
        text-align: right !important;
        font-size: 1.05rem !important;
        color: #fff !important;
    }

    .list-mode .list-mode-data[id^="list-var-"] {
        grid-column: 2 !important;
        display: block !important;
        text-align: right !important;
        font-size: 0.85rem !important;
        margin-top: -4px;
    }

    /* Expandable Low/High prices on Mobile */
    .list-mode .glass-card.expanded .list-mode-data[id^="list-low-"],
    .list-mode .glass-card.expanded .list-mode-data[id^="list-high-"] {
        display: block !important;
        grid-row: 2;
        margin-top: 10px;
        font-size: 0.75rem !important;
        color: #94a3b8;
        font-weight: 600;
        animation: fadeIn 0.3s ease forwards;
    }

    .list-mode .glass-card.expanded .list-mode-data[id^="list-low-"] {
        grid-column: 1 !important;
    }
    .list-mode .glass-card.expanded .list-mode-data[id^="list-low-"]::before { content: 'BAS 24H: '; color: var(--gold-main); font-size: 0.65rem; }

    .list-mode .glass-card.expanded .list-mode-data[id^="list-high-"] {
        grid-column: 2 !important;
        text-align: right !important;
    }
    .list-mode .glass-card.expanded .list-mode-data[id^="list-high-"]::before { content: 'HAUT 24H: '; color: var(--gold-main); font-size: 0.65rem; }
    
    .list-mode .card-actions,
    .list-mode .list-mode-data[id^="list-low-"],
    .list-mode .list-mode-data[id^="list-high-"] {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* Global filtering utility - high specificity to override list-mode display */
.charts-column .glass-card.filtered-out {
    display: none !important;
}

/* Premium Dropdown Navigation Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Invisible bridge to prevent dropdown from closing prematurely when moving mouse */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
    z-index: 1999;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.15), 0 0 15px rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    min-width: 240px;
    z-index: 2000;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

.dropdown-content a {
    color: var(--gold-light);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255, 215, 0, 0.05);
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    padding-left: 25px;
}

.dropdown .arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Mobile responsive fixes for dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        transform: none;
        width: 100%;
        background: rgba(20, 20, 20, 0.8);
        border: none;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
        transform: none;
    }
    
    .dropdown-content a {
        padding-left: 30px;
    }
    
    .dropdown-content a:hover {
        padding-left: 35px;
    }
}
