:root {
    /* Brand Colors */
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #B8960F;
    --blue: #0F4C81;
    --blue-light: #1E6BB8;
    --blue-dark: #0A3359;
    --navy: #0D1B2A;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-300: #CED4DA;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --black: #000000;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    --gradient-blue: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 76, 129, 0.95) 0%, rgba(10, 51, 89, 0.98) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.3);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Noto Sans Myanmar', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--off-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F4C81 0%, #0A3359 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 107, 184, 0.2) 0%, transparent 50%);
    animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 100;
    padding: 20px 0;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.currency-symbol {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
}

.exchange-icon {
    font-size: 20px;
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
}

.cta-btn {
    padding: 12px 28px;
    background: var(--gradient-gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(212, 175, 55, 0.4);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 80px 0 120px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
    display: block;
    color: var(--white);
}

.title-line.gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Live Rates */
.live-rates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 60px 0 20px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.rate-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 40px;
    min-width: 280px;
    transition: all 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.rate-card.buy {
    border-left: 4px solid var(--gold);
}

.rate-card.sell {
    border-right: 4px solid var(--gold);
}

.rate-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.rate-value {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--gold);
    margin: 10px 0;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.rate-detail {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.rate-divider {
    color: var(--gold);
    font-size: 32px;
    opacity: 0.6;
}

.last-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.last-updated span {
    color: var(--gold);
    font-weight: 600;
}

/* Calculator Section */
.calculator-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
}

.calculator {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid var(--gray-100);
}

.calculator-tabs {
    display: flex;
    background: var(--off-white);
    border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn.active {
    background: var(--white);
    color: var(--blue);
    border-bottom: 3px solid var(--gold);
}

.tab-btn:hover {
    background: rgba(15, 76, 129, 0.05);
}

.tab-icon {
    font-size: 20px;
}

.calculator-content {
    padding: 40px;
}

.calc-panel {
    display: none;
}

.calc-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.input-group,
.result-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group label,
.result-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 20px 80px 20px 20px;
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--off-white);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.input-group input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.result-value {
    width: 100%;
    padding: 20px 80px 20px 20px;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    background: var(--off-white);
    border: 2px solid var(--gold);
    border-radius: 12px;
    min-height: 76px;
    display: flex;
    align-items: center;
}

.currency-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-600);
}

.calc-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--blue);
    margin: 20px 0;
}

.calc-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(15, 76, 129, 0.05);
    border-left: 3px solid var(--blue);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.calc-info span {
    font-weight: 700;
    color: var(--blue);
}

.telegram-cta {
    margin-top: 40px;
    padding: 30px;
    background: var(--gradient-blue);
    border-radius: 16px;
    text-align: center;
}

.telegram-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 15px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* History Section */
.history-section {
    padding: 100px 0;
    background: var(--off-white);
}

.history-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.period-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-btn.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.period-btn:hover {
    border-color: var(--blue);
}

.chart-container {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.history-table {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

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

.history-table thead {
    background: var(--blue);
    color: var(--white);
}

.history-table th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 16px;
}

.history-table tbody tr:hover {
    background: var(--off-white);
}

.change-positive {
    color: #10B981;
    font-weight: 600;
}

.change-negative {
    color: #EF4444;
    font-weight: 600;
}

.change-neutral {
    color: var(--gray-600);
}

/* Trust Section */
.trust-section {
    padding: 100px 0;
    background: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.trust-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--off-white);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.trust-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.trust-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.trust-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-contact h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .live-rates {
        flex-direction: column;
        gap: 20px;
    }
    
    .rate-card {
        min-width: 100%;
    }
    
    .rate-divider {
        transform: rotate(90deg);
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .calculator-tabs {
        flex-direction: row;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
