/**
 * EliteSuite Onboarding Wizard Styles
 * Premium glassmorphism + vector-heavy design system
 */

/* ========================================
   Onboarding Animations
   ======================================== */
@keyframes gradient-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float-slow {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes step-enter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes avatar-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(13, 148, 136, 0);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes checkmark-draw {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes service-card-enter {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ========================================
   Onboarding Overlay & Modal
   ======================================== */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.onboarding-modal {
    position: relative;
    width: 100%;
    max-width: 580px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%),
        linear-gradient(
            180deg,
            rgba(30, 41, 59, 0.9) 0%,
            rgba(15, 23, 42, 0.95) 100%
        );
    backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 120px rgba(13, 148, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 48px 40px;
    overflow: visible;
}

.onboarding-modal::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-lg) - 1px);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* ========================================
   Onboarding Progress Bar
   ======================================== */
.onboarding-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.onboarding-progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        #6366f1 50%,
        #a855f7 100%
    );
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.5);
}

.onboarding-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.8);
    letter-spacing: 0.5px;
}

/* ========================================
   Onboarding Step Container
   ======================================== */
.onboarding-step {
    text-align: center;
    animation: step-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.onboarding-artwork {
    margin-bottom: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* ========================================
   Onboarding Avatar
   ======================================== */
.onboarding-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(13, 148, 136, 0.2) 0%,
        rgba(99, 102, 241, 0.2) 100%
    );
    border: 3px solid rgba(13, 148, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.onboarding-avatar.typing {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.3);
}

.onboarding-avatar svg {
    width: 60%;
    height: 60%;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.onboarding-avatar-letter {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
}

/* ========================================
   Onboarding Typography
   ======================================== */
.onboarding-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.onboarding-title span {
    background: linear-gradient(135deg, var(--color-primary), #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.onboarding-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    line-height: 1.6;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.onboarding-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 20px;
}

.onboarding-hint a {
    color: var(--color-primary);
    text-decoration: none;
}

/* ========================================
   Onboarding Input
   ======================================== */
.onboarding-input {
    width: 100%;
    max-width: 380px;
    padding: 20px 28px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin: 0 auto 28px;
    display: block;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(30, 41, 59, 0.8);
    box-shadow:
        0 0 0 4px rgba(13, 148, 136, 0.15),
        0 8px 32px rgba(13, 148, 136, 0.1);
    transform: translateY(-2px);
}

.onboarding-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-weight: 400;
}

/* ========================================
   Onboarding Action Buttons
   ======================================== */
.onboarding-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.btn-onboarding-primary {
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        #0f766e 50%,
        #047857 100%
    );
    color: white;
    box-shadow:
        0 4px 20px rgba(13, 148, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-onboarding-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(13, 148, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-onboarding-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-onboarding-skip {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-onboarding-skip:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--color-text);
}

/* ========================================
   Invoice Preview
   ======================================== */
.invoice-preview-container {
    max-width: 440px;
    margin: 0 auto 28px;
    perspective: 1000px;
}

.preview-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: left;
}

.invoice-preview {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    text-align: left;
    transform: perspective(1000px) rotateX(3deg) rotateY(-2deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 0 80px rgba(13, 148, 136, 0.1);
}

.invoice-preview:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-8px);
}

.invoice-paid-stamp {
    position: absolute;
    top: -12px;
    right: -20px;
    transform: rotate(12deg);
    z-index: 10;
}

.stamp-circle {
    width: 100px;
    height: 100px;
    border: 4px double #dc2626;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(220, 38, 38, 0.3),
        inset 0 0 0 3px rgba(220, 38, 38, 0.2);
    transform: rotate(-15deg);
}

.stamp-text {
    font-size: 22px;
    font-weight: 900;
    color: #dc2626;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.invoice-company {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), #0f766e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.invoice-company-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.invoice-number {
    font-size: 12px;
    color: #64748b;
}

.invoice-meta {
    text-align: right;
}

.invoice-title {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.invoice-date {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.invoice-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.invoice-row:last-of-type {
    border-bottom: none;
}

.invoice-row span:last-child {
    font-weight: 600;
    color: #1e293b;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 16px -28px -28px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), transparent);
    border-radius: 0 0 20px 20px;
    border-top: 2px solid var(--color-primary);
}

.invoice-total span:last-child {
    color: var(--color-primary);
}

/* ========================================
   Service Cards
   ======================================== */
.services-list {
    max-width: 400px;
    margin: 0 auto 24px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    text-align: left;
    animation: service-card-enter 0.3s ease-out;
    transition: all 0.2s ease;
}

.service-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateX(4px);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(
        135deg,
        rgba(13, 148, 136, 0.2),
        rgba(99, 102, 241, 0.1)
    );
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
}

.service-details {
    flex: 1;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.service-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.btn-remove-service {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove-service:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ========================================
   Service Form
   ======================================== */
.service-form {
    max-width: 400px;
    margin: 0 auto;
}

.service-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.service-form .form-input {
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(30, 41, 59, 0.6);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.service-form .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.btn-add-service {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: 2px dashed rgba(13, 148, 136, 0.3);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-service:hover {
    border-style: solid;
    background: rgba(13, 148, 136, 0.1);
}

/* Service Input Row */
.service-input-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    margin-bottom: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.service-input-row .form-input {
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 12px;
    border: 2px solid rgba(148, 163, 184, 0.15);
    background: rgba(30, 41, 59, 0.6);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.service-input-row .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.service-input-row.valid .form-input {
    border-color: var(--color-success);
    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.2),
        0 0 20px rgba(16, 185, 129, 0.15);
}

.service-valid-tick {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-success);
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    align-self: center;
}

.service-input-row.valid .service-valid-tick {
    opacity: 1;
    transform: scale(1);
}

.btn-add-more-rows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    margin: 16px auto 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: 2px dashed rgba(148, 163, 184, 0.3);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-more-rows:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(13, 148, 136, 0.05);
}

/* ========================================
   Team Member Cards
   ======================================== */
.team-members-list {
    max-width: 400px;
    margin: 0 auto 24px;
}

.team-member-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    text-align: left;
    animation: service-card-enter 0.3s ease-out;
}

.team-member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.2),
        rgba(168, 85, 247, 0.2)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #a855f7;
}

.team-member-info {
    flex: 1;
}

.team-member-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.team-member-email {
    font-size: 13px;
    color: var(--color-text-muted);
}

.team-member-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(13, 148, 136, 0.15);
    color: var(--color-primary);
}

/* ========================================
   Team Form
   ======================================== */
.team-form {
    max-width: 400px;
    margin: 0 auto;
}

.team-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.team-form .form-input,
.team-form .form-select {
    padding: 14px 18px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(30, 41, 59, 0.6);
    color: var(--color-text);
}

.team-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ========================================
   Team Inline Rows
   ======================================== */
.team-rows-container {
    max-width: 850px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.team-row {
    display: grid;
    grid-template-columns: 120px 1.5fr 135px auto;
    gap: 10px;
    align-items: center;
}

.team-input {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 12px;
    border: 2px solid rgba(148, 163, 184, 0.15);
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.team-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.team-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.team-input-email.invalid {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow:
        0 0 0 3px rgba(239, 68, 68, 0.15),
        0 0 20px rgba(239, 68, 68, 0.2);
}

.team-input-email.invalid:focus {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow:
        0 0 0 3px rgba(239, 68, 68, 0.2),
        0 0 30px rgba(239, 68, 68, 0.3);
}

.team-valid-tick {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-success);
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.team-row.valid .team-valid-tick {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   Role Toggle
   ======================================== */
.role-toggle {
    position: relative;
    display: inline-flex;
    padding: 3px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.role-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 17px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f766e 100%);
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
    transition: transform 0.3s cubic-bezier(0.68, -0.15, 0.32, 1.15);
    z-index: 0;
}

.role-toggle.staff-active::before {
    transform: translateX(100%);
}

.role-btn {
    position: relative;
    z-index: 1;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.role-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.role-btn.active {
    color: white;
}

/* ========================================
   Quick Actions (Done Step)
   ======================================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
    margin: 24px auto;
}

.quick-action-card {
    padding: 20px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-action-card:hover {
    background: rgba(13, 148, 136, 0.15);
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateY(-4px);
}

.quick-action-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.quick-action-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

/* ========================================
   Confetti & Success Checkmark
   ======================================== */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10002;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
}

.confetti:nth-child(odd) {
    background: var(--color-primary);
    border-radius: 50%;
}

.confetti:nth-child(even) {
    background: #6366f1;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.success-checkmark .circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    animation: checkmark-draw 0.6s ease-out forwards;
}

.success-checkmark .check {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark-draw 0.4s ease-out 0.4s forwards;
}

/* ========================================
   Onboarding Navigation
   ======================================== */
.onboarding-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.onboarding-close-btn,
.onboarding-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-close-btn {
    background: #dc2626;
    color: white;
}

.onboarding-close-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.onboarding-back-btn {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--color-text-muted);
}

.onboarding-back-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    color: var(--color-text);
}

.onboarding-back-btn svg,
.onboarding-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* ========================================
   Onboarding Responsive
   ======================================== */
@media (max-width: 640px) {
    .onboarding-modal {
        padding: 32px 24px;
        border-radius: 20px;
        margin: 12px;
    }

    .onboarding-title {
        font-size: 26px;
    }

    .onboarding-subtitle {
        font-size: 15px;
    }

    .onboarding-avatar {
        width: 100px;
        height: 100px;
    }

    .onboarding-input {
        font-size: 16px;
        padding: 18px 24px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .service-form-row,
    .team-form .form-row {
        grid-template-columns: 1fr;
    }

    .invoice-preview {
        transform: none;
    }
}

@media (max-width: 600px) {
    .team-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }

    .role-toggle {
        justify-content: center;
    }
}

/* ========================================
   Onboarding Light Mode
   ======================================== */
body.light-mode .onboarding-overlay {
    background: rgba(100, 116, 139, 0.75);
    backdrop-filter: blur(8px);
}

body.light-mode .onboarding-modal {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.16);
}

body.light-mode .onboarding-title {
    color: #0f172a;
}

body.light-mode .onboarding-subtitle {
    color: #475569;
}

body.light-mode .team-input,
body.light-mode .onboarding-input {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

body.light-mode .team-input::placeholder,
body.light-mode .onboarding-input::placeholder {
    color: #94a3b8;
}

body.light-mode .team-input:focus,
body.light-mode .onboarding-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

body.light-mode .role-toggle {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

body.light-mode .role-btn {
    color: #64748b;
}

body.light-mode .role-btn.active {
    color: #ffffff;
}

body.light-mode .btn-add-more-rows {
    border-color: #cbd5e1;
    color: #64748b;
}

body.light-mode .btn-add-more-rows:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

body.light-mode .service-card,
body.light-mode .team-member-card,
body.light-mode .quick-action-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .team-member-card,
body.light-mode .service-card {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid var(--color-border);
}
