/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Navigation */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    /* Full screen */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove center alignment for split layout */
    text-align: left;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.6) 100%), url('../img/hero-bg-2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 120px;
    /* Offset for fixed nav + ticker */
}

/* Hero Grid Layout (Desktop) */
.hero-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.floating-image {
    max-width: 100%;
    width: 600px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Mobile First Adjustments */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding-top: 100px;
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('../img/hero-bg-2.png');
    }

    .hero-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 30px;
        display: flex;
        flex-direction: column;
    }

    /* Visual below text */
    .hero-visual {
        width: 100%;
        margin-top: 10px;
    }

    .floating-image {
        width: 90%;
        max-width: 400px;
        animation: none;
        box-shadow: none;
        border: none;
    }

    .hero-content {
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        border: none;
        position: relative;
        z-index: 20;
    }
}




/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #D4AF37;
    /* Fallback */
    text-shadow: 0px 2px 10px rgba(212, 175, 55, 0.2);
}


.hidden {
    display: none !important;
}

/* Components */
.btn-premium {
    background: linear-gradient(135deg, #D4AF37 0%, #AA8C2C 100%);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.05);
}

.card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-glass:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    padding: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .dashboard-grid,
    .admin-grid {
        grid-template-columns: 1fr;
        display: block;
        /* Stack vertically */
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .sidebar.mobile-active {
        transform: translateX(0);
        display: flex;
        /* Override display: none if set elsewhere */
    }

    .mobile-nav-toggle {
        display: inline-block;
        margin-right: 15px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    /* Table Scroll */
    .card-glass {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
        /* Force scroll */
    }

    /* Header Adjustments */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    header>div {
        text-align: left !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Actions Grid */
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Public Navbar Mobile */
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        background: rgba(20, 20, 20, 0.95);
        padding: 15px;
        border-radius: 8px;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-links a {
        display: block;
        text-align: center;
        margin: 0 !important;
        width: 100%;
    }

    /* Setup Profile Padding */
    .card-glass {
        padding: 20px !important;
    }

    /* Mobile Typography */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero {
        background-attachment: scroll !important;
    }

    .hero p {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    /* Grid Improvements */
    .grid,
    .stats-grid {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    /* Mobile CTA Buttons */
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .cta-group a {
        margin: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* Ticker Mobile */
    .ticker .container {
        gap: 15px !important;
    }

    .ticker-item {
        width: 100% !important;
        text-align: center;
        background: rgba(255, 255, 255, 0.03);
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
}

/* Top Price Ticker */
.ticker-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    overflow: hidden;
    height: 40px;
    background-color: #000;
    padding-left: 100%;
    /* Start offscreen */
    box-sizing: border-box;
    z-index: 2000;
    /* Above nav */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 30s;
}

.ticker-item-inline {
    display: inline-block;
    padding: 0 40px;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.ticker-value {
    color: var(--color-success);
    font-weight: 700;
    margin-left: 5px;
}

.ticker-change-down {
    color: #ff4d4d;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Adjust nav for ticker */
.glass-nav {
    top: 40px;
    /* Push nav down */
}

/* Adjust hero for ticker + nav */
.hero {
    padding-top: 120px;
}