/**
 * DOLLAR CARD - Luxury Dark Theme
 * Colors: Emerald Green (#10b981), Amber Gold (#f59e0b), Dark Charcoal (#0d1117, #131926)
 */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --bg-dark: #090c10;
    --bg-surface: #101622;
    --bg-card: #151d2d;
    --bg-card-hover: #1c263b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(16, 185, 129, 0.3);
    
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);
    
    --gold: #f59e0b;
    --gold-hover: #d97706;
    --gold-glow: rgba(245, 158, 11, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;

    --font-family: 'Tajawal', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Navbar */
.navbar {
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
    transition: var(--transition);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2.5px solid var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.brand-link:hover .brand-logo {
    transform: scale(1.06) rotate(3deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
}

.brand-title,
.brand-text h1 {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
}

.brand-sub,
.brand-text span {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 800;
    margin-top: 3px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-btn-login {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    backdrop-filter: blur(8px);
}

.nav-btn-login:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--gold);
    color: var(--gold);
}

.nav-btn-register {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-btn-register:hover {
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

/* Balance Badge */
.user-balance-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
    transition: var(--transition);
}

.user-balance-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.balance-add-icon {
    font-size: 0.85rem;
    color: var(--gold) !important;
}

.user-balance-badge i {
    color: var(--gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    background: radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.14) 0%, transparent 45%),
                radial-gradient(circle at 15% 45%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
                linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

/* Top Mini Pill */
.hero-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--primary); }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.pill-tag {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Hero Typography */
.hero-main-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.text-glow-emerald {
    color: var(--primary);
    text-shadow: 0 0 25px var(--primary-glow);
}

.text-glow-gold {
    color: var(--gold);
    text-shadow: 0 0 25px var(--gold-glow);
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 580px;
}

/* Modern Search Box & Tags */
.hero-search-wrapper {
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.5rem 0.4rem 1.25rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
}

.hero-search-icon {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-left: 0.75rem;
    margin-right: 0.25rem;
}

.hero-search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.hero-search-field::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.hero-search-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search-action:hover {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    transform: translateX(-2px);
}

.hero-quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-right: 0.5rem;
}

.quick-tags-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tag-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.tag-chip:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.hero-action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Showcase & Gamer VIP Card */
.hero-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 1.5rem 0;
}

.gamer-card-preview {
    background: linear-gradient(135deg, #151f30 0%, #0c121d 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
}

.card-glass-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
    pointer-events: none;
}

.card-inner-content {
    position: relative;
    z-index: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-mini-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.card-brand-title {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.2;
}

.card-brand-sub {
    font-size: 0.68rem;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 1px;
}

.card-chip-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.emv-chip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    position: relative;
}

.emv-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.card-contactless {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    transform: rotate(90deg);
}

.card-center-row {
    margin-bottom: 2rem;
}

.card-number-dots {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.6rem;
}

.card-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.live-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulseDot 1.5s infinite;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.card-val {
    font-size: 0.85rem;
    font-weight: 800;
}

.text-gold {
    color: var(--gold) !important;
}

.text-emerald {
    color: var(--primary) !important;
}

/* Floating Game Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.85rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    z-index: 3;
    transition: var(--transition);
}

.badge-top-left {
    top: -12px;
    right: -24px;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-bottom-right {
    bottom: 12px;
    left: -28px;
    animation: floatBadge 4.6s ease-in-out infinite 1s;
}

.badge-bottom-left {
    bottom: -22px;
    right: 25px;
    animation: floatBadge 3.8s ease-in-out infinite 0.5s;
}

.floating-badge:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.2);
}

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

.badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.badge-icon.icon-pubg {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-icon.icon-fire {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.badge-icon.icon-tiktok {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-content strong {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 800;
}

.badge-content span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Trust Ribbon (Balanced 4-item Bar) */
.trust-ribbon {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--transition);
}

.trust-item:hover {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.trust-icon-box {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.trust-text h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.2rem;
}

.trust-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Categories Horizontal Filter */
.categories-section {
    padding: 2.5rem 0 1rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title i {
    color: var(--gold);
}

.categories-bar {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.categories-bar::-webkit-scrollbar {
    height: 5px;
}
.categories-bar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.cat-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.cat-tab:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.cat-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.cat-count {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* Products Grid */
.products-section {
    padding: 1.5rem 0 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.15);
}

.product-thumb {
    height: 140px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.product-thumb i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.9;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-price .price-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.25rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* 2-Column Form Grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Wide Auth Card */
.auth-card-wide {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.75rem 3rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(16, 185, 129, 0.08);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .auth-card-wide {
        padding: 2rem 1.25rem;
    }
}

/* Live verification badge */
.check-player-result {
    margin-top: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    display: none;
}

.check-player-result.success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--primary);
}

.check-player-result.error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

.check-player-result.loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--info);
}

/* Alerts */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Floating WhatsApp / Telegram Support */
.floating-support {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.support-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.support-btn.whatsapp {
    background: #25d366;
}

.support-btn.telegram {
    background: #0088cc;
}

.support-btn:hover {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-search-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-quick-tags {
        justify-content: center;
    }
    .hero-action-buttons {
        justify-content: center;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .badge-top-left {
        right: 0;
    }
    .badge-bottom-right {
        left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.85rem 0;
    }
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    .brand-title, .brand-text h1 {
        font-size: 1.3rem;
    }
    .hero-main-title {
        font-size: 2.1rem;
    }
    .hero-lead {
        font-size: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-actions .btn-text-hide {
        display: none;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-thumb {
        height: 100px;
    }
    .product-thumb i {
        font-size: 2.2rem;
    }
    .product-body {
        padding: 0.85rem;
    }
    .product-title {
        font-size: 0.95rem;
    }
    .product-price .price-val {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 0.85rem;
    }
    .navbar {
        padding: 0.75rem 0;
    }
    .nav-wrap {
        gap: 0.5rem;
    }
    .brand-link {
        gap: 0.65rem;
    }
    .brand-logo {
        width: 46px;
        height: 46px;
    }
    .brand-text {
        white-space: nowrap;
    }
    .brand-title, .brand-text h1 {
        font-size: 1.15rem;
        line-height: 1.15;
    }
    .brand-sub, .brand-text span {
        font-size: 0.7rem;
    }
    .nav-actions {
        gap: 0.35rem;
    }
    .nav-actions .btn-sm {
        padding: 0.42rem 0.65rem;
        font-size: 0.82rem;
        gap: 0.35rem;
        border-radius: var(--radius-sm);
    }
    .user-balance-badge {
        padding: 0.38rem 0.7rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    .hero {
        padding: 2.5rem 0 2rem;
    }
    .hero-main-title {
        font-size: 1.75rem;
    }
    .hero-lead {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }
    .hero-showcase {
        max-width: 320px;
    }
    .card-number-dots {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }
    .card-brand-title {
        font-size: 1rem;
    }
    .floating-badge {
        padding: 0.4rem 0.65rem;
    }
    .badge-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    .badge-content strong {
        font-size: 0.75rem;
    }
    .badge-content span {
        font-size: 0.65rem;
    }
    .badge-top-left {
        top: -10px;
        right: -5px;
    }
    .badge-bottom-right {
        bottom: 5px;
        left: -5px;
    }
    .badge-bottom-left {
        display: none;
    }
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .hero-search-bar {
        padding: 0.35rem 0.4rem 0.35rem 0.85rem;
    }
    .hero-search-action span {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero-action-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-action-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    .brand-title, .brand-text h1 {
        font-size: 1.05rem;
    }
    .brand-sub, .brand-text span {
        font-size: 0.65rem;
    }
    .nav-actions .btn-sm {
        padding: 0.38rem 0.52rem;
        font-size: 0.76rem;
        gap: 0.25rem;
    }
    .user-balance-badge {
        padding: 0.32rem 0.55rem;
        font-size: 0.78rem;
    }
}

/* =========================================================
   Mobile Responsiveness for Admin Panel & Customer Portal
   ========================================================= */

/* Mobile Table Responsiveness */
div[style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}
div[style*="overflow-x: auto"] table {
    min-width: 620px;
}

/* User Portal Tabs Horizontal Touch Scrolling */
.user-nav-tabs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
}
.user-nav-tabs .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    /* Auto-collapse any 2-col or 3-col inline or class grids on mobile/tablets */
    .admin-grid-2,
    .deposit-grid,
    .profile-grid,
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1.2fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.85rem !important;
    }
    
    /* Customer Portal Welcome Header */
    .user-welcome-box {
        padding: 1.25rem 1rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: right;
    }
    .user-welcome-box h1 {
        font-size: 1.35rem !important;
    }
    .user-welcome-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    .user-welcome-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Stats Grid */
    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .user-stats-grid > div {
        padding: 1rem !important;
    }
    .user-stats-grid > div div[style*="font-size: 2.2rem"] {
        font-size: 1.6rem !important;
    }

    /* Admin top statistics cards */
    div[style*="minmax(220px, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    div[style*="minmax(220px, 1fr)"] > div {
        padding: 1rem !important;
    }
    div[style*="minmax(220px, 1fr)"] div[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .user-stats-grid {
        grid-template-columns: 1fr !important;
    }
    div[style*="minmax(220px, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Table cells compact padding on small phones */
    div[style*="overflow-x: auto"] th,
    div[style*="overflow-x: auto"] td {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.82rem !important;
    }
}

/* ========================================================
   Hierarchical Category Cards & Navigation System
   ======================================================== */

.catalog-section {
    padding: 2.5rem 0 4rem;
}

/* Category Navigation / Breadcrumbs Bar */
.category-nav-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.category-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.category-breadcrumbs a,
.category-breadcrumbs span.crumb-btn {
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.category-breadcrumbs a:hover,
.category-breadcrumbs span.crumb-btn:hover {
    color: var(--primary);
}

.category-breadcrumbs .crumb-sep {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.category-breadcrumbs .crumb-current {
    color: #fff;
    font-weight: 800;
}

.category-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.btn-nav-back:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(3px);
}

/* Category Cards Grid */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

/* Category Card */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.2);
}

.category-card-thumb {
    height: 170px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #151f30 0%, #0c121d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-thumb img {
    transform: scale(1.08);
}

.category-card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(21, 29, 45, 0.95) 100%);
    pointer-events: none;
}

/* Thematic artwork for cards */
.category-cover-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15), transparent 70%);
}

.category-art-watermark {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    transform: rotate(-15deg);
    pointer-events: none;
}

.category-icon-floating {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), 0 0 20px rgba(245, 158, 11, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon-floating {
    transform: scale(1.1) rotate(4deg);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), 0 0 25px rgba(16, 185, 129, 0.3);
}

.category-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-card-badge i {
    color: var(--gold);
}

.category-card-body {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.category-card-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.category-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.meta-chip {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-chip.chip-gold {
    color: var(--gold);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.meta-chip.chip-emerald {
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.category-card-foot {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-card-foot {
    color: #fff;
    background: rgba(16, 185, 129, 0.12);
}

.category-card-foot .arrow-icon {
    transition: transform 0.25s ease;
}

.category-card:hover .category-card-foot .arrow-icon {
    transform: translateX(-5px);
}

/* Subcategory Card Special Styling */
.subcategory-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 14px 30px rgba(0,0,0,0.4), 0 0 20px rgba(245, 158, 11, 0.15);
}

.subcategory-card-thumb {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #182234 0%, #0e1522 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.subcategory-card:hover .subcategory-card-thumb img {
    transform: scale(1.08);
}

.subcategory-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-icon-box {
    transform: scale(1.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* View transitions & containers */
.catalog-view {
    display: none;
    animation: fadeInView 0.25s ease forwards;
}

.catalog-view.active-view {
    display: block;
}

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

