/* ============================================
   Wizard UI - Glassmorphism Stepper
   ============================================ */

/* ============================================
   Top Bar (Mini Header)
   ============================================ */
.wizard-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(20, 21, 31, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.wizard-topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.wizard-topbar-logo i {
    font-size: 1.3rem;
}

.wizard-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-topbar-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.wizard-topbar-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--accent);
}

.wizard-topbar-btn.btn-refresh {
    background: rgba(41, 128, 185, 0.2);
    border-color: rgba(41, 128, 185, 0.3);
    color: #3498db;
}

.wizard-topbar-btn.btn-refresh:hover {
    background: rgba(41, 128, 185, 0.35);
}

/* ============================================
   Canvas Container (Full Width)
   ============================================ */
.wizard-canvas-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    position: relative;
}

.wizard-canvas-container canvas {
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Wizard Overlay Bar (Steps)
   ============================================ */
.wizard-overlay {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    background: rgba(20, 21, 31, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 0;
    direction: rtl;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.08);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    min-width: 70px;
    transition: all 0.3s ease;
}

.wizard-step:hover .wizard-step-circle {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.wizard-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.wizard-step.pending .wizard-step-circle {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.3);
}

.wizard-step.active .wizard-step-circle {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: 2px solid var(--accent);
    color: #0a0a0f;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: stepPulse 2s ease-in-out infinite;
}

.wizard-step.completed .wizard-step-circle {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: 2px solid #27ae60;
    color: white;
    box-shadow: 0 0 12px rgba(39, 174, 96, 0.4);
}

@keyframes stepPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
    }
}

.wizard-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.wizard-step.pending .wizard-step-label {
    color: rgba(255, 255, 255, 0.3);
}

.wizard-step.active .wizard-step-label {
    color: var(--accent);
}

.wizard-step.completed .wizard-step-label {
    color: #2ecc71;
}

.wizard-connector {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 4px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.wizard-connector-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-connector.filled .wizard-connector-fill {
    width: 100%;
}

/* ============================================
   Wizard Content Card (Floating - Default)
   ============================================ */
.wizard-content {
    position: fixed;
    top: calc(50% - 120px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 750;
    background: rgba(20, 21, 31, 0.8);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 24px;
    min-width: 340px;
    max-width: 450px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.05);
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Normal steps (1-3, 5) → top center */
.wizard-content.step-active {
    top: 160px;
}

/* Premium Gloss Reflection */
.wizard-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 60%,
            transparent 100%);
    transform: rotate(-45deg);
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 10;
}

.wizard-content:hover::after {
    opacity: 1;
    left: 100%;
    top: 100%;
}

/* Entrance Stagger Helper */
.stagger-reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: revealIn 0.5s ease forwards;
}

@keyframes revealIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Members Step → WIDE RIGHT SIDE PANEL
   ============================================ */
.wizard-content.step-members {
    top: 56px;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin: 0;
    width: 780px;
    max-width: 780px;
    min-width: auto;
    height: calc(100vh - 56px - 36px);
    border-radius: 0;
    border-right: none;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    background: rgba(12, 13, 20, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    padding: 0;
    overflow: hidden;
}

.wizard-content.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Two-Column Layout (Members Step)
   ============================================ */
.wizard-members-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    direction: rtl;
}

/* RIGHT column - Controls */
.wizard-members-col-right {
    width: 340px;
    min-width: 340px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(20, 21, 31, 0.4);
}

/* LEFT column - Room Members */
.wizard-members-col-left {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Column headers */
.wizard-col-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    flex-shrink: 0;
}

.wizard-col-header i {
    font-size: 1.15rem;
}

.wizard-col-header .header-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: auto;
    font-weight: 600;
}

/* ============================================
   Right Column - Form Elements
   ============================================ */
.wizard-content-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-content-title i {
    font-size: 1.3rem;
}

.wizard-content .modern-select,
.wizard-content .modern-input {
    width: 100%;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    direction: rtl;
}

.wizard-content .modern-select:focus,
.modern-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Fix repeating arrow in focus */
.wizard-content .modern-select option {
    background: #1a1a2e;
    color: #fff;
}

.wizard-content label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.wizard-input-group {
    margin-bottom: 12px;
}

/* File Upload Area */
.wizard-upload-area {
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(212, 175, 55, 0.04);
}

.wizard-upload-area:hover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
}

.wizard-upload-area i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.wizard-upload-area span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.wizard-upload-area.has-image {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
}

.wizard-upload-area.has-image i {
    color: #2ecc71;
}

/* Search Row */
.wizard-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wizard-search-row input {
    flex: 1;
}

.wizard-search-row button {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    border: none;
    border-radius: 10px;
    color: #0a0a0f;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.wizard-search-row button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Search Results */
.wizard-search-results {
    max-height: 150px;
    overflow-y: auto;
}

/* Members list (added members) */
.wizard-members-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 8px;
}

/* Section divider title */
.wizard-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 14px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ============================================
   Wizard Navigation Buttons
   ============================================ */
.wizard-nav {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* In side panel, nav sticks to bottom */
.wizard-members-col-right .wizard-nav {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wizard-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.wizard-btn-next {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #0a0a0f;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.wizard-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.wizard-btn-prev {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.wizard-btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.wizard-btn-start {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #0a0a0f;
    font-size: 1.1rem;
    padding: 14px 36px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    width: 100%;
    justify-content: center;
}

.wizard-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

.wizard-btn-send {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.wizard-btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* ============================================
   Welcome Step Content
   ============================================ */
.wizard-welcome {
    text-align: center;
    padding: 10px 0;
}

.wizard-welcome-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.wizard-welcome h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 6px;
}

.wizard-welcome p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================
   Final Step - Action Buttons
   ============================================ */
.wizard-final-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wizard-final-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.wizard-final-btn.btn-copy-send {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.wizard-final-btn.btn-copy-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.wizard-final-btn.btn-save {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.wizard-final-btn.btn-save:hover {
    background: rgba(255, 255, 255, 0.15);
}

.wizard-final-btn.btn-copy-template {
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #818cf8;
}

.wizard-final-btn.btn-copy-template:hover {
    background: rgba(88, 101, 242, 0.35);
}

/* ============================================
   Toggle to show/hide content
   ============================================ */
.wizard-toggle-content {
    position: fixed;
    bottom: 46px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    background: rgba(20, 21, 31, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    padding: 8px 20px;
    color: var(--text-muted);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wizard-toggle-content:hover {
    background: rgba(20, 21, 31, 0.9);
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   DateTime Row
   ============================================ */
.wizard-datetime-row {
    display: flex;
    gap: 10px;
}

.wizard-datetime-row .wizard-input-group {
    flex: 1;
}

/* ============================================
   Room Members Fetch Button
   ============================================ */
.wizard-room-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    color: var(--accent);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.wizard-room-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

.wizard-room-btn .room-btn-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 8px;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Room Members List (Left Column)
   ============================================ */
.wizard-room-list {
    flex: 1;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px;
}

.wizard-room-stats {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

/* Each room member - TWO LINE layout */
.wizard-room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    direction: rtl;
    gap: 10px;
}

.wizard-room-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Name + Rank stacked vertically */
.wizard-room-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.wizard-room-item-name {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-room-item-rank {
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.7);
    font-weight: 600;
}

/* Compact add button (circle) */
.wizard-room-item-add {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #2ecc71;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.wizard-room-item-add:hover {
    background: rgba(39, 174, 96, 0.3);
    transform: scale(1.1);
}

.wizard-room-item-add.added {
    background: rgba(39, 174, 96, 0.5);
    border-color: #2ecc71;
    color: white;
}

/* Empty state for room list */
.wizard-room-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 12px;
    text-align: center;
    padding: 40px 20px;
}

.wizard-room-empty i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.wizard-room-empty span {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.wizard-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(20, 21, 31, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Cairo', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
}

.wizard-footer i {
    font-size: 0.85rem;
    color: rgba(88, 101, 242, 0.6);
}

.wizard-footer-sep {
    opacity: 0.3;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .wizard-content.step-members {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .wizard-members-layout {
        flex-direction: column;
    }

    .wizard-members-col-right {
        width: 100%;
        min-width: auto;
        border-left: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    }

    .wizard-members-col-left {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .wizard-overlay {
        top: 55px;
        padding: 12px 16px;
        border-radius: 14px;
        width: calc(100% - 20px);
    }

    .wizard-step {
        min-width: 45px;
    }

    .wizard-step-label {
        font-size: 0.55rem;
    }

    .wizard-connector {
        width: 20px;
    }

    .wizard-content {
        min-width: auto;
        width: calc(100% - 30px);
        top: 130px;
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */
.wizard-room-list::-webkit-scrollbar,
.wizard-members-list::-webkit-scrollbar,
.wizard-search-results::-webkit-scrollbar {
    width: 5px;
}

.wizard-room-list::-webkit-scrollbar-track,
.wizard-members-list::-webkit-scrollbar-track,
.wizard-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.wizard-room-list::-webkit-scrollbar-thumb,
.wizard-members-list::-webkit-scrollbar-thumb,
.wizard-search-results::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.wizard-room-list::-webkit-scrollbar-thumb:hover,
.wizard-members-list::-webkit-scrollbar-thumb:hover,
.wizard-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* ============================================
   ADD BUTTON PULSE ANIMATION
   ============================================ */
.wizard-room-item-add.pulse-add {
    animation: addPulse 0.5s ease;
}

@keyframes addPulse {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.35);
    }

    50% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.wizard-room-item-add.added {
    animation: addedBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes addedBounce {
    0% {
        transform: scale(0.5) rotate(-90deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Ripple on click */
.wizard-room-item-add::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.4);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.wizard-room-item-add.ripple::after {
    animation: btnRipple 0.6s ease-out;
}

@keyframes btnRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.wizard-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.wizard-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.wizard-skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.wizard-skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.wizard-skeleton-line.short {
    width: 60%;
}

.wizard-skeleton-line.medium {
    width: 85%;
}

.wizard-skeleton-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   ROOM MEMBER STAGGER ENTRANCE
   ============================================ */
.wizard-room-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: memberSlideIn 0.35s ease forwards;
}

.wizard-room-item:nth-child(1) {
    animation-delay: 0.03s;
}

.wizard-room-item:nth-child(2) {
    animation-delay: 0.06s;
}

.wizard-room-item:nth-child(3) {
    animation-delay: 0.09s;
}

.wizard-room-item:nth-child(4) {
    animation-delay: 0.12s;
}

.wizard-room-item:nth-child(5) {
    animation-delay: 0.15s;
}

.wizard-room-item:nth-child(6) {
    animation-delay: 0.18s;
}

.wizard-room-item:nth-child(7) {
    animation-delay: 0.21s;
}

.wizard-room-item:nth-child(8) {
    animation-delay: 0.24s;
}

.wizard-room-item:nth-child(9) {
    animation-delay: 0.27s;
}

.wizard-room-item:nth-child(10) {
    animation-delay: 0.30s;
}

.wizard-room-item:nth-child(n+11) {
    animation-delay: 0.33s;
}

@keyframes memberSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   SKIPPED STEP INDICATOR
   ============================================ */
.wizard-step.skipped .wizard-step-circle {
    background: rgba(100, 100, 120, 0.3) !important;
    border-color: rgba(100, 100, 120, 0.3) !important;
    opacity: 0.4;
}

.wizard-step.skipped .wizard-step-label {
    text-decoration: line-through;
    opacity: 0.35;
}

.wizard-step.skipped .wizard-step-circle i {
    font-size: 0.7rem;
}

/* ============================================
   STEPPER CONNECTOR GRADUAL FILL
   ============================================ */
.wizard-connector-fill {
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ============================================
   HOVER GLOW EFFECTS
   ============================================ */
.wizard-btn {
    position: relative;
    overflow: hidden;
}

.wizard-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.wizard-btn:hover::before {
    width: 200%;
    height: 200%;
}

.wizard-room-btn {
    position: relative;
    overflow: hidden;
}

.wizard-room-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.wizard-room-btn:hover::before {
    width: 250%;
    height: 250%;
}

/* Room item hover lift */
.wizard-room-item:hover {
    transform: translateX(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   IMPROVED PARTICIPANT CARDS (pList)
   ============================================ */
.p-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    animation: pItemSlideIn 0.3s ease forwards;
    direction: rtl;
}

.p-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.15);
    transform: translateX(-3px);
}

@keyframes pItemSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.p-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.p-rank {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    color: var(--accent-light, #f0d060);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.p-name {
    font-size: 0.82rem;
    color: var(--text, #e8e8e8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.p-remove:hover {
    background: rgba(231, 76, 60, 0.35);
    transform: scale(1.15) rotate(90deg);
    color: #ff6b6b;
}

.participants-empty {
    text-align: center;
    color: var(--text-muted, #888);
    padding: 20px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   WELCOME STEP ENHANCEMENTS
   ============================================ */
.wizard-welcome {
    position: relative;
    overflow: hidden;
}

.wizard-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    animation: welcomeGlow 4s ease-in-out infinite;
}

@keyframes welcomeGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.wizard-welcome-icon {
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.wizard-welcome-icon::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.2);
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Typing effect for subtitle */
.wizard-welcome p {
    overflow: hidden;
    animation: fadeTypeIn 0.8s ease 0.3s both;
}

@keyframes fadeTypeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-btn-start {
    animation: startBtnAppear 0.5s ease 0.6s both;
}

@keyframes startBtnAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   SEND STEP CELEBRATION
   ============================================ */
.wizard-final-actions {
    position: relative;
}

.wizard-content-title .celebrate-icon {
    display: inline-block;
    animation: celebrateShake 0.8s ease;
}

@keyframes celebrateShake {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Gold confetti particles */
.wizard-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.confetti-piece {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    animation: confettiFall 2.5s ease-in forwards;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(200px) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.wizard-count-animate {
    display: inline-block;
    animation: countBump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countBump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
        color: var(--accent-light, #f0d060);
    }

    100% {
        transform: scale(1);
    }
}

/* ============================================
   ROOM STATS BAR IMPROVEMENT
   ============================================ */
.wizard-room-stats {
    position: relative;
    overflow: hidden;
}

.wizard-room-stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* ============================================
   SEND STEP SUMMARY CARD
   ============================================ */
.wizard-send-summary {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: var(--text-muted, #888);
    line-height: 2;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: summaryFadeIn 0.4s ease 0.2s both;
}

@keyframes summaryFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-send-summary div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-send-summary i {
    color: var(--accent, #d4af37);
    width: 18px;
    text-align: center;
}

.wizard-send-summary strong {
    color: var(--text, #e8e8e8);
}

/* Final action buttons improved */
.wizard-final-btn {
    position: relative;
    overflow: hidden;
}

.wizard-final-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.wizard-final-btn:hover::after {
    width: 200%;
    height: 200%;
}

/* ============================================
   PHASE 2: WIZARD STEPPER TOOLTIPS
   ============================================ */
.wizard-step {
    position: relative;
}

.wizard-step::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(10, 10, 15, 0.95);
    color: var(--accent, #d4af37);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.wizard-step::before {
    content: '';
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(10, 10, 15, 0.95);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 999;
}

.wizard-step:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wizard-step:hover::before {
    opacity: 1;
}

/* ============================================
   STEP PROGRESS COUNTER (3/6)
   ============================================ */
.wizard-step-counter {
    position: fixed;
    top: 60px;
    left: 24px;
    z-index: 800;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted, #888);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 21, 31, 0.7);
    backdrop-filter: blur(15px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-step-counter .counter-current {
    color: var(--accent, #d4af37);
    font-size: 1.1rem;
}

.wizard-step-counter .counter-sep {
    opacity: 0.4;
}

/* ============================================
   DIRECTIONAL SLIDE ANIMATION
   ============================================ */
.wizard-content.slide-left {
    animation: slideFromLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wizard-content.slide-right {
    animation: slideFromRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50%) translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(-50%) translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateX(0);
    }
}

/* Step header colored bar */
.wizard-content-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    transition: background 0.4s ease;
}

.wizard-content-header-bar.step-0 {
    background: linear-gradient(90deg, var(--accent, #d4af37), #f0d060);
}

.wizard-content-header-bar.step-1 {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.wizard-content-header-bar.step-2 {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.wizard-content-header-bar.step-3 {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.wizard-content-header-bar.step-4 {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.wizard-content-header-bar.step-5 {
    background: linear-gradient(90deg, var(--accent, #d4af37), #f0d060);
}

/* ============================================
   INPUT GLOW EFFECTS (Enhanced)
   ============================================ */
.wizard-content .modern-input:focus,
.wizard-content .modern-select:focus {
    border-color: var(--accent, #d4af37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 0 20px rgba(212, 175, 55, 0.1);
    background-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   PHASE 3: MEMBER AVATAR PLACEHOLDERS
   ============================================ */
.wizard-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* Color palette for avatars */
.wizard-member-avatar.av-1 {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.wizard-member-avatar.av-2 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.wizard-member-avatar.av-3 {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.wizard-member-avatar.av-4 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.wizard-member-avatar.av-5 {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}

.wizard-member-avatar.av-6 {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.wizard-member-avatar.av-7 {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* ============================================
   RANK FILTER CHIPS
   ============================================ */
.wizard-rank-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.wizard-rank-chip {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #888);
    font-family: 'Cairo', sans-serif;
}

.wizard-rank-chip:hover {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--accent, #d4af37);
    background: rgba(212, 175, 55, 0.08);
}

.wizard-rank-chip.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--accent, #d4af37);
    color: var(--accent, #d4af37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

/* ============================================
   PHASE 4: CANVAS ZOOM CONTROLS
   ============================================ */
.canvas-zoom-controls {
    position: fixed;
    bottom: 60px;
    right: 24px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(20, 21, 31, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text, #e8e8e8);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
}

.zoom-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent, #d4af37);
}

.zoom-btn.zoom-fit {
    font-size: 0.65rem;
    font-weight: 700;
}

.zoom-level {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted, #888);
    padding: 2px 0;
    font-weight: 600;
}

/* Canvas glow border */
.wizard-canvas-container canvas {
    transition: all 0.4s ease, box-shadow 0.6s ease;
}

.wizard-canvas-container canvas:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.08);
}

/* ============================================
   PHASE 6: THEME TOGGLE IN TOP BAR
   ============================================ */
.wizard-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text, #e8e8e8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.wizard-theme-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--accent, #d4af37);
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* ============================================
   KEYBOARD SHORTCUTS INDICATOR
   ============================================ */
.wizard-shortcut-hint {
    position: fixed;
    bottom: 46px;
    right: 24px;
    z-index: 700;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-shortcut-hint kbd {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
    font-family: 'Courier Prime', monospace;
}

/* ============================================
   ENHANCED SPLASH EXIT
   ============================================ */
#loader.exiting {
    animation: loaderExit 0.6s ease forwards;
}

@keyframes loaderExit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(8px);
    }
}

/* ============================================
   SELECT ALL / DESELECT ALL BUTTON
   ============================================ */
/* ============================================
   Members Step - Tabs
   ============================================ */
.wizard-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
    flex-shrink: 0;
}
.wizard-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    border: none;
    background: transparent;
}
.wizard-tab-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}
.wizard-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #111;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.wizard-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}
.wizard-tab-content.active {
    display: flex;
}

.wizard-saved-list {
    flex: 1;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px;
    margin-bottom: 10px;
}
.wizard-saved-group {
    margin-bottom: 15px;
}
.wizard-saved-group-title {
    font-weight: 700;
    color: var(--accent);
    padding: 8px 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.wizard-saved-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wizard-saved-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.wizard-saved-item input[type="checkbox"] {
    margin-left: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.wizard-saved-item-name {
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
}

.wizard-select-all-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(39, 174, 96, 0.3);
    background: rgba(39, 174, 96, 0.1);
    color: #2ecc71;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wizard-select-all-btn:hover {
    background: rgba(39, 174, 96, 0.2);
    transform: translateY(-1px);
}

.wizard-select-all-btn.deselect {
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.wizard-select-all-btn.deselect:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* ============================================
   QUICK SEARCH IN MEMBERS LIST
   ============================================ */
.wizard-quick-search {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text, #e8e8e8);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    direction: rtl;
    flex-shrink: 0;
}

.wizard-quick-search:focus {
    border-color: var(--accent, #d4af37);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
}

/* Fixed typos and strengthened Design headers */
.wizard-content-header-bar {
    height: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================
   LIQUID GLASS (LIGHT MODE) - PREMIUM OVERHAUL
   ============================================ */
body.light-mode {
    background: radial-gradient(at 100% 0%, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
body.light-mode .wizard-step.pending .wizard-step-circle {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

body.light-mode .wizard-step.pending .wizard-step-label {
    color: #64748b;
}

/* Force light mode background everywhere */
body.light-mode {
    background: #f8fafc !important;
}

body.light-mode .mesh-bg {
    display: none !important;
}

body.light-mode .wizard-overlay {
    background-color: rgba(248, 250, 252, 0.7) !important;
}

/* Force light mode wizard card */
body.light-mode .wizard-content,
body.light-mode .wizard-content.step-active,
body.light-mode .wizard-content.active,
body.light-mode #wizardContent {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), 0 0 30px rgba(212, 175, 55, 0.1) !important;
    backdrop-filter: blur(45px) !important;
    color: #0f172a !important;
}

body.light-mode .wizard-content h3,
body.light-mode .wizard-content p,
body.light-mode .wizard-content div {
    color: #0f172a;
}

body.light-mode .wizard-content .modern-input {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-mode .wizard-content .modern-select,
body.light-mode select.modern-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(0,0,0,0.5)' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

/* Force light mode background everywhere */
body.light-mode {
    background: #f8fafc !important;
}

body.light-mode .mesh-bg {
    display: none !important;
}

body.light-mode .wizard-content.step-members {
    background: rgba(255, 255, 255, 0.95);
    border-left: 2px solid rgba(212, 175, 55, 0.25);
}

body.light-mode .wizard-members-col-right {
    background: #f8fafc;
    border-left: 1.5px solid #e2e8f0;
}

body.light-mode .wizard-section-title {
    color: #475569;
    border-bottom: 2.5px solid #f1f5f9;
}

body.light-mode .wizard-room-list {
    background: #ffffff;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

body.light-mode .wizard-room-item:hover {
    background: #f1f5f9;
    border-radius: 8px;
}

body.light-mode .wizard-room-item-rank {
    color: #475569;
}

body.light-mode .wizard-quick-search {
    background: #ffffff;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

body.light-mode .wizard-step-counter {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffffff;
    color: #475569;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.light-mode .canvas-zoom-controls {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .zoom-btn {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

body.light-mode .wizard-btn-prev {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

body.light-mode .wizard-btn-prev:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.light-mode .wizard-shortcut-hint {
    color: #64748b;
}

body.light-mode .wizard-shortcut-hint kbd {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wizard-select-all-btn:hover {
    background: rgba(39, 174, 96, 0.2);
    transform: translateY(-1px);
}

.wizard-select-all-btn.deselect {
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.wizard-select-all-btn.deselect:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* ============================================
   QUICK SEARCH IN MEMBERS LIST
   ============================================ */
.wizard-quick-search {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text, #e8e8e8);
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    direction: rtl;
    flex-shrink: 0;
}

.wizard-quick-search:focus {
    border-color: var(--accent, #d4af37);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
}

/* Fixed typos and strengthened Design headers */
.wizard-content-header-bar {
    height: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================
   LIQUID GLASS (LIGHT MODE) - PREMIUM OVERHAUL
   ============================================ */
body.light-mode {
    background: radial-gradient(at 100% 0%, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
}

body.light-mode .wizard-step.pending .wizard-step-circle {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

body.light-mode .wizard-step.pending .wizard-step-label {
    color: #64748b;
}

/* Force light mode background everywhere */
body.light-mode {
    background: #f8fafc !important;
}

body.light-mode .mesh-bg {
    display: none !important;
}

body.light-mode .wizard-overlay {
    background-color: rgba(248, 250, 252, 0.7) !important;
}

/* Force light mode wizard card */
body.light-mode .wizard-content,
body.light-mode .wizard-content.step-active,
body.light-mode .wizard-content.active,
body.light-mode #wizardContent {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), 0 0 30px rgba(212, 175, 55, 0.1) !important;
    backdrop-filter: blur(45px) !important;
    color: #0f172a !important;
}

body.light-mode .wizard-content h3,
body.light-mode .wizard-content p,
body.light-mode .wizard-content div {
    color: #0f172a;
}

body.light-mode .wizard-content .modern-input {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-mode .wizard-content .modern-select,
body.light-mode select.modern-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(0,0,0,0.5)' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

/* Force light mode background everywhere */
body.light-mode {
    background: #f8fafc !important;
}

body.light-mode .mesh-bg {
    display: none !important;
}

body.light-mode .wizard-content.step-members {
    background: rgba(255, 255, 255, 0.95);
    border-left: 2px solid rgba(212, 175, 55, 0.25);
}

body.light-mode .wizard-members-col-right {
    background: #f8fafc;
    border-left: 1.5px solid #e2e8f0;
}

body.light-mode .wizard-section-title {
    color: #475569;
    border-bottom: 2.5px solid #f1f5f9;
}

body.light-mode .wizard-room-list {
    background: #ffffff;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

body.light-mode .wizard-room-item:hover {
    background: #f1f5f9;
    border-radius: 8px;
}

body.light-mode .wizard-room-item-rank {
    color: #475569;
}

body.light-mode .wizard-quick-search {
    background: #ffffff;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

body.light-mode .wizard-step-counter {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffffff;
    color: #475569;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.light-mode .canvas-zoom-controls {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .zoom-btn {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

body.light-mode .wizard-btn-prev {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

body.light-mode .wizard-btn-prev:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.light-mode .wizard-shortcut-hint {
    color: #64748b;
}

body.light-mode .wizard-shortcut-hint kbd {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
}

/* Premium Button Glows for Light Mode */
body.light-mode .wizard-btn-next,
body.light-mode .wizard-btn-start {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-radius: 8px;
}
