:root {
    --primary-color: #ffd700;
    --primary-dark: #ccaa00;
    --bg-dark: #0f0119;
    --glass-bg: rgba(20, 5, 35, 0.85);
    --glass-border: rgba(255, 215, 0, 0.4);
    --text-main: #ffffff;
    --text-muted: #a89fba;
    --danger: #ff3366;
    --success: #00e676;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.png') no-repeat center center/cover;
    z-index: -2;
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 1, 25, 0.6) 0%, rgba(15, 1, 25, 0.95) 100%);
    z-index: -1;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.main-container {
    width: 90%;
    max-width: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.05);
    margin: 40px auto;
    position: relative;
    z-index: 10;
}

/* Logo Area */
.logo-area {
    text-align: center;
    margin-bottom: 25px;
}

.main-logo {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
    border-radius: 30%;
    border: 2px solid var(--primary-color);
    padding: 3px;
    background: rgba(255, 215, 0, 0.1);
    margin-bottom: 10px;
    animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); filter: drop-shadow(0 5px 25px rgba(255, 215, 0, 0.4)); }
    100% { transform: scale(1); }
}

.logo-area p {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
}

/* Steps */
.step-container {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

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

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

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* Platforms */
.platform-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
}

.platform {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform i {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.platform.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.2);
}

.platform.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Buttons */
.btn-primary, .btn-verify {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to bottom, #ffe066, #ffb300);
    border: none;
    border-radius: 10px;
    color: #332200;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover, .btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.6);
    background: linear-gradient(to bottom, #ffea80, #ffc000);
}

.btn-primary:active, .btn-verify:active {
    transform: translateY(1px);
}

.btn-verify {
    background: linear-gradient(to bottom, #ff6b6b, #e60000);
    color: white;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.4);
}

.btn-verify:hover {
    background: linear-gradient(to bottom, #ff8080, #ff1a1a);
    box-shadow: 0 8px 20px rgba(230, 0, 0, 0.6);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 215, 0, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Resource Selector */
.resource-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.resource-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.resource-card.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.coin-icon {
    display: flex;
    margin-right: 15px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.coin-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin-right: -10px; /* Overlap effect if there are multiple coins */
}

.coin-icon img:last-child {
    margin-right: 0;
}

.amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Terminal & Progress */
.terminal {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    height: 120px;
    overflow-y: hidden;
    font-family: monospace;
    font-size: 0.85rem;
    color: #00ff00;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.terminal-line {
    margin-bottom: 5px;
    opacity: 0.8;
}

.progress-container {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transition: width 0.2s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Verification */
.warning-icon {
    font-size: 4rem;
    color: var(--danger);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

.verification-title {
    color: var(--danger);
    border-bottom-color: rgba(255, 51, 102, 0.3);
}

.verification-text {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #eee;
}

.highlight {
    color: var(--primary-color);
    font-weight: 800;
}

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

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

/* Activity Ticker */
.activity-ticker {
    position: fixed;
    top: 20px;
    right: -300px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px 0 0 5px;
    padding: 10px 15px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 100;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.activity-ticker.show {
    right: 0;
}

.ticker-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.ticker-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.ticker-user {
    font-weight: 700;
}

.ticker-amount {
    color: var(--primary-color);
    font-weight: 700;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
    transform: translateY(350px);
    transition: transform 0.4s ease;
}

.chat-widget.open {
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(to right, #2a0845, #6441a5);
    padding: 12px 15px;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-count {
    color: var(--success);
}

.chat-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.message {
    font-size: 0.85rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.msg-user {
    font-weight: 700;
    color: var(--primary-color);
}

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

.msg-content {
    background: rgba(0,0,0,0.4);
    padding: 8px 12px;
    border-radius: 0 10px 10px 10px;
    display: inline-block;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    color: #fff;
    font-family: var(--font-body);
}

.chat-input-area input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.chat-input-area button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0 10px 0 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
    .main-container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .logo-area {
        margin-bottom: 20px;
    }
    
    .main-logo {
        max-width: 85px;
    }
    
    .chat-widget {
        width: 100%;
        right: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .activity-ticker {
        top: 10px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}
