/* Fonts - using link tag in HTML instead to prevent CSS blocking */
/* @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap'); */

/* ============================
   DESIGN TOKENS
   ============================ */
:root {
    --bg-body: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-2: #1a2035;
    --bg-surface-3: #1f2a40;
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary: #06b6d4;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(124, 58, 237, 0.4);
    --glow-primary: rgba(124, 58, 237, 0.25);
    --glow-secondary: rgba(6, 182, 212, 0.2);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ============================
   RESET
   ============================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   TOP BAR
   ============================ */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--secondary));
    padding: 4px 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
}

.top-bar-links a:hover {
    color: white;
}

/* ============================
   HEADER / NAVBAR
   ============================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--glow-primary);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.nav-link.active {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Nav Dropdown Logic */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 1100;
    animation: dropdownFade 0.25s ease-out;
}
.dropdown-content.active,
.nav-dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.drop-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
    width: 100%;
}

.drop-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.drop-label {
    color: #dde0f5;
    font-size: 14px;
    font-weight: 500;
}

.icon-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

#support-wrapper.open .arrow {
    transform: rotate(180deg);
}

.glass-dropdown {
    backdrop-filter: blur(20px);
    background: rgba(22, 22, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-search {
    position: relative;
}

.nav-search input {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 180px;
    outline: none;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.nav-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
    width: 220px;
}

/* Skeleton Pulse Animation */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.4;
    }
}

.skeleton-text {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    width: 80%;
}

.skeleton-row .skeleton-text {
    margin: 5px 0;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #5865F2;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.discord-btn:hover {
    background: #4752C4;
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-primary);
    filter: brightness(1.1);
}

.btn-ghost {
    background: rgba(124, 58, 237, 0.1);
    border: 1.5px solid rgba(124, 58, 237, 0.3);
    color: var(--primary-light);
}

.btn-ghost:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ============================
   GRADIENT TEXT
   ============================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================
   HERO
   ============================ */
.hero {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
    text-align: center;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    right: -5%;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -15%;
    left: -8%;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(25px, -35px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 20px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-features-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hf-icon {
    font-size: 1.3rem;
}

.hf-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================
   SECTION COMMON
   ============================ */
section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ============================
   CATEGORY TABS
   ============================ */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================
   STORE NAVIGATION (Games -> Products)
   ============================ */
.store-nav-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.store-nav-header h2 {
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary-light), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-surface-3);
    border-color: var(--primary);
}

/* ============================
   GAME CARDS
   ============================ */
.game-card {
    cursor: pointer;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.view-products-btn {
    padding: 10px 20px;
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 50px;
    transform: translateY(20px);
    transition: var(--transition);
}

.game-card:hover .view-products-btn {
    transform: translateY(0);
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-primary);
}

.card-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface-2);
}

.card-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .card-banner-img {
    transform: scale(1.08);
}

.card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    z-index: 1;
}

.card-game-label {
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 4px;
    text-transform: uppercase;
    user-select: none;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-status {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.card-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-undetected {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-update {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 16px;
    min-height: 34px;
}

.card-pricing {
    margin-bottom: 16px;
}

.price-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.price-tag {
    padding: 5px 10px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
    min-width: 70px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.price-tag:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.price-tag.active {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

.price-tag.active strong {
    color: #fff;
}

.price-tag strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-top: 2px;
}

/* .featured is used only as default selection marker, styling handled by .active */

/* ============================
   FEATURES
   ============================ */
.features-section {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, transparent 50%, rgba(6, 182, 212, 0.03) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ============================
   STATUS TABLE
   ============================ */
.status-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.status-table {
    max-width: 800px;
    margin: 0 auto;
}

.status-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    font-size: 0.92rem;
}

.status-header-row {
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
    background: var(--bg-surface-2);
    border-radius: 8px;
    border-bottom: none;
    margin-bottom: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.online {
    color: var(--accent);
}

.status-badge.updating {
    color: var(--warning);
}

.status-badge.offline {
    color: var(--danger);
}

/* Order Item in lookup */
.order-item-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.order-item-card:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}

.order-info-main h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.order-info-main span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.order-status-pill {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: #060911;
    padding: 70px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    padding: 5px 0;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-right: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .nav-search {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-features-row {
        gap: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .status-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        font-size: 0.82rem;
    }

    .top-bar-links {
        display: none;
    }

    .top-bar-inner {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .price-options {
        flex-direction: column;
    }

    .hero-features-row {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
}

/* =====================
   CHECKOUT MODAL STYLES
   ===================== */

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
    animation: modalFadeIn 0.3s ease-out;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Modal Gallery Styling */
#modal-gallery-list,
#product-gallery-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

#modal-gallery-list::-webkit-scrollbar,
#product-gallery-list::-webkit-scrollbar {
    height: 6px;
}

#modal-gallery-list::-webkit-scrollbar-track,
#product-gallery-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#modal-gallery-list::-webkit-scrollbar-thumb,
#product-gallery-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-gallery-img,
.gallery-item {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s, border-color 0.3s;
    border: 2px solid var(--border) !important;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    background: #1a2035;
}

.modal-gallery-img:hover,
.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary) !important;
    filter: brightness(1.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.checkout-modal .spinner {
    vertical-align: middle;
    margin-right: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Moved to left for better visibility and to avoid title overlap in RTL */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

/* Summary Column */
.checkout-summary {
    background: var(--bg-surface-2);
    padding: 40px;
    border-left: 1px solid var(--border);
}

.checkout-summary h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--primary-light);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--text-secondary);
}

.summary-row .price-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Payment Column */
.checkout-payment {
    padding: 40px;
}

.checkout-payment h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.method-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.method-card.active {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.method-icon {
    font-size: 1.5rem;
}

/* Payment Forms */
.payment-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.payment-form.active {
    display: flex;
}

.input-with-icon {
    position: relative;
}

.card-brand-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.payment-submit {
    margin-top: 10px;
    height: 55px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Crypto View */
.crypto-info {
    text-align: center;
}

.wallet-address {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.wallet-address code {
    background: none;
    padding: 0;
    color: inherit;
    flex: 1;
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.qr-code {
    margin-top: 20px;
    border-radius: 10px;
    border: 10px solid #fff;
    max-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        order: -1;
        padding: 25px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .checkout-payment {
        padding: 25px;
    }
}

/* =====================
   USER MENU & DROPDOWN
   ===================== */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 15px var(--glow-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    border: 2px solid var(--primary-light);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 240px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: none;
    flex-direction: column;
    z-index: 1100;
    animation: dropdownFade 0.25s ease-out;
    backdrop-filter: blur(20px);
}

.user-dropdown.open {
    display: flex;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-info {
    padding: 12px 15px;
}

.dropdown-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dropdown-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    text-align: right;
    border: none;
    background: transparent;
    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-light);
}

.user-dropdown .icon {
    font-size: 1.1rem;
}

.logout-btn {
    color: var(--danger) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

@media (max-width: 768px) {
    .user-dropdown {
        left: auto;
        right: 0;
    }
}