:root {
    /* Color Palette based on "Domino Dreams" */
    --primary-color: #7928CA;
    --secondary-color: #FF0080;
    --accent-gold: #FFD700;
    --accent-orange: #FF8C00;
    --dark-bg: #0f0c29;
    --card-bg: rgba(25, 20, 50, 0.65);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    /* Utility */
    --success: #00E676;
    --warning: #FFC107;
    --danger: #FF1744;
    
    /* Layout styling */
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--dark-bg);
    background-image: url('bg.png'); /* The magical background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', cursive;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Base Utility Classes */
.hidden { display: none !important; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.highlight { color: var(--accent-gold); font-weight: bold; }

/* Custom Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
}

/* Background overlays */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(15, 12, 41, 0.4) 0%, rgba(15, 12, 41, 0.8) 100%);
    z-index: -1;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 550px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

/* Header & Logo */
header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

.live-status {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Activity Ticker */
.recent-activity {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: var(--border-radius-md);
    animation: fadeIn 0.5s ease-in-out;
}

/* Generator Card */
.generator-card {
    width: 100%;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-gold));
}

.urgency-banner {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(255, 23, 68, 0.05));
    border: 1px solid rgba(255, 23, 68, 0.3);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: bold;
    color: #ff8a80;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.urgency-banner i { margin-right: 5px; }

.form-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideUp 0.4s ease-out;
}

.form-step h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(121, 40, 202, 0.3);
}

/* Platform Selectors */
.platform-selector label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.platform-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    user-select: none;
}

.platform-btn i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.platform-btn.active {
    border-color: var(--secondary-color);
    background: rgba(255, 0, 128, 0.15);
}

.platform-btn.active i { color: var(--secondary-color); }


/* Buttons */
.cta-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s transform;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    text-decoration: none;
}

.cta-button:active { transform: scale(0.98); }

.primary-btn {
    background: linear-gradient(90deg, #4b1bad, var(--primary-color));
    box-shadow: 0 4px 15px rgba(121, 40, 202, 0.4);
}
.primary-btn:hover { background: linear-gradient(90deg, var(--primary-color), #8d36df); }

.pulse-btn {
    background: linear-gradient(90deg, #d3006a, var(--secondary-color));
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
    animation: ctaPulse 2s infinite;
}

.verify-btn {
    background: linear-gradient(90deg, #f08300, var(--accent-orange));
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

/* Button shine effect */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

/* Resources Step */
.resource-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.resource-icon {
    width: 40px; height: 40px;
}

.amount-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.amount-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 20px 10px;
    text-align: center;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.amount-card:hover {
    background: rgba(255, 215, 0, 0.05);
}

.amount-card.active {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: -10px; right: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}
.badge.best { background: var(--secondary-color); }


/* Terminal Simulation */
.terminal-container {
    background: #000;
    border-radius: var(--border-radius-sm);
    border: 1px solid #333;
    overflow: hidden;
    margin-top: 10px;
}

.terminal-header {
    background: #1a1a1a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-header .title {
    margin-left: auto; margin-right: auto;
    color: #888; font-size: 0.8rem; font-family: monospace;
}

.terminal-body {
    padding: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #0f0;
    height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-line { animation: typeLine 0.1s ease-out forwards; }
.terminal-cmd { color: #fff; }
.terminal-err { color: #ff5f56; }
.terminal-warn { color: #ffbd2e; }

/* Custom Scrollbar for terminal */
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: #111; }
.terminal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    min-height: 20px;
}


/* Compact Verification Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 420px; /* Compact width */
    padding: 0;
    overflow: hidden;
}

.modal-header {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.icon-large {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.4));
}

.modal-header h2 { font-size: 1.4rem; color: #fff; }

.modal-body {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-body p { margin-bottom: 12px; text-align: center; }

.verification-steps {
    background: rgba(0,0,0,0.2);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #ddd;
}
.step-item.pending { color: #fff; }

.alert-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--warning);
    padding: 12px 15px;
    font-size: 0.85rem;
    color: #ffe082;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-footer {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes typeLine {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ctaPulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(255, 0, 128, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.bouncy {
    animation: bounceLogo 3s infinite ease-in-out;
}
@keyframes bounceLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pulse { animation: pulseOpacity 1.5s infinite; }
@keyframes pulseOpacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.bounce-in {
    animation: bounceInModal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bounceInModal {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Base Responsive styling */
@media (max-width: 480px) {
    .container { padding: 10px; }
    .generator-card { padding: 20px 15px; }
    .amount-cards { gap: 8px; }
    .amount-card { padding: 15px 5px; font-size: 1.1rem; }
    .logo { max-width: 200px; }
}
