/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #FF6A00;
    --primary-hover: #e05e00;
    --background-color: #0E0E0E;
    --text-main: #FFFFFF;
    --text-muted: #B5B5B5;
    --border-color: rgba(255, 106, 0, 0.08);
    --light-bg: #141414;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Base Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #0E0E0E;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: none;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: #0E0E0E;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
    transform: scale(1.02);
}

.btn-danger {
    background-color: var(--danger);
}

.btn-danger:hover {
    background-color: #b02a37;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 40px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: transparent;
}

.table th,
.table td {
    border: 1px solid var(--border-color);
    padding: 14px 12px;
    text-align: left;
}

.table th {
    background-color: var(--light-bg);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.1);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 0px;
    margin-bottom: 24px;
    text-align: left;
    border-left: 4px solid;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.05);
    color: var(--danger);
    border-color: var(--danger);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #51cf66;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

/* ========== CINEMATIC HEADER (Esports / Dark Tech) ========== */
.header {
    background: linear-gradient(180deg, #111111 0%, #0A0A0A 100%);
    border-bottom: 1px solid rgba(255, 106, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 48px;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.25));
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.5));
}

/* Nav */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    border-radius: 1px;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px rgba(255, 106, 0, 0);
}

.nav-links a:hover {
    color: #ffffff;
    background: transparent;
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
}

/* Right Side */
.header-right {
    display: flex;
    gap: 28px;
    align-items: center;
    height: 100%;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-selector i {
    color: rgba(255, 255, 255, 0.5);
}

.lang-selector a {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.lang-selector a:hover,
.lang-selector a.active {
    color: var(--primary-color);
    background: transparent;
    text-decoration: none;
    outline: none;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 1px;
}

.lang-selector a:focus {
    outline: none;
    box-shadow: none;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
    user-select: none;
}

/* CTA Button (Pill / Glow) */
.btn-riot {
    background-color: var(--primary-color);
    color: #0E0E0E;
    border: none;
    border-radius: 22px;
    padding: 10px 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    box-shadow:
        0 0 12px rgba(255, 106, 0, 0.3),
        0 0 30px rgba(255, 106, 0, 0.1);
}

.btn-riot:hover {
    background-color: #ff7a1a;
    transform: scale(1.04);
    box-shadow:
        0 0 20px rgba(255, 106, 0, 0.5),
        0 0 40px rgba(255, 106, 0, 0.2);
    color: #0E0E0E;
}

.btn-riot:active {
    transform: scale(0.98);
}

/* Header Cart */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 24px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.header-cart:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary-color);
    color: #0E0E0E;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
    border: 2px solid #0A0A0A;
}

/* Hero Banner */
.hero {
    background: radial-gradient(circle at center, #141414 0%, #0E0E0E 100%);
    padding: 160px 0 100px;
    margin-top: -85px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 106, 0, 0.1);
}

/* Particle Canvas Wrapper */
#particles-js canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    /* Slightly more visible tech particles */
}

.hero-content {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 64px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -1px;
}

.gold-text {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero p {
    font-size: 18px;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.btn-glow {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shine-btn 3s infinite;
}

@keyframes shine-btn {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--light-bg);
    border: 1px solid rgba(255, 106, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease-out;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.4);
}

.product-image {
    height: 250px;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Categories */
.category-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.cat-badge {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    transition: all 0.2s ease-out;
    box-shadow: none;
}

.cat-badge:hover,
.cat-badge.active {
    background: var(--primary-color);
    color: #0E0E0E;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.2);
    transform: scale(1.02);
}

/* Discord Section */
.discord-section {
    background: #2f3136;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin: 60px 0 0;
}

.discord-section h2 {
    color: #fff;
}

.discord-section p {
    color: #b9bbbe;
    max-width: 600px;
    margin: 0 auto 30px;
}

.discord-btn {
    background-color: #5865F2;
    color: #fff;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 16px;
}

.discord-btn:hover {
    background-color: #4752C4;
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Footer */
.footer {
    background: var(--background-color);
    border-top: 2px solid var(--border-color);
    /* Thicker for Brutalism */
    padding: 60px 0 30px;
    /* More padding */
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    max-height: 75px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(192, 38, 211, 0.5));
}

.footer h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

/* Product Details Page */
.product-detail {
    display: flex;
    gap: 50px;
}

.product-detail-img {
    flex: 1;
    max-width: 500px;
}

.product-detail-img img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-detail-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Cart */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-info img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.cart-summary {
    background: transparent;
    padding: 30px;
    border: 1px solid rgba(255, 106, 0, 0.08);
    border-radius: 12px;
    box-shadow: none;
}

/* ========== COMMAND PALETTE ADMIN (BRUTALIST LUXURY) ========== */
body.admin-mode {
    background-color: #050505;
    /* Deep brutalist black */
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    flex-direction: column;
    /* Changed from row to column for top-nav */
    width: 100%;
}

/* Floating Command Header (Replaces Sidebar) */
.admin-header {
    background-color: #09090b;
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-header .brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 16px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    border-color: var(--primary-color);
    background-color: rgba(192, 38, 211, 0.1);
    box-shadow: 2px 2px 0px rgba(192, 38, 211, 0.3);
}

.admin-nav a.logout-link {
    color: #ff3333;
}

.admin-nav a.logout-link:hover {
    border-color: #ff3333;
}

/* Admin Main Content */
.admin-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.admin-content h2 {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* Brutalist Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #0a0a0a;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    /* Brutalist sharp */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.card .value {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-color);
}

/* Table Overrides for Admin */
.admin-content .table th {
    background-color: #050505;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    padding: 15px;
}

.admin-content .table td {
    padding: 15px;
    border-bottom: 1px solid #222;
}

.admin-content .table tr {
    animation: slideUp 0.4s ease-out forwards;
    opacity: 0;
}

/* Staggered animation for table rows */
.admin-content .table tr:nth-child(1) {
    animation-delay: 0.1s;
}

.admin-content .table tr:nth-child(2) {
    animation-delay: 0.2s;
}

.admin-content .table tr:nth-child(3) {
    animation-delay: 0.3s;
}

.admin-content .table tr:nth-child(4) {
    animation-delay: 0.4s;
}

.admin-content .table tr:nth-child(5) {
    animation-delay: 0.5s;
}

/* Brutalist Buttons Override */
.admin-content .btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
}

.admin-content .form-control {
    border-radius: 0;
    background-color: #050505;
    border: 1px solid #333;
    color: var(--text-main);
}

.admin-content .form-control:focus {
    border-color: var(--primary-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.card h3 {
    margin-top: 0;
    font-size: 16px;
    color: var(--text-muted);
}

.card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-bg);
}

.auth-box {
    background: var(--background-color);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 106, 0, 0.08);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-box h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-box .btn {
    width: 100%;
    margin-top: 15px;
}

/* Floating Discord Button */
.floating-discord {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #5865F2;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    z-index: 1000;
    transition: all 0.2s ease-out;
}

.floating-discord:hover {
    background-color: #4752C4;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

/* Touch Devices (Mobile) adjustments */
@media (hover: none) {
    .product-card {
        border-color: rgba(255, 106, 0, 0.2);
    }
}