/* ========================================================
   NUMSIX COMMUNITY - HIGH-END PREMIUM GOLD STYLESHEET
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Rajdhani:wght@600;700&display=swap');

/* --- 1. Global Reset & Theme Variables --- */
:root {
    --bg-dark: #060608;
    --bg-obsidian: #0a0a0d;
    --bg-darker: #030304;
    
    /* Premium Golds */
    --gold-light: #fce798;
    --gold: #f3c246;          /* Elegant champagne gold */
    --gold-dark: #caa02e;
    --gold-deep: #a17f20;
    --gold-glow: rgba(243, 194, 70, 0.2);
    --gold-glow-strong: rgba(243, 194, 70, 0.45);
    --gold-border: rgba(243, 194, 70, 0.15);
    
    /* Accents (Amber/Orange) */
    --accent: #d4a323;        /* Secondary metallic gold */
    --accent-glow: rgba(212, 163, 35, 0.2);
    
    /* Emerald/Green (Bonus Points) */
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.2);
    
    /* Card Backgrounds with Blur */
    --card-bg: rgba(15, 15, 20, 0.75);
    --card-bg-solid: #0f0f14;
    --card-border: rgba(243, 194, 70, 0.08);
    
    /* Text colors */
    --text-white: #ffffff;
    --text-light: #f7f7fa;
    --text-muted: #9ba1ad;
    --text-dark: #060608;
    
    /* Fonts */
    --font-sans: 'Kanit', sans-serif;
    --font-display: 'Rajdhani', sans-serif;
}

/* --- 2. Global Styles & Selection --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Soft pattern overlay */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(243, 194, 70, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(212, 163, 35, 0.03) 0%, transparent 40%);
}

::selection {
    background-color: var(--gold);
    color: var(--text-dark);
}

/* --- 3. Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.15);
    border-radius: 99px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* --- 4. Premium Animations & Transitions --- */
#main-content {
    min-height: 65vh;
}
.section-view {
    display: none;
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}
.section-view.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.2);
    }
}

@keyframes borderRotate {
    0% { border-image-source: linear-gradient(0deg, var(--gold), var(--accent)); }
    50% { border-image-source: linear-gradient(180deg, var(--gold), var(--accent)); }
    100% { border-image-source: linear-gradient(360deg, var(--gold), var(--accent)); }
}

/* --- 5. Navigation & Headers --- */
.glass-nav {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    position: relative;
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
}
.nav-link:hover {
    color: var(--text-white) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.nav-link.active {
    color: var(--gold) !important;
    font-weight: 600;
    text-shadow: 0 0 15px var(--gold-glow);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    border-radius: 99px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px var(--gold-glow-strong);
}
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Nav Bar Styles */
.nav-link-mobile {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-mobile i {
    transition: transform 0.2s ease;
}
.nav-link-mobile:active i {
    transform: scale(0.85);
}

/* --- 6. Glassmorphism Panels --- */
.glass-panel {
    background: var(--card-bg-solid);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-panel:hover {
    border-color: rgba(255, 215, 0, 0.15) !important;
}

/* --- 7. Luxury Hover Cards --- */
.hover-card {
    background: var(--card-bg-solid);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}
.hover-card:hover::before {
    left: 150%;
}
.hover-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 215, 0, 0.25) !important;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.05);
}

/* --- 8. Interactive Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
    color: var(--text-dark) !important;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.2);
    border: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.btn-primary:hover {
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:active {
    transform: translateY(0);
}

/* --- 9. Shop Menu Tabs --- */
.shop-tab {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.shop-tab:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}
.shop-tab.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 14px rgba(255, 159, 28, 0.35);
}

/* --- 10. Forms and Input controls --- */
input[type="text"], 
input[type="number"], 
input[type="password"], 
select, 
textarea {
    background: rgba(2, 2, 3, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 0.75rem 1.25rem !important;
    color: var(--text-white) !important;
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}
input[type="text"]:focus, 
input[type="number"]:focus, 
input[type="password"]:focus, 
select:focus, 
textarea:focus {
    border-color: rgba(255, 215, 0, 0.45) !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.15) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Hide arrow wheels on inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* --- 11. Promotions Banner --- */
.promo-badge {
    background: linear-gradient(90deg, #ff0055, var(--accent), var(--gold));
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite, pulseGlow 3s infinite alternate;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 12. Modal Slide-in Panels --- */
#cart-panel {
    background-color: var(--bg-obsidian);
    border-left: 1px solid rgba(255, 215, 0, 0.08);
    box-shadow: -15px 0 40px rgba(0,0,0,0.7);
}

/* --- 13. SweetAlert2 Custom Styling Overrides --- */
.swal2-popup {
    font-family: var(--font-sans) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9) !important;
}
.swal2-title {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}
.swal2-html-container {
    color: var(--text-muted) !important;
}
.swal2-confirm {
    border-radius: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
}
.swal2-cancel {
    border-radius: 14px !important;
    font-weight: 600 !important;
}
.swal2-input {
    background: rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-family: var(--font-sans) !important;
}
.swal2-input:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2) !important;
}

/* --- 14. Custom Classes for Overhauled Structure --- */

/* IP Copy Container */
.ip-copy-container {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 13, 18, 0.8);
    transition: all 0.3s ease;
}
.ip-copy-container:hover {
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
}

/* Store Shortcut Cards */
.shortcut-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.shortcut-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.shortcut-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.08);
}
.shortcut-card:hover::after {
    opacity: 1;
}

/* Steps and Download Guides */
.step-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid rgba(255, 255, 255, 0.05) !important;
}
.step-card:hover {
    border-left-color: var(--gold) !important;
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.015);
}

/* Status dots */
.status-online-dot {
    position: relative;
}
.status-online-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 99px;
    background: var(--gold);
    opacity: 0.4;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Profile Modal & Widgets */
.profile-stat-box {
    background: linear-gradient(135deg, rgba(21, 21, 27, 0.8) 0%, rgba(13, 13, 18, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s;
}
.profile-stat-box:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Transaction History items */
.history-item {
    transition: all 0.25s ease;
}
.history-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Promo Banner Glow */
.glow-gold-pulse {
    animation: pulseGlow 2.5s infinite alternate;
}

/* Fixes for Tailwind layouts integration */
.glass-panel, .hover-card {
    background-color: var(--card-bg-solid) !important;
}