/* ════════════════════════════════════════════════════════════════════════════════
   🤖 USER ADD BOT WIZARD CSS - ULTRA MODERN GLOW SYSTEM
   ════════════════════════════════════════════════════════════════════════════════ */

.uab-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    animation: uabFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ─── HEADER AREA ─── */
.uab-header {
    margin-bottom: 32px;
}
.uab-back-to-dashboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    margin-bottom: 20px;
}
.uab-back-to-dashboard:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}
.uab-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.uab-subtitle {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* ─── STEPPER HEADER ─── */
.uab-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 11, 18, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 20px 40px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}
.uab-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    opacity: 0.4;
    transition: all 0.3s ease;
}
.uab-step-indicator.active {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}
.uab-step-indicator.completed {
    opacity: 0.8;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.uab-step-indicator.active .step-num {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px var(--accent-purple-glow);
}
.uab-step-indicator.completed .step-num {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: #fff;
}
.uab-step-indicator.completed .step-num::after {
    content: "✓";
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 900;
}
.uab-step-indicator.completed .step-num {
    font-size: 0; /* hide number */
}
.step-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.uab-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 20px;
    margin-top: -20px;
    border-radius: 1px;
}

/* ─── CONTENT BOX ─── */
.uab-content-box {
    background: rgba(14, 16, 26, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    min-height: 480px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.uab-step-content {
    display: none;
    animation: uabSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.uab-step-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

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

.uab-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.uab-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* ─── INFO PANEL ─── */
.uab-info-panel h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.uab-badge-step {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.uab-badge-step.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
}
.uab-explain-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14.5px;
}
.uab-instruction-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.uab-inst-item {
    display: flex;
    gap: 16px;
}
.uab-inst-num {
    width: 28px;
    height: 28px;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.uab-inst-item.warning .uab-inst-num {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-amber);
}
.uab-inst-item.warning {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 16px;
    border-radius: 16px;
}
.uab-inst-item strong {
    color: #fff;
    font-size: 14.5px;
    display: block;
    margin-bottom: 4px;
}
.uab-inst-item p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.uab-sublist {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.uab-sublist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #fff;
    font-weight: 600;
}
.uab-sublist li::before {
    content: "➔";
    color: var(--accent-amber);
    font-size: 10px;
}
.red-text {
    color: var(--accent-rose) !important;
    font-weight: 700;
    font-size: 12px !important;
    margin-top: 6px;
}

/* ─── VISUAL PANEL / MEDIA ─── */
.uab-image-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.uab-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.uab-image-wrapper img:hover {
    transform: scale(1.01);
}
.uab-image-caption {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.uab-image-caption i {
    color: var(--accent-cyan);
}
.uab-image-caption.success i {
    color: var(--accent-emerald);
}

/* ─── BUTTONS ─── */
.uab-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-display);
}
.neon-cyan-btn {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #22d3ee;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.05);
}
.neon-cyan-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
}

/* ─── ACTION ROW ─── */
.uab-action-row {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.uab-nav-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.prev-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.prev-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.next-btn {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.next-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}
.neon-purple-btn {
    background: var(--accent-purple);
    border: none;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.neon-purple-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}
.neon-emerald-btn {
    background: var(--accent-emerald);
    border: none;
    color: #fff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.neon-emerald-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}
.uab-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ─── FORM & CHECKLIST (STEP 3) ─── */
.uab-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.uab-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.uab-input-group label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.uab-input-group label i {
    color: var(--accent-purple);
}
.uab-input-group input[type="text"],
.uab-token-input-wrapper input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    height: 48px;
    padding: 0 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
    transition: all 0.25s ease;
}
.uab-input-group input[type="text"]:focus,
.uab-token-input-wrapper input:focus {
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
    outline: none;
}
.uab-token-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.uab-token-input-wrapper input {
    padding-right: 48px;
}
.toggle-token-visibility {
    position: absolute;
    right: 4px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.toggle-token-visibility:hover {
    color: #fff;
}
.uab-input-help {
    font-size: 11px;
    color: var(--text-muted);
}
.uab-error-box {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #f87171;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shakeErr 0.4s ease forwards;
}
@keyframes shakeErr {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.uab-checklist-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.uab-checklist-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.uab-checklist-card h3 i {
    color: var(--accent-cyan);
}
.uab-checklist-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.uab-checklist-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.uab-checklist-card li.active {
    color: #fff;
}
.uab-checklist-card li i {
    color: rgba(255, 255, 255, 0.1);
}
.uab-checklist-card li.active i:not(.icon-pending) {
    color: var(--accent-emerald);
}
.uab-checklist-card li i.icon-pending {
    color: var(--accent-purple);
}

/* ─── SUCCESS & INVITE (STEP 4) ─── */
.text-center {
    text-align: center;
}
.uab-success-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}
.uab-invite-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 20px;
    margin: 32px 0 0 0;
}
.uab-invite-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.invite-glow-btn {
    background: linear-gradient(135deg, var(--accent-emerald), #06b6d4);
    border: none;
    color: #fff;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
    padding: 14px 32px;
}
.invite-glow-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.4);
}
.uab-invite-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ─── RESPONSIVE RULES ─── */
@media (max-width: 900px) {
    .uab-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .uab-stepper {
        padding: 20px;
    }
    .step-name {
        display: none; /* Hide step names on mobile to save space */
    }
    .uab-step-line {
        margin-top: 0;
    }
    .uab-content-box {
        padding: 24px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════════
   ☀️ LIGHT MODE OVERRIDES
   ════════════════════════════════════════════════════════════════════════════════ */

body.light-mode .uab-back-to-dashboard {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-muted) !important;
}
body.light-mode .uab-back-to-dashboard:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-main) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .uab-title {
    color: var(--text-main) !important;
}

body.light-mode .uab-stepper {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .step-num {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-muted) !important;
}
body.light-mode .uab-step-indicator.active .step-num {
    background: var(--accent-purple) !important;
    border-color: var(--accent-purple) !important;
    color: #fff !important;
}
body.light-mode .uab-step-indicator.completed .step-num {
    background: var(--accent-emerald) !important;
    border-color: var(--accent-emerald) !important;
    color: #fff !important;
}
body.light-mode .step-name {
    color: var(--text-muted) !important;
}
body.light-mode .uab-step-indicator.active .step-name {
    color: var(--accent-purple) !important;
    font-weight: 800 !important;
}
body.light-mode .uab-step-line {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .uab-content-box {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .uab-info-panel h2 {
    color: var(--text-main) !important;
}
body.light-mode .uab-explain-text {
    color: rgba(0, 0, 0, 0.65) !important;
}

body.light-mode .uab-inst-item strong {
    color: var(--text-main) !important;
}
body.light-mode .uab-inst-item p {
    color: var(--text-muted) !important;
}
body.light-mode .uab-inst-item.warning {
    background: rgba(245, 158, 11, 0.06) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}
body.light-mode .uab-inst-item.warning p {
    color: rgba(0, 0, 0, 0.65) !important;
}

body.light-mode .uab-sublist li {
    color: var(--text-main) !important;
}

body.light-mode .uab-input-group label {
    color: var(--text-muted) !important;
}
body.light-mode .uab-input-group input[type="text"],
body.light-mode .uab-token-input-wrapper input {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-main) !important;
}
body.light-mode .uab-input-group input[type="text"]:focus,
body.light-mode .uab-token-input-wrapper input:focus {
    border-color: var(--accent-purple) !important;
    background: #fff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1) !important;
}
body.light-mode .toggle-token-visibility {
    color: var(--text-muted) !important;
}
body.light-mode .toggle-token-visibility:hover {
    color: var(--text-main) !important;
}

body.light-mode .uab-checklist-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .uab-checklist-card h3 {
    color: var(--text-main) !important;
}
body.light-mode .uab-checklist-card li.active {
    color: var(--text-main) !important;
}

body.light-mode .uab-invite-section {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .uab-invite-title {
    color: var(--text-main) !important;
}
body.light-mode .uab-image-wrapper {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
}
body.light-mode .uab-image-wrapper img {
    border-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .uab-image-caption {
    color: var(--text-muted) !important;
}

body.light-mode .prev-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-muted) !important;
}
body.light-mode .prev-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-main) !important;
}

