/* ===================================================
   ARSSARAF — LUXURY SILVER JEWELRY & BULLION THEME
   Mobile-First & Ultra-Premium Responsive Design System
   Pure English Edition — High Contrast Optimized
   =================================================== */

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

:root {
    --bg-main: #0a0e17;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.92);
    --bg-card-hover: rgba(30, 41, 59, 0.98);
    
    --silver-100: #ffffff;
    --silver-200: #f8fafc;
    --silver-300: #e2e8f0;
    --silver-400: #cbd5e1;
    --silver-500: #94a3b8;
    --silver-600: #64748b;
    --silver-700: #334155;
    --silver-800: #1e293b;
    
    --silver-grad: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    --silver-grad-hover: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --silver-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    
    --gold-accent: #f59e0b;
    --gold-grad: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
    
    --success-green: #10b981;
    --danger-red: #ef4444;
    
    --border-glass: rgba(255, 255, 255, 0.14);
    --border-silver: rgba(203, 213, 225, 0.28);
    --shadow-luxury: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(203, 213, 225, 0.12);
    --shadow-glow: 0 0 25px rgba(226, 232, 240, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--silver-300);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

/* ----------------------------------
   PREMIUM SILVER TEXT & ACCENTS
---------------------------------- */
.text-silver-bright {
    color: var(--silver-100) !important;
}

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

.text-silver-muted {
    color: var(--silver-500) !important;
}

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

.silver-gradient-text {
    background: var(--silver-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gold-gradient-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ----------------------------------
   NAVBAR & TOP TICKER
---------------------------------- */
.top-ticker-bar {
    background: linear-gradient(90deg, #090d16 0%, #1e293b 50%, #090d16 100%);
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.85rem;
    padding: 6px 0;
}

.top-ticker-bar .badge-live {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.top-ticker-bar .pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.ars-navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    padding: 12px 0;
}

.ars-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-emblem {
    width: 38px;
    height: 38px;
    background: var(--silver-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.nav-link {
    color: var(--silver-400) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* ----------------------------------
   LUXURY CARDS & GLASS CONTAINERS
---------------------------------- */
.ars-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-luxury);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.ars-card:hover {
    border-color: var(--border-silver);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(203, 213, 225, 0.18);
}

.ars-card-highlight {
    border: 1px solid rgba(226, 232, 240, 0.35);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

/* ----------------------------------
   BUTTONS
---------------------------------- */
.btn-silver {
    background: var(--silver-grad);
    color: #0f172a !important;
    font-weight: 700;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-silver:hover {
    background: var(--silver-grad-hover);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-silver-outline {
    background: transparent;
    color: var(--silver-200) !important;
    border: 1px solid var(--silver-500);
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-silver-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold-grad);
    color: #0f172a !important;
    font-weight: 700;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
}

/* ----------------------------------
   HERO RATE BANNER
---------------------------------- */
.hero-rate-banner {
    background: radial-gradient(circle at 50% 0%, rgba(51, 65, 85, 0.5) 0%, rgba(15, 23, 42, 0.98) 75%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.hero-rate-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: var(--silver-shine);
    transform: skewX(-25deg);
    animation: shine 8s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.rate-display-box {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--border-silver);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.rate-display-box:hover {
    transform: translateY(-3px);
    border-color: #ffffff;
}

.rate-amount {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

@media (max-width: 576px) {
    .rate-amount {
        font-size: 1.75rem;
    }
    .hero-rate-banner {
        padding: 20px 15px;
    }
}

/* ----------------------------------
   PRODUCT CARDS
---------------------------------- */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-badge-purity {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-silver);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ----------------------------------
   VERIFICATION PAGE HOLOGRAPHIC SEAL
---------------------------------- */
.verify-seal-card {
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.98), rgba(11, 15, 26, 0.99));
    border: 2px solid rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    padding: 35px 25px;
    position: relative;
    text-align: center;
}

.verify-seal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.verify-failed-card {
    background: linear-gradient(145deg, rgba(35, 18, 26, 0.98), rgba(17, 12, 19, 0.99));
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
}

.verify-failed-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
}

.serial-badge {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed var(--silver-300);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
}

/* ----------------------------------
   ADMIN FORMS & HIGH-CONTRAST INPUTS
   (Fixes white-on-white text issues)
---------------------------------- */
.form-control, .form-select {
    background-color: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 10px 14px;
}

.form-control:focus, .form-select:focus {
    background-color: #0f172a !important;
    border-color: #e2e8f0 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(226, 232, 240, 0.3) !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 0.85;
}

/* Native select options styling - prevents white background with white text */
select option {
    background-color: #111827 !important;
    color: #ffffff !important;
    padding: 8px;
}

.input-group-text {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f1f5f9 !important;
}

.form-label {
    color: var(--silver-300);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ===================================================
   ADMIN TABLES & CARDS (HIGH CONTRAST)
   Pure White Card Background, Deep Black Text,
   Pure White Text on Black Badges/Backgrounds
   =================================================== */
.ars-admin-card-light {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    overflow: hidden;
}

.ars-admin-card-light h1,
.ars-admin-card-light h2,
.ars-admin-card-light h3,
.ars-admin-card-light h4,
.ars-admin-card-light h5,
.ars-admin-card-light h6,
.ars-admin-card-light .card-title {
    color: #000000 !important;
    font-weight: 800 !important;
}

.ars-admin-card-light p,
.ars-admin-card-light .text-silver-muted {
    color: #334155 !important;
}

/* Light Table System */
.table-ars-light, 
.ars-admin-card-light .table {
    width: 100% !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-ars-light > :not(caption) > * > *,
.ars-admin-card-light .table > :not(caption) > * > * {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 12px 14px !important;
    vertical-align: middle !important;
}

.table-ars-light thead th,
.ars-admin-card-light .table thead th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: none !important;
}

.table-ars-light tbody tr:hover > :not(caption) > * > *,
.ars-admin-card-light .table tbody tr:hover > :not(caption) > * > * {
    background-color: #f8fafc !important;
}

.table-ars-light strong,
.table-ars-light b,
.table-ars-light .text-silver-bright,
.ars-admin-card-light strong,
.ars-admin-card-light .text-silver-bright {
    color: #000000 !important;
    font-weight: 800 !important;
}

.table-ars-light small,
.table-ars-light .text-silver-muted,
.ars-admin-card-light small,
.ars-admin-card-light .text-silver-muted {
    color: #475569 !important;
}

.table-ars-light code,
.ars-admin-card-light code {
    color: #000000 !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
}

/* JISS KA BACKGROUND BLACK/DARK HAI, USKA TEXT WHITE KARO */
.table-ars-light .bg-dark,
.table-ars-light .bg-black,
.table-ars-light .badge-dark,
.ars-admin-card-light .bg-dark,
.ars-admin-card-light .bg-black,
.ars-admin-card-light .badge-dark {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
}

.table-ars-light .bg-dark *,
.table-ars-light .bg-black *,
.table-ars-light .badge-dark *,
.ars-admin-card-light .bg-dark *,
.ars-admin-card-light .bg-black *,
.ars-admin-card-light .badge-dark * {
    color: #ffffff !important;
}

.ars-badge-black {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.ars-badge-black * {
    color: #ffffff !important;
}

.ars-badge-green {
    background-color: #15803d !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.ars-badge-red {
    background-color: #b91c1c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.ars-badge-gray {
    background-color: #334155 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.table-ars-light .btn-outline-action {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.table-ars-light .btn-outline-action:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.table-ars-light .btn-outline-action:hover * {
    color: #ffffff !important;
}

/* Legacy dark table-ars fallback */
.table-ars {
    color: #000000;
    border-collapse: separate;
    border-spacing: 0 8px;
}

/* ===================================================
   COMPACT & ZERO-WASTE QR STICKER PRINT STYLES
   Tight borders, no empty gaps, maximum labels per A4 sheet
   =================================================== */
.qr-sticker-card, .qr-print-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1.2px solid #000000 !important;
    border-radius: 5px !important;
    padding: 6px 5px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 155px !important;
}

.qr-sticker-card *, .qr-print-card * {
    color: #000000 !important;
}

.qr-brand-title {
    font-family: 'Cinzel', serif, Georgia !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: block !important;
    margin-bottom: 1px !important;
}

.qr-brand-sub {
    font-family: Arial, sans-serif !important;
    font-size: 6.8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #1e293b !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: block !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
}

.qr-img-wrapper {
    margin: 2px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    line-height: 1 !important;
}

.qr-sticker-image, .qr-print-card img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.qr-sticker-serial, .qr-print-serial {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    color: #000000 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    hyphens: none !important;
    line-height: 1.1 !important;
    background: #f1f5f9 !important;
    border: 1px solid #64748b !important;
    border-radius: 3px !important;
    padding: 2px 4px !important;
    margin: 2px 0 1px 0 !important;
    display: inline-block !important;
}

.qr-sticker-meta {
    font-family: Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1.1 !important;
    margin-top: 1px !important;
}

.qr-sticker-footer {
    font-family: Arial, sans-serif !important;
    font-size: 6.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    border-top: 1px dashed #94a3b8 !important;
    padding-top: 2px !important;
    margin-top: 2px !important;
    width: 100% !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 6mm 4mm !important;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    header, footer, nav, .no-print, .btn, .ars-navbar, .top-ticker-bar {
        display: none !important;
    }

    .container, .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ZERO-WASTE 4-COLUMN HIGH-DENSITY PRINT GRID (24 PER A4 PAGE) */
    .qr-print-grid, .print-sheet {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        column-gap: 3mm !important;
        row-gap: 3mm !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .qr-print-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        column-gap: 4mm !important;
        row-gap: 4mm !important;
    }

    .qr-print-grid.cols-5 {
        grid-template-columns: repeat(5, 1fr) !important;
        column-gap: 2mm !important;
        row-gap: 2mm !important;
    }

    .qr-sticker-card, .qr-print-card {
        border: 1.2px solid #000000 !important;
        box-shadow: none !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        background: #ffffff !important;
        padding: 5px 4px !important;
        min-height: auto !important;
        max-width: 100% !important;
    }

    .qr-sticker-card *, .qr-print-card * {
        color: #000000 !important;
    }

    .qr-sticker-image, .qr-print-card img {
        width: 95px !important;
        height: 95px !important;
    }

    .qr-sticker-serial, .qr-print-serial {
        font-size: 10.5px !important;
        background: transparent !important;
        border: 1px solid #000000 !important;
        color: #000000 !important;
        padding: 1px 3px !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        hyphens: none !important;
    }

    .qr-sticker-meta {
        font-size: 7.5px !important;
        color: #000000 !important;
    }

    .qr-sticker-footer {
        font-size: 6px !important;
        border-top: 1px dashed #000000 !important;
        color: #000000 !important;
    }
}

/* ----------------------------------
   MOBILE ADAPTATIONS
---------------------------------- */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .ars-navbar .navbar-brand {
        font-size: 1.25rem;
    }
    
    .brand-emblem {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    
    .btn-silver, .btn-silver-outline, .btn-gold {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        border-radius: 12px;
    }
}