/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Red & Gold Color Palette */
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --gold-dark: #B8860B;
    --gold-light: #FFED4E;

    /* Red Colors */
    --red-primary: #DC2626;
    --red-dark: #B91C1C;
    --red-darker: #8B0000;
    --red-light: #EF4444;

    /* Background Colors - Red/Gold Theme */
    --bg-dark: #1a0808;
    --bg-gradient-start: #2d0a0a;
    --bg-gradient-end: #1a0505;
    --bg-card: rgba(255, 215, 0, 0.03);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #fef3c7;
    --text-muted: #fcd34d;

    /* Accent Colors */
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
    --shadow-red: 0 4px 20px rgba(220, 38, 38, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background with Red & Gold */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(220, 38, 38, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 165, 0, 0.06) 0%, transparent 70%);
    animation: backgroundPulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: linear-gradient(135deg, var(--red-darker) 0%, var(--red-dark) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--gold-primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo wrapper to handle white background */
.logo-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-darker) 100%);
    padding: 4px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--gold-primary);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin: 0;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-top: 2px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-time {
    text-align: right;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.time-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-variant-numeric: tabular-nums;
}

.date-display {
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-top: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.4) 0%, transparent 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    animation: bounce 3s ease-in-out infinite;
}

.hero-icon i {
    width: 32px;
    height: 32px;
    color: var(--red-darker);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #FFD700 50%, #FF8C00 75%, #FFD700 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.update-time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(255, 215, 0, 0.15) 100%);
    border: 2px solid var(--gold-primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-green);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.3);
    }
}

/* Price Legend */
.price-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.gold-999 {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
}

.legend-dot.gold-sjc {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    padding: 25px 0 50px;
}

.price-section {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out;
}

.price-section.featured {
    margin-bottom: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 30px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-divider i {
    width: 24px;
    height: 24px;
    color: var(--gold-primary);
}

.divider-text {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-darker) 100%);
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    border-radius: 50px;
    white-space: nowrap;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.brand-card {
    margin-bottom: 0 !important;
}

.brand-card .section-header {
    margin-bottom: 10px;
}

.brand-card .section-title {
    font-size: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* Brand Badges */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-badge i {
    width: 12px;
    height: 12px;
}

.brand-badge.quytung {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.brand-badge.sjc {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a0a0a;
}

.brand-badge.doji {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
}

.brand-badge.pnj {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
}

.brand-badge.btmc {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.brand-badge.mihong {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    color: white;
}

.brand-badge.phuquy {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
}

/* Unit Label in Table Headers */
.unit {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
    color: rgba(255, 215, 0, 0.9);
    margin-top: 2px;
}

.price-table-wrapper.compact th .unit {
    display: inline;
    font-size: 0.6rem;
}

/* ==========================================
   UNIT SWITCHER
   ========================================== */
.unit-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.4) 0%, rgba(26, 8, 8, 0.8) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
}

.unit-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.unit-tabs {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 12px;
}

.unit-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.unit-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.unit-tab.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #B8860B 100%);
    color: #1a0a0a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.unit-tab .tab-name {
    font-size: 1rem;
    font-weight: 700;
}

.unit-tab .tab-info {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.7;
}

.unit-tab.active .tab-info {
    opacity: 0.9;
}

/* Mobile optimization for unit switcher */
@media (max-width: 480px) {
    .unit-switcher {
        padding: 12px;
        margin: 10px 0;
    }

    .unit-tabs {
        gap: 4px;
        padding: 4px;
    }

    .unit-tab {
        padding: 8px 14px;
    }

    .unit-tab .tab-name {
        font-size: 0.9rem;
    }

    .unit-tab .tab-info {
        font-size: 0.6rem;
    }
}

.brand-badge.kimtin {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: #1a0a0a;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Website Link */
.website-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.website-link i {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
}

.website-link a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.website-link a:hover {
    text-decoration: underline;
    color: var(--gold-light);
}

/* Shop Info Grid */
.shop-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 35px;
}

.shop-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.25) 0%, rgba(255, 215, 0, 0.08) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.shop-info-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

.shop-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-darker) 100%);
    padding: 4px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--gold-primary);
    flex-shrink: 0;
}

.shop-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.shop-logo.kimtin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
}

.shop-logo.kimtin-logo i {
    width: 36px;
    height: 36px;
    color: var(--red-darker);
}

.shop-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.shop-details p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.shop-details p i {
    width: 14px;
    height: 14px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .shop-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .shop-info-card {
        padding: 20px;
    }

    .shop-logo {
        width: 55px;
        height: 55px;
    }

    .shop-details h3 {
        font-size: 1rem;
    }

    .shop-details p {
        font-size: 0.8rem;
    }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: var(--gold-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--gold-primary);
}

.section-badge i {
    width: 12px;
    height: 12px;
}

/* ==========================================
   DETAILED PRICE TABLE (Main Quý Tùng Table)
   ========================================== */
.price-table-wrapper {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(255, 215, 0, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15), 0 8px 32px rgba(139, 0, 0, 0.15);
    transition: all var(--transition-normal);
}

.price-table-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.25), 0 12px 40px rgba(139, 0, 0, 0.15);
    border-color: var(--gold-primary);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

/* Detailed Table Styles */
.price-table.detailed thead {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(185, 28, 28, 0.9) 100%);
}

.price-table.detailed th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold-primary);
}

.price-table.detailed th.col-name {
    text-align: left;
    width: 40%;
}

.price-table.detailed th.col-purity {
    width: 15%;
}

.price-table.detailed th.col-buy,
.price-table.detailed th.col-sell {
    width: 22%;
}

.price-table.detailed .price-row {
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    transition: all var(--transition-fast);
}

.price-table.detailed .price-row:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.price-table.detailed .price-row.highlight {
    background: rgba(255, 215, 0, 0.08);
}

.price-table.detailed .price-row.sjc-row {
    background: rgba(220, 38, 38, 0.15);
}

.price-table.detailed td {
    padding: 16px 12px;
}

/* Product Info Cell */
.product-info {
    text-align: left;
}

.product-name-main {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-primary);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.9;
    line-height: 1.4;
}

/* Purity Cell */
.purity {
    text-align: center;
}

.purity-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.purity-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.purity-compact {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Price Cells */
.price {
    text-align: center;
    font-weight: 600;
}

.price-value {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.buy-price .price-value {
    color: #60a5fa;
}

.sell-price .price-value {
    color: var(--gold-primary);
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Price Note */
.price-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-note i {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
}

/* ==========================================
   COMPACT PRICE TABLE (Brand Cards)
   ========================================== */
.price-table-wrapper.compact {
    border-radius: 12px;
}

.price-table-wrapper.compact .price-table th {
    padding: 10px 8px;
    font-size: 0.7rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.6) 0%, rgba(185, 28, 28, 0.6) 100%);
    color: var(--gold-primary);
    border-bottom: 1px solid var(--gold-primary);
}

.price-table-wrapper.compact .price-table th:first-child {
    text-align: left;
}

.price-table-wrapper.compact .price-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
}

.price-table-wrapper.compact .price-value {
    font-size: 0.9rem;
}

.price-table-wrapper.compact .product-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.price-table-wrapper.compact .price-row {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.price-table-wrapper.compact .price-row:last-child {
    border-bottom: none;
}

/* ==========================================
   QUICK REFERENCE BOX
   ========================================== */
.quick-reference {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.25) 0%, rgba(255, 215, 0, 0.08) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-top: 35px;
    margin-bottom: 35px;
}

.quick-reference h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 20px;
    text-align: center;
    justify-content: center;
}

.quick-reference h3 i {
    width: 24px;
    height: 24px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.reference-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.reference-item strong {
    display: block;
    color: var(--gold-primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.reference-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* ==========================================
   INFO CARDS
   ========================================== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(255, 215, 0, 0.08) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: all var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.25);
}

.info-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.info-icon i {
    width: 26px;
    height: 26px;
    color: var(--red-darker);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(135deg, var(--red-darker) 0%, #1a0505 100%);
    border-top: 3px solid var(--gold-primary);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-logo-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-darker) 100%);
    padding: 4px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--gold-primary);
    margin-bottom: 12px;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.footer-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.footer-subtitle i {
    width: 16px;
    height: 16px;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    line-height: 1.5;
}

.footer-text i {
    width: 14px;
    height: 14px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.footer-brand .footer-text {
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--gold-light);
    font-size: 0.8rem;
}

/* ==========================================
   RESPONSIVE DESIGN - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .logo-wrapper {
        width: 48px;
        height: 48px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.65rem;
    }

    .header-time {
        padding: 5px 10px;
    }

    .time-display {
        font-size: 0.95rem;
    }

    .date-display {
        font-size: 0.65rem;
    }

    /* Hero */
    .hero {
        padding: 30px 0 20px;
    }

    .hero-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .hero-icon i {
        width: 24px;
        height: 24px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .update-time {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .price-legend {
        flex-direction: column;
        gap: 8px;
    }

    .legend-item {
        font-size: 0.75rem;
    }

    /* Main Content */
    .main-content {
        padding: 15px 0 35px;
    }

    /* Section Header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .brand-badge {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .section-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    /* Divider */
    .section-divider {
        margin: 30px 0 20px;
    }

    .divider-text {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Brands Grid */
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Detailed Table Mobile */
    .price-table.detailed th {
        padding: 10px 6px;
        font-size: 0.7rem;
    }

    .price-table.detailed td {
        padding: 12px 6px;
    }

    .product-name-main {
        font-size: 0.85rem;
    }

    .product-desc {
        font-size: 0.65rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .purity-value {
        font-size: 0.9rem;
    }

    .purity-label {
        font-size: 0.65rem;
    }

    .price-value {
        font-size: 0.95rem;
    }

    .price-note {
        font-size: 0.75rem;
        padding: 10px 15px;
    }

    /* Quick Reference */
    .quick-reference {
        padding: 18px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .quick-reference h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .reference-item {
        padding: 12px 10px;
    }

    .reference-item strong {
        font-size: 0.8rem;
    }

    .reference-item p {
        font-size: 0.7rem;
    }

    /* Info Cards */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    .info-card {
        padding: 22px 18px;
    }

    .info-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .info-icon i {
        width: 22px;
        height: 22px;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .info-card p {
        font-size: 0.8rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
        margin-top: 35px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-logo-wrapper {
        width: 55px;
        height: 55px;
    }

    .footer-title {
        font-size: 1.1rem;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ========================================== */
@media (max-width: 480px) {
    .header-content {
        gap: 8px;
    }

    .logo {
        gap: 8px;
    }

    .logo-wrapper {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .price-table.detailed th {
        padding: 8px 4px;
        font-size: 0.6rem;
    }

    .price-table.detailed td {
        padding: 10px 4px;
    }

    .product-name-main {
        font-size: 0.75rem;
    }

    .product-desc {
        display: none;
    }

    .purity-value {
        font-size: 0.8rem;
    }

    .price-value {
        font-size: 0.85rem;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gold {
    color: var(--gold-primary);
}

.text-center {
    text-align: center;
}

/* ==========================================
   DISCLAIMER STYLES
   ========================================== */
.disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.disclaimer i {
    width: 18px;
    height: 18px;
    color: #eab308;
    flex-shrink: 0;
}

/* Local Shops Grid */
.local-shops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 10px;
}

.local-shop {
    margin-bottom: 0 !important;
}

.section-divider.first {
    margin-top: 0;
}

/* Shop Address */
.shop-address {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.shop-address.small {
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.shop-address i {
    width: 16px;
    height: 16px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.shop-address a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
}

.shop-address a:hover {
    text-decoration: underline;
}

.website-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-primary);
    color: var(--red-darker) !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.website-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.website-btn i {
    width: 12px;
    height: 12px;
    color: var(--red-darker);
}

/* API Badge */
.api-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.api-badge i {
    width: 10px;
    height: 10px;
}

/* Compact Table Wrapper */
.price-table-wrapper.compact {
    border-width: 1px;
}

.price-table-wrapper.compact .price-table th {
    padding: 10px 8px;
    font-size: 0.75rem;
}

.price-table-wrapper.compact .price-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
}

.price-table-wrapper.compact .product-name-main {
    font-size: 0.85rem;
}

.price-table-wrapper.compact .product-desc {
    font-size: 0.7rem;
}

.price-table-wrapper.compact .purity-value {
    font-size: 0.9rem;
}

.price-table-wrapper.compact .price-value {
    font-size: 0.95rem;
}

/* Disclaimer Box */
.disclaimer-box {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.05) 100%);
    border: 2px solid rgba(234, 179, 8, 0.4);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
}

.disclaimer-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.disclaimer-icon i {
    width: 26px;
    height: 26px;
    color: var(--red-darker);
}

.disclaimer-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eab308;
    margin-bottom: 8px;
}

.disclaimer-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-links a i {
    width: 14px;
    height: 14px;
}

.contact-links .fb-link {
    background: #1877f2;
    color: white;
}

.contact-links .fb-link:hover {
    background: #0d65d9;
}

.contact-links .web-link {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.contact-links .web-link:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* Responsive for new elements */
@media (max-width: 992px) {
    .local-shops-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .disclaimer {
        flex-direction: column;
        text-align: center;
        font-size: 0.8rem;
        padding: 12px 15px;
    }

    .disclaimer-box {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .disclaimer-icon {
        width: 45px;
        height: 45px;
    }

    .disclaimer-content h4 {
        font-size: 1rem;
    }

    .disclaimer-content p {
        font-size: 0.85rem;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-links a {
        justify-content: center;
    }

    .shop-address {
        flex-direction: column;
        align-items: flex-start;
    }

    .website-btn {
        margin-left: 26px;
    }

    .brands-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TRADINGVIEW CHART STYLES
   ========================================== */
.chart-container {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.25) 0%, rgba(26, 8, 8, 0.9) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.6) 0%, rgba(185, 28, 28, 0.4) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.chart-title i {
    width: 22px;
    height: 22px;
}

.chart-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.chart-badge i {
    width: 12px;
    height: 12px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tradingview-widget-container {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    background: #131722;
    position: relative;
}

.tradingview-widget-container__widget {
    height: 100% !important;
    min-height: 600px !important;
    width: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tradingview-widget-container__widget iframe {
    height: 100% !important;
    min-height: 600px !important;
    width: 100% !important;
}

#tradingview-chart {
    width: 100%;
    height: 100%;
}

/* Responsive Chart */
@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .chart-title {
        font-size: 0.95rem;
    }

    .tradingview-widget-container {
        height: 500px !important;
        min-height: 500px !important;
    }

    .tradingview-widget-container__widget {
        min-height: 500px !important;
    }
}

@media (max-width: 480px) {
    .tradingview-widget-container {
        height: 400px !important;
        min-height: 400px !important;
    }

    .tradingview-widget-container__widget {
        min-height: 400px !important;
    }

    .chart-container {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .chart-header {
        padding: 10px 15px;
    }

    .chart-title {
        font-size: 0.85rem;
    }

    .chart-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}