/* ============================================
   FLYVIX STORE — COSMIC EDITION
   Premium dark theme with glassmorphism,
   animated gradients, and neon accents.
   ============================================ */

:root {
    /* Background layers */
    --bg-deep: #06060e;
    --bg-main: #0a0a18;
    --bg-surface: rgba(15, 15, 35, 0.6);
    --bg-glass: rgba(20, 20, 50, 0.45);
    --bg-glass-hover: rgba(30, 30, 70, 0.55);
    --bg-footer-top: #07070f;
    --bg-footer-bottom: #040408;

    /* Text */
    --text-main: #e8e8f0;
    --text-bright: #ffffff;
    --text-muted: #7a7a9e;
    --text-dim: #55556e;

    /* Accent palette */
    --accent-primary: #6c5ce7;
    --accent-primary-light: #a29bfe;
    --accent-secondary: #00cec9;
    --accent-secondary-light: #55efc4;
    --accent-hot: #fd79a8;
    --accent-hot-light: #fab1d0;
    --accent-gold: #ffc048;
    --accent-lime: #00b894;

    /* Card gradients */
    --card-gradient-1: linear-gradient(135deg, rgba(108, 92, 231, 0.35), rgba(0, 206, 201, 0.15));
    --card-gradient-2: linear-gradient(135deg, rgba(253, 121, 168, 0.3), rgba(108, 92, 231, 0.2));
    --card-gradient-3: linear-gradient(135deg, rgba(0, 206, 201, 0.3), rgba(85, 239, 196, 0.15));
    --card-gradient-4: linear-gradient(135deg, rgba(255, 192, 72, 0.3), rgba(253, 121, 168, 0.15));

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(108, 92, 231, 0.4);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 20px rgba(108, 92, 231, 0.25);
    --shadow-glow-secondary: 0 0 20px rgba(0, 206, 201, 0.25);

    /* Misc */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary-light);
}

/* ---- BODY ---- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated cosmic background */
body::before {
    content: '';
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: 
        linear-gradient(rgba(10, 10, 24, 0.75), rgba(6, 6, 14, 0.85)),
        url('stuff/bg.png') center/cover no-repeat;
    filter: blur(8px) brightness(0.8) contrast(1.1);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.05) translate(-1%, -1%);
    }
}

/* Animated grid overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ---- LINKS ---- */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--text-bright);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(-1px);
}

/* ================================================
   TOP NAVIGATION
   ================================================ */
.top-nav-wrapper {
    padding: 16px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    background: rgba(6, 6, 14, 0.5);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-secondary);
    background: rgba(0, 206, 201, 0.08);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 6px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-primary-light);
    background: rgba(108, 92, 231, 0.1);
}



.btn-login {
    background: linear-gradient(135deg, var(--accent-primary), #5a4bd1);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-login:hover {
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
}

.btn-cart {
    background: linear-gradient(135deg, var(--accent-secondary), #00b5b0);
    color: #0a0a18;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}

.btn-cart:hover {
    box-shadow: 0 6px 25px rgba(0, 206, 201, 0.5);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.server-status {
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-lime);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-lime);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 184, 148, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 148, 0); }
}

.status-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 1px;
}

.hero-logo {
    max-height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(108, 92, 231, 0.5));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-bright), var(--accent-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 25px rgba(108, 92, 231, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-secondary-light);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 10;
}

/* ================================================
   SALE BANNER
   ================================================ */
.sale-banner {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Animated gradient bar at bottom */
.sale-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-hot), var(--accent-gold), var(--accent-primary));
    background-size: 300% 100%;
    animation: gradientSlide 4s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Background glow */
.sale-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(85, 239, 196, 0.08), transparent 70%);
    pointer-events: none;
}

.sale-tag {
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-secondary));
    color: #0a0a18;
    font-weight: 900;
    font-size: 1.15rem;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 25px rgba(0, 184, 148, 0.35);
    letter-spacing: 1px;
    animation: tagGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes tagGlow {
    from { box-shadow: 0 0 20px rgba(0, 184, 148, 0.3); }
    to { box-shadow: 0 0 35px rgba(0, 184, 148, 0.5); }
}

.sale-title {
    font-size: 1.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--text-bright), var(--accent-gold), var(--accent-hot-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: textShimmer 3s ease-in-out infinite alternate;
}

@keyframes textShimmer {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

.countdown {
    display: flex;
    gap: 8px;
    background: rgba(10, 10, 30, 0.5);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.time-box .number {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-secondary-light);
    text-shadow: 0 0 10px rgba(0, 206, 201, 0.4);
}

.time-box .label {
    font-size: 0.6rem;
    color: var(--text-dim);
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* ================================================
   BENTO BOX GRID (HOME PAGE CARDS)
   ================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 24px;
    margin-bottom: 70px;
}

.bento-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
    text-decoration: none;
}

/* Glass shine sweep effect on hover */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
}

.bento-card:hover::before {
    left: 150%;
}

.bento-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 1;
    position: relative;
    transform: translateZ(30px);
    pointer-events: none;
}

.bento-card .card-info h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--text-bright), rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(255,255,255,0.25));
}

.bento-card .card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bento-card .card-icon {
    align-self: flex-end;
    height: 100px;
}

.bento-card .card-icon img {
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: transform var(--transition-smooth);
}

.bento-card:hover .card-icon img {
    transform: scale(1.15) rotate(5deg) translateZ(40px);
}

.card-bg-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.bento-card:hover .card-bg-circle {
    transform: translateY(-50%) scale(1.15);
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

/* Specific Bento Placements */
.card-ranks {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--card-gradient-1);
}
.card-ranks .card-content {
    flex-direction: row;
    align-items: center;
}
.card-ranks .card-icon {
    height: 180px;
}
.card-ranks .card-info h3 { font-size: 2.5rem; }

.card-keys {
    grid-column: span 1;
    grid-row: span 1;
    background: var(--card-gradient-2);
}

.card-coins {
    grid-column: span 1;
    grid-row: span 1;
    background: var(--card-gradient-3);
}

.card-vbadge {
    grid-column: span 2;
    grid-row: span 1;
    background: var(--card-gradient-4);
}
.card-vbadge .card-content {
    flex-direction: row;
    align-items: center;
}

/* Hover effects */
.bento-card:hover { border-color: rgba(255,255,255,0.3); }
.card-ranks:hover { box-shadow: 0 15px 40px rgba(108, 92, 231, 0.3); border-color: rgba(108, 92, 231, 0.5); }
.card-keys:hover { box-shadow: 0 15px 40px rgba(253, 121, 168, 0.3); border-color: rgba(253, 121, 168, 0.5); }
.card-coins:hover { box-shadow: 0 15px 40px rgba(0, 206, 201, 0.3); border-color: rgba(0, 206, 201, 0.5); }
.card-vbadge:hover { box-shadow: 0 15px 40px rgba(255, 192, 72, 0.3); border-color: rgba(255, 192, 72, 0.5); }

.question-mark {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--accent-hot), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-family: 'Courier New', Courier, monospace;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-top {
    background: var(--bg-footer-top);
    padding: 64px 0;
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--text-bright), var(--accent-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 22px;
    line-height: 1.7;
}

.btn-copy {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-lime));
    color: #0a0a18;
    font-family: inherit;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.25);
}

.btn-copy:hover {
    box-shadow: 0 6px 25px rgba(0, 206, 201, 0.4);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.25);
}

.btn-discord:hover {
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
}

.footer-bottom-wrapper {
    background: var(--bg-footer-bottom);
    padding: 28px 0;
    border-top: 1px solid var(--border-glass);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.copyright-title {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.theme-credits strong {
    color: var(--accent-primary-light);
}

/* ================================================
   RANK / ITEM LISTING PAGES
   ================================================ */
.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 70px;
}

.rank-item {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
}

.rank-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transition: height var(--transition-smooth);
    border-radius: 0 0 3px 0;
}

.rank-item:hover::before {
    height: 100%;
}

.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-primary);
    border-color: var(--border-glow);
}

.rank-image-box {
    background: rgba(10, 10, 25, 0.6);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    border-right: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.rank-image-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.05));
    pointer-events: none;
}

.rank-image-box img {
    max-width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    transition: var(--transition-smooth);
}

.rank-item:hover .rank-image-box img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(108, 92, 231, 0.3));
}

.rank-info-box {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.rank-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--text-bright), var(--accent-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-price {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 16px;
}

.rank-inr {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
}

.rank-buttons {
    display: flex;
    gap: 10px;
}

.btn-info-small {
    background: linear-gradient(135deg, var(--accent-primary), #5a4bd1);
    color: white;
    padding: 10px 26px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(108, 92, 231, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-info-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-info-small:hover::before {
    left: 100%;
}

.btn-cart-small {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-lime));
    color: #0a0a18;
    padding: 10px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    flex: 1;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0, 206, 201, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-cart-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cart-small:hover::before {
    left: 100%;
}

.btn-info-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.btn-cart-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 206, 201, 0.4);
}

/* ================================================
   MODAL
   ================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 6, 14, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(145deg, rgba(15, 15, 35, 0.95), rgba(10, 10, 25, 0.98));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    max-height: 88vh;
    padding: 24px 28px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(108, 92, 231, 0.15);
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-main);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-hot));
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary-light);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.close-btn {
    background: rgba(255, 85, 85, 0.1);
    border: 1px solid rgba(255, 85, 85, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    color: #ff5555;
}

.close-btn:hover {
    background: rgba(255, 85, 85, 0.2);
    border-color: rgba(255, 85, 85, 0.4);
    transform: scale(1.05);
}

.mc-section {
    margin-bottom: 22px;
}

.mc-title {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.mc-item {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.mc-item:hover {
    padding-left: 6px;
}

.mc-bullet {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ================================================
   VOTE PAGE
   ================================================ */
.vote-links-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 620px;
    margin: 0 auto 70px auto;
}

.vote-link-btn {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vote-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.15), transparent);
    transition: width var(--transition-smooth);
}

.vote-link-btn:hover::before {
    width: 100%;
}

.vote-link-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-primary);
    border-color: var(--border-glow);
}

.vote-link-btn span {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--text-bright), var(--accent-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vote-link-btn i {
    font-size: 1.6rem;
    color: var(--accent-primary-light);
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.vote-link-btn:hover i {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px;
        border-radius: var(--radius-md);
    }

    .header-left {
        flex-direction: column;
    }

    .header-right {
        justify-content: center;
    }

    .sale-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px;
        border-radius: var(--radius-md);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .card-ranks { grid-column: span 2; grid-row: span 1; }
    .card-vbadge { grid-column: span 2; grid-row: span 1; }
    .hero-title { font-size: 2.5rem; }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

    .bento-card {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .main-header {
        padding: 20px;
    }

    .sale-banner {
        padding: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
    .card-ranks, .card-keys, .card-coins, .card-vbadge { grid-column: span 1; }

    .bento-card {
        padding: 24px;
        min-height: 160px;
    }

    .card-info h3 {
        font-size: 1.4rem;
    }

    .rank-item {
        flex-direction: column;
    }

    .rank-image-box {
        width: 100%;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

    .rank-info-box {
        padding: 20px;
    }

    .vote-link-btn {
        padding: 18px 24px;
        font-size: 1rem;
    }
}

/* ================================================
   STAGGER ANIMATIONS ON LOAD
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sale-banner {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.category-card:nth-child(1) { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both; }
.category-card:nth-child(2) { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both; }
.category-card:nth-child(3) { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both; }
.category-card:nth-child(4) { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.45s both; }

.rank-item:nth-child(1) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.rank-item:nth-child(2) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.rank-item:nth-child(3) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }
.rank-item:nth-child(4) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }

.vote-link-btn:nth-child(1) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.vote-link-btn:nth-child(2) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.vote-link-btn:nth-child(3) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }
.vote-link-btn:nth-child(4) { animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }
