/* ============================================================
   PremiumCardsShop - Global Design System
   Dark Luxurious Cyber-Premium Theme
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #16162a;
    --bg-elevated: #1e1e35;
    --bg-glass: rgba(22, 22, 42, 0.7);
    --bg-glass-hover: rgba(30, 30, 53, 0.85);
    --bg-input: rgba(15, 15, 30, 0.8);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-faint: #475569;

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --accent-gradient-hover: linear-gradient(135deg, #818cf8, #a78bfa);
    --accent-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --accent-glow-strong: 0 0 30px rgba(99, 102, 241, 0.5);

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Borders */
    --border-subtle: rgba(99, 102, 241, 0.12);
    --border-light: rgba(99, 102, 241, 0.2);
    --border-medium: rgba(99, 102, 241, 0.3);
    --border-active: rgba(99, 102, 241, 0.5);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Roboto, -apple-system, sans-serif;
    --font-display: 'Inter', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Spacing */
    --header-height: 72px;
    --container-max: 1280px;
    --container-narrow: 960px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Ticker */
    --ticker-height: 34px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-tertiary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary); }

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

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.page-wrapper {
    min-height: calc(100vh - var(--header-height) - var(--ticker-height));
    padding-top: calc(var(--header-height) + var(--ticker-height));
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 40px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 12px;
}

.section-title .accent {
    color: var(--accent-primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Crypto Ticker Bar ---------- */
.crypto-ticker {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--ticker-height);
    display: flex;
    align-items: center;
}

.ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticker-cryptos {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ticker-cryptos::-webkit-scrollbar { display: none; }

.ticker-coin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-logo {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ticker-symbol {
    font-weight: 700;
    color: var(--text-secondary);
}

.ticker-price {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.ticker-change {
    font-size: 0.62rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.ticker-change.up { color: var(--success); }
.ticker-change.down { color: var(--danger); }

.ticker-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

/* ---------- Crypto Icon Sizes ---------- */
.footer-crypto-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}

.payment-crypto-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.crypto-opt-icon {
    width: 24px;
    height: 24px;
}

/* ---------- Section SVG Icons ---------- */
.section-icon {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
}

/* ---------- Brand Card Images ---------- */
.brand-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.brand-card-img-sm {
    width: 32px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
}
.brand-card-img-md {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.brand-card-img-icon {
    width: 48px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
}
.brand-card-img-tile {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}
.brand-card-img-large {
    width: 280px;
    height: 175px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.brand-card-img-trending {
    width: 48px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.brand-card-img-checkout {
    width: 40px;
    height: 25px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.brand-card-img-cart {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.brand-card-img-dashboard {
    width: 40px;
    height: 25px;
    object-fit: cover;
    border-radius: 4px;
}
.brand-card-img-admin {
    width: 32px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
}
.brand-card-img-inline {
    width: 24px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
}

/* Fallback initials */
.brand-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    border-radius: 8px;
}
.brand-initials-sm { width: 32px; height: 20px; font-size: 0.5rem; border-radius: 4px; }
.brand-initials-md { width: 64px; height: 40px; font-size: 0.75rem; border-radius: 6px; }
.brand-initials-lg { width: 280px; height: 175px; font-size: 2.5rem; border-radius: 14px; }

/* ---------- Header / Navigation ---------- */
.header {
    position: fixed;
    top: var(--ticker-height);
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.logo .logo-premium { color: #ffffff; }
.logo .logo-cards { color: var(--accent-primary); }
.logo .logo-shop { color: var(--accent-tertiary); }

.nav-main {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-main a {
    color: var(--text-muted);
    font-size: 0.925rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--text-primary);
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.nav-actions .nav-icon {
    position: relative;
    color: var(--text-muted);
    font-size: 1.15rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.nav-actions .nav-icon:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Minimum order banner below header */
.min-order-banner {
    background: rgba(245, 158, 11, 0.08);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    color: var(--text-muted);
    text-align: center;
    padding: 6px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    position: sticky;
    top: var(--header-height);
    z-index: 99;
}

.min-order-banner strong {
    color: var(--warning);
}

.min-order-banner i {
    color: var(--warning);
    margin-right: 4px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    border: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    box-shadow: var(--accent-glow-strong);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--border-medium);
    color: #fff;
}

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

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Cards / Glassmorphism ---------- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg), var(--accent-glow);
    transform: translateY(-4px);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form-input::placeholder { color: var(--text-dim); }

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-hint {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-discount {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-featured {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-tertiary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-new {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-instant {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Stock badges */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-badge.in-stock { color: var(--success); }
.stock-badge.low-stock { color: var(--warning); }
.stock-badge.out-of-stock { color: var(--danger); }

/* Order status */
.order-status {
    display: inline-flex;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.status-success { background: var(--success-bg); color: var(--success); }
.status-warning { background: var(--warning-bg); color: var(--warning); }
.status-danger { background: var(--danger-bg); color: var(--danger); }
.status-info { background: var(--info-bg); color: var(--info); }
.status-pending { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 20px;
    position: relative;
}

.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    line-height: 1;
}

.alert-close:hover { opacity: 1; }

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.page-dots {
    color: var(--text-dim);
    padding: 0 4px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer h4 {
    font-size: 0.95rem;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    padding: 6px 0;
    color: var(--text-dim);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-tertiary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-payments span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Loading / Spinner ---------- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 0.85rem;
}

.breadcrumbs a {
    color: var(--text-dim);
}

.breadcrumbs a:hover {
    color: var(--accent-tertiary);
}

.breadcrumbs .separator {
    color: var(--text-faint);
    font-size: 0.7rem;
}

.breadcrumbs .current {
    color: var(--text-secondary);
}

/* ---------- Grid Helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent-primary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }
.visible { display: block !important; }

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.4); }
}

.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }

/* Stagger animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --ticker-height: 0px;
    }

    .crypto-ticker { display: none; }
    .header { top: 0; }

    .section { padding: 50px 0; }

    .nav-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 8px;
        border-left: 1px solid var(--border-subtle);
        transition: right var(--transition-base);
        z-index: 999;
    }

    .nav-main.open { right: 0; }

    .nav-main a {
        font-size: 1rem;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
    }

    .logo {
        font-size: 0.95rem;
        gap: 2px;
        letter-spacing: 0;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-actions .nav-icon {
        padding: 6px;
        font-size: 1rem;
    }

    .nav-actions .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .menu-toggle { display: flex; }

    .min-order-banner {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .btn { padding: 10px 22px; font-size: 0.875rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

    .grid-2 { grid-template-columns: 1fr; }

    .logo {
        font-size: 0.8rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .nav-icon {
        padding: 5px;
        font-size: 0.9rem;
    }

    .nav-actions .btn-sm {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: all var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 420px;
    animation: slideInRight 0.3s ease;
    font-size: 0.9rem;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

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

/* ---------- Cart Added Popup ---------- */
.cart-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-popup-backdrop.active { opacity: 1; }

.cart-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    z-index: 9999;
    max-width: 420px;
    width: 90%;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.cart-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cart-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: #fff;
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-popup h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cart-popup p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.cart-popup-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.cart-popup-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.cart-popup-checkout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.cart-popup-checkout:hover { color: var(--accent-primary); }
.cart-popup-checkout i { font-size: 0.75rem; }

/* ---------- Tables ---------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 14px 16px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* ---------- Tab System ---------- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
    color: var(--accent-tertiary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
