* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1419;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-bet {
    color: #00ffa3;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: #1a1f26;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2f36;
    max-width: 480px;
    width: 100%;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    color: #00ffa3;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00ffa3;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 15px;
}

.btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary {
    background: #00ffa3;
    color: #0f1419;
    font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
    background: #00e893;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 255, 163, 0.3);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #2a2f36;
    color: #666;
}

.input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #2a2f36;
    border-radius: 8px;
    background: #0f1419;
    color: white;
    font-size: 15px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.input:focus {
    outline: none;
    border-color: #00ffa3;
    background: #1a1f26;
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.1);
}

.input::placeholder {
    color: #666;
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.status.show {
    display: block;
}

.status.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.status.success {
    background: rgba(0, 255, 135, 0.2);
    color: #00ff87;
    border: 1px solid rgba(0, 255, 135, 0.3);
}

.status.info {
    background: rgba(96, 239, 255, 0.2);
    color: #60efff;
    border: 1px solid rgba(96, 239, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 12px 16px;
    background: rgba(0, 255, 163, 0.08);
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 255, 163, 0.15);
}

.user-info .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 0 2px rgba(0,255,163,0.15);
}

.user-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.user-info span {
    color: #00ffa3;
    font-weight: 600;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.instruction {
    color: #9ca3af;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 14px;
}

.verification-box {
    background: #0f1419;
    border: 1px solid #2a2f36;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.verification-box code {
    flex: 1;
    color: #00ffa3;
    font-size: 15px;
    /* Better wrapping for long phrases */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-copy {
    padding: 10px 20px;
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.3);
    border-radius: 6px;
    color: #00ffa3;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(0, 255, 163, 0.15);
    border-color: #00ffa3;
    transform: translateY(-1px);
}

.warning {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 20px 0;
    color: #fca5a5;
    line-height: 1.5;
    font-size: 14px;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
}

.warning::before {
    content: '⚠';
    font-size: 18px;
    color: #ef4444;
    line-height: 1;
    margin-top: 2px;
}

.warning-title {
    grid-column: 2 / -1;
    color: #ef4444;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.warning-text {
    grid-column: 2 / -1;
    color: #fca5a5;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: #0f1419;
    border: 2px solid #2a2f36;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:hover {
    border-color: #00ffa3;
}

.checkbox-container input[type="checkbox"]:checked {
    background: #00ffa3;
    border-color: #00ffa3;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f1419;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-container span {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
}

.link {
    color: #00ffa3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link:hover {
    color: #00e893;
    text-decoration: underline;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #00ffa3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #0f1419;
    font-weight: bold;
}

#success {
    text-align: center;
}

#success h2 {
    color: #00ffa3;
    margin-bottom: 15px;
}

#success p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 15px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00ffa3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    .verification-box {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }
}
