/* ==================== GLOBAL STYLES ==================== */
:root {
    --primary: #009739;
    --primary-dark: #006b2a;
    --secondary: #FFFFFF;
    --accent: #CE1126;
    --dark: #0f1115;
    --dark-card: rgba(20, 22, 30, 0.95);
    --dark-hover: rgba(25, 27, 35, 0.98);
    --text: #e8e8e8;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --green-glow: rgba(0, 151, 57, 0.3);
    --red-glow: rgba(206, 17, 38, 0.2);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(15, 17, 21, 0.9); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00b74a; }

/* ==================== BACKGROUND EFFECTS ==================== */
.bg-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 151, 57, 0.15), transparent 70%);
    top: -200px; left: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(206, 17, 38, 0.1), transparent 70%);
    bottom: -200px; right: -100px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.bg-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 151, 57, 0.08), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -80px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.95); }
    75% { transform: translate(70px, 30px) scale(1.05); }
}

/* Grid pattern overlay */
.grid-pattern {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ==================== FLOATING PARTICLES ==================== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 17, 21, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo-img-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 151, 57, 0.3));
}

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

.logo:hover .logo-img-wrap {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 15px rgba(0, 151, 57, 0.5));
}

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

.logo-name {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Nav */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 151, 57, 0.2);
    transform: translateY(-1px);
}

.refresh-btn {
    background: var(--primary);
    color: white;
}

.refresh-btn:hover {
    background: #00b74a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 151, 57, 0.4);
}

.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

/* ==================== MAIN CONTENT ==================== */
main {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

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

/* ==================== HERO / STATUS BAR ==================== */
.status-bar {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    backdrop-filter: blur(20px);
    animation: slideDown 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-glow);
    animation: pulse 2s ease-in-out infinite;
}

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

.status-text {
    font-size: 13px;
    color: var(--text-muted);
}

.status-text strong {
    color: var(--text);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.refresh-progress {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.refresh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00b74a);
    border-radius: 2px;
    transition: width 1s linear;
    width: 100%;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.section-title .icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, rgba(0, 151, 57, 0.2), rgba(0, 151, 57, 0.05));
    border: 1px solid rgba(0, 151, 57, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-title .flag-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.2), rgba(206, 17, 38, 0.05));
    border: 1px solid rgba(206, 17, 38, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ==================== CURRENCY CARDS ==================== */
.currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.currency-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.currency-card.animate-in {
    animation: cardFadeIn 0.5s ease-out forwards;
}

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

.currency-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.currency-card:hover {
    background: var(--dark-hover);
    border-color: rgba(0, 151, 57, 0.3);
    transform: translateY(-4px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 151, 57, 0.1);
}

.currency-card:hover::after {
    opacity: 1;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-flag {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.card-code {
    font-size: 11px;
    color: var(--text-muted);
}

.card-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-rate {
    font-size: 22px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    line-height: 1.2;
}

.card-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-change.up { color: #22c55e; }
.card-change.down { color: #ef4444; }
.card-change.neutral { color: var(--text-muted); }

/* ==================== SYP OLD CARD ==================== */
.syp-old-card {
    background: linear-gradient(135deg, var(--dark-card), rgba(0, 151, 57, 0.08));
    border: 2px solid rgba(0, 151, 57, 0.4);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}

.syp-old-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0, 151, 57, 0.05), transparent 50%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.syp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.syp-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.syp-flag-icon {
    width: 48px; height: 48px;
    background: rgba(0, 151, 57, 0.15);
    border: 1px solid rgba(0, 151, 57, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.syp-title {
    font-size: 18px;
    font-weight: 800;
}

.syp-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.syp-badges {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.syp-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.syp-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1;
}

.syp-rate-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: var(--transition);
}

.syp-rate-item:hover {
    background: rgba(0, 151, 57, 0.1);
    border-color: rgba(0, 151, 57, 0.3);
    transform: scale(1.03);
}

.syp-rate-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.syp-rate-value {
    font-size: 16px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
}

/* ==================== CONVERTER ==================== */
.converter-section {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    animation: slideUp 0.8s ease-out;
}

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

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

.converter-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 16px;
}

.converter-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.converter-col label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.converter-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.converter-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: var(--transition);
}

.converter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 151, 57, 0.2);
}

.converter-result {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 151, 57, 0.08);
    border: 1px solid rgba(0, 151, 57, 0.3);
    border-radius: 12px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    cursor: default;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dd-trigger {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
}

.dd-trigger:hover {
    border-color: rgba(0, 151, 57, 0.4);
}

.dd-trigger .dd-flag { font-size: 22px; }
.dd-trigger .dd-code { font-weight: 700; }

.dd-trigger .dd-arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dd-trigger .dd-arrow {
    transform: rotate(180deg);
}

.custom-dropdown.open .dd-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 151, 57, 0.15);
}

.dd-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: rgba(18, 20, 28, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: dropIn 0.2s ease-out;
}

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

.custom-dropdown.open .dd-list { display: block; }

.dd-option {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 13px;
}

.dd-option:hover {
    background: rgba(0, 151, 57, 0.15);
}

.dd-option.selected {
    background: rgba(0, 151, 57, 0.2);
}

.dd-option .dd-flag { font-size: 20px; }
.dd-option .dd-code { font-weight: 700; min-width: 38px; }
.dd-option .dd-name { color: var(--text-muted); font-size: 12px; }

/* Swap Button */
.swap-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
}

.swap-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(0, 151, 57, 0.4);
    background: linear-gradient(135deg, rgba(0, 151, 57, 0.2), rgba(0, 151, 57, 0.05));
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.swap-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #00b74a);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.swap-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.swap-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 151, 57, 0.4), 0 0 50px rgba(0, 151, 57, 0.1);
    transform: scale(1.08);
}

.swap-btn:hover::before {
    opacity: 1;
}

.swap-btn:hover svg {
    color: white;
    transform: rotate(180deg);
}

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

.converter-rate-info {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

/* ==================== GOLD SECTION ==================== */
.gold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.gold-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.gold-card.animate-in {
    animation: cardFadeIn 0.5s ease-out forwards;
}

.gold-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, transparent);
    opacity: 0;
    transition: var(--transition);
}

.gold-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-4px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 193, 7, 0.1);
}

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

.gold-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gold-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.gold-name-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.gold-usd {
    font-size: 18px;
    font-weight: 800;
    color: #FFD700;
    font-family: 'JetBrains Mono', monospace;
}

.gold-syp {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

/* ==================== ERROR BANNER ==================== */
.error-banner {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(206, 17, 38, 0.95);
    border: 1px solid rgba(206, 17, 38, 0.5);
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(206, 17, 38, 0.3);
}

.error-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ==================== FOOTER ==================== */
footer {
    position: relative;
    z-index: 2;
    padding: 28px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    background: rgba(15, 17, 21, 0.5);
    backdrop-filter: blur(10px);
}

.footer-flag {
    display: inline-block;
    margin: 0 6px;
}

.footer-freedom {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-inner { height: 72px; }
    .logo-name { font-size: 18px; }
    .logo-sub { display: none; }
    main { padding-top: 72px; }
    .container { padding: 12px; }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 18px;
    }

    .currencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .currency-card { padding: 16px; }
    .card-flag { font-size: 26px; }
    .card-rate { font-size: 18px; }

    .converter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .swap-btn-wrap {
        padding: 0;
        order: 0;
    }

    .swap-btn { width: 44px; height: 44px; }
    .swap-btn svg { width: 18px; height: 18px; }
    .converter-input, .converter-result { font-size: 16px; }

    .syp-rates {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .syp-header { flex-direction: column; align-items: flex-start; }
    .syp-badges { flex-wrap: wrap; }

    .gold-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .currencies-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gold-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card-rate { font-size: 16px; }
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== LOADING STATE ==================== */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== TILT HOVER EFFECT ==================== */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ==================== GLITCH LOGO EFFECT ==================== */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

.logo-img-wrap:active {
    animation: glitch 0.3s ease;
}

/* ==================== TYPING CURSOR ==================== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ==================== HOVER RIPPLE ==================== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
    transform: translate(-50%, -50%);
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* ==================== DATA SOURCE NOTE ==================== */
.data-source {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
    position: relative;
    z-index: 2;
}
