:root {
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.6);
    --secondary: #38b000;
    --bg-dark: #0a0f18;
    --bg-panel: rgba(20, 26, 40, 0.7);
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --accent: #ffc107;
    --error: #ef233c;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(rgba(10, 15, 24, 0.65), rgba(10, 15, 24, 0.8)), url('https://play-lh.googleusercontent.com/CuQgly-b8bQk_gSE8Zer_pb4EU8MnWozQRr-H2HOUj_6D47Y9HkxZ-RLzYV3wZOVTeE=w526-h296-rw');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Magical Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(157, 78, 221, 0.15);
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(56, 176, 0, 0.15);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 193, 7, 0.1);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 10px;
    animation: slideDown 0.8s ease-out;
}

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

.logo {
    display: inline-block;
}

.logo-img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Main Box */
.generator-box {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.step-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #fff;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

input[type="text"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 15px 15px 15px 45px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Platform Select */
.platform-select {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.platform-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.platform-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Buttons */
.btn-primary, .btn-verification {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7b2cbf);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-verification {
    background: linear-gradient(135deg, var(--secondary), #2b9348);
    box-shadow: 0 5px 15px rgba(56, 176, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 8px 25px rgba(56, 176, 0, 0.6); }
    100% { transform: scale(1); }
}

/* Sliders */
.resource-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.resource-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border: 3px solid var(--primary);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Console & Progress */
.console-box {
    background: #000;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #0f0;
    height: 120px;
    overflow-y: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.console-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #000);
}

.log-line {
    margin-bottom: 5px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

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

/* Verification Section */
.verification-section {
    text-align: center;
}

.warning-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.timer-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#timer {
    color: var(--error);
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Live Activity Chat */
.live-activity {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.chat-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.online-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-messages {
    height: 150px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hide scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

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

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.msg-content {
    flex: 1;
}

.msg-name {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.msg-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.msg-text span {
    color: var(--accent);
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .generator-box {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}
