/*
 * Gemini MBQ Premium Dark Theme - UI/UX Pro Max
 * Responsive, Glassmorphism, Micro-interactions
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-main: #0b0c10;
    --bg-card: rgba(22, 26, 37, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(24, 161, 95, 0.5);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --primary-gradient: linear-gradient(135deg, #18a15f 0%, #10b981 100%);
    --primary-color: #18a15f;
    --accent-color: #10b981;
    
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --error-color: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --warning-color: #f59e0b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(24, 161, 95, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

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

.header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
}

/* Glassmorphism Card Box */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

/* Step Wizard Indicator */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.steps-line {
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.steps-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.step-label {
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-align: center;
}

/* Active and Completed States */
.step-node.active .step-circle {
    background: #1e1b4b;
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.step-node.active .step-label {
    color: var(--primary-color);
}

.step-node.completed .step-circle {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.step-node.completed .step-label {
    color: var(--accent-color);
}

/* Slides Content Container */
.slides-container {
    position: relative;
}

.slide {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.slide.active {
    display: block;
}

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

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group label svg {
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

/* Password Eye Toggle Icon */
.password-toggle-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.form-control.code-input {
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-align: center;
    font-size: 1.1rem;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.help-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Buttons and Actions */
.btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Section (Step 3) */
.progress-container {
    text-align: center;
    padding: 10px 0;
}

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

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.05);
}

.status-badge.queued { color: var(--text-secondary); }
.status-badge.processing { color: var(--primary-color); background: rgba(59, 130, 246, 0.1); }
.status-badge.completed { color: var(--success-color); background: var(--success-bg); }
.status-badge.failed { color: var(--error-color); background: var(--error-bg); }

.percentage {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.progress-bar-fill.active {
    animation: shimmer 1.5s infinite linear;
    background-size: 200% 100%;
    background-image: linear-gradient(
        90deg, 
        #18a15f 0%, 
        #10b981 50%, 
        #18a15f 100%
    );
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.status-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Result Section */
.result-box {
    margin-top: 30px;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.result-box.success {
    display: block;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-box.error {
    display: block;
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.result-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.result-box.success .result-title { color: var(--success-color); }
.result-box.error .result-title { color: var(--error-color); }

.result-content {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Alert Notification toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1f2937;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

/* Footer credits */
.footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Responsive Media Queries (Mobile-first) */
@media (max-width: 640px) {
    body {
        padding: 15px 10px;
    }
    
    .card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .header h1 {
        font-size: 1.8rem;
    }
    
    .steps-indicator {
        margin-bottom: 30px;
    }
    
    .step-node {
        width: 65px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.65rem;
        margin-top: 8px;
    }
}

/* Activation Notice Box Styling - UI/UX Pro Max */
.activation-notice-box {
    margin-top: 25px;
    background: rgba(245, 158, 11, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.activation-notice-box:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.05);
}

.notice-header {
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    padding-bottom: 10px;
}

.notice-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.notice-header svg {
    flex-shrink: 0;
}

.notice-intro {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.notice-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.notice-step-item {
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 15px;
}

.notice-step-item h5 {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-link-wrapper {
    margin-bottom: 10px;
}

.step-btn-link {
    display: inline-flex;
    align-items: center;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.step-btn-link:hover {
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border-color: #34d399;
    transform: translateY(-1px);
}

.step-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.step-desc:last-child {
    margin-bottom: 0;
}

.highlight-text {
    color: #fca5a5;
    font-weight: 500;
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.step-sub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    padding-left: 5px;
}

.step-sub-list li {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
    position: relative;
    padding-left: 14px;
}

.step-sub-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.step-sub-list li strong {
    color: var(--text-primary);
}

.step-sub-title {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin: 12px 0 6px 0;
}

.text-muted-style {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
}

.notice-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    color: #10b981;
    font-weight: 500;
}

@media (max-width: 480px) {
    .activation-notice-box {
        padding: 16px;
    }
    
    .notice-header h3 {
        font-size: 0.95rem;
    }
    
    .notice-step-item {
        padding-left: 10px;
    }
    
    .notice-step-item h5 {
        font-size: 0.88rem;
    }
    
    .step-btn-link {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

.result-link {
    color: #10b981 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    word-break: break-all;
    transition: var(--transition-smooth);
}

.result-link:hover {
    color: #34d399 !important;
}
