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

        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fb;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header Styles */
        .header {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 3px solid #facc15;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
        }

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

        .logo-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
            overflow: hidden;
        }

        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .logo-main {
            font-size: 1.6rem;
            font-weight: 800;
            background: linear-gradient(45deg, #facc15, #eab308);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
        }

        .logo-tagline {
            font-size: 0.65rem;
            color: #cbd5e0;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .nav-links {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .nav-links a {
            color: #e2e8f0;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 8px 0;
            position: relative;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            color: #facc15;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: #facc15;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
            border-radius: 2px;
        }

        .nav-links a:hover::after {
            transform: scaleX(1);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .calculator-btn {
            background: linear-gradient(45deg, #facc15, #eab308);
            color: #1a202c;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
            text-decoration: none;
            display: inline-block;
        }

        .calculator-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: #e2e8f0;
            font-size: 1.3rem;
            cursor: pointer;
            padding: 6px;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .mobile-menu-btn:hover {
            color: #facc15;
            background: rgba(250, 204, 21, 0.1);
        }

        /* Animation Keyframes */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Enhanced Mobile Responsive Styles */
        @media (max-width: 1024px) {
            .nav-links {
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .header-container {
                height: 65px;
                padding: 0 15px;
            }

            .nav-menu {
                position: fixed;
                top: 65px;
                left: 0;
                width: 100%;
                background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
                flex-direction: column;
                padding: 25px 20px;
                gap: 0;
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
                z-index: 999;
            }

            .nav-menu.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
                animation: fadeInDown 0.4s ease;
            }

            .nav-links {
                flex-direction: column;
                gap: 0;
                width: 100%;
            }

            .nav-links li {
                width: 100%;
                border-bottom: 1px solid #4a5568;
                transition: background-color 0.3s ease;
            }

            .nav-links li:hover {
                background-color: rgba(255, 255, 255, 0.05);
            }

            .nav-links li:last-child {
                border-bottom: none;
            }

            .nav-links a {
                padding: 16px 0;
                font-size: 1rem;
                display: flex;
                align-items: center;
                gap: 12px;
                transition: all 0.3s ease;
            }

            .nav-links a i {
                display: inline-block;
                font-size: 1rem;
                width: 20px;
                opacity: 0.8;
            }

            .nav-links a::after {
                display: none;
            }

            .nav-actions {
                flex-direction: column;
                width: 100%;
                margin-top: 20px;
                gap: 12px;
            }

            .calculator-btn {
                width: 100%;
                justify-content: center;
                padding: 12px;
                font-size: 1rem;
            }

            .mobile-menu-btn {
                display: block;
                z-index: 1001;
            }

            .logo-main {
                font-size: 1.4rem;
            }

            .logo-tagline {
                font-size: 0.6rem;
            }
        }

        @media (max-width: 480px) {
            .header-container {
                height: 60px;
                padding: 0 10px;
            }

            .logo-icon {
                width: 35px;
                height: 35px;
            }

            .logo-icon img {
                width: 100%;
                height: 100%;
            }

            .logo-main {
                font-size: 1.3rem;
            }

            .logo-tagline {
                font-size: 0.55rem;
            }

            .nav-menu {
                top: 60px;
                padding: 20px 15px;
            }

            .nav-links a {
                padding: 14px 0;
            }
        }

        /* Rest of the existing styles */
        :root {
            --primary: #f8b500;
            --primary-light: #ffd166;
            --secondary: #6c757d;
            --accent: #ffb300;
            --light: #f8f9fa;
            --dark: #343a40;
            --success: #06d6a0;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
            --gold: #d4af37;
            --silver: #c0c0c0;
            --silver-header: #4a6572;
            --text-dark: #333;
            --text-light: #666;
            --bg-light: #f8f9fa;
            --white: #ffffff;
        }

        /* Animation Keyframes */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes fadeUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(10deg);
            }

            100% {
                transform: translateY(0) rotate(0deg);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(248, 181, 0, 0.4);
            }

            70% {
                box-shadow: 0 0 0 15px rgba(248, 181, 0, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(248, 181, 0, 0);
            }
        }

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

        /* --- Main Content Area --- */
        .main-content {
            flex: 1;
        }

        /* --- Hero Section Styles --- */
        .hero-section {
            min-height: 100vh;
            background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        }

        .hero-section .container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-content {
            padding-right: 2rem;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 1.5rem;
            color: var(--dark);
            position: relative;
        }

        .hero-title span {
            color: var(--primary);
            position: relative;
        }

        .hero-title span::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 8px;
            background-color: rgba(248, 181, 0, 0.2);
            z-index: -1;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--secondary);
            margin-bottom: 2.5rem;
            max-width: 90%;
        }

        .hero-buttons {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border: none;
            outline: none;
            box-shadow: var(--shadow);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: var(--dark);
        }

        .btn-secondary {
            background: transparent;
            color: #118ab2;
            border: 2px solid #118ab2;
        }

        .btn span {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: var(--transition);
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(248, 181, 0, 0.3);
        }

        .btn-secondary:hover {
            background-color: #118ab2;
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(17, 138, 178, 0.2);
        }

        .btn-pulse {
            animation: pulse 2s infinite;
        }

        .hero-visual {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .price-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: var(--shadow);
            width: 100%;
            max-width: 350px;
            position: relative;
            z-index: 2;
            transition: var(--transition);
            animation: float 6s ease-in-out infinite;
        }

        .price-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

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

        .price-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-size: 1.5rem;
        }

        .gold-icon {
            background: linear-gradient(135deg, var(--primary) 0%, #ffcc00 100%);
            color: white;
        }

        .silver-icon {
            background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
            color: white;
        }

        .price-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
        }

        .price-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }

        .price-change {
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .positive {
            color: var(--success);
        }

        .negative {
            color: #ef476f;
        }

        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .floating-element {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            animation: float 8s ease-in-out infinite;
        }

        .element-1 {
            width: 100px;
            height: 100px;
            background: var(--primary);
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .element-2 {
            width: 150px;
            height: 150px;
            background: var(--accent);
            bottom: 20%;
            right: 10%;
            animation-delay: 1s;
        }

        .element-3 {
            width: 70px;
            height: 70px;
            background: var(--success);
            top: 50%;
            left: 5%;
            animation-delay: 2s;
        }

        .stats-container {
            display: flex;
            gap: 2rem;
            margin-top: 3rem;
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .stat {
            display: flex;
            flex-direction: column;
            min-width: 100px;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
        }

        .stat-label {
            font-size: 0.9rem;
            color: var(--secondary);
        }

        /* --- Features Section Styles --- */
        .features-section {
            background-color: #fff;
            padding: 50px 20px;
            text-align: center;
        }

        .features-section h2 {
            font-size: 2rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 40px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .feature-card {
            background-color: #ffffff;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeUp 0.8s ease forwards;
        }

        .feature-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .feature-card:nth-child(2) {
            animation-delay: 0.3s;
        }

        .feature-card:nth-child(3) {
            animation-delay: 0.5s;
        }

        .feature-card:nth-child(4) {
            animation-delay: 0.7s;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
        }

        .feature-icon {
            font-size: 2.2rem;
            color: #facc15;
            margin-bottom: 15px;
            transition: transform 0.3s ease;
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.15);
        }

        .feature-card h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .feature-card p {
            font-size: 0.95rem;
            color: #555;
        }

        /* NEW CALCULATOR SECTION STYLES */
        .calculator-section {
            padding: 5rem 2rem;
            background: var(--bg-light);
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
            color: var(--dark);
            animation: fadeInDown 0.8s ease;
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: var(--secondary);
            margin-bottom: 3rem;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            animation: fadeInDown 1s ease;
        }

        .calculator-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        @media (min-width: 992px) {
            .calculator-container {
                grid-template-columns: 2fr 1fr;
                gap: 3rem;
            }
        }

        .calculator-card {
            background: white;
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        .calculator-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, var(--primary), var(--accent));
        }

        .calculator-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .calculator-header {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
        }

        .calculator-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: white;
            box-shadow: 0 10px 20px rgba(248, 181, 0, 0.3);
        }

        .calculator-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark);
        }

        .input-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.25rem;
        }

        @media (min-width: 576px) {
            .input-grid {
                grid-template-columns: 1fr 1fr;
                gap: 1.5rem;
            }
        }

        .input-group {
            margin-bottom: 0.5rem;
        }

        .input-group.full-width {
            grid-column: 1 / -1;
        }

        .input-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            font-size: 0.95rem;
        }

        .input-group input,
        .input-group select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 1rem;
            transition: var(--transition);
            outline: none;
            background: white;
        }

        .input-group input:focus,
        .input-group select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
        }

        .charge-type {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .charge-type-btn {
            flex: 1;
            padding: 8px 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
            font-weight: 500;
            background: white;
        }

        .charge-type-btn.active {
            border-color: var(--accent);
            background-color: rgba(255, 179, 0, 0.1);
            color: var(--accent);
        }

        .result-card {
            background: var(--primary);
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: var(--shadow);
            color: var(--dark);
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 500px;
            position: relative;
            overflow: hidden;
        }

        .result-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
            transform: rotate(30deg);
        }

        .result-placeholder {
            text-align: center;
            opacity: 0.8;
            z-index: 2;
            position: relative;
        }

        .result-placeholder i {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
            color: var(--dark);
        }

        .result-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
            color: var(--dark);
            position: relative;
            z-index: 2;
        }

        .total-value-container {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.5);
            position: relative;
            z-index: 2;
        }

        .total-value {
            font-size: 2.5rem;
            font-weight: 800;
            text-align: center;
            margin-bottom: 0.5rem;
            animation: pulse 2s infinite;
            color: var(--dark);
        }

        .total-label {
            font-size: 0.9rem;
            opacity: 0.9;
            color: var(--dark);
        }

        .breakdown {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.5);
            position: relative;
            z-index: 2;
        }

        .breakdown-item {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }

        .breakdown-item:hover {
            background: rgba(255, 255, 255, 0.3);
            margin: 0 -0.5rem;
            padding: 0.75rem 0.5rem;
            border-radius: 8px;
        }

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

        .breakdown-label {
            color: var(--dark);
            font-weight: 500;
        }

        .breakdown-value {
            color: var(--dark);
            font-weight: 600;
        }

        .calculation-info {
            text-align: center;
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 1rem;
            color: var(--dark);
            position: relative;
            z-index: 2;
        }

        .btn-calculate {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: var(--dark);
            width: 100%;
            margin-top: 1rem;
        }

        .btn-calculate:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(248, 181, 0, 0.4);
        }

        .btn-download {
            background: rgba(255, 255, 255, 0.4);
            color: var(--dark);
            border: 2px solid rgba(255, 255, 255, 0.6);
            margin-top: 1rem;
            backdrop-filter: blur(10px);
            width: 100%;
        }

        .btn-download:hover {
            background: rgba(255, 255, 255, 0.6);
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
        }

        .result-content {
            display: none;
        }

        /* --- Price Trends Section Styles --- */
        .price-trends-section {
            padding: 5rem 2rem;
            background: var(--white);
        }

        .price-trends-container {
            max-width: 1200px;
            margin: 0 auto;
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            padding: 30px;
            transition: var(--transition);
        }

        .tabs-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
        }

        .metal-tabs {
            display: flex;
            background: var(--bg-light);
            border-radius: 50px;
            padding: 5px;
            flex: 1;
            min-width: 250px;
        }

        .metal-tab {
            flex: 1;
            padding: 12px 20px;
            text-align: center;
            background: transparent;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-light);
        }

        .metal-tab.active {
            background: var(--white);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            color: var(--text-dark);
        }

        .metal-tab.gold.active {
            color: var(--gold);
        }

        .metal-tab.silver.active {
            color: var(--silver);
        }

        .period-tabs {
            display: flex;
            background: var(--bg-light);
            border-radius: 12px;
            padding: 5px;
            flex: 1;
            min-width: 300px;
        }

        .period-tab {
            flex: 1;
            padding: 10px 15px;
            text-align: center;
            background: transparent;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-light);
        }

        .period-tab.active {
            background: var(--white);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            color: var(--text-dark);
        }

        .chart-container {
            background: var(--white);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            height: 400px;
            position: relative;
        }

        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: var(--white);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .stat-card.gold::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--gold);
        }

        .stat-card.silver::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--silver);
        }

        .stat-title {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 8px;
        }

        .stat-card .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            font-size: 1.2rem;
            color: var(--text-light);
        }

        .price-tracker {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 40px;
        }

        .tracker-card {
            background: var(--white);
            border-radius: 16px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            animation: fadeInUp 0.8s ease;
        }

        .tracker-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        }

        .tracker-card.gold .card-header {
            background: linear-gradient(135deg, var(--gold) 0%, #ffd166 100%);
        }

        .tracker-card.silver .card-header {
            background: linear-gradient(135deg, var(--silver-header) 0%, #7b8d93 100%);
        }

        .tracker-card .card-header {
            padding: 1.5rem;
            color: var(--white);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .tracker-card .card-title {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .tracker-card .card-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            font-size: 1.5rem;
        }

        .tracker-card .card-title h2 {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .tracker-card .current-price {
            text-align: right;
        }

        .tracker-card .current-price .price {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0.25rem;
        }

        .tracker-card .current-price .change {
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.5rem;
        }

        .tracker-card .card-body {
            padding: 1.5rem;
        }

        .tracker-table {
            width: 100%;
            border-collapse: collapse;
        }

        .tracker-table th {
            text-align: left;
            padding: 1rem;
            background-color: var(--bg-light);
            font-weight: 600;
            color: var(--text-dark);
            border-bottom: 2px solid #e9ecef;
        }

        .tracker-table.silver-table th {
            background-color: #e8f4f8;
            color: var(--silver-header);
        }

        .tracker-table td {
            padding: 1rem;
            border-bottom: 1px solid #e9ecef;
            transition: var(--transition);
        }

        .tracker-table tr:hover td {
            background-color: rgba(0, 0, 0, 0.02);
        }

        .tracker-table .weight {
            font-weight: 600;
        }

        .tracker-table .today {
            font-weight: 700;
            color: var(--text-dark);
        }

        .tracker-table .yesterday,
        .tracker-table .avg {
            color: var(--text-light);
        }

        /* --- Gold Info Section --- */
        .gold-info-section {
            background-color: #f9fafb;
            padding: 60px 20px;
        }

        .gold-info-section h2 {
            text-align: center;
            font-size: 2rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 40px;
        }

        .gold-info-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .gold-table-card,
        .gold-info-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
            padding: 20px;
            animation: fadeUp 0.8s ease forwards;
        }

        .gold-info-card {
            animation-delay: 0.2s;
        }

        .gold-table-card h3,
        .gold-info-card h3 {
            display: flex;
            align-items: center;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .gold-table-card h3 i,
        .gold-info-card h3 i {
            color: #facc15;
            margin-right: 8px;
            font-size: 1.2rem;
        }

        table.gold-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        table.gold-table th,
        table.gold-table td {
            padding: 10px 8px;
            text-align: left;
            font-size: 0.95rem;
            border-bottom: 1px solid #e5e7eb;
        }

        table.gold-table th {
            background-color: #f9fafb;
            font-weight: 600;
        }

        .gold-info-card ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .gold-info-card li {
            padding: 8px 0;
            border-bottom: 1px solid #e5e7eb;
            font-size: 0.95rem;
            color: #333;
        }

        .gold-info-card li:last-child {
            border-bottom: none;
        }

        .gold-info-card strong {
            font-weight: 600;
        }

        /* --- FAQ Section Styles --- */
        .faq-section {
            max-width: 700px;
            margin: 60px auto;
            padding: 0 15px;
        }

        .faq-title {
            text-align: center;
            font-size: 2rem;
            font-weight: 700;
            color: #1e1e2f;
            margin-bottom: 25px;
            font-family: "Poppins", sans-serif;
        }

        .faq-item {
            background: #fff;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            animation: fadeInUp 0.5s ease;
        }

        .faq-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
        }

        .faq-question {
            width: 100%;
            background: none;
            border: none;
            text-align: left;
            padding: 18px 20px;
            font-size: 1rem;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            color: #1e1e2f;
            font-family: "Poppins", sans-serif;
        }

        .arrow-icon {
            width: 20px;
            height: 20px;
            fill: #facc15;
            transition: transform 0.3s ease;
        }

        .faq-item.active .arrow-icon {
            transform: rotate(180deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            padding: 0 20px;
            background: #fffbea;
            transition: max-height 0.4s ease, padding 0.3s ease;
        }

        .faq-item.active .faq-answer {
            max-height: 200px;
            padding: 15px 20px;
        }

        .faq-answer p {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.5;
            margin: 0;
        }

        /* --- Contact Section Styles --- */
        section#contact {
            max-width: 1000px;
            margin: 60px auto;
            text-align: center;
            padding: 0 15px;
        }

        section#contact h1 {
            font-size: 2rem;
            font-weight: 700;
            color: #111827;
        }

        section#contact .subtitle {
            margin-top: 8px;
            color: #6b7280;
        }

        .contact-container {
            margin-top: 40px;
            display: flex;
            gap: 40px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .contact-form {
            background: #fff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            flex: 1;
            min-width: 320px;
            max-width: 550px;
            text-align: left;
        }

        .contact-form label {
            display: block;
            font-weight: 600;
            margin-top: 15px;
            margin-bottom: 5px;
            color: #111827;
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            padding: 12px 15px;
            font-size: 0.95rem;
            color: #111827;
            outline: none;
            transition: border-color 0.2s;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: #facc15;
        }

        .contact-form textarea {
            resize: none;
            height: 120px;
        }

        #sendBtn {
            margin-top: 20px;
            background-color: #facc15;
            color: #1a202c;
            border: none;
            border-radius: 6px;
            padding: 12px 25px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.3s;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
        }

        #sendBtn:hover {
            background-color: #eab308;
        }

        #sendBtn:disabled {
            background-color: #fde68a;
            cursor: not-allowed;
        }

        .success-text,
        .error-text {
            display: none;
            margin-top: 15px;
            color: #fff;
            padding: 10px;
            border-radius: 6px;
            font-size: 0.95rem;
            text-align: center;
            animation: fadeIn 0.3s ease;
        }

        .success-text {
            background-color: #16a34a;
        }

        .error-text {
            background-color: #dc2626;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 20px;
            flex: 0.6;
            min-width: 280px;
        }

        .info-box {
            background: #fff;
            padding: 18px 20px;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            gap: 15px;
            text-align: left;
        }

        .icon {
            font-size: 1.2rem;
            color: #facc15;
            min-width: 24px;
            text-align: center;
        }

        .info-box h3 {
            font-size: 1rem;
            font-weight: 600;
            color: #111827;
        }

        .info-box p {
            font-size: 0.95rem;
            color: #6b7280;
            margin-top: 2px;
        }

        .loader {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(0, 0, 0, 0.2);
            border-radius: 50%;
            border-top-color: #1a202c;
            animation: spin 1s ease-in-out infinite;
        }

        /* --- Footer Styles --- */
        .footer {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
            color: #fff;
            padding: 60px 0 30px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
            gap: 30px;
        }

        .footer-brand h3 {
            font-size: 28px;
            font-weight: 700;
            color: #facc15;
            margin-bottom: 15px;
            background: linear-gradient(45deg, #facc15, #eab308);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .footer-brand p {
            color: #cbd5e0;
            line-height: 1.6;
            margin-bottom: 25px;
            font-size: 15px;
        }

        .footer-links h4 {
            color: #facc15;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 20px;
            position: relative;
        }

        .footer-links h4::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 30px;
            height: 2px;
            background: #facc15;
            border-radius: 2px;
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
        }

        .footer-links li:nth-child(1) {
            animation-delay: 0.1s;
        }

        .footer-links li:nth-child(2) {
            animation-delay: 0.2s;
        }

        .footer-links li:nth-child(3) {
            animation-delay: 0.3s;
        }

        .footer-links li:nth-child(4) {
            animation-delay: 0.4s;
        }

        .footer-links li:nth-child(5) {
            animation-delay: 0.5s;
        }

        .footer-links a {
            color: #cbd5e0;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 4px 0;
        }

        .footer-links a:hover {
            color: #facc15;
            transform: translateX(5px);
        }

        .footer-links a i {
            font-size: 13px;
            width: 16px;
            text-align: center;
            color: #facc15;
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 40px auto 0;
            padding: 30px 20px 0;
            border-top: 1px solid #4a5568;
            text-align: center;
        }

        .disclaimer {
            color: #a0aec0;
            font-size: 13px;
            line-height: 1.5;
            margin-bottom: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .copyright {
            color: #a0aec0;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .copyright i {
            color: #facc15;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: rgba(250, 204, 21, 0.1);
            color: #facc15;
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid rgba(250, 204, 21, 0.3);
        }

        .social-links a:hover {
            background: #facc15;
            color: #1a202c;
            transform: translateY(-3px);
        }

        /* --- Responsive Styles --- */
        @media (max-width: 992px) {

            .calculator-container,
            .price-tracker {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .section-subtitle {
                font-size: 1.1rem;
            }

            .hero-section .container {
                grid-template-columns: 1fr;
                gap: 3rem;
                text-align: center;
            }

            .hero-content {
                padding-right: 0;
            }

            .hero-title {
                font-size: 2.8rem;
            }

            .hero-subtitle {
                max-width: 100%;
            }

            .hero-buttons,
            .stats-container {
                justify-content: center;
            }

            .footer-container {
                grid-template-columns: 1fr 1fr 1fr;
                gap: 40px;
            }
        }

        @media (max-width: 768px) {

            /* Content */
            .calculator-card,
            .result-card {
                padding: 2rem;
            }

            .calculator-title {
                font-size: 1.5rem;
            }

            .total-value {
                font-size: 2rem;
            }

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

            .hero-title {
                font-size: 2.2rem;
            }

            .hero-subtitle {
                font-size: 1.1rem;
            }

            .btn {
                padding: 0.9rem 1.8rem;
                font-size: 1rem;
            }

            .price-card {
                max-width: 300px;
            }

            .stats-container {
                flex-wrap: wrap;
                justify-content: center;
                gap: 1.5rem;
            }

            .stat {
                min-width: 100px;
                text-align: center;
            }

            .chart-container {
                height: 300px;
            }

            .stats-cards {
                grid-template-columns: repeat(2, 1fr);
            }

            .tracker-card .card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .tracker-card .current-price {
                text-align: left;
            }

            .tracker-table {
                display: block;
                overflow-x: auto;
            }

            .tracker-table th,
            .tracker-table td {
                padding: 0.75rem 0.5rem;
                white-space: nowrap;
            }

            .contact-container {
                flex-direction: column;
            }

            .contact-form,
            .contact-info {
                max-width: 100%;
            }

            .footer-container {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 480px) {

            .calculator-card,
            .result-card {
                padding: 1.5rem;
            }

            .calculator-header {
                flex-direction: column;
                text-align: center;
            }

            .calculator-icon {
                margin-right: 0;
                margin-bottom: 1rem;
            }

            .total-value {
                font-size: 1.8rem;
            }

            .hero-title {
                font-size: 1.8rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 280px;
            }

            .price-card {
                padding: 1.5rem;
            }

            .price-value {
                font-size: 2rem;
            }

            .stats-container {
                gap: 1rem;
                justify-content: space-between;
            }

            .stat {
                min-width: 80px;
                flex: 1;
            }

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

            .tracker-card .card-title h2 {
                font-size: 1.5rem;
            }

            .tracker-card .current-price .price {
                font-size: 1.5rem;
            }

            .tracker-card .card-body {
                padding: 1rem;
            }

            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .footer-links h4::after {
                left: 50%;
                transform: translateX(-50%);
            }

            .footer-links a,
            .social-links {
                justify-content: center;
            }
        }