:root {
    --primary-gold: #FFD700;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --dark-bg: #050505;
    --card-bg: #111111;
    /* Slightly lighter than bg */
    --card-border: #222;
    --accent-red: #ff3b3b;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --success-green: #00ff88;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.5;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 60%);
    min-height: 100vh;
}

/* Utilities */
.hidden {
    display: none !important;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #111 0%, #222 50%, #111 100%);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--success-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--success-green);
}

/* Layout */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hero */
.hero-section {
    text-align: left;
    margin-bottom: 40px;
}

.badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-green {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-red {
    background: rgba(255, 59, 59, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.highlight-box {
    border-bottom: 3px solid var(--primary-gold);
}

.hero-desc {
    color: var(--text-gray);
    max-width: 800px;
    font-size: 1rem;
}

/* Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Reverted to 2 columns */
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Coin Display Section */
.coin-display-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -40px;
    /* Slight overlap for integration */
    position: relative;
    z-index: 10;
    /* Above cards */
    padding: 20px 0;
}

.coin-image {
    width: 100%;
    max-width: 320px;
    /* Larger size */
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.3));
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .coin-image {
        max-width: 240px;
        /* Smaller on mobile but still decent */
        margin-bottom: 0px;
    }

    .coin-display-container {
        margin-bottom: 0;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotateY(0deg);
    }

    50% {
        transform: translateY(-15px) rotateY(5deg);
    }

    100% {
        transform: translateY(0px) rotateY(0deg);
    }
}

.floating-large {
    animation: float 5s ease-in-out infinite;
}

/* Cards */
.price-card,
.action-card,
.live-status-card,
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Price Card */
.bundle-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.right {
    text-align: right;
}

.label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.sub-value {
    font-size: 0.8rem;
    color: var(--success-green);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-label {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-gold);
}

.price-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 1.2rem;
}

.new-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--success-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.price-sub {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Action Card */
.action-card h3,
.live-status-card h3,
.info-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.step-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glow-button {
    width: 100%;
    padding: 16px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 6px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

/* Right Col Stuff */
.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-value {
    color: #fff;
    font-weight: 800;
}

.progress-track {
    background: #333;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    background: var(--success-green);
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--success-green);
}

.alert-box {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: #ff8888;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* POPUP CSS */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-content {
    background: #111;
    border: 1px solid var(--primary-gold);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15);
    text-align: center;
}

.popup-header h2 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.qfs-progress-container {
    background: #222;
    height: 12px;
    border-radius: 6px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.qfs-progress-bar {
    background: var(--gold-gradient);
    height: 100%;
    width: 0%;
    border-radius: 6px;
    transition: width 0.1s linear;
}

.popup-body p {
    color: #fff;
    font-weight: 600;
}

.steps-list {
    text-align: left;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-item {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.step-item.active {
    color: #fff;
}

.check {
    font-weight: bold;
}

.check.pending {
    color: #555;
}

.check.done {
    color: var(--success-green);
}