:root {
    /* Colors */
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #6d28d9;
    /* Violet */
    --accent-secondary: #06b6d4;
    /* Cyan */
    --accent-glow: rgba(109, 40, 217, 0.5);

    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dark: #000000;

    --success: #10b981;
    --error: #ef4444;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Effects */
    --glass-blur: blur(20px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(109, 40, 217, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15), transparent 25%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
    /* Reduced from 60px */
}

/* Card Component */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    /* Reduced radius slightly */
    padding: 25px;
    /* Reduced from 40px */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    /* Reduced margin */
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    display: block;
    margin: 0 auto 20px;
    width: 80%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.status-ticker {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: white;
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.input-field:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-muted);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select.input-field {
    appearance: none;
    cursor: pointer;
}

/* Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Console/Terminal */
.terminal-window {
    background: #0d0d0d;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    height: 250px;
    overflow-y: auto;
    display: none;
    /* Hidden by default */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.terminal-line {
    margin-bottom: 6px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.text-green {
    color: var(--success);
}

.text-blue {
    color: #3b82f6;
}

.text-yellow {
    color: #eab308;
}

.text-red {
    color: var(--error);
}

/* Progress Bar */
.progress-container {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Post-Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
    color: var(--text-muted);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox-label {
    font-family: var(--font-mono);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #111;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.modal-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

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

.step-hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s var(--ease-out) forwards;
}

/* Utilities */
.hidden {
    display: none !important;
}

.show {
    display: flex !important;
    opacity: 1 !important;
}

.show-block {
    display: block !important;
}

/* Custom Scrollbar for Terminal */
.terminal-window::-webkit-scrollbar {
    width: 6px;
}

.terminal-window::-webkit-scrollbar-track {
    background: #0d0d0d;
}

.terminal-window::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 480px;
    margin: 30px 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-secondary);
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Live Chat Section */
.live-chat-container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 20px;
    margin-top: 50px;
    /* Added spacing */
    margin-bottom: 30px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.online-count {
    font-size: 12px;
    color: var(--success);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-feed {
    height: 200px;
    overflow-y: auto;
    /* Changed to auto for scrolling */
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    /* Removed mask image to allow full visibility */
    margin-bottom: 15px;
    padding-right: 5px;
}

.chat-feed::-webkit-scrollbar {
    width: 4px;
}

.chat-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.chat-message {
    font-size: 13px;
    line-height: 1.4;
    padding: 5px 0;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-user {
    font-weight: 700;
    margin-right: 5px;
}

.chat-text {
    color: var(--text-muted);
}

/* Chat Input Area */
.chat-input-area {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(109, 40, 217, 0.2);
}

#chat-pseudo {
    width: 30%;
}

#chat-message {
    width: 70%;
    flex-grow: 1;
}

.btn-small {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-small:hover {
    background: #5b21b6;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.3);
}

/* Modal Dark Luxury Customization */
.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 0 50px rgba(109, 40, 217, 0.2);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modal-header-red {
    background: linear-gradient(135deg, var(--accent-primary), #4c1d95);
    color: white;
    padding: 20px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 30px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.terminal-status-bar {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 25px;
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-secondary);
}

.traffic-lights {
    display: flex;
    gap: 6px;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.light.red {
    background: #ef4444;
    box-shadow: 0 0 5px #ef4444;
}

.light.yellow {
    background: #eab308;
    box-shadow: 0 0 5px #eab308;
}

.light.green {
    background: #10b981;
    box-shadow: 0 0 5px #10b981;
}

.modal-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e5e5e5;
}

.btn-verify {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    color: white;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.5);
}

.btn-verify::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

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

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Brand Logo */
.brand-logo {
    max-width: 140px;
    /* Reduced from likely larger default or previous value */
    height: auto;
    margin-bottom: 5px;
    /* Reduced margin */
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.4));
    animation: float 6s ease-in-out infinite;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 15px;
    /* Reduced margin */
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Conversion Elements */
.main-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    /* Slightly reduced */
    line-height: 1.2;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

/* Timer Badge (New Style for inside card) */
.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 15px;
    /* Space inside card */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
    color: white;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(245, 158, 11, 0.5);
}

.btn-gold::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}