/* ═══════════════ POPOLNYATOR EXCHANGE — Black & Gold Theme ═══════════════ */

/* ── Base ── */
[x-cloak] { display: none !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0f;
}

/* ── Animated Background ── */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #d4a017 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #b8860b 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #9a7209 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.05); }
    66% { transform: translate(30px, -50px) scale(0.95); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 160, 23, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 160, 23, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Glass Cards ── */
.glass-card {
    background: rgba(19, 19, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-nav {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(31, 31, 46, 0.8);
}

/* ── Gold Text Gradient ── */
.gold-text {
    background: linear-gradient(135deg, #d4a017 0%, #ffd84d 50%, #d4a017 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
}

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

/* ── Gold Button ── */
.gold-btn {
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #000;
    font-weight: 700;
    transition: all 0.2s ease;
}

.gold-btn:hover {
    background: linear-gradient(135deg, #ffd84d 0%, #d4a017 100%);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
    transform: translateY(-1px);
}

.gold-btn:active {
    transform: translateY(0);
}

/* ── Gold Input ── */
.input-gold {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid #1f1f2e;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    transition: all 0.2s ease;
}

.input-gold::placeholder { color: #4a4a5a; }

.input-gold:focus {
    outline: none;
    border-color: #d4a017;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.15);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #1f1f2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a3e; }

/* ── Skeleton loading ── */
.skeleton {
    background: linear-gradient(90deg, #13131a 25%, #1f1f2e 50%, #13131a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Toast ── */
.toast-enter { animation: slideInRight 0.3s ease; }
.toast-leave { animation: slideOutRight 0.3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ── Stepper (buy flow) ── */
.step-indicator {
    display: flex;
    align-items: center;
}
.step-indicator .step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.step-indicator .step.active {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #000;
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
}
.step-indicator .step.completed {
    background: #22c55e;
    color: white;
}
.step-indicator .step.pending {
    background: #1f1f2e;
    color: #6a6a7a;
}
.step-indicator .step-line {
    flex: 1;
    height: 2px;
    background: #1f1f2e;
    transition: background 0.3s ease;
}
.step-indicator .step-line.completed {
    background: #22c55e;
}

/* ── Pulse gold for "I paid" button ── */
.pulse-gold {
    animation: pulseGold 2s ease-in-out infinite;
}
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 160, 23, 0); }
}

/* ── Countdown timer ── */
.countdown-timer {
    font-variant-numeric: tabular-nums;
}

/* ── Copy button ── */
.copy-btn {
    cursor: pointer;
    transition: color 0.2s ease;
}
.copy-btn:hover { color: #d4a017; }
.copy-btn.copied { color: #22c55e; }

/* ── Input focus ring ── */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.15);
}

/* ── Disabled state ── */
button:disabled { cursor: not-allowed; }

/* ── Mobile ── */
@media (max-width: 640px) {
    .step-indicator .step {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .bg-orb { opacity: 0.08; }
}
