:root {
    --primary: #9d4edd;
    --primary-dark: #5a189a;
    --accent: #ff007f;
    --gold: #ffcc00;
    --bg-dark: #100b20;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(90, 24, 154, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 10;
}

/* Header */
.logo-area {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease-out;
}

.logo-area h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

.logo-area .highlight {
    color: var(--gold);
    background: linear-gradient(to bottom, #ffe066, #ffcc00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Card */
.generator-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-badge {
    background: var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 10px var(--primary);
}

.step-header h2 {
    font-size: 1.4rem;
}

/* Step 1: Connect */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

.platform-select {
    margin-bottom: 30px;
}

.platforms {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.platform-btn {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.platform-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
}

/* Step 2: Resources */
.resource-row {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.resource-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.gems {
    background: rgba(255, 0, 127, 0.2);
    color: var(--accent);
}

.coins {
    background: rgba(255, 204, 0, 0.2);
    color: var(--gold);
}

.resource-info {
    flex: 1;
}

.resource-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.resource-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

.resource-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.value-display {
    font-weight: 700;
    color: var(--gold);
    text-align: right;
    font-size: 0.9rem;
}

/* Step 3: Processing */
.processing-container {
    text-align: center;
    padding: 20px 0;
}

.spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
    position: relative;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.blinking-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.console-log {
    background: #000;
    border-radius: 8px;
    padding: 10px;
    height: 120px;
    overflow: hidden;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #0f0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-line {
    display: block;
    margin-bottom: 4px;
}

.progress-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s;
    box-shadow: 0 0 10px var(--primary);
}

/* Step 4: Verification */
.verify-container {
    text-align: center;
}

.lock-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.verify-container h2 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.verify-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.verification-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px dashed var(--glass-border);
}

.status.pending {
    color: #ff9900;
}

.verify-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.4);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 114, 255, 0.5);
}

/* Buttons common */
.action-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.6);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .logo-area h1 {
        font-size: 2rem;
    }

    .container {
        padding: 15px;
    }
}

/* SEO Text Block (Inside Card) */
.seo-text-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.seo-text-block h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.seo-text-block p {
    font-size: 0.8em;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.seo-text-block strong {
    color: var(--primary);
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    margin: 0 5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Timer */
.timer-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}