/**
 * Turkpidya Gold Prices - Premium Gold Theme
 *
 * A premium, warm gold theme with proper financial semantics
 * for displaying gold and precious metals prices in Turkey.
 *
 * @package Turkpidya_Gold_Prices
 * @version 2.0.0 - UX Improvements
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Gold Palette - Primary for this page */
    --tgp-gold: #D4AF37;
    --tgp-gold-dark: #B8860B;
    --tgp-gold-darker: #9A7209;
    --tgp-gold-light: #F5E6C8;
    --tgp-gold-lighter: #FDF8EC;
    --tgp-gold-gradient: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #E8C84A 100%);
    --tgp-gold-shimmer: linear-gradient(135deg, #D4AF37 0%, #E8C84A 25%, #F5D967 50%, #E8C84A 75%, #D4AF37 100%);

    /* Warm Brown Text Colors */
    --tgp-brown: #5D4E37;
    --tgp-brown-dark: #2C2416;
    --tgp-brown-light: #8B7355;
    --tgp-text: #2C2416;
    --tgp-text-secondary: #5D4E37;
    --tgp-text-muted: #8B7355;
    --tgp-text-light: #A89580;

    /* Background Colors - Warm White/Cream */
    --tgp-bg: #FFFDF8;
    --tgp-bg-cream: #FBF8F1;
    --tgp-bg-card: #FFFFFF;
    --tgp-bg-hover: #FAF7F0;
    --tgp-bg-active: #F5F0E5;

    /* Category-specific backgrounds */
    --tgp-bg-gram: linear-gradient(135deg, #FDF8E8 0%, #FFFDF7 100%);
    --tgp-bg-coin: linear-gradient(135deg, #FAF5EB 0%, #FFF9F0 100%);
    --tgp-bg-silver: linear-gradient(135deg, #F5F7F8 0%, #FAFBFC 100%);

    /* Border Colors */
    --tgp-border: #E8E2D6;
    --tgp-border-light: #F0EBE0;
    --tgp-border-gold: rgba(212, 175, 55, 0.3);
    --tgp-border-gold-hover: rgba(212, 175, 55, 0.5);

    /* Semantic Colors - Fixed for financial context */
    /* In gold/finance: UP = good (green), DOWN = bad (red) */
    --tgp-price-up: #2D8A4E;
    --tgp-price-up-bg: rgba(45, 138, 78, 0.08);
    --tgp-price-down: #C74B4B;
    --tgp-price-down-bg: rgba(199, 75, 75, 0.08);
    --tgp-unchanged: #8B7355;
    --tgp-unchanged-bg: rgba(139, 115, 85, 0.08);

    /* Buy/Sell semantic colors */
    --tgp-buy-bg: rgba(45, 138, 78, 0.05);
    --tgp-sell-bg: rgba(212, 175, 55, 0.08);

    /* Silver Colors */
    --tgp-silver: #8B9094;
    --tgp-silver-dark: #6B7074;
    --tgp-silver-light: #E8EAEB;

    /* Shadows */
    --tgp-shadow-xs: 0 1px 2px rgba(44, 36, 22, 0.04);
    --tgp-shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.06);
    --tgp-shadow: 0 4px 6px -1px rgba(44, 36, 22, 0.08);
    --tgp-shadow-md: 0 6px 12px -2px rgba(44, 36, 22, 0.1);
    --tgp-shadow-lg: 0 10px 15px -3px rgba(44, 36, 22, 0.1);
    --tgp-shadow-xl: 0 20px 25px -5px rgba(44, 36, 22, 0.1);
    --tgp-shadow-gold: 0 4px 12px rgba(184, 134, 11, 0.25);
    --tgp-shadow-gold-lg: 0 8px 24px rgba(184, 134, 11, 0.3);

    /* Typography */
    --tgp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tgp-font-display: 'Playfair Display', Georgia, serif;
    --tgp-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Spacing Scale */
    --tgp-space-1: 0.25rem;
    --tgp-space-2: 0.5rem;
    --tgp-space-3: 0.75rem;
    --tgp-space-4: 1rem;
    --tgp-space-5: 1.25rem;
    --tgp-space-6: 1.5rem;
    --tgp-space-8: 2rem;
    --tgp-space-10: 2.5rem;
    --tgp-space-12: 3rem;

    /* Border Radius */
    --tgp-radius-sm: 0.375rem;
    --tgp-radius: 0.5rem;
    --tgp-radius-md: 0.625rem;
    --tgp-radius-lg: 0.75rem;
    --tgp-radius-xl: 1rem;
    --tgp-radius-2xl: 1.25rem;
    --tgp-radius-full: 9999px;

    /* Transitions */
    --tgp-transition-fast: 0.15s ease;
    --tgp-transition: 0.2s ease;
    --tgp-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Container
   ========================================================================== */

.tgp-container {
    font-family: var(--tgp-font);
    background: var(--tgp-bg);
    color: var(--tgp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tgp-container *,
.tgp-container *::before,
.tgp-container *::after {
    box-sizing: border-box;
}

/* Full-width breakout */
.tgp-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* RTL Support */
.tgp-container[dir=rtl] {
    direction: rtl;
    text-align: right;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */

.tgp-header {
    background: linear-gradient(180deg, #FFFDF8 0%, rgba(255, 253, 248, 0.97) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tgp-border);
    padding: var(--tgp-space-6) var(--tgp-space-8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tgp-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tgp-space-6);
    flex-wrap: wrap;
}

.tgp-logo {
    display: flex;
    align-items: center;
    gap: var(--tgp-space-4);
}

.tgp-logo-icon {
    width: 52px;
    height: 52px;
    background: var(--tgp-gold-gradient);
    border-radius: var(--tgp-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: var(--tgp-shadow-gold);
}

.tgp-logo-text h1 {
    font-family: var(--tgp-font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--tgp-brown-dark);
    margin: 0;
    line-height: 1.2;
}

.tgp-logo-date {
    font-size: 0.8rem;
    color: var(--tgp-text-muted);
    margin: 0;
}

.tgp-header-actions {
    display: flex;
    align-items: center;
    gap: var(--tgp-space-4);
}

.tgp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--tgp-space-2);
    padding: var(--tgp-space-2) var(--tgp-space-4);
    background: var(--tgp-price-up-bg);
    color: var(--tgp-price-up);
    border-radius: var(--tgp-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tgp-live-dot {
    width: 8px;
    height: 8px;
    background: var(--tgp-price-up);
    border-radius: 50%;
    animation: tgp-pulse 2s ease-in-out infinite;
}

@keyframes tgp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Currency Toggle - Refined */
.tgp-currency-toggle {
    display: inline-flex;
    background: var(--tgp-bg-cream);
    border-radius: var(--tgp-radius-full);
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.tgp-currency-btn {
    padding: var(--tgp-space-2) var(--tgp-space-5);
    border: none;
    background: transparent;
    border-radius: var(--tgp-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tgp-text-muted);
    cursor: pointer;
    transition: var(--tgp-transition);
}

.tgp-currency-btn.active {
    background: white;
    color: var(--tgp-gold-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tgp-currency-btn:hover:not(.active) {
    color: var(--tgp-text);
}

.tgp-currency-btn:focus {
    outline: 2px solid var(--tgp-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.tgp-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--tgp-space-8);
}

/* ==========================================================================
   Filter Tabs - Gold Theme
   ========================================================================== */

.tgp-filters {
    margin-bottom: var(--tgp-space-8);
}

.tgp-filter-tabs {
    display: flex;
    gap: var(--tgp-space-3);
    overflow-x: auto;
    padding-bottom: var(--tgp-space-2);
    -webkit-overflow-scrolling: touch;
}

.tgp-filter-btn {
    padding: var(--tgp-space-3) var(--tgp-space-6);
    border: 1px solid rgba(44, 36, 22, 0.15);
    background: transparent;
    border-radius: var(--tgp-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tgp-text-secondary);
    cursor: pointer;
    transition: var(--tgp-transition);
    white-space: nowrap;
    min-height: 44px; /* Mobile tap target */
}

.tgp-filter-btn:hover {
    background: var(--tgp-gold-light);
    border-color: var(--tgp-gold);
}

.tgp-filter-btn.active {
    background: var(--tgp-gold-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--tgp-shadow-gold);
}

.tgp-filter-btn:focus {
    outline: 2px solid var(--tgp-gold);
    outline-offset: 2px;
}

.tgp-filter-btn i {
    margin-right: var(--tgp-space-2);
}

.tgp-container[dir=rtl] .tgp-filter-btn i {
    margin-right: 0;
    margin-left: var(--tgp-space-2);
}

/* ==========================================================================
   Gold Cards Grid - Category Differentiation
   ========================================================================== */

.tgp-gold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--tgp-space-6);
    margin-bottom: var(--tgp-space-10);
}

.tgp-gold-card {
    background: var(--tgp-bg-card);
    border: 1px solid var(--tgp-border-light);
    border-radius: var(--tgp-radius-2xl);
    padding: var(--tgp-space-6);
    cursor: pointer;
    transition: var(--tgp-transition-slow);
    position: relative;
    overflow: hidden;
    /* Default left border - will be overridden by category */
    border-left: 4px solid var(--tgp-gold);
}

/* Category-based card differentiation */
.tgp-gold-card[data-category=gram] {
    background: var(--tgp-bg-gram);
    border-left-color: var(--tgp-gold);
}

.tgp-gold-card[data-category=coin] {
    background: var(--tgp-bg-coin);
    border-left-color: var(--tgp-gold-dark);
}

.tgp-gold-card[data-category=silver] {
    background: var(--tgp-bg-silver);
    border-left-color: var(--tgp-silver);
}

/* RTL: move border to right */
.tgp-container[dir=rtl] .tgp-gold-card {
    border-left: 1px solid var(--tgp-border-light);
    border-right: 4px solid var(--tgp-gold);
}

.tgp-container[dir=rtl] .tgp-gold-card[data-category=gram] {
    border-right-color: var(--tgp-gold);
}

.tgp-container[dir=rtl] .tgp-gold-card[data-category=coin] {
    border-right-color: var(--tgp-gold-dark);
}

.tgp-container[dir=rtl] .tgp-gold-card[data-category=silver] {
    border-right-color: var(--tgp-silver);
}

.tgp-gold-card:hover {
    border-color: var(--tgp-border-gold);
    box-shadow: var(--tgp-shadow-lg);
    transform: translateY(-3px);
}

.tgp-gold-card[data-category=gram]:hover,
.tgp-gold-card[data-category=coin]:hover {
    border-left-color: var(--tgp-gold);
}

.tgp-gold-card[data-category=silver]:hover {
    border-left-color: var(--tgp-silver-dark);
}

.tgp-gold-card.active {
    border-color: var(--tgp-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), var(--tgp-shadow-lg);
}

.tgp-gold-card:focus {
    outline: 2px solid var(--tgp-gold);
    outline-offset: 2px;
}

/* Card Header */
.tgp-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--tgp-space-4);
}

.tgp-card-icon {
    width: 44px;
    height: 44px;
    background: var(--tgp-gold-lighter);
    border-radius: var(--tgp-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgp-gold-dark);
    font-size: 20px;
}

.tgp-gold-card[data-category=silver] .tgp-card-icon {
    background: var(--tgp-silver-light);
    color: var(--tgp-silver-dark);
}

/* Price Change Indicator - Fixed semantics */
.tgp-card-change {
    display: inline-flex;
    align-items: center;
    gap: var(--tgp-space-1);
    padding: var(--tgp-space-1) var(--tgp-space-3);
    border-radius: var(--tgp-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* UP = Green (good for gold holders) */
.tgp-card-change.up {
    background: var(--tgp-price-up-bg);
    color: var(--tgp-price-up);
}

/* DOWN = Red (bad for gold holders) */
.tgp-card-change.down {
    background: var(--tgp-price-down-bg);
    color: var(--tgp-price-down);
}

.tgp-card-change.unchanged {
    background: var(--tgp-unchanged-bg);
    color: var(--tgp-unchanged);
}

/* Card Title & Info */
.tgp-card-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--tgp-text);
    margin-bottom: var(--tgp-space-1);
    line-height: 1.3;
}

.tgp-card-purity {
    font-size: 0.8rem;
    color: var(--tgp-text-muted);
    margin-bottom: var(--tgp-space-5);
    font-weight: 500;
}

/* ==========================================================================
   Price Display - Enhanced with Buy/Sell Differentiation
   ========================================================================== */

.tgp-card-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--tgp-border-light);
    border-radius: var(--tgp-radius-lg);
    overflow: hidden;
}

.tgp-price-block {
    padding: var(--tgp-space-4);
    text-align: center;
}

/* Buy block - subtle green tint */
.tgp-price-block:first-child {
    background: var(--tgp-buy-bg);
}

/* Sell block - subtle gold tint */
.tgp-price-block:last-child {
    background: var(--tgp-sell-bg);
}

.tgp-price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tgp-text-muted);
    margin-bottom: var(--tgp-space-2);
    font-weight: 600;
}

.tgp-price-value {
    font-family: var(--tgp-font-mono);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--tgp-brown-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.tgp-price-value.buy {
    color: var(--tgp-price-up);
}

.tgp-price-value.sell {
    color: var(--tgp-gold-dark);
}

/* ==========================================================================
   Two Column Layout (Calculator + Chart)
   ========================================================================== */

.tgp-two-col {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--tgp-space-8);
    margin-bottom: var(--tgp-space-10);
}

@media (max-width: 1024px) {
    .tgp-two-col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */

.tgp-calculator {
    background: linear-gradient(135deg, var(--tgp-brown-dark) 0%, #3D3225 100%);
    border-radius: var(--tgp-radius-2xl);
    padding: var(--tgp-space-8);
    color: white;
}

.tgp-calc-header {
    margin-bottom: var(--tgp-space-6);
}

.tgp-calc-header h2 {
    font-family: var(--tgp-font-display);
    font-size: 1.5rem;
    margin: 0 0 var(--tgp-space-2);
    color: var(--tgp-gold-light);
}

.tgp-calc-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem;
}

.tgp-calc-mode {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--tgp-radius-full);
    padding: var(--tgp-space-1);
    margin-bottom: var(--tgp-space-6);
}

.tgp-mode-btn {
    flex: 1;
    padding: var(--tgp-space-3);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--tgp-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tgp-transition);
    min-height: 44px;
}

.tgp-mode-btn.active {
    background: var(--tgp-gold-gradient);
    color: white;
    box-shadow: var(--tgp-shadow-gold);
}

.tgp-calc-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--tgp-space-4);
    margin-bottom: var(--tgp-space-6);
}

.tgp-input-group {
    position: relative;
}

.tgp-input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--tgp-space-2);
}

.tgp-input-group input,
.tgp-input-group select {
    width: 100%;
    padding: var(--tgp-space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--tgp-radius-lg);
    color: white;
    font-family: var(--tgp-font-mono);
    font-size: 1.125rem;
    transition: var(--tgp-transition);
}

.tgp-input-group input:focus,
.tgp-input-group select:focus {
    outline: none;
    border-color: var(--tgp-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.tgp-input-group select {
    appearance: none;
    background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=%23D4AF37 viewBox=0 0 24 24%3E%3Cpath d=M7 10l5 5 5-5z/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
    padding-right: 48px;
}

.tgp-container[dir=rtl] .tgp-input-group select {
    background-position: left 12px center;
    padding-right: var(--tgp-space-4);
    padding-left: 48px;
}

.tgp-input-group select option {
    background: var(--tgp-brown-dark);
    color: white;
}

.tgp-calc-result {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--tgp-radius-xl);
    padding: var(--tgp-space-6);
    text-align: center;
}

.tgp-result-label,
.tgp-calc-result-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--tgp-space-2);
}

.tgp-result-value {
    font-family: var(--tgp-font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--tgp-gold-light);
    margin-bottom: var(--tgp-space-2);
}

.tgp-result-usd {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Chart Section
   ========================================================================== */

.tgp-chart-section {
    background: var(--tgp-bg-card);
    border: 1px solid var(--tgp-border-light);
    border-radius: var(--tgp-radius-2xl);
    padding: var(--tgp-space-6);
}

.tgp-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tgp-space-6);
    flex-wrap: wrap;
    gap: var(--tgp-space-4);
}

.tgp-chart-header h3 {
    font-family: var(--tgp-font-display);
    font-size: 1.25rem;
    color: var(--tgp-brown-dark);
    margin: 0;
}

.tgp-chart-select {
    padding: var(--tgp-space-2) var(--tgp-space-4);
    border: 1px solid var(--tgp-border);
    border-radius: var(--tgp-radius);
    background: var(--tgp-bg-card);
    font-size: 0.875rem;
    color: var(--tgp-text);
    cursor: pointer;
    min-height: 44px;
}

.tgp-chart-wrap {
    height: 300px;
    position: relative;
}

.tgp-chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tgp-space-4);
    margin-top: var(--tgp-space-6);
    padding-top: var(--tgp-space-6);
    border-top: 1px solid var(--tgp-border-light);
}

.tgp-stat {
    text-align: center;
}

.tgp-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tgp-text-muted);
}

.tgp-stat-value {
    font-family: var(--tgp-font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tgp-brown-dark);
}

.tgp-stat-value.min {
    color: var(--tgp-price-down);
}

.tgp-stat-value.max {
    color: var(--tgp-price-up);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.tgp-faq-section {
    margin-bottom: var(--tgp-space-10);
}

.tgp-faq-section h3 {
    font-family: var(--tgp-font-display);
    font-size: 1.5rem;
    color: var(--tgp-brown-dark);
    margin-bottom: var(--tgp-space-6);
    text-align: center;
}

.tgp-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.tgp-faq-item {
    background: var(--tgp-bg-card);
    border: 1px solid var(--tgp-border-light);
    border-radius: var(--tgp-radius-xl);
    margin-bottom: var(--tgp-space-4);
    overflow: hidden;
}

.tgp-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tgp-space-5) var(--tgp-space-6);
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tgp-text);
    cursor: pointer;
    transition: var(--tgp-transition);
    min-height: 56px;
}

.tgp-container[dir=rtl] .tgp-faq-question {
    text-align: right;
}

.tgp-faq-question:hover {
    background: var(--tgp-bg-hover);
}

.tgp-faq-question:focus {
    outline: 2px solid var(--tgp-gold);
    outline-offset: -2px;
}

.tgp-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tgp-gold-lighter);
    color: var(--tgp-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--tgp-transition);
    flex-shrink: 0;
}

.tgp-faq-item.active .tgp-faq-icon {
    background: var(--tgp-gold-gradient);
    color: white;
    transform: rotate(180deg);
}

.tgp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tgp-faq-item.active .tgp-faq-answer {
    max-height: 500px;
}

.tgp-faq-answer-inner {
    padding: 0 var(--tgp-space-6) var(--tgp-space-6);
    color: var(--tgp-text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tgp-footer {
    text-align: center;
    padding: var(--tgp-space-8);
    border-top: 1px solid var(--tgp-border);
    background: var(--tgp-bg-cream);
}

.tgp-disclaimer {
    font-size: 0.8rem;
    color: var(--tgp-text-muted);
    max-width: 600px;
    margin: 0 auto var(--tgp-space-4);
}

.tgp-source-info {
    font-size: 0.75rem;
    color: var(--tgp-text-light);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.tgp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.tgp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tgp-border);
    border-top-color: var(--tgp-gold);
    border-radius: 50%;
    animation: tgp-spin 1s linear infinite;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .tgp-header {
        padding: var(--tgp-space-4);
    }

    .tgp-header-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .tgp-logo {
        justify-content: center;
    }

    .tgp-header-actions {
        justify-content: center;
    }

    .tgp-main {
        padding: var(--tgp-space-4);
    }

    .tgp-gold-grid {
        grid-template-columns: 1fr;
    }

    .tgp-calculator {
        padding: var(--tgp-space-5);
    }

    .tgp-result-value {
        font-size: 1.75rem;
    }

    .tgp-chart-stats {
        grid-template-columns: 1fr;
        gap: var(--tgp-space-3);
    }
}

@media (max-width: 480px) {
    .tgp-filter-btn {
        padding: var(--tgp-space-2) var(--tgp-space-4);
        font-size: 0.8rem;
    }

    /* Stack Buy/Sell vertically on very small screens */
    .tgp-card-prices {
        grid-template-columns: 1fr;
    }
    
    .tgp-price-value {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .tgp-header,
    .tgp-filters,
    .tgp-calculator,
    .tgp-chart-section,
    .tgp-faq-section {
        display: none !important;
    }

    .tgp-container {
        width: 100%;
        margin: 0;
    }

    .tgp-gold-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   FAQ Section - Gold Theme Override (Prevents theme bleeding)
   ========================================================================== */

.tgp-container .tgp-faq-section {
    margin-bottom: var(--tgp-space-10);
}

.tgp-container .tgp-faq-item {
    background: var(--tgp-bg-card);
    border: 1px solid var(--tgp-border-light);
    border-radius: var(--tgp-radius-xl);
    margin-bottom: var(--tgp-space-4);
    overflow: hidden;
    transition: var(--tgp-transition);
}

.tgp-container .tgp-faq-item:hover {
    border-color: var(--tgp-border-gold);
    box-shadow: var(--tgp-shadow-sm);
}

.tgp-container .tgp-faq-item.active {
    border-left: 4px solid var(--tgp-gold);
}

.tgp-container[dir="rtl"] .tgp-faq-item.active {
    border-left: 1px solid var(--tgp-border-light);
    border-right: 4px solid var(--tgp-gold);
}

.tgp-container .tgp-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tgp-space-5) var(--tgp-space-6);
    background: transparent !important;
    border: none !important;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tgp-text);
    cursor: pointer;
    transition: var(--tgp-transition);
    min-height: 56px;
}

.tgp-container .tgp-faq-question:hover {
    background: var(--tgp-gold-lighter) !important;
    color: var(--tgp-brown-dark) !important;
}

.tgp-container .tgp-faq-question:focus {
    outline: 2px solid var(--tgp-gold);
    outline-offset: -2px;
}

.tgp-container .tgp-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tgp-gold-lighter);
    color: var(--tgp-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--tgp-transition);
    flex-shrink: 0;
}

.tgp-container .tgp-faq-item.active .tgp-faq-icon {
    background: var(--tgp-gold-gradient);
    color: white;
    transform: rotate(180deg);
}

.tgp-container .tgp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tgp-container .tgp-faq-item.active .tgp-faq-answer {
    max-height: 500px;
}

.tgp-container .tgp-faq-answer-inner {
    padding: 0 var(--tgp-space-6) var(--tgp-space-6);
    color: var(--tgp-text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Single Gold Type Page Styles
   ========================================================================== */

/* Breadcrumb Navigation */
.tgp-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--tgp-space-2);
    padding: var(--tgp-space-4) 0;
    font-size: 0.9rem;
    color: var(--tgp-text-secondary);
}

.tgp-breadcrumb-link {
    color: var(--tgp-gold-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--tgp-space-2);
    transition: var(--tgp-transition);
}

.tgp-breadcrumb-link:hover {
    color: var(--tgp-gold);
}

.tgp-breadcrumb-sep {
    color: var(--tgp-border-medium);
}

.tgp-breadcrumb-current {
    font-weight: 600;
    color: var(--tgp-text);
}

/* Single Page Hero */
.tgp-single-hero {
    background: var(--tgp-gold-lighter);
    border-radius: var(--tgp-radius-2xl);
    padding: var(--tgp-space-10) var(--tgp-space-8);
    margin-bottom: var(--tgp-space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tgp-single-hero::before {
    content: ;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tgp-gold-gradient);
}

.tgp-single-hero[data-category="coin"]::before {
    background: linear-gradient(135deg, #8B6914 0%, #B8860B 50%, #DAA520 100%);
}

.tgp-single-hero[data-category="silver"]::before {
    background: linear-gradient(135deg, #A8A8A8 0%, #C0C0C0 50%, #E8E8E8 100%);
}

.tgp-single-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Single Page Icon */
.tgp-single-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tgp-space-3);
    margin-bottom: var(--tgp-space-5);
}

.tgp-single-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--tgp-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.4);
}

.tgp-single-hero[data-category="silver"] .tgp-single-icon {
    background: linear-gradient(135deg, #A8A8A8 0%, #C0C0C0 50%, #E8E8E8 100%);
    box-shadow: 0 8px 24px rgba(192, 192, 192, 0.4);
}

.tgp-category-badge {
    display: inline-block;
    padding: var(--tgp-space-1) var(--tgp-space-3);
    border-radius: var(--tgp-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tgp-category-gram {
    background: var(--tgp-gold-lighter);
    color: var(--tgp-gold-dark);
    border: 1px solid var(--tgp-gold);
}

.tgp-category-coin {
    background: rgba(139, 105, 20, 0.1);
    color: #8B6914;
    border: 1px solid #B8860B;
}

.tgp-category-silver {
    background: rgba(192, 192, 192, 0.2);
    color: #6B6B6B;
    border: 1px solid #C0C0C0;
}

/* Single Page Title */
.tgp-single-title {
    font-family: var(--tgp-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tgp-brown-dark);
    margin: 0 0 var(--tgp-space-3);
    line-height: 1.3;
}

.tgp-single-subtitle {
    font-size: 1.1rem;
    color: var(--tgp-text-secondary);
    margin: 0 0 var(--tgp-space-5);
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.6;
}

/* Single Page Meta */
.tgp-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tgp-space-4);
    flex-wrap: wrap;
}

.tgp-single-updated {
    font-size: 0.875rem;
    color: var(--tgp-text-muted);
}

/* Large Price Display Section */
.tgp-single-price-section {
    margin-bottom: var(--tgp-space-8);
}

.tgp-single-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--tgp-space-4);
    align-items: stretch;
}

@media (max-width: 768px) {
    .tgp-single-price-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .tgp-single-price-grid {
        grid-template-columns: 1fr;
    }
}

.tgp-single-price-card {
    background: var(--tgp-bg-card);
    border-radius: var(--tgp-radius-xl);
    padding: var(--tgp-space-6);
    border: 1px solid var(--tgp-border-light);
    transition: var(--tgp-transition);
}

.tgp-single-price-card:hover {
    border-color: var(--tgp-border-gold);
    box-shadow: var(--tgp-shadow-md);
}

.tgp-single-price-card.tgp-price-buy {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.8) 0%, rgba(219, 234, 254, 0.4) 100%);
    border-left: 4px solid #3B82F6;
}

.tgp-container[dir="rtl"] .tgp-single-price-card.tgp-price-buy {
    border-left: 1px solid var(--tgp-border-light);
    border-right: 4px solid #3B82F6;
}

.tgp-single-price-card.tgp-price-sell {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.8) 0%, rgba(220, 252, 231, 0.4) 100%);
    border-left: 4px solid #22C55E;
}

.tgp-container[dir="rtl"] .tgp-single-price-card.tgp-price-sell {
    border-left: 1px solid var(--tgp-border-light);
    border-right: 4px solid #22C55E;
}

.tgp-single-price-header {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--tgp-space-3);
}

.tgp-single-price-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tgp-text);
}

.tgp-single-price-hint {
    font-size: 0.75rem;
    color: var(--tgp-text-muted);
}

.tgp-single-price-value {
    display: flex;
    align-items: baseline;
    gap: var(--tgp-space-1);
}

.tgp-single-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tgp-text-secondary);
}

.tgp-single-amount {
    font-family: var(--tgp-font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tgp-text);
}

.tgp-single-price-usd {
    font-size: 0.875rem;
    color: var(--tgp-text-muted);
    margin-top: var(--tgp-space-2);
}

/* Change Indicator Card */
.tgp-single-change-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--tgp-space-4) var(--tgp-space-6);
    border-radius: var(--tgp-radius-xl);
    min-width: 120px;
}

.tgp-single-change-card.up {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, rgba(187, 247, 208, 0.5) 100%);
    border: 2px solid #22C55E;
}

.tgp-single-change-card.down {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(254, 202, 202, 0.5) 100%);
    border: 2px solid #EF4444;
}

.tgp-single-change-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--tgp-space-2);
}

.tgp-single-change-card.up .tgp-single-change-icon {
    background: #22C55E;
    color: white;
}

.tgp-single-change-card.down .tgp-single-change-icon {
    background: #EF4444;
    color: white;
}

.tgp-single-change-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tgp-space-1);
}

.tgp-single-change-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tgp-single-change-card.up .tgp-single-change-label {
    color: #16A34A;
}

.tgp-single-change-card.down .tgp-single-change-label {
    color: #DC2626;
}

.tgp-single-change-value {
    font-family: var(--tgp-font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.tgp-single-change-card.up .tgp-single-change-value {
    color: #16A34A;
}

.tgp-single-change-card.down .tgp-single-change-value {
    color: #DC2626;
}

@media (max-width: 768px) {
    .tgp-single-change-card {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: var(--tgp-space-4);
    }
    
    .tgp-single-change-icon {
        margin-bottom: 0;
    }
}

/* Gold Type Info Section */
.tgp-single-info-section {
    background: var(--tgp-bg-card);
    border-radius: var(--tgp-radius-xl);
    padding: var(--tgp-space-6);
    margin-bottom: var(--tgp-space-8);
    border: 1px solid var(--tgp-border-light);
}

.tgp-section-title {
    display: flex;
    align-items: center;
    gap: var(--tgp-space-3);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tgp-brown-dark);
    margin: 0 0 var(--tgp-space-5);
}

.tgp-section-title i {
    color: var(--tgp-gold);
}

.tgp-single-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--tgp-space-4);
    margin-bottom: var(--tgp-space-5);
}

.tgp-info-item {
    background: var(--tgp-bg-subtle);
    border-radius: var(--tgp-radius-lg);
    padding: var(--tgp-space-4);
    text-align: center;
}

.tgp-info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tgp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--tgp-space-1);
}

.tgp-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tgp-text);
}

.tgp-single-description {
    color: var(--tgp-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Related Gold Types Section */
.tgp-related-section {
    margin-bottom: var(--tgp-space-10);
}

.tgp-related-section h3 {
    display: flex;
    align-items: center;
    gap: var(--tgp-space-3);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tgp-brown-dark);
    margin: 0 0 var(--tgp-space-5);
}

.tgp-related-section h3 i {
    color: var(--tgp-gold);
}

.tgp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--tgp-space-4);
}

.tgp-related-card {
    display: flex;
    align-items: center;
    gap: var(--tgp-space-4);
    padding: var(--tgp-space-4);
    background: var(--tgp-bg-card);
    border: 1px solid var(--tgp-border-light);
    border-radius: var(--tgp-radius-xl);
    text-decoration: none;
    transition: var(--tgp-transition);
}

.tgp-related-card:hover {
    border-color: var(--tgp-border-gold);
    box-shadow: var(--tgp-shadow-md);
    transform: translateY(-2px);
}

.tgp-related-card[data-category="gram"] {
    border-left: 3px solid var(--tgp-gold);
}

.tgp-related-card[data-category="coin"] {
    border-left: 3px solid #B8860B;
}

.tgp-related-card[data-category="silver"] {
    border-left: 3px solid #C0C0C0;
}

.tgp-container[dir="rtl"] .tgp-related-card[data-category="gram"],
.tgp-container[dir="rtl"] .tgp-related-card[data-category="coin"],
.tgp-container[dir="rtl"] .tgp-related-card[data-category="silver"] {
    border-left: 1px solid var(--tgp-border-light);
    border-right: 3px solid var(--tgp-gold);
}

.tgp-container[dir="rtl"] .tgp-related-card[data-category="coin"] {
    border-right-color: #B8860B;
}

.tgp-container[dir="rtl"] .tgp-related-card[data-category="silver"] {
    border-right-color: #C0C0C0;
}

.tgp-related-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--tgp-radius-lg);
    background: var(--tgp-gold-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgp-gold-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tgp-related-card[data-category="silver"] .tgp-related-icon {
    background: rgba(192, 192, 192, 0.2);
    color: #6B6B6B;
}

.tgp-related-info {
    flex: 1;
    min-width: 0;
}

.tgp-related-name {
    display: block;
    font-weight: 600;
    color: var(--tgp-text);
    margin-bottom: var(--tgp-space-1);
}

.tgp-related-price {
    font-family: var(--tgp-font-mono);
    font-size: 0.9rem;
    color: var(--tgp-text-secondary);
}

.tgp-related-arrow {
    color: var(--tgp-text-muted);
    transition: var(--tgp-transition);
}

.tgp-related-card:hover .tgp-related-arrow {
    color: var(--tgp-gold);
    transform: translateX(4px);
}

.tgp-container[dir="rtl"] .tgp-related-card:hover .tgp-related-arrow {
    transform: translateX(-4px);
}

/* Back Link */
.tgp-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--tgp-space-2);
    margin-top: var(--tgp-space-4);
    padding: var(--tgp-space-3) var(--tgp-space-5);
    background: var(--tgp-gold-lighter);
    color: var(--tgp-gold-dark);
    text-decoration: none;
    border-radius: var(--tgp-radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--tgp-transition);
}

.tgp-back-link:hover {
    background: var(--tgp-gold);
    color: white;
}

/* Chart Type Badge */
.tgp-chart-type-badge {
    display: inline-block;
    padding: var(--tgp-space-1) var(--tgp-space-3);
    background: var(--tgp-gold-lighter);
    color: var(--tgp-gold-dark);
    border-radius: var(--tgp-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hidden Utility */
.tgp-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 404 Error Page */
.tgp-error-404 {
    text-align: center;
    padding: var(--tgp-space-16) var(--tgp-space-8);
}

.tgp-error-404 h2 {
    font-family: var(--tgp-font-display);
    font-size: 2rem;
    color: var(--tgp-brown-dark);
    margin-bottom: var(--tgp-space-4);
}

.tgp-error-404 p {
    color: var(--tgp-text-secondary);
    margin-bottom: var(--tgp-space-6);
}

.tgp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--tgp-space-2);
    padding: var(--tgp-space-3) var(--tgp-space-6);
    background: var(--tgp-gold-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--tgp-radius-full);
    font-weight: 600;
    transition: var(--tgp-transition);
}

.tgp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

/* Responsive Adjustments for Single Page */
@media (max-width: 768px) {
    .tgp-single-title {
        font-size: 1.5rem;
    }
    
    .tgp-single-subtitle {
        font-size: 1rem;
    }
    
    .tgp-single-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    .tgp-single-amount {
        font-size: 1.5rem;
    }
    
    .tgp-single-hero {
        padding: var(--tgp-space-6);
    }
}


/* ==========================================================================
   Gold Card Link Styles
   ========================================================================== */

.tgp-gold-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--tgp-transition);
}

.tgp-gold-card-link:hover,
.tgp-gold-card-link:focus {
    text-decoration: none;
    outline: none;
}

.tgp-gold-card-link:hover .tgp-gold-card,
.tgp-gold-card-link:focus .tgp-gold-card {
    transform: translateY(-4px);
    box-shadow: var(--tgp-shadow-lg);
    border-color: var(--tgp-border-gold);
}

.tgp-gold-card-link:hover .tgp-gold-card[data-category="gram"],
.tgp-gold-card-link:focus .tgp-gold-card[data-category="gram"] {
    border-left-color: var(--tgp-gold);
}

.tgp-gold-card-link:hover .tgp-gold-card[data-category="coin"],
.tgp-gold-card-link:focus .tgp-gold-card[data-category="coin"] {
    border-left-color: #B8860B;
}

.tgp-gold-card-link:hover .tgp-gold-card[data-category="silver"],
.tgp-gold-card-link:focus .tgp-gold-card[data-category="silver"] {
    border-left-color: #A8A8A8;
}

/* RTL adjustments */
.tgp-container[dir="rtl"] .tgp-gold-card-link:hover .tgp-gold-card[data-category="gram"],
.tgp-container[dir="rtl"] .tgp-gold-card-link:focus .tgp-gold-card[data-category="gram"] {
    border-right-color: var(--tgp-gold);
}

.tgp-container[dir="rtl"] .tgp-gold-card-link:hover .tgp-gold-card[data-category="coin"],
.tgp-container[dir="rtl"] .tgp-gold-card-link:focus .tgp-gold-card[data-category="coin"] {
    border-right-color: #B8860B;
}

.tgp-container[dir="rtl"] .tgp-gold-card-link:hover .tgp-gold-card[data-category="silver"],
.tgp-container[dir="rtl"] .tgp-gold-card-link:focus .tgp-gold-card[data-category="silver"] {
    border-right-color: #A8A8A8;
}

/* View Details Indicator */
.tgp-gold-card-link .tgp-gold-card::after {
    content: f061; /* Font Awesome right arrow */
    font-family: Font Awesome 6 Free;
    font-weight: 900;
    position: absolute;
    bottom: var(--tgp-space-4);
    right: var(--tgp-space-4);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tgp-gold-lighter);
    color: var(--tgp-gold-dark);
    border-radius: 50%;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--tgp-transition);
}

.tgp-container[dir="rtl"] .tgp-gold-card-link .tgp-gold-card::after {
    content: f060; /* Font Awesome left arrow for RTL */
    right: auto;
    left: var(--tgp-space-4);
    transform: translateX(8px);
}

.tgp-gold-card-link:hover .tgp-gold-card::after,
.tgp-gold-card-link:focus .tgp-gold-card::after {
    opacity: 1;
    transform: translateX(0);
}

/* Make card position relative for the arrow indicator */
.tgp-gold-card-link .tgp-gold-card {
    position: relative;
}



/* ==========================================================================
   Single Gold Type Page V2 - Premium Design
   ========================================================================== */

.tgp-single-v2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F8FAFC;
    color: #1e293b;
    min-height: 100vh;
}

/* --- Market Status Bar --- */
.tgp-market-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #1e293b;
}

.tgp-market-bar-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tgp-market-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tgp-market-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tgp-market-open {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.tgp-pulse-dot {
    position: relative;
    width: 6px;
    height: 6px;
}

.tgp-pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #34d399;
    animation: tgp-pulse 2s infinite;
}

.tgp-pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #10b981;
}

@keyframes tgp-pulse {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(2.5); opacity: 0; }
}

.tgp-market-divider {
    width: 1px;
    height: 12px;
    background: #334155;
}

.tgp-market-rate {
    font-weight: 500;
}

.tgp-market-value {
    color: #fff;
    margin-left: 0.25rem;
}

.tgp-market-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tgp-next-update {
    font-weight: 500;
}

.tgp-countdown {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
}

/* --- Sticky Navigation --- */
.tgp-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.tgp-sticky-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tgp-breadcrumb-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.tgp-back-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #64748b;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tgp-back-btn:hover {
    color: #0f172a;
    background: rgba(100, 116, 139, 0.1);
}

.tgp-breadcrumb-sep {
    color: #cbd5e1;
}

.tgp-breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
}

.tgp-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tgp-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tgp-icon-btn:hover {
    color: #64748b;
    background: #f1f5f9;
}

.tgp-last-updated-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: rgba(241, 245, 249, 0.8);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .tgp-last-updated-badge {
        display: flex;
    }
}

/* --- Main Content Area --- */
.tgp-main-v2 {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Hero Section --- */
.tgp-hero-v2 {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fff;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .tgp-hero-v2 {
        padding: 2.5rem;
    }
}

.tgp-hero-bg-mesh {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.1), transparent);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(30%, -50%);
    pointer-events: none;
}

.tgp-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tgp-hero-left {
    flex: 1;
    min-width: 280px;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tgp-hero-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tgp-hero-icon-wrap {
    position: relative;
}

.tgp-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.tgp-hero-icon-gram {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.tgp-hero-icon-coin {
    background: linear-gradient(135deg, #fef9c3, #fefce8);
    color: #ca8a04;
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.tgp-hero-icon-silver {
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.tgp-hero-tags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tgp-category-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tgp-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tgp-live-tag i {
    color: #10b981;
}

.tgp-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .tgp-hero-title {
        font-size: 3rem;
    }
}

.tgp-hero-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.tgp-share-btn-hero {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tgp-share-btn-hero:hover {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tgp-share-btn-hero span {
    display: none;
}

@media (min-width: 640px) {
    .tgp-share-btn-hero span {
        display: inline;
    }
}

/* --- Price Cards Grid --- */
.tgp-price-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tgp-price-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tgp-price-card-v2 {
    position: relative;
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tgp-price-card-v2:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.tgp-price-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tgp-price-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tgp-icon-rose {
    background: linear-gradient(135deg, #fff1f2, #fff);
    border: 1px solid #fecdd3;
    color: #e11d48;
}

.tgp-icon-emerald {
    background: linear-gradient(135deg, #ecfdf5, #fff);
    border: 1px solid #a7f3d0;
    color: #059669;
}

.tgp-price-label-wrap {
    display: flex;
    flex-direction: column;
}

.tgp-price-label-main {
    font-weight: 700;
    font-size: 0.875rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tgp-price-label-hint {
    font-size: 0.625rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tgp-price-value-v2 {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tgp-price-value-v2 .tgp-currency {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 600;
}

.tgp-price-value-v2 .tgp-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.tgp-price-usd {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #f1f5f9;
    width: fit-content;
    backdrop-filter: blur(8px);
}

.tgp-price-usd i {
    color: #94a3b8;
}

.tgp-price-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.tgp-price-card-v2:hover .tgp-price-accent {
    transform: scaleX(1);
}

.tgp-accent-rose {
    background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.tgp-accent-emerald {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Change Card (Dark) */
.tgp-change-card-v2 {
    background: #0f172a;
    border: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.tgp-change-card-bg {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.tgp-change-card-v2.down .tgp-change-card-bg {
    background: rgba(244, 63, 94, 0.1);
}

.tgp-change-content {
    position: relative;
    z-index: 10;
    padding: 1rem 0;
}

.tgp-change-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.tgp-change-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.tgp-change-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tgp-change-icon-wrap.up {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.tgp-change-icon-wrap.down {
    background: rgba(244, 63, 94, 0.1);
    color: #fb7185;
}

.tgp-change-icon-wrap i {
    font-size: 1.25rem;
}

.tgp-change-percent {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.tgp-change-card-v2.up .tgp-change-percent {
    color: #34d399;
}

.tgp-change-card-v2.down .tgp-change-percent {
    color: #fb7185;
}

.tgp-change-amount {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* --- Specs Grid --- */
.tgp-specs-grid {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .tgp-specs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
    
    .tgp-spec-item {
        border-left: 1px solid #f1f5f9;
        padding-left: 1.5rem;
    }
    
    .tgp-spec-item:first-child {
        border-left: none;
        padding-left: 0;
    }
}

.tgp-spec-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tgp-spec-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.tgp-spec-icon i {
    font-size: 0.875rem;
}

.tgp-spec-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tgp-spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tgp-spread-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
}

.tgp-spread-low {
    background: #dcfce7;
    color: #16a34a;
}

.tgp-spread-medium {
    background: #fef3c7;
    color: #d97706;
}

.tgp-spread-high {
    background: #fee2e2;
    color: #dc2626;
}

/* --- Main Grid (Calculator + Chart) --- */
.tgp-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .tgp-main-grid {
        grid-template-columns: minmax(320px, 400px) 1fr;
    }
}

/* --- Calculator V2 --- */
.tgp-calculator-v2 {
    background: linear-gradient(135deg, #fff, #fffbeb);
    border-radius: 1rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
    box-shadow: 0 4px 24px rgba(217, 119, 6, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tgp-calc-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

.tgp-calc-header-v2 h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.tgp-calc-icon {
    width: 40px;
    height: 40px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tgp-reset-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tgp-reset-btn:hover {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
}

.tgp-reset-btn:hover i {
    animation: tgp-spin 0.5s ease;
}

@keyframes tgp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.tgp-calc-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.tgp-calc-input-wrap {
    position: relative;
}

.tgp-calc-input-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #fff;
    padding: 0 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.tgp-calc-input {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.tgp-calc-input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.tgp-calc-input::placeholder {
    color: #cbd5e1;
}

.tgp-calc-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgp-calc-clear:hover {
    color: #64748b;
    background: #f1f5f9;
}

.tgp-calc-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tgp-swap-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tgp-swap-btn:hover {
    color: #d97706;
    border-color: #fcd34d;
    background: #fffbeb;
}

.tgp-swap-btn:active {
    transform: scale(0.95);
}

.tgp-swap-btn.rotated i {
    transform: rotate(180deg);
}

.tgp-swap-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.tgp-presets {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    flex: 1;
}

.tgp-presets::-webkit-scrollbar {
    display: none;
}

.tgp-preset-btn {
    white-space: nowrap;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tgp-preset-btn:hover {
    color: #b45309;
    border-color: #fcd34d;
    background: #fffbeb;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.tgp-preset-btn:active {
    transform: scale(0.95);
}

.tgp-calc-divider {
    position: relative;
    padding: 0.5rem 0;
}

.tgp-calc-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #f1f5f9;
}

.tgp-calc-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background: linear-gradient(135deg, #fff, #fffbeb);
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 50%;
    transform: translateX(-50%);
}

.tgp-calc-result-v2 {
    background: #0f172a;
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.tgp-calc-result-v2::before {
    content: '';
    position: absolute;
    top: -64px;
    right: -64px;
    width: 160px;
    height: 160px;
    background: rgba(217, 119, 6, 0.2);
    border-radius: 50%;
    filter: blur(60px);
}

.tgp-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

.tgp-result-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tgp-copy-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgp-copy-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.tgp-result-value {
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
}

.tgp-result-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    word-break: break-all;
}

@media (min-width: 640px) {
    .tgp-result-number {
        font-size: 2.5rem;
    }
}

.tgp-result-unit {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.tgp-result-rate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 10;
}

.tgp-rate-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: tgp-pulse 2s infinite;
}

/* --- Chart V2 --- */
.tgp-chart-v2 {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .tgp-chart-v2 {
        padding: 2rem;
    }
}

.tgp-chart-header-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .tgp-chart-header-v2 {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.tgp-chart-title-wrap h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.tgp-chart-icon {
    width: 28px;
    height: 28px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.tgp-chart-title-wrap p {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    margin-left: 2.25rem;
}

.tgp-chart-periods {
    display: flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tgp-period-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tgp-period-btn:hover {
    color: #1e293b;
}

.tgp-period-btn.active {
    background: #fff;
    color: #d97706;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tgp-chart-container {
    flex-grow: 1;
    min-height: 350px;
    background: rgba(248, 250, 252, 0.3);
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    padding: 0.5rem;
}

.tgp-chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.tgp-chart-stat {
    text-align: center;
}

.tgp-chart-stat .tgp-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.tgp-chart-stat .tgp-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

/* --- FAQ V2 --- */
.tgp-faq-v2 {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 0;
}

.tgp-faq-header-v2 {
    text-align: center;
    margin-bottom: 2rem;
}

.tgp-faq-header-v2 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.tgp-faq-header-v2 p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.tgp-faq-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tgp-faq-item-v2 {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tgp-faq-item-v2:hover {
    border-color: #fcd34d;
}

.tgp-faq-item-v2.active {
    border-color: #d97706;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.1);
}

.tgp-faq-question-v2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.tgp-faq-question-v2 span {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
}

.tgp-faq-item-v2.active .tgp-faq-question-v2 span {
    color: #b45309;
}

.tgp-faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tgp-faq-item-v2.active .tgp-faq-toggle {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
    transform: rotate(180deg);
}

.tgp-faq-answer-v2 {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: all 0.3s ease;
}

.tgp-faq-item-v2.active .tgp-faq-answer-v2 {
    grid-template-rows: 1fr;
    opacity: 1;
}

.tgp-faq-answer-inner {
    overflow: hidden;
    padding: 0 1.25rem 1.25rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- Related V2 --- */
.tgp-related-v2 {
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
}

.tgp-related-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.tgp-related-header-v2 h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.tgp-view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #d97706;
    background: #fffbeb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tgp-view-all-btn:hover {
    color: #b45309;
    background: #fef3c7;
}

.tgp-view-all-btn i {
    transition: transform 0.2s ease;
}

.tgp-view-all-btn:hover i {
    transform: translateX(4px);
}

[dir="rtl"] .tgp-view-all-btn:hover i {
    transform: translateX(-4px);
}

.tgp-related-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .tgp-related-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tgp-related-grid-v2 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tgp-related-card-v2 {
    display: block;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
}

.tgp-related-card-v2:hover {
    border-color: #d97706;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.tgp-related-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tgp-related-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tgp-related-icon-gram {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

.tgp-related-icon-coin {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

.tgp-related-icon-silver {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

.tgp-related-card-v2:hover .tgp-related-icon {
    background: #d97706;
    color: #fff;
    border-color: #d97706;
}

.tgp-related-change {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.tgp-related-change.up {
    background: #ecfdf5;
    color: #059669;
}

.tgp-related-change.down {
    background: #fef2f2;
    color: #dc2626;
}

.tgp-related-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tgp-related-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s ease;
}

.tgp-related-card-v2:hover .tgp-related-price {
    color: #d97706;
}

/* --- Footer V2 --- */
.tgp-footer-v2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .tgp-footer-v2 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.tgp-footer-left,
.tgp-footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .tgp-footer-right {
        text-align: right;
        align-items: flex-end;
    }
}

.tgp-footer-verified {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.tgp-footer-verified i {
    color: #10b981;
}

.tgp-footer-disclaimer {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.tgp-footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}

.tgp-footer-time {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
    margin: 0;
}

/* --- RTL Support --- */
[dir="rtl"] .tgp-back-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .tgp-hero-bg-mesh {
    right: auto;
    left: 0;
    transform: translate(-30%, -50%);
}

[dir="rtl"] .tgp-calc-input-label {
    left: auto;
    right: 12px;
}

[dir="rtl"] .tgp-calc-clear {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .tgp-price-accent {
    transform-origin: right;
}

[dir="rtl"] .tgp-calc-result-v2::before {
    right: auto;
    left: -64px;
}

/* --- Utility Classes --- */
.tgp-hidden {
    display: none !important;
}

/* ==========================================================================
   Dashboard v2 - Premium Design Styles
   ========================================================================== */

/* Dashboard Hero Header */
.tgp-hero-dashboard {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #FEF9E7 0%, #FDF5E6 50%, #FFF8DC 100%);
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tgp-hero-dashboard .tgp-hero-bg-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(218, 165, 32, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.tgp-hero-dashboard .tgp-hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tgp-hero-dashboard .tgp-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #5D4E37;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.2;
}

.tgp-hero-dashboard .tgp-hero-subtitle {
    color: #8B7355;
    font-size: 1rem;
    margin: 0;
    max-width: 500px;
}

/* Currency Toggle v2 */
.tgp-currency-toggle-v2 {
    display: flex;
    background: white;
    border-radius: 0.75rem;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tgp-currency-toggle-v2 .tgp-currency-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #8B7355;
    transition: all 0.2s;
}

.tgp-currency-toggle-v2 .tgp-currency-btn.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.tgp-currency-toggle-v2 .tgp-currency-symbol {
    font-size: 1.1rem;
}

/* Filter Pills */
.tgp-filters-v2 {
    margin-bottom: 1.5rem;
}

.tgp-filter-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tgp-filter-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #E8E0D5;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    color: #5D4E37;
    transition: all 0.25s ease;
}

.tgp-filter-pill:hover {
    border-color: #D4AF37;
    background: #FEF9E7;
}

.tgp-filter-pill.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.tgp-filter-pill i {
    font-size: 1rem;
}

.tgp-pill-count {
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tgp-filter-pill:not(.active) .tgp-pill-count {
    background: #F5EFE6;
    color: #8B7355;
}

/* Gold Cards Grid v2 */
.tgp-gold-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tgp-card-link-v2 {
    text-decoration: none;
    display: block;
}

.tgp-gold-card-v2 {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #E8E0D5;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tgp-gold-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #B8860B);
    opacity: 0;
    transition: opacity 0.3s;
}

.tgp-gold-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #D4AF37;
}

.tgp-gold-card-v2:hover::before {
    opacity: 1;
}

.tgp-gold-card-v2.active {
    border-color: #D4AF37;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.tgp-gold-card-v2.active::before {
    opacity: 1;
}

/* Card Header v2 */
.tgp-card-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tgp-card-icon-v2 {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tgp-card-icon-v2.tgp-icon-gram {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #B8860B;
}

.tgp-card-icon-v2.tgp-icon-coin {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

.tgp-card-icon-v2.tgp-icon-silver {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
    color: #4B5563;
}

/* Card Badge */
.tgp-card-badge-v2 {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tgp-card-badge-v2.tgp-badge-up {
    background: #DCFCE7;
    color: #16A34A;
}

.tgp-card-badge-v2.tgp-badge-down {
    background: #FEE2E2;
    color: #DC2626;
}

.tgp-card-badge-v2.tgp-badge-unchanged {
    background: #F3F4F6;
    color: #6B7280;
}

/* Card Title & Meta */
.tgp-card-title-v2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 0.25rem;
}

.tgp-card-meta-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9CA3AF;
    font-size: 0.8125rem;
    margin: 0 0 1rem;
}

.tgp-meta-dot {
    color: #D1D5DB;
}

/* Card Prices */
.tgp-card-prices-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #FAFAF9;
    border-radius: 0.75rem;
}

.tgp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tgp-price-label-v2 {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
}

.tgp-price-value-v2 {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
}

.tgp-price-value-v2.tgp-price-buy {
    color: #16A34A;
}

.tgp-price-value-v2.tgp-price-sell {
    color: #5D4E37;
}

/* Card Footer */
.tgp-card-footer-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tgp-spread-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.tgp-spread-badge.tgp-spread-low {
    background: #DCFCE7;
    color: #16A34A;
}

.tgp-spread-badge.tgp-spread-medium {
    background: #FEF3C7;
    color: #D97706;
}

.tgp-spread-badge.tgp-spread-high {
    background: #FEE2E2;
    color: #DC2626;
}

.tgp-view-details {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F5F4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.2s;
}

.tgp-gold-card-v2:hover .tgp-view-details {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: white;
}

/* Two Column Layout v2 */
.tgp-two-col-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .tgp-two-col-v2 {
        grid-template-columns: 1fr;
    }
}

/* Section Header v2 */
.tgp-section-header-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E8E0D5;
}

.tgp-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8860B;
    font-size: 1.125rem;
}

.tgp-section-title-wrap {
    flex: 1;
}

.tgp-section-title-wrap h2,
.tgp-section-title-wrap h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 0.25rem;
}

.tgp-section-title-wrap p {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin: 0;
}

/* Calculator v2 Dashboard */
.tgp-calculator-v2 {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #E8E0D5;
}

.tgp-calc-body-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tgp-input-wrapper-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tgp-input-label-v2 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tgp-input-field-v2 {
    position: relative;
}

.tgp-input-field-v2 input {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    border: 2px solid #E8E0D5;
    border-radius: 0.75rem;
    background: #FAFAF9;
    transition: all 0.2s;
}

.tgp-input-field-v2 input:focus {
    outline: none;
    border-color: #D4AF37;
    background: white;
}

.tgp-clear-input {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.25rem;
}

/* Presets */
.tgp-presets-v2 {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tgp-swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    border: 2px solid #E8E0D5;
    background: white;
    color: #D4AF37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tgp-swap-btn:hover {
    background: #FEF3C7;
    border-color: #D4AF37;
}

.tgp-preset-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #E8E0D5;
    border-radius: 0.75rem;
    background: white;
    font-weight: 600;
    color: #5D4E37;
    cursor: pointer;
    transition: all 0.2s;
}

.tgp-preset-btn:hover {
    border-color: #D4AF37;
    background: #FEF3C7;
}

/* Select v2 */
.tgp-select-wrapper-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tgp-select-v2 {
    padding: 0.875rem 1rem;
    border: 2px solid #E8E0D5;
    border-radius: 0.75rem;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
}

.tgp-select-v2:focus {
    outline: none;
    border-color: #D4AF37;
}

/* Result Card v2 */
.tgp-result-card-v2 {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    color: white;
}

.tgp-result-label-v2 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tgp-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tgp-result-title {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.tgp-copy-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0.25rem;
}

.tgp-copy-btn:hover {
    color: white;
}

.tgp-result-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.tgp-result-card-v2 .tgp-result-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
}

.tgp-result-unit {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

.tgp-result-rate {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
}

/* Chart v2 Dashboard */
.tgp-chart-v2 {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #E8E0D5;
}

.tgp-chart-select-v2 {
    padding: 0.5rem 1rem;
    border: 2px solid #E8E0D5;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
}

.tgp-chart-container {
    height: 250px;
    margin-bottom: 1rem;
}

.tgp-chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E8E0D5;
}

.tgp-chart-stat {
    text-align: center;
}

.tgp-chart-stat .tgp-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tgp-chart-stat .tgp-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F2937;
}

/* Reset Button */
.tgp-reset-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 2px solid #E8E0D5;
    background: white;
    color: #9CA3AF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tgp-reset-btn:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tgp-hero-dashboard {
        padding: 1.5rem;
    }
    
    .tgp-hero-dashboard .tgp-hero-title {
        font-size: 1.5rem;
    }
    
    .tgp-hero-dashboard .tgp-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tgp-gold-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    .tgp-filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .tgp-filter-pill {
        white-space: nowrap;
    }
}

/* RTL Support for Dashboard */
[dir="rtl"] .tgp-hero-dashboard .tgp-hero-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .tgp-card-header-v2 {
    flex-direction: row-reverse;
}

[dir="rtl"] .tgp-card-footer-v2 {
    flex-direction: row-reverse;
}

[dir="rtl"] .tgp-price-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .tgp-section-header-v2 {
    flex-direction: row-reverse;
}

[dir="rtl"] .tgp-view-details i {
    transform: rotate(180deg);
}


/* ==========================================================================
   UX Enhancement: Category-Specific Card Accents & Hover Glow
   ========================================================================== */

/* Override default ::before with category-specific gradients */
.tgp-gold-card-v2.tgp-card-gram::before {
    background: linear-gradient(90deg, #D4AF37 0%, #F5D967 50%, #D4AF37 100%);
}

.tgp-gold-card-v2.tgp-card-coin::before {
    background: linear-gradient(90deg, #CD853F 0%, #DEB887 50%, #CD853F 100%);
}

.tgp-gold-card-v2.tgp-card-silver::before {
    background: linear-gradient(90deg, #A8A8A8 0%, #D8D8D8 50%, #A8A8A8 100%);
}

/* Enhanced hover with category-specific glow */
.tgp-gold-card-v2.tgp-card-gram:hover {
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 0 40px -8px rgba(212, 175, 55, 0.25);
}

.tgp-gold-card-v2.tgp-card-coin:hover {
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 0 40px -8px rgba(205, 133, 63, 0.3);
    border-color: #CD853F;
}

.tgp-gold-card-v2.tgp-card-silver:hover {
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 0 40px -8px rgba(192, 192, 192, 0.35);
    border-color: #A8A8A8;
}

/* Category-specific icon backgrounds */
.tgp-gold-card-v2.tgp-card-coin .tgp-card-icon-v2 {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4C4 100%);
    color: #B8860B;
}

/* Category-specific active states */
.tgp-gold-card-v2.tgp-card-coin.active {
    border-color: #CD853F;
    box-shadow: 0 8px 24px rgba(205, 133, 63, 0.25);
}

.tgp-gold-card-v2.tgp-card-silver.active {
    border-color: #A8A8A8;
    box-shadow: 0 8px 24px rgba(192, 192, 192, 0.3);
}

/* Subtle left border accent for quick category identification */
.tgp-gold-card-v2.tgp-card-gram {
    border-left: 3px solid #D4AF37;
}

.tgp-gold-card-v2.tgp-card-coin {
    border-left: 3px solid #CD853F;
}

.tgp-gold-card-v2.tgp-card-silver {
    border-left: 3px solid #A8A8A8;
}

/* RTL: Move border to right side */
[dir="rtl"] .tgp-gold-card-v2.tgp-card-gram,
[dir="rtl"] .tgp-gold-card-v2.tgp-card-coin,
[dir="rtl"] .tgp-gold-card-v2.tgp-card-silver {
    border-left: 1px solid #E8E0D5;
}

[dir="rtl"] .tgp-gold-card-v2.tgp-card-gram {
    border-right: 3px solid #D4AF37;
}

[dir="rtl"] .tgp-gold-card-v2.tgp-card-coin {
    border-right: 3px solid #CD853F;
}

[dir="rtl"] .tgp-gold-card-v2.tgp-card-silver {
    border-right: 3px solid #A8A8A8;
}

/* View details arrow color per category */
.tgp-gold-card-v2.tgp-card-coin:hover .tgp-view-details {
    color: #CD853F;
}

.tgp-gold-card-v2.tgp-card-silver:hover .tgp-view-details {
    color: #708090;
}

/* ==========================================================================
   FAQ v2 - Enhanced Compatibility Styles
   ========================================================================== */

/* Ensure answer wrapper clips content properly */
.tgp-faq-answer-v2 {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}

/* Inner container must have overflow hidden for grid collapse to work */
.tgp-faq-answer-v2 > .tgp-faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

/* Active state - expand answer */
.tgp-faq-item-v2.active .tgp-faq-answer-v2 {
    grid-template-rows: 1fr;
    opacity: 1;
}

/* Fallback using max-height for older browsers */
@supports not (grid-template-rows: 0fr) {
    .tgp-faq-answer-v2 {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .tgp-faq-item-v2.active .tgp-faq-answer-v2 {
        max-height: 500px;
        opacity: 1;
    }
}

/* Toggle icon rotation */
.tgp-faq-toggle {
    transition: transform 0.3s ease;
}

.tgp-faq-item-v2.active .tgp-faq-toggle {
    transform: rotate(45deg);
}

/* Question hover and active styling */
.tgp-faq-question-v2:hover {
    background: rgba(212, 175, 55, 0.05);
}

.tgp-faq-item-v2.active .tgp-faq-question-v2 {
    background: rgba(212, 175, 55, 0.08);
    color: #B8860B;
}
