﻿/* =============================================
   AUREM BULLION - Main Stylesheet
   Theme: Aurem Green & Gold
   ============================================= */

:root {
    --primary: #00462A;
    --primary-dark: #00301e;
    --gold: #D4A840;
    --gold-dark: #B8892A;
    --gold-light: #f1d66c;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f5f8f6;
    --white: #ffffff;
    --border: #d0ddd5;
    --surface: #ffffff;
    --surface-soft: #f5f8f6;
    --success: #16804a;
    --danger: #b92f2f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html[data-theme="night"] {
    --primary: #4aaa7a;
    --primary-dark: #2a6a4a;
    --gold: #e4bd4a;
    --gold-dark: #a07820;
    --gold-light: #ffe28a;
    --text-dark: #f4f1e8;
    --text-muted: #c8c1ac;
    --bg-light: #1a1210;
    --white: #1e1614;
    --border: #3b2825;
    --surface: #1e1614;
    --surface-soft: #251e1a;
}
body { font-family: 'Montserrat', 'Open Sans', sans-serif; color: var(--text-dark); background: #00462A; transition: background .2s, color .2s; }
html[data-theme="night"] body { background: #0a1a12; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00301e, #00462A);
    z-index: 3000;
    pointer-events: none;
    transition: width .08s linear;
}

/* ---- TOP CONTACT BAR ---- */
.top-bar {
    background: #00301e;
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}
.top-bar a { color: #fff; }
.top-bar .tb-item { display: flex; align-items: center; gap: 6px; }
.top-bar i { font-size: 12px; }

/* ---- HEADER / NAVBAR ---- */
header.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 16px;
}
.logo-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-wrap img { height: 42px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1.1; white-space: nowrap; }
.logo-text span { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2px; color: var(--gold); }

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
}
nav.main-nav ul li a {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 7px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0;
    border-radius: 4px;
    transition: color 0.2s;
    white-space: nowrap;
    display: block;
}
nav.main-nav ul li a:hover,
nav.main-nav ul li a.active { color: var(--primary); }
.btn-login {
    background: var(--primary);
    color: #fff !important;
    padding: 7px 13px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    margin-left: 4px;
}
.btn-login:hover { background: var(--primary-dark) !important; color: #fff !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; flex-shrink: 0; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; }

/* ---- HERO SECTION ---- */
.hero {
    background: linear-gradient(135deg, #00301e 0%, #00462A 48%, #005c36 100%);
    padding: 60px 0 40px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(255,255,255,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero .container { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.hero-text .tagline {
    font-size: 15px;
    font-weight: 700;
    color: #D4A840;
    letter-spacing: 4px;
    margin-bottom: 16px;
}
.hero-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary-cta {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
    display: inline-block;
}
.btn-primary-cta:hover { background: linear-gradient(135deg, #006a3e, var(--gold)); color: #fff; }
.btn-gold-cta {
    background: linear-gradient(135deg, #00301e, #00462A);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
    display: inline-block;
}
.btn-gold-cta:hover { background: linear-gradient(135deg, #00301e, #002a18); color: #fff; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-height: 340px; width: 100%; object-fit: contain; border-radius: 12px; }

/* ---- LIVE RATES SECTION ---- */
.live-rates-section {
    background: transparent;
    padding: 50px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    margin-top: 6px;
    border-radius: 2px;
}
.view-all { font-size: 13px; font-weight: 600; color: var(--gold); }
.view-all:hover { text-decoration: underline; }

.rates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.rate-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 16px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.rate-card .metal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5e6b8 0%, #dbb84d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 3px 8px rgba(201,168,76,0.3);
}
.rate-card .metal-icon i { color: #fff; font-size: 20px; }
.rate-card .metal-name { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.rate-card .metal-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.rate-card .metal-hl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.rate-card .metal-change { font-size: 12px; font-weight: 700; color: #22a022; margin-top: 2px; }
.rate-card .metal-change.down { color: #cc0000; }

.rate-card.gold-card,
.rate-card.silver-card,
.rate-card.forex-card,
.rate-card.mcx-gold-card,
.rate-card.mcx-silver-card { border-top: none; }

/* ---- FEATURES STRIP ---- */
.features-strip {
    background: rgba(0,0,0,0.15);
    padding: 36px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}
.feature-item img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 10px; }
.feature-item .fi-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00301e, #00462A);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(107,29,58,0.3);
}
.feature-item .fi-icon i { color: #fff; }
.feature-item p { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1.4; text-transform: uppercase; }

/* ---- Theme 2 Feature Section (Gold Release + Products + Why Choose) ---- */
.mid-section {
    padding: 24px 0 18px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mid-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.05fr .85fr;
    gap: 12px;
    align-items: stretch;
}

/* ---- Online Tools ---- */
.tools-section {
    background: transparent;
    padding: 44px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.tool-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 18px 14px;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.tool-card i { color: var(--primary); font-size: 24px; }
.tool-card span {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.25;
}
.tool-card small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

/* Gold Release Program */
.gold-release-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    border-radius: 8px;
    padding: 18px 18px;
    background:
        radial-gradient(circle at 84% 74%, rgba(255,255,255,.15), transparent 28%),
        linear-gradient(135deg, #3d2e10 0%, var(--gold-dark) 78%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(139,105,20,.25);
}
.gold-release-card::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -36px;
    width: 150px;
    height: 92px;
    background: rgba(215,173,59,.38);
    border-radius: 50%;
}
.gold-release-card .gr-badge {
    color: #f7d886;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2px;
    display: inline-block;
    margin-bottom: 10px;
}
.gold-release-card h3 {
    position: relative;
    z-index: 1;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0;
}
.gold-release-card p {
    position: relative;
    z-index: 1;
    max-width: 170px;
    font-size: 10px;
    opacity: .9;
    margin-bottom: 14px;
    line-height: 1.45;
}
.btn-gold-mini {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: #d99b22;
    color: #001a0e;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.btn-gold-mini:hover { background: #f0bc42; color: #001a0e; }
.release-art {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 1;
    color: #d99b22;
    font-size: 56px;
    opacity: .95;
}
.release-art span {
    position: absolute;
    right: -16px;
    bottom: -14px;
    width: 82px;
    height: 20px;
    border-radius: 50%;
    background: rgba(215,154,35,.42);
}
.btn-white-cta {
    background: #fff;
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: background 0.2s;
}
.btn-white-cta:hover { background: var(--gold); color: #fff; }

/* Our Products */
.products-card {
    border-radius: 8px;
    padding: 18px 18px 12px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.theme2-title {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
}
.theme2-title span {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.product-item {
    min-height: 82px;
    text-align: center;
    background: #fff;
    border-radius: 0;
    padding: 8px 8px;
    box-shadow: none;
    border-left: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-item:first-child { border-left: 0; }
.product-item:hover {
    transform: translateY(-2px);
    box-shadow: none;
}
.product-item img {
    height: 42px;
    max-width: 58px;
    object-fit: contain;
}
.product-item p {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
}
.view-products {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #111;
}

/* Why Choose */
.why-choose-card {
    border-radius: 8px;
    padding: 18px 18px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.why-choose-card h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.why-list { list-style: none; }
.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: #333;
    margin-bottom: 9px;
    font-weight: 700;
    line-height: 1.35;
    padding: 0;
    border-bottom: 0;
}
.why-list li i { color: #00462A; margin-top: 1px; flex-shrink: 0; }

/* ---- About Band ---- */
.about-band {
    background: rgba(0,0,0,0.1);
    padding: 52px 0;
}
.about-band-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 34px;
    align-items: center;
}
.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.about-band h2 {
    font-size: 28px;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.about-band p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.75;
}
.trust-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.trust-list div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid #00462A;
    border-radius: 8px;
    padding: 18px;
}
.trust-list strong {
    display: block;
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
}
.trust-list span {
    display: block;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 3px;
}

/* ---- FOOTER ---- */
footer.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 32px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #333;
}
.footer-col .fc-icon { font-size: 20px; color: var(--gold); margin-bottom: 6px; }
.footer-col p { font-size: 13px; color: #ccc; line-height: 1.5; }
.footer-col a { color: #ccc; font-size: 13px; }
.footer-col a:hover { color: var(--gold); }
.footer-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 4px; }
.footer-value { font-size: 14px; font-weight: 600; color: #fff; }

.social-icons { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.social-icons a {
    width: 34px;
    height: 34px;
    background: #333;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s;
}
.social-icons a i {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    line-height: 1;
    text-align: center;
    transform: translate(-50%, -50%);
}
.social-icons a i::before {
    display: block;
    line-height: 1;
}
.social-icons a:hover { background: var(--gold-dark); }

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #333;
}
.footer-bottom a { color: #888; margin: 0 10px; }
.footer-bottom a:hover { color: var(--gold); }

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =============================================
   THEME 1: Live Rates Page Styles
   ============================================= */

/* T1 Header Bar (logo + contact + login) */
.t1-header-bar {
    background: linear-gradient(135deg, #00301e, #00462A);
    padding: 14px 0;
    transition: box-shadow .22s ease, padding .22s ease;
}
.t1-header-bar.is-scrolled {
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.t1-header-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.t1-header-right {
    display: flex;
    align-items: center;
    gap: 26px;
}
.t1-header-info {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.t1-header-info i { color: var(--gold); font-size: 14px; }
.t1-header-info a { color: rgba(255,255,255,0.85); }
.t1-header-info a:hover { color: var(--gold); }

.t1-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.t1-logo img {
    width: 124px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 7px 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.t1-logo-text { font-size: 18px; font-weight: 900; color: #D4A840; letter-spacing: 4px; text-transform: uppercase; text-align: center; }
.t1-logo-sub { font-size: 9px; font-weight: 600; letter-spacing: 3px; color: rgba(255,255,255,0.7); display: block; text-align: center; }

.btn-login-t1 {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 5px;
    font-weight: 700 !important;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn-login-t1:hover { background: linear-gradient(135deg, #006a3e, var(--gold)); color: #fff !important; }

/* T1 Navigation */
.t1-nav {
    background: #00301e;
    padding: 0;
    border-bottom: none;
}
.t1-nav .container { display: flex; align-items: center; justify-content: center; }
.t1-nav ul { list-style: none; display: flex; flex: 1; flex-wrap: nowrap; justify-content: center; }
.t1-nav ul li a {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 13px 5px;
    letter-spacing: 0.1px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.t1-nav ul li a:hover { color: #fff; }
.t1-nav ul li a.active {
    color: #fff;
    border-bottom-color: #fff;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* T1 Live Rates Banner (hidden - H1 kept for SEO) */
.t1-rates-banner { display: none; }

/* =============================================
   LIVE RATES PAGE - New Design (reference: THEMe.jpeg)
   Section 1: Top 3 Spot Cards
   Section 2: Bid/Ask Table
   Section 3: Product Rates List
   Section 4: MJDMA Rate
   ============================================= */

/* -- Section 1: Top 3 Spot Cards -- */
.lr-top-section {
    padding: 20px 0;
    background: transparent;
}
.lr-top-card {
    background: var(--surface);
    border: 1px solid #3a6e3a;
    border-radius: 10px;
    overflow: hidden;
}
.lr-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.lr-top-item {
    padding: 18px 14px 14px;
    text-align: center;
    border-right: 1px solid #e8e0d0;
}
.lr-top-item:last-child {
    border-right: none;
}
.lr-top-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.lr-top-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}
img.silver-icon {
    filter: saturate(0) brightness(1.15) contrast(0.95);
}
.lr-top-icon i {
    color: var(--gold);
}
.lr-top-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.lr-top-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.1;
}
.lr-top-hl {
    font-size: 13px;
    font-weight: 700;
}
.hl-green { color: #16804a; }
.hl-red { color: #b92f2f; }
.hl-sep {
    color: var(--text-muted);
    margin: 0 4px;
}

/* -- Section 2: Bid/Ask Table -- */
.lr-bid-section {
    padding: 18px 0;
    background: transparent;
}
.lr-bid-card {
    border: 1px solid #3a6e3a;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.lr-bid-table {
    width: 100%;
    border-collapse: collapse;
}
.lr-bid-table thead {
    background: #00462A;
    color: #fff;
}
.lr-bid-table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.lr-bid-table thead th:first-child {
    text-align: left;
}
.lr-bid-table thead th:last-child {
    border-right: none;
}
.lr-bid-table tbody tr {
    border-bottom: 1px solid #e8e0d0;
    cursor: pointer;
    transition: background 0.18s;
}
.lr-bid-table tbody tr:last-child {
    border-bottom: none;
}
.lr-bid-table tbody tr:hover {
    background: #f0f8f4;
}
.lr-bid-table tbody tr:focus {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    background: #f0f8f4;
}
.lr-bid-table tbody td {
    border-right: 1px solid #e8e0d0;
}
.lr-bid-table tbody td:last-child {
    border-right: none;
}
.bid-future-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}
.bid-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}
.bid-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}
.bid-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.bid-val {
    text-align: center;
    padding: 14px 12px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
}
.bid-hl-cell {
    text-align: center;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 800;
}

/* -- Section 3: Product Rates List -- */
.lr-products-section {
    padding: 18px 0;
    background: transparent;
}
.lr-products-card {
    border: 1px solid #3a6e3a;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.lr-product-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e8e0d0;
    cursor: pointer;
    transition: background 0.18s;
}
.lr-product-row:last-child {
    border-bottom: none;
}
.lr-product-row:hover {
    background: #f0f8f4;
}
.lr-prod-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5e6b8 0%, #dbb84d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}
.lr-prod-icon img {
    height: 22px;
    object-fit: contain;
}
.lr-prod-icon i {
    color: #fff;
    font-size: 16px;
}
.lr-prod-name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}
.lr-prod-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    text-align: right;
    min-width: 100px;
}

/* -- Section 4: MJDMA Rate -- */
.lr-mjdma-section {
    padding: 18px 0 24px;
    background: transparent;
}
.lr-mjdma-card {
    border: 1px solid #3a6e3a;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.lr-mjdma-header {
    background: var(--surface-soft);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    border-bottom: 1px solid #e8e0d0;
}
.lr-mjdma-header i {
    color: var(--gold);
    margin-right: 6px;
}
.lr-mjdma-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e8e0d0;
}
.lr-mjdma-row:last-of-type {
    border-bottom: 1px solid #e8e0d0;
}
.mjdma-icon {
    width: 36px;
    flex-shrink: 0;
    margin-right: 12px;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.mjdma-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.mjdma-metal {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    padding-right: 14px;
    border-right: 1px solid #e8e0d0;
    margin-right: 14px;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.mjdma-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
    text-align: center;
}
.mjdma-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    text-align: right;
    min-width: 120px;
}
.lr-mjdma-footer {
    padding: 18px 18px;
    text-align: center;
    background: var(--surface);
}
.mjdma-title {
    font-size: 20px;
    font-weight: 900;
    color: #16804a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.mjdma-update {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: #00301e;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
}
.mjdma-update i {
    margin-right: 4px;
    color: var(--gold);
}

/* -- Section 5/6: Gold Trends and News -- */
.lr-trends-section,
.lr-news-section {
    padding: 18px 0;
    background: transparent;
}
.lr-news-section {
    padding-bottom: 28px;
}
.lr-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.lr-section-head span {
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lr-section-head i {
    color: var(--gold);
    margin-right: 8px;
}
.lr-section-head small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.lr-trends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.lr-trend-card,
.lr-news-card {
    border: 1px solid #3a6e3a;
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}
.lr-trend-card {
    padding: 16px;
}
.lr-trend-top {
    display: grid;
    gap: 8px;
}
.lr-trend-top span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.lr-trend-top strong {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}
.lr-trend-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e0d0;
}
.lr-trend-meta span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.trend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    border-radius: 14px;
    padding: 5px 9px;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}
.trend-badge.up { background: #16804a; }
.trend-badge.down { background: #b92f2f; }
.trend-badge.neutral { background: #777; }
.lr-news-list {
    display: grid;
}
.lr-news-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e8e0d0;
}
.lr-news-item:last-child {
    border-bottom: none;
}
.lr-news-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5e6b8 0%, #dbb84d 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lr-news-title {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}
.lr-news-date {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Legacy classes still used by index page and other modules */
.metal-label { display: flex; align-items: center; gap: 10px; }
.metal-badge { background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.metal-badge-muted { background: #888; }
.net-position-badge { display: inline-flex; align-items: baseline; gap: 3px; margin-left: 2px; background: #2e8b45; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.net-position-badge.short { background: #b31b1b; }
.net-position-badge small { font-size: 8px; font-weight: 700; }
.rate-loading-row { text-align: center !important; color: #999 !important; font-weight: 600 !important; padding: 20px !important; }

/* T1 Why Section */
.t1-why { padding: 40px 0; background: transparent; }
.t1-why h2 { text-align: center; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 28px; color: #fff; }
.t1-why h2 span { color: var(--gold); }
.t1-why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.t1-why-item .wi-icon { font-size: 40px; color: var(--gold); margin-bottom: 10px; }
.t1-why-item img { height: 48px; object-fit: contain; margin-bottom: 10px; }
.t1-why-item p { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1.4; }

/* T1 Footer */
.t1-footer { background: linear-gradient(135deg, #00301e, #00462A); color: #fff; padding: 30px 0 0; }
.t1-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.t1-fc .tf-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.t1-fc .tf-value { font-size: 14px; font-weight: 700; color: #fff; }
.t1-fc a { color: #fff; }
.t1-fc p { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.t1-fc i { font-size: 20px; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.t1-footer-bottom { background: rgba(0,0,0,0.2); text-align: center; padding: 12px; font-size: 12px; color: rgba(255,255,255,0.7); }
.t1-footer-bottom a { color: rgba(255,255,255,0.7); margin: 0 10px; }

/* Live Rate Up/Down Pill Badges */
.pv {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}
.pv.flash-up {
    background: #16804a;
    color: #fff;
}
.pv.flash-down {
    background: #b92f2f;
    color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .rates-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .mid-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    .about-band-grid { grid-template-columns: 1fr; }
    .lr-top-grid { grid-template-columns: repeat(3, 1fr); }
    .t1-why-grid { grid-template-columns: repeat(3, 1fr); }
    .t1-footer-grid { grid-template-columns: repeat(2, 1fr); }
    nav.main-nav { display: none; }
    nav.main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 16px; z-index: 999; }
    nav.main-nav.open ul { flex-direction: column; }
    nav.main-nav.open ul li a { padding: 10px 14px; border-radius: 4px; }
    .hamburger { display: flex; }
    .hero .container { flex-direction: column; }
    .hero-text h1 { font-size: 36px; }
    .t1-nav ul { flex-wrap: wrap; }
    .t1-header-right { gap: 16px; }
    .t1-header-info { font-size: 12px; }
}

@media (max-width: 900px) {
    .t1-nav ul { flex-wrap: wrap; }
    .t1-nav ul li a { padding: 10px 8px; }
}

@media (max-width: 768px) {
    .t1-header-bar .container { flex-wrap: wrap; gap: 10px; }
    .t1-header-right { gap: 12px; width: 100%; justify-content: flex-end; }
    .t1-header-info.hide-mobile { display: none; }
}

@media (max-width: 600px) {
    .rates-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .lr-top-grid { grid-template-columns: 1fr; }
    .lr-top-item { border-right: none; border-bottom: 1px solid #e8e0d0; }
    .lr-top-item:last-child { border-bottom: none; }
    .t1-why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 28px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .t1-footer-grid { grid-template-columns: 1fr; }
    .t1-header-info { display: none; }
    .lr-top-price { font-size: 22px; }
    .bid-val { font-size: 15px; padding: 12px 8px; }
    .bid-future-cell { padding: 12px; }
    .bid-name { font-size: 13px; }
    .lr-bid-table thead th { padding: 10px 8px; font-size: 11px; letter-spacing: 0; }
    .lr-prod-price { font-size: 16px; min-width: 80px; }
    .lr-prod-name { font-size: 13px; }
    .lr-product-row { padding: 12px 14px; }
    .mjdma-price { font-size: 16px; min-width: 90px; }
    .lr-section-head { align-items: flex-start; flex-direction: column; }
    .lr-trends-grid { grid-template-columns: 1fr; }
    .lr-news-item { grid-template-columns: 34px 1fr; }
    .lr-news-date { grid-column: 2; }
}

/* Loading spinner */
.rate-loading { color: #aaa; font-size: 12px; }

/* ---- Themed Inner Pages ---- */
.inner-hero {
    background: linear-gradient(135deg, #00301e, #00462A);
    color: #fff;
    padding: 34px 0;
}
.inner-hero .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.inner-hero h1 { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.inner-hero p { color: rgba(255,255,255,0.82); font-size: 13px; margin-top: 6px; }
.inner-panel { padding: 36px 0 52px; background: transparent; min-height: 420px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.content-card.wide { grid-column: span 2; }
.content-card.full { grid-column: 1 / -1; }
.content-card h2,
.content-card h3 { color: var(--primary); font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.content-card h2 { font-size: 20px; }
.content-card h3 { font-size: 15px; }
.content-card p,
.content-card li { color: #333; font-size: 14px; line-height: 1.7; }
.content-card ul { padding-left: 18px; }
.coming-soon-card {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.coming-soon-card h2 {
    margin: 0;
    color: var(--primary);
    font-size: 32px;
    letter-spacing: 0;
}
.detail-list { display: grid; gap: 10px; }
.detail-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eee; }
.detail-row span:first-child { color: #777; font-size: 12px; text-transform: uppercase; font-weight: 800; }
.detail-row span:last-child { font-size: 14px; font-weight: 600; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.calc-toolbar {
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
}
.calc-type-group {
    display: flex;
    align-items: center;
    gap: 18px;
}
.calc-type-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}
.calc-type-group input {
    margin: 0;
}
.calc-add-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 10px 18px;
    line-height: 1;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: #666; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    background: var(--surface);
    color: var(--text-dark);
}
.field textarea { min-height: 110px; resize: vertical; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { background: linear-gradient(135deg, #00301e, #00462A); color: #fff; text-align: left; font-size: 12px; text-transform: uppercase; padding: 12px; }
.data-table td { border-bottom: 1px solid #eee; padding: 12px; font-size: 14px; }
.data-table input { width: 100%; border: 1px solid #ddd; border-radius: 5px; padding: 8px; }
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-scroll .data-table {
    min-width: 640px;
}
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.summary-box span { display: block; color: #777; font-size: 11px; text-transform: uppercase; font-weight: 800; margin-bottom: 5px; }
.summary-box strong { color: var(--primary); font-size: 20px; }
.message-list { display: grid; gap: 14px; }
.message-item { border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }
.message-item p { padding: 16px; }
.message-date { background: #f4e8c1; color: #3d2b00; font-size: 12px; font-weight: 800; text-align: right; padding: 10px 16px; }
.status-note { color: #777; font-size: 13px; margin-top: 10px; }

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-card.wide { grid-column: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .calc-toolbar { align-items: stretch; }
    .calc-type-group { width: 100%; }
    .calc-add-row { width: 100%; }
    .summary-strip { grid-template-columns: repeat(2, 1fr); }
    .inner-hero .container { display: block; }
}

@media (max-width: 520px) {
    .detail-row { grid-template-columns: 1fr; gap: 3px; }
    .summary-strip { grid-template-columns: 1fr; }
}

/* ---- Aurem Bullion dashboard and trading modules ---- */
.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text-dark);
    border-radius: 6px;
    min-height: 36px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font: 700 11px 'Montserrat', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}
.theme-toggle i { color: var(--gold); margin: 0; font-size: 13px; }
.dashboard-shell {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 18px;
}
.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.dash-tile,
.position-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    padding: 16px;
}
.dash-tile span,
.position-card span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.dash-tile strong,
.position-card strong {
    color: var(--primary);
    font-size: 22px;
}
.module-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.module-action {
    min-height: 118px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.module-action i { color: var(--gold); font-size: 24px; }
.module-action strong { color: var(--text-dark); font-size: 13px; text-transform: uppercase; }
.module-action small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.net-position-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.position-card.net strong { color: var(--success); }
.position-card.net.short strong { color: var(--danger); }
.trade-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.trade-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: var(--surface-soft);
}
.comment-box {
    min-height: 86px;
}
.trade-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.trade-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.trade-status-row span {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
}
.orders-table button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    padding: 7px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
}
html[data-theme="night"] .lr-bid-table tbody tr:hover,
html[data-theme="night"] .lr-product-row:hover {
    background: #2a2418;
}
html[data-theme="night"] .message-date { background: #332b1a; color: var(--gold-light); }
html[data-theme="night"] .t1-nav {
    background: #2a0a14;
}
html[data-theme="night"] .t1-footer {
    background: linear-gradient(135deg, #2a0a14, #00301e);
}
html[data-theme="night"] .hero {
    background: linear-gradient(135deg, #2a0a14, #00301e);
}
html[data-theme="night"] .inner-hero {
    background: linear-gradient(135deg, #2a0a14, #00301e);
}
html[data-theme="night"] .highlight-box {
    background: linear-gradient(135deg, #2a0a14, #00301e);
}
html[data-theme="night"] .social-icons a { background: rgba(255,255,255,0.15); }
html[data-theme="night"] .social-icons a:hover { background: var(--gold); }
html[data-theme="night"] .btn-white-cta { background: rgba(255,255,255,0.12); color: #fff; }
html[data-theme="night"] .btn-white-cta:hover { background: var(--gold); color: #fff; }
html[data-theme="night"] .service-card { background: var(--surface); }
html[data-theme="night"] .product-item { background: var(--surface); }
html[data-theme="night"] .why-choose-card { background: var(--surface); }
html[data-theme="night"] .products-card { background: var(--surface); border-color: var(--border); }
html[data-theme="night"] .gold-release-card {
    background: radial-gradient(circle at 84% 74%, rgba(255,255,255,.08), transparent 28%),
                linear-gradient(135deg, #2a1f0a, #006a3e);
}
html[data-theme="night"] .cert-badge { background: var(--surface-soft); border-color: var(--border); }
html[data-theme="night"] .lr-top-card { background: var(--surface); border-color: var(--border); }
html[data-theme="night"] .lr-top-item { border-color: var(--border); }
html[data-theme="night"] .lr-bid-card { border-color: var(--border); }
html[data-theme="night"] .lr-products-card { border-color: var(--border); }
html[data-theme="night"] .lr-mjdma-card { border-color: var(--border); }
html[data-theme="night"] .lr-bid-table tbody tr { border-color: var(--border); }
html[data-theme="night"] .lr-bid-table tbody td { border-color: var(--border); }
html[data-theme="night"] .lr-product-row { border-color: var(--border); }
html[data-theme="night"] .lr-mjdma-row { border-color: var(--border); }
html[data-theme="night"] .mjdma-metal { border-color: var(--border); }
html[data-theme="night"] .lr-trend-card,
html[data-theme="night"] .lr-news-card { background: var(--surface); border-color: var(--border); }
html[data-theme="night"] .lr-trend-meta,
html[data-theme="night"] .lr-news-item { border-color: var(--border); }
html[data-theme="night"] .lr-mjdma-header { border-color: var(--border); background: var(--surface-soft); }
html[data-theme="night"] .mjdma-update { background: rgba(0,0,0,0.4); }
html[data-theme="night"] .content-card { background: var(--surface); border-color: var(--border); }
html[data-theme="night"] .content-card h2,
html[data-theme="night"] .content-card h3 { color: var(--gold); }
html[data-theme="night"] .content-card p,
html[data-theme="night"] .content-card li { color: var(--text-muted); }
html[data-theme="night"] .about-band { background: rgba(0,0,0,0.2); }
html[data-theme="night"] .features-strip { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.05); }
html[data-theme="night"] .mid-section { background: transparent; border-color: rgba(255,255,255,0.05); }
html[data-theme="night"] .lr-top-icon { border-color: var(--gold); }
html[data-theme="night"] .rate-card { background: var(--surface); border-color: var(--border); }
html[data-theme="night"] .trust-list div { background: var(--surface); border-color: var(--border); }
html[data-theme="night"] .detail-row { border-color: var(--border); }
html[data-theme="night"] .field input,
html[data-theme="night"] .field select,
html[data-theme="night"] .field textarea { background: var(--surface-soft); color: var(--text-dark); border-color: var(--border); }
html[data-theme="night"] .data-table { background: var(--surface); }
html[data-theme="night"] .data-table td { border-color: var(--border); }
html[data-theme="night"] .orders-table th { background: linear-gradient(135deg, #00301e, #00462A); }

@media (max-width: 992px) {
    .dashboard-shell,
    .trade-workspace { grid-template-columns: 1fr; }
    .dashboard-tiles,
    .module-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .net-position-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .dashboard-tiles,
    .module-actions { grid-template-columns: 1fr; }
    .theme-toggle span { display: none; }
    .theme-toggle { padding: 8px 10px; }
    .rate-display { flex-direction: column; }
    .order-action-row { align-items: stretch; flex-direction: column; }
}

/* ---- Services Page ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.service-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.11); }
.service-card .svc-icon { font-size: 46px; color: var(--primary); margin-bottom: 14px; }
.service-card h3 { font-size: 15px; font-weight: 800; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.5px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- Process Steps ---- */
.process-list { list-style: none; margin-top: 8px; }
.process-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.step-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #00301e, #00462A);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
}
.step-body h4 { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 3px; text-transform: uppercase; }
.step-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---- About page ---- */
.about-intro { font-size: 15px; line-height: 1.8; color: #333; margin-bottom: 18px; }
.cert-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}
.cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 4px solid #00462A;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}
.cert-badge i { color: var(--primary); font-size: 18px; }

/* ---- Highlight box ---- */
.highlight-box {
    background: linear-gradient(135deg, #00301e, #00462A);
    color: #fff;
    border-radius: 10px;
    padding: 24px 22px;
    margin-bottom: 0;
}
.highlight-box h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.highlight-box p { color: rgba(255,255,255,0.88); font-size: 13px; line-height: 1.6; }
.highlight-box .btn-white-cta { margin-top: 14px; display: inline-block; }

/* ---- Device responsive hardening ---- */
html {
    overflow-x: hidden;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

.container {
    width: min(100%, 1200px);
}

.t1-header-bar .container,
.header-inner,
.section-header,
.inner-hero .container {
    min-width: 0;
}

.t1-logo,
.logo-wrap {
    min-width: 0;
}

.t1-logo-text,
.logo-text {
    overflow-wrap: anywhere;
}

.t1-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.t1-nav::-webkit-scrollbar {
    display: none;
}

.t1-nav .container {
    justify-content: flex-start;
    min-width: max-content;
}

.t1-nav ul {
    justify-content: flex-start;
}

.orders-table {
    min-width: 680px;
}

.content-card > div[style*="overflow-x:auto"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rate-card,
.lr-top-card,
.content-card,
.dash-tile,
.position-card,
.module-action,
.tool-card,
.service-card {
    min-width: 0;
}

.rate-card .metal-price,
.lr-top-price,
.position-card strong,
.dash-tile strong,
.summary-box strong {
    overflow-wrap: anywhere;
}

@media (min-width: 993px) and (max-width: 1180px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .t1-logo img {
        width: 108px;
        height: 44px;
        padding: 5px 8px;
    }

    .t1-logo-text {
        font-size: 22px;
    }

    .t1-logo-sub {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .t1-header-right {
        gap: 14px;
    }

    .t1-header-info {
        font-size: 12px;
    }

    .t1-nav .container {
        min-width: 0;
    }

    .t1-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .t1-nav ul li a {
        padding: 10px 7px;
    }

    .theme-toggle span {
        display: none;
    }

    .rates-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .features-grid,
    .tools-grid,
    .t1-why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .why-choose-card {
        grid-column: 1 / -1;
    }

    .t1-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .t1-header-bar .container {
        align-items: flex-start;
        gap: 16px;
    }

    .t1-logo img {
        width: 112px;
        height: 46px;
        padding: 5px 8px;
    }

    .t1-logo-text {
        font-size: 23px;
    }

    .t1-header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
        max-width: 430px;
    }

    .t1-nav .container {
        min-width: 0;
    }

    .t1-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0;
    }

    .t1-nav ul li a {
        padding: 10px 9px;
    }

    .hero {
        padding: 42px 0 32px;
    }

    .hero .container {
        align-items: flex-start;
        gap: 24px;
    }

    .hero-image img {
        max-height: 280px;
    }

    .section-header {
        gap: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .trust-list,
    .summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .t1-header-bar {
        padding: 10px 0;
    }

    .t1-header-bar .container {
        align-items: center;
    }

    .t1-logo img {
        width: 104px;
        height: 42px;
        padding: 5px 8px;
    }

    .t1-logo {
        gap: 8px;
        max-width: 100%;
    }

    .t1-logo-text {
        font-size: 20px;
        line-height: 1.1;
    }

    .t1-logo-sub {
        font-size: 8px;
        letter-spacing: 1.6px;
    }

    .t1-header-right {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }

    .btn-login-t1,
    .theme-toggle {
        min-height: 36px;
    }

    .t1-nav {
        border-top: none;
    }

    .t1-nav .container {
        min-width: max-content;
        padding-left: 12px;
        padding-right: 12px;
    }

    .t1-nav ul {
        flex-wrap: nowrap;
    }

    .t1-nav ul li a {
        padding: 11px 10px;
        font-size: 10px;
    }

    .hero {
        padding: 34px 0 28px;
    }

    .hero .container {
        gap: 22px;
    }

    .hero-text .tagline {
        letter-spacing: 2px;
    }

    .hero-text p {
        margin-bottom: 22px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .live-rates-section,
    .about-band,
    .tools-section {
        padding: 34px 0;
    }

    .features-strip,
    .t1-why {
        padding: 30px 0;
    }

    .inner-hero {
        padding: 26px 0;
    }

    .inner-hero .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .inner-panel {
        padding: 24px 0 38px;
    }

    .content-card {
        padding: 18px;
    }

    .dashboard-links,
    .hero-btns,
    .action-row,
    .order-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-links a,
    .hero-btns a,
    .action-row a,
    .action-row button,
    .order-action-row button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .trade-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .refresh-btn {
        float: none;
        width: 100%;
        min-height: 38px;
    }
}

@media (max-width: 600px) {
    .rates-grid,
    .features-grid,
    .tools-grid,
    .t1-why-grid,
    .products-grid,
    .trust-list {
        grid-template-columns: 1fr;
    }

    .rate-card {
        text-align: left;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
    }

    .rate-card .metal-icon {
        width: 46px;
        height: 46px;
        grid-row: span 3;
        margin: 0;
    }

    .rate-card .metal-name,
    .rate-card .metal-price,
    .rate-card .metal-hl,
    .rate-card .metal-change {
        min-width: 0;
    }

    .rate-card .metal-price {
        font-size: 20px;
    }

    .products-grid {
        gap: 10px;
    }

    .product-item {
        border: 1px solid var(--border);
        border-radius: 8px;
    }

    .product-item:first-child {
        border-left: 1px solid var(--border);
    }

    .summary-strip,
    .net-position-grid {
        grid-template-columns: 1fr;
    }

    .orders-table {
        min-width: 760px;
    }

    .metal-label {
        gap: 6px;
    }

    .metal-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .t1-logo img {
        width: 96px;
        height: 38px;
        padding: 4px 7px;
    }

    .t1-logo-text {
        font-size: 18px;
    }

    .t1-logo-sub {
        letter-spacing: 1px;
    }

    .btn-login-t1 {
        padding: 8px 12px !important;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text .tagline {
        font-size: 12px;
        letter-spacing: 1.2px;
    }

    .section-title,
    .t1-why h2 {
        font-size: 19px;
    }

    .inner-hero h1 {
        font-size: 23px;
    }

    .content-card {
        padding: 16px 14px;
    }

    .theme-toggle {
        padding: 8px 9px;
    }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 932px) {
    .hero {
        padding: 24px 0;
    }

    .hero .container {
        flex-direction: row;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-image img {
        max-height: 190px;
    }

    .inner-hero {
        padding: 20px 0;
    }
}

/* ---- Scroll and interaction effects ---- */
@keyframes soft-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes sheen-pass {
    0% { transform: translateX(-140%); opacity: 0; }
    20% { opacity: .65; }
    100% { transform: translateX(140%); opacity: 0; }
}

.hero-image img {
    animation: soft-float 5.5s ease-in-out infinite;
    box-shadow: 0 22px 45px rgba(0,0,0,.14);
}

.hero-text h1,
.inner-hero h1 {
    text-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.rate-card,
.lr-top-card,
.content-card,
.product-item,
.feature-item,
.why-choose-card,
.products-card,
.gold-release-card,
.summary-box,
.position-card,
.dash-tile,
.tool-card,
.module-action,
.service-card {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.rate-card:hover,
.lr-top-card:hover,
.content-card:hover,
.product-item:hover,
.feature-item:hover,
.why-choose-card:hover,
.products-card:hover,
.gold-release-card:hover,
.summary-box:hover,
.position-card:hover,
.dash-tile:hover,
.tool-card:hover,
.module-action:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,.10);
    border-color: rgba(215,173,59,.55);
}

.btn-primary-cta,
.btn-gold-cta,
.btn-white-cta,
.btn-login-t1,
.theme-toggle {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-primary-cta:hover,
.btn-gold-cta:hover,
.btn-white-cta:hover,
.btn-login-t1:hover,
.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.btn-primary-cta::after,
.btn-gold-cta::after,
.btn-white-cta::after,
.btn-login-t1::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.35) 45%, transparent 70%);
    transform: translateX(-140%);
    pointer-events: none;
}

.btn-primary-cta:hover::after,
.btn-gold-cta:hover::after,
.btn-white-cta:hover::after,
.btn-login-t1:hover::after {
    animation: sheen-pass .85s ease;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .62s ease, transform .62s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.reveal-left {
    transform: translateX(-28px);
}

.scroll-reveal.reveal-right {
    transform: translateX(28px);
}

.scroll-reveal.reveal-left.revealed,
.scroll-reveal.reveal-right.revealed {
    transform: translateX(0);
}

.data-table tbody tr,
.orders-table tbody tr,
.lr-bid-table tbody tr {
    transition: background .18s ease, transform .18s ease;
}

.data-table tbody tr:hover,
.orders-table tbody tr:hover {
    background: rgba(215,173,59,.10);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none !important;
    }
}
