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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

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

        h1 {
            text-align: center;
            color: white;
            margin-bottom: 30px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .update-time {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .update-time h3 {
            color: #333;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .update-time .day {
            color: #667eea;
            font-size: 1.1rem;
        }

        .update-time .day strong {
            font-weight: bold;
        }

        .update-time .time {
            color: #666;
            font-size: 1.3rem;
            margin: 10px 0;
        }

        .update-time .time strong {
            font-weight: bold;
        }

        .update-time .date {
            color: #999;
            font-size: 0.9rem;
        }

        .prices-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .price-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .price-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .price-card h2 {
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
            font-size: 1.5rem;
        }

        .price-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .price-item:last-child {
            border-bottom: none;
        }

        .price-label {
            color: #555;
            font-size: 1rem;
        }

        .price-value {
            font-weight: bold;
            color: #667eea;
            font-size: 1.2rem;
        }

        .currency-symbol {
            font-size: 0.9rem;
            color: #999;
            margin-right: 5px;
        }

        .gold-bars-section {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .gold-bars-section h2 {
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f4c430;
            font-size: 1.5rem;
        }

        .bars-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .bar-item {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s ease;
        }

        .bar-item:hover {
            background: #e9ecef;
        }

        .bar-label {
            color: #555;
            font-size: 0.95rem;
        }

        .bar-price {
            font-weight: bold;
            color: #f4c430;
            font-size: 1.1rem;
        }

        .gold-bars-section .bar-price {
            color: #f4c430;
        }

        .silver-bars-section {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .silver-bars-section h2 {
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #C0C0C0;
            font-size: 1.5rem;
        }

        .silver-bars-section .bar-price {
            color: #8c8c8c;
            font-weight: bold;
            font-size: 1.1rem;
        }

        .auto-update-note {
            text-align: center;
            color: white;
            margin-top: 30px;
            font-size: 1rem;
            opacity: 0.9;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 1.8rem;
            }

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

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

        @keyframes color-change {
            0% {
                color: red;
            }

            33% {
                color: green;
            }

            66% {
                color: blue;
            }

            100% {
                color: red;
            }
        }

        /* ==================== Global Prices Section Styles ==================== */
        .global-prices-section {
            background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
        }

        .global-prices-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #f4c430 0%, #ffd700 50%, #c0c0c0 100%);
        }

        .global-section-title {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #ffffff;
            font-size: 1.4rem;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .title-icon {
            font-size: 1.6rem;
        }

        .live-indicator {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(76, 175, 80, 0.15);
            color: #4CAF50;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .pulse {
            width: 8px;
            height: 8px;
            background: #4CAF50;
            border-radius: 50%;
            animation: pulse-animation 2s infinite;
        }

        @keyframes pulse-animation {
            0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
            100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
        }

        .global-metal-row {
            margin-bottom: 25px;
        }

        .global-metal-row:last-child {
            margin-bottom: 0;
        }

        .metal-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 15px;
        }

        .gold-header {
            background: linear-gradient(135deg, rgba(244, 196, 48, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
            border-left: 3px solid #f4c430;
        }

        .silver-header {
            background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(169, 169, 169, 0.08) 100%);
            border-left: 3px solid #c0c0c0;
        }

        .metal-icon {
            font-size: 1.4rem;
        }

        .metal-name {
            font-weight: 700;
            font-size: 1.1rem;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .metal-symbol {
            margin-left: auto;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 500;
        }

        .global-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
        }

        .global-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 18px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            transition: all 0.3s ease;
        }

        .global-card:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .china-card {
            border-color: rgba(255, 87, 34, 0.2);
        }

        .china-card:hover {
            border-color: rgba(255, 87, 34, 0.4);
        }

        .global-card .card-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .location-flag {
            font-size: 1.2rem;
        }

        .location-name {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.95rem;
            font-weight: 600;
        }

        .tag {
            margin-left: auto;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tag-live {
            background: rgba(76, 175, 80, 0.15);
            color: #4CAF50;
        }

        .tag-futures {
            background: rgba(156, 39, 176, 0.15);
            color: #BA68C8;
        }

        .tag-sge {
            background: rgba(255, 87, 34, 0.15);
            color: #FF7043;
        }

        .card-price {
            display: flex;
            align-items: baseline;
            gap: 12px;
            margin-bottom: 15px;
        }

        .price-main {
            font-size: 1.8rem;
            font-weight: 700;
            color: #ffffff;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
        }

        .price-change {
            font-size: 0.9rem;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
        }

        .price-change.positive {
            color: #4CAF50;
            background: rgba(76, 175, 80, 0.1);
        }

        .price-change.negative {
            color: #f44336;
            background: rgba(244, 67, 54, 0.1);
        }

        .card-details {
            margin-bottom: 12px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
        }

        .detail-value {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.9rem;
            font-weight: 500;
            font-family: 'SF Mono', 'Monaco', monospace;
        }

        .detail-value.positive {
            color: #4CAF50;
        }

        .detail-value.negative {
            color: #f44336;
        }

        .premium-highlight {
            background: rgba(255, 87, 34, 0.08);
            margin: 0 -8px;
            padding: 8px;
            border-radius: 8px;
        }

        .detail-value.premium {
            font-weight: 700;
        }

        .detail-value.premium small {
            font-weight: 500;
            opacity: 0.8;
            margin-left: 4px;
        }

        .card-range {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.8rem;
        }

        .range-label {
            color: rgba(255, 255, 255, 0.4);
            font-weight: 500;
        }

        .range-low {
            color: #f44336;
        }

        .range-divider {
            color: rgba(255, 255, 255, 0.2);
        }

        .range-high {
            color: #4CAF50;
        }

        .range-value {
            color: rgba(255, 255, 255, 0.85);
            font-family: 'SF Mono', 'Monaco', monospace;
        }

        .contract-code {
            margin-left: auto;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.75rem;
            text-transform: uppercase;
        }

        /* Silver row specific colors */
        .silver-row .price-main {
            color: #e8e8e8;
        }

        /* Responsive adjustments for Global Prices */
        @media (max-width: 768px) {
            .global-prices-section {
                padding: 18px;
            }

            .global-section-title {
                font-size: 1.1rem;
                flex-wrap: wrap;
            }

            .live-indicator {
                margin-left: 0;
                margin-top: 8px;
            }

            .global-cards-grid {
                grid-template-columns: 1fr;
            }

            .price-main {
                font-size: 1.5rem;
            }

            .metal-header {
                padding: 10px 12px;
            }
        }

        /* RTL Support for Global Prices */

        [dir="rtl"] .live-indicator {
            margin-left: 0;
            margin-right: auto;
        }

        [dir="rtl"] .metal-symbol {
            margin-left: 0;
            margin-right: auto;
        }

        [dir="rtl"] .tag {
            margin-left: 0;
            margin-right: auto;
        }

        [dir="rtl"] .contract-code {
            margin-left: 0;
            margin-right: auto;
        }

        [dir="rtl"] .gold-header,
        [dir="rtl"] .silver-header {
            border-left: none;
            border-right: 3px solid;
        }

        [dir="rtl"] .gold-header {
            border-right-color: #f4c430;
        }

        [dir="rtl"] .silver-header {
            border-right-color: #c0c0c0;
        }