@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Prompt:wght@400;600;700;900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #07070a;
    --bg-surface: #0f1117;
    --primary: #ff2d2d;
    --primary-rgb: 255, 45, 45;
    --primary-glow: rgba(255, 45, 45, 0.25);
    --secondary: #b30000;
    --accent: #ff004d;
    --bg-glass: rgba(15, 17, 23, 0.78);
    --border-glass: rgba(255, 45, 45, 0.18);
    --text-main: #f3f4f6;
    --text-muted: rgba(243, 244, 246, 0.65);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Theme Tokens */
    --inner-glow: inset 0 0 20px rgba(255, 45, 45, 0.06);
    --transition-premium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --neon-shadow: 0 10px 30px rgba(255, 45, 45, 0.18);
    
    --mouse-x: 50%;
    --mouse-y: 50%;

    /* GUI Specific Tokens */
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --panel-border: 1px solid rgba(255, 255, 255, 0.06);
    --radius-lg: 22px;

    /* Advanced FX */
    --elite-glow: 0 0 20px rgba(255, 45, 45, 0.35);
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.glow-follower {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(var(--primary-rgb), 0.08), transparent 80%);
    pointer-events: none;
}

/* Elite Noise & Grid */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.04;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px var(--primary-glow);
    z-index: 10001;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.35);
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    filter: blur(0.3px);
    opacity: 0.7;
}

.floating-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.parallax-shape {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.18), transparent 70%);
    filter: blur(12px);
    opacity: 0.35;
    will-change: transform;
}

.dynamic-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y), black, transparent 80%);
    mask-image: radial-gradient(circle at var(--mouse-x) var(--mouse-y), black, transparent 80%);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Sarabun', 'Prompt', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: body-reveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

input, textarea, select, button {
    font-family: inherit;
}

input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="url"], textarea, select {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    border-radius: 16px !important;
    outline: none;
}
option {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, textarea:focus, select:focus {
    border-color: rgba(var(--primary-rgb), 0.85) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12) !important;
}
input::placeholder, textarea::placeholder {
    color: rgba(243, 244, 246, 0.45) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--bg-surface) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main) !important;
}

h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem) !important; }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.85rem) !important; }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important; }

body [style*="background: #fff"],
body [style*="background:#fff"],
body [style*="background: #fcfcfc"],
body [style*="background:#fcfcfc"],
body [style*="background: #f8f9fa"],
body [style*="background:#f8f9fa"],
body [style*="background: #f1f5f9"],
body [style*="background:#f1f5f9"],
body [style*="background: rgb(255, 255, 255)"],
body [style*="background:rgb(255, 255, 255)"] {
    background: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border-color: var(--border-glass) !important;
}

body [style*="color: #000"],
body [style*="color:#000"],
body [style*="color: #111"],
body [style*="color:#111"],
body [style*="color: #333"],
body [style*="color:#333"],
body [style*="color: #555"],
body [style*="color:#555"],
body [style*="color: #777"],
body [style*="color:#777"],
body [style*="color: rgb(0, 0, 0)"],
body [style*="color:rgb(0, 0, 0)"] {
    color: var(--text-main) !important;
}

@keyframes body-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Layout Components --- */
.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation & Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--inner-glow);
    transition: var(--transition-smooth);
}

.navbar .container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

/* --- Navigation Pill (New Design) --- */
.nav-pill-container {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 2000;
    pointer-events: none;
}

.nav-pill {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1.5px solid var(--border-glass);
    padding: 6px 24px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 30px;
    width: fit-content;
    min-width: 700px;
    max-width: 96vw;
    justify-content: flex-start;
    overflow: visible;
    pointer-events: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05), var(--inner-glow);
    animation: floating-nav 4s ease-in-out infinite;
}

.nav-pill .nav-links {
    gap: 30px;
    flex: 1;
}

.nav-pill .nav-actions {
    margin-left: auto;
}

@media (max-width: 840px) {
    .nav-pill {
        padding: 10px 16px;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 26px;
        animation: none;
    }
    .nav-pill .brand {
        padding-right: 0 !important;
        border-right: none !important;
    }
    .nav-pill .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .nav-user-info {
        display: none;
    }
    .nav-brand-text {
        font-size: 1rem !important;
    }
}

@keyframes floating-nav {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.profile-menu,
.noti-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: none;
    z-index: 5000;
}

.noti-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.15);
}

/* --- Premium Buttons --- */
.btn-galaxy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-premium);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 25px rgba(255, 45, 45, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.35);
    filter: brightness(1.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-glass);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(var(--primary-rgb), 0.10);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* --- Glass Panels & Cards --- */
.glass-panel {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(25px);
    border: 1.5px solid var(--border-glass);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05), var(--inner-glow);
    transition: var(--transition-smooth);
    color: var(--text-main);
}

.glass-panel:hover {
    border-color: rgba(255, 45, 45, 0.35);
    box-shadow: 0 40px 80px rgba(255, 45, 45, 0.08), var(--inner-glow);
}

.cyber-card {
    background: var(--bg-surface) !important;
    backdrop-filter: blur(15px);
    border: var(--panel-border) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-premium);
    position: relative;
    box-shadow: var(--card-shadow);
    color: var(--text-main);
}

.cyber-card > * {
    position: relative;
    z-index: 1;
}

.cyber-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    opacity: 0;
    transition: 0.3s;
    z-index: 0;
    pointer-events: none;
}

.cyber-card:hover::before {
    opacity: 1;
}

.cyber-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 30px 60px rgba(255, 45, 45, 0.12);
}

/* --- Hero Section Styles --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.accent-text {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
    font-weight: 900;
}

.gradient-title {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn 0.8s forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Scrollbar Customization */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.nav-pill {
    background: var(--bg-glass) !important;
    border-color: var(--border-glass) !important;
}
.nav-pill .brand span {
    color: var(--text-main) !important;
}
.nav-pill .nav-link {
    color: var(--text-muted);
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-premium);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar for Shop */
.shop-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: var(--bg-glass);
    padding: 30px;
    border-radius: 24px;
    border: 1.5px solid var(--border-glass);
}

.filter-btn {
    width: 100%;
    text-align: left;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-glass);
    margin-bottom: 12px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(255, 45, 45, 0.25);
}

/* Swiper Glow */
.swiper-pagination-bullet { background: rgba(255,255,255,0.2) !important; }
/* Phase 2: Tactical Icon Boxes */
.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.10) !important;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.icon-box:hover::before {
    opacity: 0.1;
}

/* Tactical Corner Accents - Luxury Edition */
.tactical-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
    transition: 0.3s;
}

.cyber-card:hover .tactical-corner {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 10px var(--primary));
}
.corner-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Status Badge Tactical */
.status-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid currentColor;
}

.status-active { color: #2ea043; background: rgba(46, 160, 67, 0.05); }
.status-expired { color: #ff007a; background: rgba(255, 0, 122, 0.05); }

/* --- Premium Footer (Razex Style) --- */
.footer-premium {
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(25px);
    color: var(--text-main);
    padding: 40px 0 20px;
    margin-top: auto;
    position: relative;
    border-top: 1.5px solid rgba(255, 45, 45, 0.18);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.45);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.footer-shop-name {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.footer-description {
    color: rgba(243, 244, 246, 0.7);
    line-height: 1.8;
    max-width: 400px;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--text-main);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links li a {
    color: rgba(243, 244, 246, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links li a i {
    font-size: 0.8rem;
}

.footer-links li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Discord Widget Styled - Elite Light */
.discord-widget-styled {
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.discord-header {
    background: #5865F2;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-header i {
    font-size: 2rem;
    color: #fff;
}

.discord-name {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.discord-status {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.discord-body {
    padding: 20px;
    background: rgba(255,255,255,0.02);
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-mini {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.name-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    flex: 1;
}

.discord-footer {
    padding: 15px 20px 20px;
    background: rgba(255,255,255,0.02);
}

.btn-join-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.06);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.btn-join-discord:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #888;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.powered-by {
    color: #777;
    font-size: 0.9rem;
    font-weight: 800;
}
/* --- Floating Action Button --- */
.floating-discord {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #5865F2;
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
    transition: var(--transition-premium);
    z-index: 9000;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.floating-discord:hover {
    transform: translateY(-10px) rotate(10deg);
    box-shadow: 0 20px 50px rgba(88, 101, 242, 0.6);
}

.floating-discord i {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.powered-by .accent {
    color: var(--primary);
}

.btn-hire {
    padding: 10px 25px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.btn-hire:hover {
    background: var(--bg-surface);
    color: #000;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Premium Preloader --- */
.web-preloader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    transition: opacity 0.8s ease, visibility 0.8s;
    text-align: center;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: clamp(120px, 18vw, 180px);
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: pulse-glow 2s infinite ease-in-out;
}

.preloader-text {
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    opacity: 0.5;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--primary-glow)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 40px var(--primary-glow)); }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Premium Scroll Top --- */
.scroll-top-btn {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-glass);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition-premium);
    z-index: 100;
}

.scroll-top-btn:hover {
    transform: translateX(-50%) translateY(-10px);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 15px 40px var(--primary-glow);
}
/* --- Elite Category Cards (2000x500 style) --- */
.elite-cat-card {
    height: auto;
    aspect-ratio: 4 / 1.1;
    min-height: 140px;
}

.elite-cat-img, .elite-cat-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.elite-cat-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.2);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.elite-cat-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.elite-cat-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.elite-cat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elite-cat-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff !important;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    letter-spacing: -0.5px;
}

.elite-cat-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elite-cat-line {
    width: 20px;
    height: 3px;
    background: #ffa500;
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.elite-cat-count {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.elite-cat-price {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.price-dot {
    width: 8px;
    height: 8px;
    background: #ffa500;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffa500;
}

@media (max-width: 768px) {
    .elite-cat-card { aspect-ratio: auto; min-height: 180px; }
    .elite-cat-content { padding: 0 25px; }
    .elite-cat-name { font-size: 1.6rem; }
    .elite-cat-price { padding: 8px 16px; font-size: 0.9rem; }
}
