/**
 * GoldBD.org - Dedicated Bar Pages Stylesheet (bar.css)
 * Used across /gold-bar/, /silver-bar/, and international bar pages.
 * Supports complete Light/Dark mode theming, mobile drawers, and responsive bullion matrix tables.
 */

:root {
    --bg-base: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --primary: #d97706;
    --primary-glow: rgba(217, 119, 6, 0.15);
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-bright: #0f172a;
    --text-light: #334155;
    --text-muted: #64748b;
    --text-blue-muted: #475569;
    --green-up: #059669;
    --red-down: #dc2626;
    --header-bg: #ffffff;
    --ticker-bg: #f8fafc;
    --unit-wrap-bg: #e2e8f0;
    --unit-active-bg: #0f172a;
    --faq-bg: #ffffff;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --font-en: 'Outfit', sans-serif;
    --font-bn: 'Noto Sans Bengali', sans-serif;
}

[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --primary: #d97706;
    --primary-glow: rgba(217, 119, 6, 0.15);
    --border-color: #cbd5e1;
    --border-hover: #94a3b8;
    --text-bright: #0f172a;
    --text-light: #334155;
    --text-muted: #64748b;
    --green-up: #059669;
    --red-down: #dc2626;
    --header-bg: #ffffff;
    --ticker-bg: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

.silver-bar-page[data-theme="light"],
[data-theme="light"] .silver-bar-page {
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.15);
}

[data-theme="dark"] {
    --bg-base: #060814;
    --bg-card: #0b0f19;
    --bg-card-hover: #0f1422;
    --primary: #f5a623;
    --primary-glow: rgba(245, 166, 35, 0.15);
    --border-color: #151c2c;
    --border-hover: #1f2a3f;
    --text-bright: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #64748b;
    --green-up: #10b981;
    --red-down: #ef4444;
    --header-bg: #070914;
    --ticker-bg: #04060e;
    --card-shadow: none;
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.silver-bar-page[data-theme="dark"],
[data-theme="dark"] .silver-bar-page {
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.15);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-light);
    font-family: var(--font-bn), sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] body,
[data-theme="dark"] body {
    background-color: #060814 !important;
    color: #e2e8f0 !important;
}

html[data-theme="light"] body,
[data-theme="light"] body {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */
header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.75rem 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    transition: background 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-bright) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-en);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary) !important;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-bright) !important;
}

.dropdown-toggle .arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 170px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-bright) !important;
}

.dropdown-menu a:hover {
    background: rgba(245, 166, 35, 0.12) !important;
    color: var(--primary) !important;
}

.nav-desktop-only {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-bright);
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

[data-theme="dark"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #1f2a3f !important;
    color: #ffffff !important;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.25s;
}

/* ── Mobile Nav Drawer ── */
.mobile-nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(6, 9, 20, 0.98);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
    padding: 1.25rem 1rem 1.75rem 1rem;
    z-index: 999;
}

[data-theme="light"] .mobile-nav-drawer {
    background: #ffffff !important;
    border-bottom: 2px solid #d97706 !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
}

.mobile-nav-drawer.active {
    display: block !important;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-nav-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
}

[data-theme="light"] .mobile-nav-item-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.mobile-nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-bright);
    padding: 0.4rem 0.5rem;
    text-transform: uppercase;
}

.mobile-sub-list {
    list-style: none;
    padding: 0.25rem 0 0 0.5rem;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.mobile-sub-list a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .mobile-sub-list a {
    color: #334155 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.mobile-nav-link-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-bright) !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.65rem 0.75rem !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.mobile-nav-link-direct:hover {
    color: var(--primary) !important;
    background: rgba(245, 166, 35, 0.12) !important;
    border-color: var(--primary) !important;
}

[data-theme="light"] .mobile-nav-link-direct {
    color: #0f172a !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .mobile-nav-link-direct:hover {
    color: #d97706 !important;
    background: rgba(217, 119, 6, 0.08) !important;
    border-color: #d97706 !important;
}

/* ── Live Ticker Tape ── */
.ticker-wrap {
    background: var(--ticker-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.ticker-badge-live {
    background: var(--primary);
    color: #000000;
    font-weight: 800;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0 12px;
    flex-shrink: 0;
    font-family: var(--font-en);
}

.silver-bar-page .ticker-badge-live {
    background: #0284c7;
    color: #ffffff;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.ticker {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-anim 45s linear infinite;
    will-change: transform;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 1.25rem;
    font-weight: 500;
    font-size: 0.86rem;
    color: var(--text-light);
}

.ticker-item strong {
    color: var(--primary);
    font-weight: 700;
}

.ticker-dot {
    color: var(--primary);
    margin-right: 2px;
    font-size: 0.8rem;
}

@keyframes ticker-anim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Hero SEO Header ── */
.hero-seo-header {
    margin-bottom: 1.5rem;
}

.hero-main-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    font-family: var(--font-en);
}

.hero-main-title .highlight-gold {
    color: var(--primary);
}

.hero-sub-title {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-bn);
    margin: 0;
    line-height: 1.5;
}

/* ── Status & Market Live Bar ── */
.status-switcher-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

[data-theme="light"] .status-switcher-bar {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.market-status-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.market-status-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.28);
    font-size: 0.85rem;
    font-weight: 700;
}

.market-status-badge-wrap.is-closed {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.28);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green-up);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-up);
    animation: pulse-dot 1.8s infinite;
    display: inline-block;
}

.status-dot.dot-closed {
    background: var(--red-down);
    box-shadow: none;
    animation: none !important;
}

@keyframes pulse-dot {
    0% { transform: scale(0.92); opacity: 0.75; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.92); opacity: 0.75; }
}

/* ── Real-Time Live Bullion Market Animations ── */
.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green-up);
    border-radius: 50%;
    display: inline-block;
    animation: livePulseWave 1.8s infinite;
}

@keyframes livePulseWave {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Rate Card Real-Time Top Glow when Market is Open */
.rate-card.market-live {
    position: relative;
}

.rate-card.market-live::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    background-size: 200% 100%;
    animation: liveCardShimmer 3.5s infinite linear;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 2;
}

@keyframes liveCardShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Real-Time Price UP (Green Flash & Up-bounce) */
.price-anim-up,
.price-decimal-up {
    animation: flashPriceUp 1.4s ease-out forwards;
}

@keyframes flashPriceUp {
    0% {
        background-color: rgba(16, 185, 129, 0.35);
        color: var(--green-up) !important;
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
        transform: translateY(-2px);
    }
    60% {
        background-color: rgba(16, 185, 129, 0.15);
    }
    100% {
        background-color: transparent;
        transform: translateY(0);
    }
}

/* Real-Time Price DOWN (Red Flash & Down-bounce) */
.price-anim-down,
.price-decimal-down {
    animation: flashPriceDown 1.4s ease-out forwards;
}

@keyframes flashPriceDown {
    0% {
        background-color: rgba(239, 68, 68, 0.35);
        color: var(--red-down) !important;
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
        transform: translateY(2px);
    }
    60% {
        background-color: rgba(239, 68, 68, 0.15);
    }
    100% {
        background-color: transparent;
        transform: translateY(0);
    }
}

.price-text span {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* ── Market OFF / CLOSED State: Turn off all live animations ── */
body.market-closed .live-pulse-dot,
body.market-closed .status-dot,
html.market-closed .live-pulse-dot,
html.market-closed .status-dot {
    animation: none !important;
    box-shadow: none !important;
    background: #64748b !important;
}

body.market-closed .rate-card::before,
html.market-closed .rate-card::before {
    display: none !important;
    animation: none !important;
}

body.market-closed .flash-price-update,
html.market-closed .flash-price-update {
    animation: none !important;
}

body.market-closed .spark-bar,
html.market-closed .spark-bar {
    animation: none !important;
}

.market-status-title {
    color: var(--text-bright);
    font-size: 0.86rem;
    font-weight: 700;
}

.market-countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .market-countdown-wrap {
    background: #f8fafc;
}

.countdown-label {
    font-weight: 600;
}

.countdown-timer {
    font-family: var(--font-bn), var(--font-en);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.market-meta-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
}

[data-theme="light"] .meta-pill {
    background: #f8fafc;
}

[data-theme="dark"] .meta-pill,
[data-theme="dark"] .market-countdown-wrap {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: #151c2c !important;
}

.meta-pill-label {
    color: var(--text-muted);
    font-weight: 500;
}

.meta-pill-val {
    color: var(--text-bright);
    font-weight: 700;
}

/* ── Quick Navigation Action Grid (3 per row) ── */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin: 1.25rem 0 1.75rem 0;
    width: 100%;
}

.quick-nav-item {
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: var(--font-bn);
}

.quick-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.quick-nav-item,
.quick-nav-item span {
    text-decoration: none;
}

/* 1. Gold Price */
.quick-nav-item.qn-gold {
    background: linear-gradient(135deg, #facc15, #eab308) !important;
    border: 1px solid #fde047 !important;
    color: #0f172a !important;
}
.quick-nav-item.qn-gold span { color: #0f172a !important; }
.quick-nav-item.qn-gold:hover {
    background: linear-gradient(135deg, #fde047, #ca8a04) !important;
    color: #000000 !important;
}

/* 2. Silver Price */
.quick-nav-item.qn-silver {
    background: linear-gradient(135deg, #f8fafc, #cbd5e1) !important;
    border: 1px solid #ffffff !important;
    color: #0f172a !important;
}
.quick-nav-item.qn-silver span { color: #0f172a !important; }
.quick-nav-item.qn-silver:hover {
    background: linear-gradient(135deg, #ffffff, #94a3b8) !important;
    color: #000000 !important;
}

/* 3. Calculator */
.quick-nav-item.qn-calc {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: 1px solid #34d399 !important;
    color: #ffffff !important;
}
.quick-nav-item.qn-calc span { color: #ffffff !important; }
.quick-nav-item.qn-calc:hover {
    background: linear-gradient(135deg, #34d399, #047857) !important;
    color: #ffffff !important;
}

/* 4. Silver Bar (Used on Gold Page) */
.quick-nav-item.qn-bar-silver {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
}
.quick-nav-item.qn-bar-silver span { color: #ffffff !important; }
.quick-nav-item.qn-bar-silver:hover {
    background: linear-gradient(135deg, #38bdf8, #075985) !important;
    color: #ffffff !important;
}

/* 4b. Gold Bar (Used on Silver Page) */
.quick-nav-item.qn-bar,
.quick-nav-item.qn-bar-gold {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    border: 1px solid #f59e0b !important;
    color: #ffffff !important;
}
.quick-nav-item.qn-bar span,
.quick-nav-item.qn-bar-gold span { color: #ffffff !important; }
.quick-nav-item.qn-bar:hover,
.quick-nav-item.qn-bar-gold:hover {
    background: linear-gradient(135deg, #f59e0b, #92400e) !important;
    color: #ffffff !important;
}

/* 5. History */
.quick-nav-item.qn-history {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: 1px solid #818cf8 !important;
    color: #ffffff !important;
}
.quick-nav-item.qn-history span { color: #ffffff !important; }
.quick-nav-item.qn-history:hover {
    background: linear-gradient(135deg, #818cf8, #3730a3) !important;
    color: #ffffff !important;
}

/* 6. Gold Yearly */
.quick-nav-item.qn-yearly-gold {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    border: 1px solid #a78bfa !important;
    color: #ffffff !important;
}
.quick-nav-item.qn-yearly-gold span { color: #ffffff !important; }
.quick-nav-item.qn-yearly-gold:hover {
    background: linear-gradient(135deg, #a78bfa, #5b21b6) !important;
    color: #ffffff !important;
}

/* 6b. Silver Yearly */
.quick-nav-item.qn-yearly-silver {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
}
.quick-nav-item.qn-yearly-silver span { color: #ffffff !important; }
.quick-nav-item.qn-yearly-silver:hover {
    background: linear-gradient(135deg, #38bdf8, #075985) !important;
    color: #ffffff !important;
}

/* ── Rate Cards Grid ── */
.section-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
    font-family: var(--font-en);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.rate-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.rate-card:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.metal-info-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coin-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-en);
}

.coin-gold {
    background: rgba(245, 166, 35, 0.12);
    color: #f5a623;
    border: 1px solid rgba(245, 166, 35, 0.25);
}

[data-theme="light"] .coin-gold {
    color: #d97706;
    border-color: #f59e0b;
}

.coin-silver {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .coin-silver {
    color: #0284c7;
    border-color: #38bdf8;
}

.metal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
}

.metal-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-en);
    display: block;
    margin-top: 1px;
}

.card-middle {
    margin-top: 1rem;
}

.price-text {
    font-family: var(--font-en);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-badges-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.change-line {
    font-family: var(--font-en);
    font-size: 0.80rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.text-up {
    color: #065f46;
    background: #dcfce7;
}

[data-theme="dark"] .text-up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.text-down {
    color: #991b1b;
    background: #fee2e2;
}

[data-theme="dark"] .text-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.text-neutral {
    color: #475569;
    background: #f1f5f9;
}

[data-theme="dark"] .text-neutral {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

.sparkline-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 4px 6px;
    margin-top: 0.75rem;
}

[data-theme="light"] .sparkline-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.spark-bar {
    flex: 1;
    background: rgba(245, 166, 35, 0.4);
    border-radius: 2px;
    transition: height 0.3s;
}

[data-theme="light"] .spark-bar {
    background: rgba(217, 119, 6, 0.25);
}

.silver-bar-page .spark-bar {
    background: rgba(56, 189, 248, 0.4);
}

[data-theme="light"] .silver-bar-page .spark-bar {
    background: rgba(2, 132, 199, 0.25);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

/* ── Cross-Price Card Banner ── */
.cross-price-banner {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.15rem 1.35rem;
    margin-top: -2rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cross-price-banner:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: var(--card-shadow-hover);
}

.cross-price-left,
.cross-price-center,
.cross-price-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cross-cta-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cross-cta-silver {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
}
.cross-cta-silver:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
}

.cross-cta-gold {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #0f172a !important;
    border: 1px solid #fde047;
}
.cross-cta-gold:hover {
    background: linear-gradient(135deg, #fde047, #ca8a04);
    transform: translateY(-1px);
}

/* ── Spot Stats Strip Card (Compact & Streamlined) ── */
.spot-strip-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    margin-top: 0.35rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.strip-stat-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.2rem 0.5rem;
    border-right: 1px solid var(--border-color);
}

.strip-stat-item:last-child {
    border-right: none;
}

.strip-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.strip-stat-val-usd {
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.25;
}

.strip-stat-val-bdt {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .spot-strip-box {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
    .strip-stat-item:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 640px) {
    .spot-strip-box {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.65rem 0.75rem;
        gap: 0.5rem 0.75rem;
    }
    .strip-stat-item {
        padding: 0.2rem 0.25rem;
        border-right: none;
    }
    .strip-stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-color);
    }
    .strip-stat-item:last-child {
        grid-column: span 2;
        border-right: none;
        border-top: 1px dashed var(--border-color);
        padding-top: 0.4rem;
        margin-top: 0.2rem;
    }
    .strip-stat-val-usd {
        font-size: 0.98rem;
    }
}

/* ── Live Bullion Calculator ── */
.calculator-card-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--card-shadow);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.calc-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
}

.calc-input-field,
.calc-select-field {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    outline: none;
    transition: border-color 0.2s;
}

.calc-input-field:focus,
.calc-select-field:focus {
    border-color: var(--primary);
}

[data-theme="dark"] .calc-input-field,
[data-theme="dark"] .calc-select-field,
[data-theme="dark"] .table-search {
    background: #060814 !important;
    color: #ffffff !important;
    border-color: #1f2a3f !important;
}

[data-theme="dark"] .calc-select-field option {
    background: #0b0f19 !important;
    color: #ffffff !important;
}

.calc-result-panel {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem;
    text-align: center;
}

[data-theme="dark"] .calc-result-panel {
    background: #060814 !important;
    border-color: #151c2c !important;
}

.calc-total-bdt {
    font-family: var(--font-en);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.calc-total-usd {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-up);
    margin-bottom: 1rem;
}

.calc-row-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-top: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ── TradingView Chart Box ── */
.chart-box-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .chart-box-container {
    background: #0b0f19 !important;
    border-color: #1f2a3f !important;
}

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

.chart-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chart-main-heading {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0;
}

.chart-sub-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
}

.chart-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-en);
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.chart-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.chart-view-toggle {
    display: inline-flex;
    background: var(--bg-hover);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    gap: 3px;
}

.chart-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-bn);
    color: var(--text-light);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.chart-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chart-display-frame {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-pane {
    height: 100%;
    width: 100%;
}

.chart-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.chart-info-card {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
}

.chart-info-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chart-info-card h4 {
    margin: 0 0 6px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-info-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Tables ── */
.data-heavy-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--card-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .data-heavy-table-wrap {
    background: #0b0f19 !important;
    border-color: #1f2a3f !important;
    box-shadow: none;
}

.data-heavy-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.data-heavy-table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

/* 🌍 Global Currencies Matrix Specific Styling */
.currency-matrix-wrap {
    position: relative;
}

.currency-scroll-hint {
    display: none;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

[data-theme="dark"] .currency-scroll-hint {
    color: #94a3b8;
}

.currency-matrix-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .table-toolbar .section-header-title {
    color: #ffffff !important;
}

.table-search {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-bright);
    min-width: 250px;
    outline: none;
    transition: border-color 0.2s ease;
}

.table-search:focus {
    border-color: var(--primary);
}

[data-theme="dark"] .table-search {
    background: #060814 !important;
    color: #ffffff !important;
    border-color: #1f2a3f !important;
}

[data-theme="dark"] .table-search::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.data-heavy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    min-width: 600px;
    background: var(--bg-card);
}

[data-theme="dark"] .data-heavy-table {
    background: #0b0f19 !important;
}

.data-heavy-table thead tr {
    border-bottom: 2px solid var(--primary);
}

.data-heavy-table th {
    background: var(--ticker-bg);
    color: var(--text-bright);
    font-weight: 800;
    font-size: 0.92rem;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--primary);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

[data-theme="dark"] .data-heavy-table thead th,
[data-theme="dark"] .data-heavy-table th {
    background: #04060e !important;
    color: #ffffff !important;
    border-bottom: 2px solid var(--primary) !important;
}

.data-heavy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.92rem;
    white-space: nowrap;
    background: var(--bg-card);
}

[data-theme="dark"] .data-heavy-table tbody tr {
    background: #0b0f19 !important;
}

[data-theme="dark"] .data-heavy-table tbody tr:nth-child(even) td {
    background: #070a12 !important;
}

[data-theme="dark"] .data-heavy-table tbody tr:nth-child(odd) td {
    background: #0b0f19 !important;
}

[data-theme="dark"] .data-heavy-table td {
    color: #f1f5f9 !important;
    border-bottom: 1px solid #161e2e !important;
}

[data-theme="dark"] .data-heavy-table td strong {
    color: #ffffff !important;
    font-weight: 700;
}

[data-theme="dark"] .data-heavy-table td span[id*="bdt"],
[data-theme="dark"] .data-heavy-table td strong span {
    color: #f5a623 !important;
    font-weight: 700;
}

.silver-bar-page[data-theme="dark"] .data-heavy-table td span[id*="bdt"],
[data-theme="dark"] .silver-bar-page .data-heavy-table td span[id*="bdt"] {
    color: #38bdf8 !important;
}

[data-theme="dark"] .data-heavy-table td span[id*="usd"] {
    color: #34d399 !important;
    font-weight: 600;
}

/* 📌 High-Contrast Sticky First Column */
.data-heavy-table th:first-child,
.data-heavy-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 2;
    box-shadow: 3px 0 8px -3px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    color: var(--text-bright);
    min-width: 180px;
    border-right: 1px solid var(--border-color);
}

.data-heavy-table thead th:first-child {
    background: var(--ticker-bg);
    z-index: 3;
    color: var(--text-bright);
    font-weight: 800;
    font-size: 0.95rem;
}

[data-theme="dark"] .data-heavy-table thead th:first-child {
    background: #04060e !important;
    color: #ffffff !important;
    border-right: 1px solid #1f2a3f !important;
}

[data-theme="dark"] .data-heavy-table tbody tr:nth-child(even) td:first-child {
    background: #070a12 !important;
    color: #ffffff !important;
    border-right: 1px solid #1f2a3f !important;
}

[data-theme="dark"] .data-heavy-table tbody tr:nth-child(odd) td:first-child {
    background: #0b0f19 !important;
    color: #ffffff !important;
    border-right: 1px solid #1f2a3f !important;
}

.data-heavy-table tr:hover td {
    background: rgba(245, 166, 35, 0.06);
}

[data-theme="dark"] .data-heavy-table tr:hover td {
    background: #131a29 !important;
}

[data-theme="dark"] .silver-bar-page .data-heavy-table tr:hover td {
    background: #0d1e30 !important;
}

.data-heavy-table tr:hover td:first-child {
    background: var(--bg-card-hover);
}

[data-theme="dark"] .data-heavy-table tr:hover td:first-child {
    background: #172236 !important;
}

/* 🌐 Global Currency Table Specific Dark Mode Contrast */
[data-theme="dark"] #currencyTableBody tr td {
    color: #e2e8f0 !important;
}

[data-theme="dark"] #currencyTableBody tr td div > div:first-child {
    color: #ffffff !important;
    font-weight: 700 !important;
}

[data-theme="dark"] #currencyTableBody tr td div > div:last-child {
    color: #94a3b8 !important;
}

/* 📋 Bullion Matrix Table Specific Base Styling */
.bullion-matrix-wrap {
    margin-bottom: 2.5rem;
}

.bullion-matrix-wrap .table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.matrix-hallmark-subtitle {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
}

[data-theme="dark"] .matrix-hallmark-subtitle {
    color: #94a3b8;
}

.bullion-matrix-table {
    width: 100%;
    margin: 0;
}

.bullion-matrix-table .col-sub-label {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    display: inline-block;
    letter-spacing: 0.2px;
}

.bullion-matrix-table th.col-weight,
.bullion-matrix-table td.col-weight {
    text-align: left;
    padding-left: 1.2rem;
}

.bullion-matrix-table th.col-hallmark,
.bullion-matrix-table td.col-hallmark {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.silver-bar-page .bullion-matrix-table th.col-hallmark,
.silver-bar-page .bullion-matrix-table td.col-hallmark {
    color: #0284c7;
}

[data-theme="dark"] .silver-bar-page .bullion-matrix-table th.col-hallmark,
[data-theme="dark"] .silver-bar-page .bullion-matrix-table td.col-hallmark {
    color: #38bdf8;
}

.bullion-matrix-table th.col-bdt,
.bullion-matrix-table td.col-bdt {
    text-align: right;
    font-weight: 700;
}

.bullion-matrix-table th.col-usd,
.bullion-matrix-table td.col-usd {
    text-align: right;
    padding-right: 1.2rem;
    font-weight: 600;
    color: var(--green-up);
}

.matrix-purity-mobile {
    display: none;
}

/* ── Yearly Reports Grid ── */
.yearly-report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.yearly-report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.28s;
}

.yearly-report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f5a623, #d97706);
}

.yearly-report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-hover);
}

.yearly-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yearly-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(245, 166, 35, 0.12);
    color: #f5a623;
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.yearly-card-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.yearly-card-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── FAQ Details ── */
details.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

details.faq-item summary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--primary);
    transition: transform 0.2s;
}

details[open].faq-item summary::after {
    transform: rotate(180deg);
}

.faq-content {
    margin-top: 0.75rem;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── Rating Widget ── */
.rating-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto 2rem;
    max-width: 550px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stars-container-goldbar label:hover,
.stars-container-goldbar label:hover ~ label,
.stars-container-goldbar input:checked ~ label {
    color: #f5a623 !important;
}

/* ── Responsive Media Queries ── */
@media (max-width: 992px) {
    .nav-links, .nav-desktop-only { display: none !important; }
    .mobile-header-actions { display: flex !important; }
}

@media (max-width: 768px) {
    .container { padding: 0 0.85rem; }
    .hero-main-title { font-size: 1.5rem; }
    .status-switcher-bar { flex-direction: row; justify-content: space-between; gap: 8px; }
    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.45rem !important;
    }
    .quick-nav-item {
        padding: 0.5rem 0.35rem !important;
        font-size: 0.76rem !important;
        gap: 4px !important;
    }
    .quick-nav-item svg {
        width: 14px !important;
        height: 14px !important;
    }
    .spot-strip-box {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 1rem 0.85rem !important;
        margin-bottom: 1.5rem !important;
    }
    .strip-stat-item:last-child {
        grid-column: span 2;
    }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.65rem !important; }
    .rate-card { padding: 0.85rem !important; min-height: auto !important; }
    .price-text { font-size: 1.25rem !important; }
    .card-badges-wrap { gap: 4px !important; margin-top: 4px !important; }
    .change-line { font-size: 0.68rem !important; padding: 2px 5px !important; }
    .metal-title { font-size: 0.85rem !important; }
    .metal-label { font-size: 0.64rem !important; }
    .card-bottom { font-size: 0.64rem !important; margin-top: 6px !important; padding-top: 4px !important; }
    .cross-price-banner {
        margin-top: -1rem !important;
        margin-bottom: 2rem !important;
        padding: 0.95rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.85rem !important;
    }
    .cross-price-right {
        width: 100% !important;
    }
    .cross-cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .calc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* 📱 Mobile Responsive Tables */
    .data-heavy-table-wrap {
        padding: 0.85rem 0.65rem !important;
        margin-bottom: 2rem !important;
        border-radius: 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .data-heavy-table-wrap::-webkit-scrollbar {
        height: 4px;
    }
    .data-heavy-table-wrap::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    .table-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
        margin-bottom: 0.75rem !important;
    }
    .table-toolbar .section-header-title {
        font-size: 0.98rem !important;
        line-height: 1.35 !important;
    }
    .table-search {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.82rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    .data-heavy-table {
        font-size: 0.84rem !important;
        min-width: 460px !important;
    }
    .data-heavy-table th {
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: var(--text-bright) !important;
        background: var(--ticker-bg) !important;
        letter-spacing: 0 !important;
    }
    .data-heavy-table td {
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }
    .data-heavy-table th:first-child,
    .data-heavy-table td:first-child {
        min-width: 120px !important;
        font-size: 0.82rem !important;
    }
    .yearly-report-grid { grid-template-columns: 1fr; }

    /* 📱 Bullion Matrix Mobile Clean 3-Column Layout */
    .data-heavy-table-wrap.bullion-matrix-wrap {
        padding: 0.75rem 0.35rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 2rem !important;
    }

    .data-heavy-table-wrap.bullion-matrix-wrap .data-heavy-table.bullion-matrix-table,
    table.bullion-matrix-table,
    .bullion-matrix-table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        margin: 0 !important;
    }

    /* Hide redundant Hallmark column on mobile */
    .bullion-matrix-table .col-hallmark {
        display: none !important;
    }

    /* Show mini hallmark badge under weight */
    .bullion-matrix-table .matrix-purity-mobile {
        display: block !important;
        font-size: 0.66rem !important;
        color: var(--primary) !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
        margin-top: 2px !important;
    }

    .silver-bar-page .bullion-matrix-table .matrix-purity-mobile {
        color: #0284c7 !important;
    }

    [data-theme="dark"] .silver-bar-page .bullion-matrix-table .matrix-purity-mobile {
        color: #38bdf8 !important;
    }

    /* Remove sticky from first child to prevent overlap and clipping on mobile */
    .bullion-matrix-table th:first-child,
    .bullion-matrix-table td:first-child,
    .bullion-matrix-table th.col-weight,
    .bullion-matrix-table td.col-weight {
        position: static !important;
        min-width: 0 !important;
        width: 34% !important;
        padding: 8px 4px !important;
        box-shadow: none !important;
        border-right: 1px solid var(--border-color) !important;
        text-align: left !important;
    }

    [data-theme="dark"] .bullion-matrix-table th:first-child,
    [data-theme="dark"] .bullion-matrix-table td:first-child {
        border-right-color: #1e293b !important;
    }

    .bullion-matrix-table th.col-bdt,
    .bullion-matrix-table td.col-bdt {
        width: 36% !important;
        padding: 8px 4px !important;
        text-align: right !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }

    .bullion-matrix-table th.col-usd,
    .bullion-matrix-table td.col-usd {
        width: 30% !important;
        padding: 8px 6px 8px 2px !important;
        text-align: right !important;
        font-size: 0.80rem !important;
        white-space: nowrap !important;
    }

    .bullion-matrix-table thead th {
        font-size: 0.74rem !important;
        padding: 7px 3px !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .bullion-matrix-table td .weight-title {
        font-weight: 700;
        font-size: 0.80rem;
        display: block;
        line-height: 1.2;
    }

    /* Currency Matrix Mobile Compact Styles */
    .currency-scroll-hint {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(234, 179, 8, 0.08);
        border: 1px dashed rgba(234, 179, 8, 0.3);
        border-radius: 6px;
        padding: 4px 8px;
        margin-bottom: 8px;
        font-size: 0.73rem;
        color: var(--text-muted);
    }
    [data-theme="dark"] .currency-scroll-hint {
        background: rgba(234, 179, 8, 0.05);
        border-color: rgba(234, 179, 8, 0.2);
        color: #94a3b8;
    }
    .data-heavy-table-wrap.currency-matrix-wrap {
        margin-bottom: 2rem !important;
        padding: 0.85rem 0.6rem !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    .data-heavy-table-wrap.currency-matrix-wrap > .currency-matrix-table-container {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: auto !important;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        position: relative;
        background: var(--bg-card);
    }
    .currency-matrix-table-container::-webkit-scrollbar {
        width: 5px;
        height: 4px;
    }
    .currency-matrix-table-container::-webkit-scrollbar-thumb {
        background: #94a3b8;
        border-radius: 4px;
    }
    [data-theme="dark"] .currency-matrix-table-container {
        border-color: #1e293b !important;
        background: #0b0f19 !important;
    }
    [data-theme="dark"] .currency-matrix-table-container::-webkit-scrollbar-thumb {
        background: #334155;
    }
    .data-heavy-table-wrap.currency-matrix-wrap .data-heavy-table {
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        table-layout: auto !important;
    }
    .data-heavy-table-wrap.currency-matrix-wrap .data-heavy-table td:first-child,
    .data-heavy-table-wrap.currency-matrix-wrap .data-heavy-table th:first-child {
        white-space: normal !important;
        word-break: normal !important;
    }
    .data-heavy-table-wrap.currency-matrix-wrap .data-heavy-table td:nth-child(2),
    .data-heavy-table-wrap.currency-matrix-wrap .data-heavy-table td:nth-child(3),
    .data-heavy-table-wrap.currency-matrix-wrap .data-heavy-table th:nth-child(2),
    .data-heavy-table-wrap.currency-matrix-wrap .data-heavy-table th:nth-child(3) {
        white-space: nowrap !important;
    }
    /* Hide columns 4 (১ ট্রয় আউন্স), 5 (১০০ গ্রাম), and 6 (১ কেজি) on mobile */
    .currency-matrix-table-container thead th:nth-child(4),
    .currency-matrix-table-container tbody td:nth-child(4),
    .currency-matrix-table-container thead th:nth-child(5),
    .currency-matrix-table-container tbody td:nth-child(5),
    .currency-matrix-table-container thead th:nth-child(6),
    .currency-matrix-table-container tbody td:nth-child(6) {
        display: none !important;
    }
    .currency-matrix-table-container thead th {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #0f172a !important;
        color: #fef08a !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
        padding: 7px 3px !important;
        font-size: 0.72rem !important;
        border-bottom: 2px solid var(--primary) !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    .currency-matrix-table-container thead th:first-child {
        text-align: left !important;
        padding-left: 6px !important;
    }
    [data-theme="dark"] .currency-matrix-table-container thead th {
        background: #04060e !important;
        color: #ffffff !important;
    }
    .currency-matrix-table-container td {
        padding: 6px 3px !important;
        font-size: 0.74rem !important;
        text-align: center !important;
    }
    .currency-matrix-table-container td:first-child {
        text-align: left !important;
        padding-left: 6px !important;
    }
    .currency-matrix-table-container .cur-flag-img {
        width: 18px !important;
        height: 12px !important;
    }
    .currency-matrix-table-container td:first-child > div {
        gap: 5px !important;
    }
    .currency-matrix-table-container td:first-child > div > div > div:first-child {
        font-size: 0.78rem !important;
    }
    .currency-matrix-table-container td:first-child > div > div > div:last-child {
        font-size: 0.64rem !important;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 0.65rem; }
    .hero-main-title { font-size: 1.3rem; }
    .spot-strip-box { padding: 0.75rem 0.5rem !important; }
    .data-heavy-table-wrap { padding: 0.75rem 0.4rem !important; }
    .data-heavy-table {
        font-size: 0.78rem !important;
        min-width: 410px !important;
    }
    .data-heavy-table th {
        padding: 7px 8px !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
    }
    .data-heavy-table td {
        padding: 7px 8px !important;
        font-size: 0.76rem !important;
    }
    .data-heavy-table th:first-child,
    .data-heavy-table td:first-child {
        min-width: 105px !important;
        font-size: 0.76rem !important;
    }
    .table-toolbar .section-header-title { font-size: 0.88rem !important; }

    /* 📱 Bullion Matrix Extra Small Screen (<=480px) */
    .data-heavy-table-wrap.bullion-matrix-wrap {
        padding: 0.65rem 0.2rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .data-heavy-table-wrap.bullion-matrix-wrap .data-heavy-table.bullion-matrix-table,
    table.bullion-matrix-table,
    .bullion-matrix-table {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    .bullion-matrix-table th:first-child,
    .bullion-matrix-table td:first-child,
    .bullion-matrix-table th.col-weight,
    .bullion-matrix-table td.col-weight {
        position: static !important;
        min-width: 0 !important;
        width: 33% !important;
        padding: 7px 3px !important;
        text-align: left !important;
    }

    .bullion-matrix-table td .weight-title {
        font-size: 0.76rem !important;
    }

    .bullion-matrix-table .matrix-purity-mobile {
        font-size: 0.62rem !important;
    }

    .bullion-matrix-table th.col-bdt,
    .bullion-matrix-table td.col-bdt {
        width: 37% !important;
        padding: 7px 3px !important;
        font-size: 0.78rem !important;
        text-align: right !important;
    }

    .bullion-matrix-table th.col-usd,
    .bullion-matrix-table td.col-usd {
        width: 30% !important;
        padding: 7px 4px 7px 1px !important;
        font-size: 0.76rem !important;
        text-align: right !important;
    }

    .bullion-matrix-table thead th {
        font-size: 0.72rem !important;
        padding: 6px 2px !important;
    }

    /* Currency Matrix Extra Small Compactness */
    .currency-matrix-wrap {
        padding: 0.65rem 0.35rem !important;
    }
    .currency-matrix-table-container {
        max-height: 340px !important;
    }
    .currency-matrix-table-container td {
        padding: 5px 4px !important;
        font-size: 0.74rem !important;
    }
    .currency-matrix-table-container thead th {
        padding: 6px 4px !important;
        font-size: 0.72rem !important;
    }
    .currency-matrix-table-container td:first-child > div > div > div:first-child {
        font-size: 0.76rem !important;
    }
    .currency-matrix-table-container td:first-child > div > div > div:last-child {
        font-size: 0.62rem !important;
    }
    .currency-matrix-table-container .cur-flag-img {
        width: 18px !important;
        height: 12px !important;
    }
}

@media (max-width: 900px) {
    .chart-info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .chart-box-container {
        padding: 1rem;
    }
    .chart-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .chart-view-toggle {
        width: 100%;
    }
    .chart-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 6px;
        font-size: 0.78rem;
    }
    .chart-display-frame {
        height: 380px !important;
    }
}

/* ── 📢 1-Click Social Share & Copy Bar ── */
.share-bar-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.share-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-bright);
}

.share-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-base);
    color: var(--text-light);
    transition: all 0.2s ease;
}

.share-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.share-btn-whatsapp:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.share-btn-facebook:hover {
    background: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
}

.share-btn-telegram:hover {
    background: #229ED9;
    color: #ffffff;
    border-color: #229ED9;
}

.share-btn-copy {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.share-btn-copy:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.share-btn-copy.copied {
    background: var(--green-up);
    border-color: var(--green-up);
}

/* ── 🛄 NBR Baggage Rules 2026 & Bullion Guide ── */
.guide-box-container {
    margin-bottom: 2.5rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow-hover);
}

.guide-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.guide-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: rgba(217, 119, 6, 0.1);
    color: var(--primary);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.silver-guide-icon {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.guide-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.4;
    margin-bottom: 2px;
}

.guide-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--green-up);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.guide-badge-gold {
    background: rgba(217, 119, 6, 0.12);
    color: var(--primary);
    border-color: rgba(217, 119, 6, 0.3);
}

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.guide-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.55;
}

.guide-list-bullet {
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

.guide-table-mini {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    border-radius: 6px;
    overflow: hidden;
}

.guide-table-mini th {
    background: var(--ticker-bg);
    color: var(--text-bright);
    padding: 6px 8px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.guide-table-mini td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .share-bar-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .share-btn-group {
        width: 100%;
        justify-content: flex-start;
    }
}

