/* ==========================================================================
   Onboarding Tutorial Modal
   First-visit guided tour: desktop split (tabs right + screenshots left in RTL)
   Mobile: full-screen swipeable card carousel
   ========================================================================== */

/* --------------------------------------------------------------------------
   Overlay & Modal Shell
   -------------------------------------------------------------------------- */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tutorial-overlay.visible {
    opacity: 1;
}

.tutorial-modal {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 940px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                max-width 0.35s ease;
}

/* Wider modal when the video/welcome tab is active */
.tutorial-modal.video-step-active {
    max-width: 1140px;
}

.tutorial-overlay.visible .tutorial-modal {
    transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.tutorial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
    background: linear-gradient(to left, #F9FAFB, #ffffff);
}

.tutorial-header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tutorial-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F46E5, #14B8A6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tutorial-header-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

.tutorial-header-brand h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

.tutorial-header-brand p {
    font-size: 0.78rem;
    color: #6B7280;
    margin: 0;
    margin-top: 1px;
}

.tutorial-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    background: #F9FAFB;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tutorial-close-btn:hover {
    border-color: #EF4444;
    color: #EF4444;
    background: #FEF2F2;
}

/* --------------------------------------------------------------------------
   Desktop Body: Split Layout (RTL — tabs right, screenshots left)
   row-reverse on an RTL container = first child on left, second on right.
   HTML order: screenshots (1st) → left | nav (2nd) → right
   -------------------------------------------------------------------------- */
.tutorial-body {
    display: flex;
    flex-direction: row-reverse;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Screenshots panel — LEFT side (first child, row-reverse in RTL) */
.tutorial-screenshots {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.25rem 1.25rem;
    background: #F8FAFC;
    border-right: 1px solid #E5E7EB;
    scroll-behavior: smooth;
}

.tutorial-screenshots::-webkit-scrollbar {
    width: 5px;
}

.tutorial-screenshots::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.tutorial-screenshots::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 99px;
}

.step-screenshots {
    display: none;
    flex-direction: column;
    gap: 1.1rem;
    animation: fadeSlideIn 0.3s ease;
}

.step-screenshots.active {
    display: flex;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tab Navigation panel — RIGHT side in RTL (first child in flex-row RTL) */
.tutorial-nav {
    width: 268px;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 0.75rem 0;
    background: #ffffff;
}

.tutorial-nav::-webkit-scrollbar { width: 4px; }
.tutorial-nav::-webkit-scrollbar-track { background: transparent; }
.tutorial-nav::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 99px; }

/* --------------------------------------------------------------------------
   Tab Items
   -------------------------------------------------------------------------- */
.tutorial-tab {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.tutorial-tab:hover {
    background: #F9FAFB;
}

.tutorial-tab.active {
    background: #F0FDF4;
    border-left-color: #14B8A6;
}

.tutorial-tab-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #6B7280;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.tutorial-tab.active .tutorial-tab-num {
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.35);
}

.tutorial-tab-body {
    flex: 1;
    min-width: 0;
}

.tutorial-tab-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease;
}

.tutorial-tab-title i {
    color: #9CA3AF;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.tutorial-tab.active .tutorial-tab-title {
    color: #0F766E;
}

.tutorial-tab.active .tutorial-tab-title i {
    color: #14B8A6;
}

.tutorial-tab-desc {
    font-size: 0.78rem;
    color: #6B7280;
    line-height: 1.55;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.tutorial-tab.active .tutorial-tab-desc {
    max-height: 80px;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Mock Browser Frame (CSS Art Screenshots)
   -------------------------------------------------------------------------- */
.mock-browser {
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.mock-browser-chrome {
    background: #E5E7EB;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #D1D5DB;
    direction: ltr;
}

.mock-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.mock-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-red    { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green  { background: #22C55E; }

.mock-url-bar {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    height: 22px;
    font-size: 10px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    letter-spacing: 0.2px;
    font-family: monospace;
    max-width: 380px;
    margin: 0 auto;
    padding: 0 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mock-screenshot-caption {
    text-align: center;
    font-size: 0.72rem;
    color: #9CA3AF;
    font-style: italic;
    padding: 5px 0;
}

/* --------------------------------------------------------------------------
   Mock Content: Step 1 — Welcome / Portal Home
   -------------------------------------------------------------------------- */
.mock-welcome {
    background: #F8FAFC;
}

.mock-banner-bar {
    height: 52px;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
}

.mock-banner-bar::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.mock-banner-bar::after {
    content: '';
    width: 120px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.mock-hero-area {
    padding: 24px 20px 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mock-hero-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3A8A, #4F46E5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.mock-hero-title-block {
    height: 16px;
    width: 210px;
    background: linear-gradient(90deg, #4F46E5, #6366F1);
    border-radius: 4px;
    opacity: 0.75;
}

.mock-hero-sub-block {
    height: 10px;
    width: 280px;
    background: #D1D5DB;
    border-radius: 4px;
}

.mock-hero-btn {
    height: 34px;
    width: 110px;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    border-radius: 20px;
    margin-top: 4px;
}

.mock-features-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #F8FAFC;
}

.mock-feature-card {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.mock-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #DBEAFE;
}

.mock-feature-card:nth-child(2) .mock-feature-icon { background: #CCFBF1; }
.mock-feature-card:nth-child(3) .mock-feature-icon { background: #EDE9FE; }

.mock-feature-text {
    height: 8px;
    width: 75%;
    background: #E2E8F0;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Mock Content: Step 2 — Login Page
   -------------------------------------------------------------------------- */
.mock-login-page {
    background: #F8FAFC;
}

.mock-login-split {
    display: flex;
    height: 230px;
}

.mock-login-form-col {
    width: 42%;
    background: #ffffff;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid #E5E7EB;
}

.mock-login-tabs {
    display: flex;
    gap: 4px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 20px;
}

.mock-tab {
    flex: 1;
    height: 26px;
    border-radius: 20px;
    background: transparent;
}

.mock-tab-active {
    background: #14B8A6;
}

.mock-input-field {
    height: 36px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    width: 100%;
}

.mock-submit-btn {
    height: 38px;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    border-radius: 8px;
    width: 100%;
    margin-top: auto;
}

.mock-login-banner-col {
    flex: 1;
    background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 50%, #14B8A6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-login-banner-text {
    width: 60%;
    height: 70px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* OTP Page */
.mock-otp-page {
    background: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 200px;
}

.mock-otp-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DBEAFE, #EDE9FE);
    border: 2px solid #BFDBFE;
}

.mock-otp-title-block {
    height: 14px;
    width: 150px;
    background: #C7D2FE;
    border-radius: 4px;
}

.mock-otp-sub-block {
    height: 9px;
    width: 200px;
    background: #D1D5DB;
    border-radius: 4px;
}

.mock-otp-boxes {
    display: flex;
    gap: 7px;
    direction: ltr;
}

.mock-otp-box {
    width: 36px;
    height: 44px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
}

.mock-otp-boxes .mock-otp-box:nth-child(3) {
    border-color: #6366F1;
    background: #EEF2FF;
}

/* --------------------------------------------------------------------------
   Mock Content: Step 3 — Identity Selection
   -------------------------------------------------------------------------- */
.mock-identity-page {
    background: #F8FAFC;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 210px;
}

.mock-page-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.mock-page-title-block {
    height: 16px;
    width: 55%;
    background: #C7D2FE;
    border-radius: 4px;
}

.mock-page-sub-block {
    height: 9px;
    width: 38%;
    background: #D1D5DB;
    border-radius: 4px;
}

.mock-identity-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mock-identity-card {
    flex: 1;
    max-width: 140px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid #E5E7EB;
    transition: border-color 0.2s;
}

.mock-identity-card.mock-identity-active {
    border-color: #14B8A6;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.2);
}

.mock-id-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.mock-id-icon-blue   { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.mock-id-icon-teal   { background: linear-gradient(135deg, #CCFBF1, #99F6E4); }
.mock-id-icon-purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }

.mock-id-label {
    height: 9px;
    width: 60px;
    background: #D1D5DB;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Mock Content: Steps 4 & 5 — Sidebar Layout (Services + Applications)
   -------------------------------------------------------------------------- */
.mock-sidebar-layout {
    display: flex;
    height: 240px;
    background: #F8FAFC;
}

.mock-sidebar {
    width: 56px;
    background: #1E293B;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mock-sidebar-user {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 4px;
}

.mock-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.mock-menu-item {
    height: 26px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.mock-menu-active {
    background: #4F46E5;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

.mock-main-area {
    flex: 1;
    padding: 10px;
    overflow: hidden;
}

/* Services Grid */
.mock-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.mock-service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.mock-svc-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #DBEAFE;
}

.mock-svc-teal   { background: #CCFBF1; }
.mock-svc-purple { background: #EDE9FE; }
.mock-svc-orange { background: #FFEDD5; }

.mock-svc-label {
    height: 7px;
    width: 80%;
    background: #E2E8F0;
    border-radius: 4px;
}

/* Applications list header */
.mock-page-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mock-filter-chips {
    display: flex;
    gap: 4px;
}

.mock-chip {
    height: 20px;
    width: 52px;
    background: #E2E8F0;
    border-radius: 20px;
}

.mock-chip-active {
    background: rgba(79, 70, 229, 0.18);
    border: 1px solid rgba(79, 70, 229, 0.3);
}

/* Applications rows */
.mock-app-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-app-row {
    background: #ffffff;
    border-radius: 7px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #F1F5F9;
}

.mock-app-ref {
    height: 9px;
    width: 52px;
    background: #D1D5DB;
    border-radius: 4px;
    flex-shrink: 0;
}

.mock-app-name {
    flex: 1;
    height: 9px;
    background: #E2E8F0;
    border-radius: 4px;
}

.mock-badge {
    height: 18px;
    width: 62px;
    border-radius: 20px;
    flex-shrink: 0;
}

.mock-badge-pending  { background: #FEF9C3; }
.mock-badge-approved { background: #DCFCE7; }
.mock-badge-rejected { background: #FEE2E2; }

/* --------------------------------------------------------------------------
   Mobile: Swipeable Carousel (hidden on desktop)
   -------------------------------------------------------------------------- */
.tutorial-swipe {
    display: none;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.swipe-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    direction: ltr;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.swipe-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Gradient background fills for each mobile slide */
.swipe-slide-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slide 1 — Welcome */
.swipe-slide:nth-child(1) .swipe-slide-bg {
    background: linear-gradient(145deg, #1E3A8A 0%, #4F46E5 45%, #14B8A6 100%);
}

/* Slide 2 — Login */
.swipe-slide:nth-child(2) .swipe-slide-bg {
    background: linear-gradient(145deg, #1E293B 0%, #4F46E5 50%, #6366F1 100%);
}

/* Slide 3 — Identity */
.swipe-slide:nth-child(3) .swipe-slide-bg {
    background: linear-gradient(145deg, #0F766E 0%, #4F46E5 50%, #06B6D4 100%);
}

/* Slide 4 — Services */
.swipe-slide:nth-child(4) .swipe-slide-bg {
    background: linear-gradient(145deg, #1E293B 0%, #1E3A8A 45%, #4F46E5 100%);
}

/* Slide 5 — Applications */
.swipe-slide:nth-child(5) .swipe-slide-bg {
    background: linear-gradient(145deg, #0F766E 0%, #4F46E5 50%, #7C3AED 100%);
}

/* Decorative pattern circles on mobile slides */
.swipe-slide-bg::before,
.swipe-slide-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    background: #ffffff;
}

.swipe-slide-bg::before {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
}

.swipe-slide-bg::after {
    width: 200px;
    height: 200px;
    bottom: 60px;
    left: -50px;
}

/* Mini mock screen floated in slide center (mobile) */
.slide-mock-mini {
    position: relative;
    z-index: 1;
    width: 75%;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: rotate(-2deg);
}

.slide-mock-mini .mock-browser-chrome {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 8px;
}

.slide-mock-mini .mock-url-bar {
    font-size: 8px;
    height: 18px;
    background: rgba(255, 255, 255, 0.6);
}

.slide-mock-mini-content {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
}

.slide-mock-line {
    height: 8px;
    border-radius: 4px;
    background: #E2E8F0;
}

.slide-mock-line.w-full  { width: 100%; }
.slide-mock-line.w-3q    { width: 75%; }
.slide-mock-line.w-half  { width: 50%; }
.slide-mock-line.w-1q    { width: 25%; }
.slide-mock-line.accent  { background: rgba(79, 70, 229, 0.35); }
.slide-mock-line.teal    { background: rgba(20, 184, 166, 0.45); height: 12px; border-radius: 6px; }

.slide-mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 2px;
}

.slide-mock-card {
    height: 24px;
    background: #F1F5F9;
    border-radius: 4px;
}

/* Text overlay at bottom of each slide */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1rem 1.25rem 1.1rem;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-step-num {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.slide-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.slide-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Footer: Dots + Navigation Buttons
   -------------------------------------------------------------------------- */
.tutorial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid #E5E7EB;
    flex-shrink: 0;
    background: #ffffff;
    gap: 1rem;
}

.tutorial-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.tutorial-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #14B8A6;
}

.tutorial-dot:hover:not(.active) {
    background: #9CA3AF;
}

.tutorial-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-tut-skip {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-tut-skip:hover {
    color: #374151;
    background: #F3F4F6;
}

.tutorial-nav-btns {
    display: flex;
    gap: 0.5rem;
}

.btn-tut-prev,
.btn-tut-next {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-tut-prev {
    background: #F3F4F6;
    color: #374151;
    border-color: #E5E7EB;
}

.btn-tut-prev:hover:not(:disabled) {
    background: #E5E7EB;
    color: #111827;
}

.btn-tut-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-tut-next {
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(20, 184, 166, 0.3);
}

.btn-tut-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(20, 184, 166, 0.35);
}

.btn-tut-next.btn-finish {
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

.btn-tut-next.btn-finish:hover {
    box-shadow: 0 5px 14px rgba(5, 150, 105, 0.35);
}

/* --------------------------------------------------------------------------
   Step Counter (mobile-only, replaces dot indicators)
   Hidden by default — shown inside the ≤768px media query below.
   -------------------------------------------------------------------------- */
.tutorial-step-counter {
    display: none;
}

/* --------------------------------------------------------------------------
   Mobile Responsive (≤768px) — Full-screen swipe mode
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    .tutorial-overlay {
        padding: 0;
        align-items: stretch;
    }

    .tutorial-modal {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(100%) scale(1);
    }

    .tutorial-overlay.visible .tutorial-modal {
        transform: translateY(0) scale(1);
    }

    /* Hide desktop split layout */
    .tutorial-body {
        display: none;
    }

    /* Show swipe carousel */
    .tutorial-swipe {
        display: flex;
    }

    /* ── Compact header ── */
    .tutorial-header {
        padding: 0.65rem 1rem;
        border-bottom: 1px solid #E5E7EB;
    }

    .tutorial-header-brand {
        gap: 0.65rem;
    }

    .tutorial-header-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .tutorial-header-brand h2 {
        font-size: 0.9rem;
        font-weight: 800;
    }

    /* Hide subtitle — save vertical space on mobile */
    .tutorial-header-brand p {
        display: none;
    }

    /* ── Footer redesign ── */
    .tutorial-footer {
        padding: 0.65rem 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.55rem;
        border-top: 1px solid #E5E7EB;
    }

    /* Dots — hidden on mobile (replaced by step counter below) */
    .tutorial-dots {
        display: none !important;
    }

    /* Step counter + progress bar — shown only on mobile */
    .tutorial-step-counter {
        display: flex;
        align-items: center;
        gap: 10px;
        order: 1;
        flex-basis: 100%;
    }

    .tut-step-label {
        font-size: 0.88rem;
        font-weight: 800;
        color: #0F766E;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 42px;
        text-align: center;
    }

    .tut-step-bar {
        flex: 1;
        height: 5px;
        background: #E5E7EB;
        border-radius: 3px;
        overflow: hidden;
    }

    .tut-step-bar-fill {
        height: 100%;
        background: linear-gradient(to left, #06B6D4, #14B8A6);
        border-radius: 3px;
        transition: width 0.38s ease;
    }

    /* Buttons row — full width, spread */
    .tutorial-footer-actions {
        order: 2;
        width: 100%;
    }

    .tutorial-nav-btns {
        width: 100%;
        gap: 0.5rem;
    }

    .btn-tut-prev,
    .btn-tut-next {
        flex: 1;
        justify-content: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.88rem;
        min-height: 44px; /* comfortable touch target */
    }

    /* ── Slide text improvements ── */
    .slide-overlay {
        padding: 1.1rem 1.2rem 1.2rem;
    }

    .slide-step-num {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.65);
        margin-bottom: 5px;
    }

    .slide-title {
        font-size: 1.15rem;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .slide-desc {
        font-size: 0.84rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
    }

    /* ── Mini mock screen sizing ── */
    .slide-mock-mini {
        width: 68%;
        max-width: 260px;
    }
}

/* Tablet adjustments */
@media (max-width: 960px) and (min-width: 769px) {
    .tutorial-modal {
        max-width: calc(100% - 2rem);
    }

    .tutorial-nav {
        width: 230px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .slide-title {
        font-size: 1rem;
    }

    .slide-desc {
        font-size: 0.79rem;
    }

    .btn-tut-prev,
    .btn-tut-next {
        padding: 0.55rem 0.6rem;
        font-size: 0.82rem;
        min-height: 42px;
    }

    .tutorial-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
    }

    .tutorial-dot.active {
        width: 16px;
    }
}

/* ==========================================================================
   EXTENDED STYLES — Steps 1–10 expansion
   ========================================================================== */

/* --------------------------------------------------------------------------
   Step 1 — YouTube Short Embed
   -------------------------------------------------------------------------- */
/* ── Video step: center content vertically in screenshots panel ── */
.step-screenshots[data-step="0"] {
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.tutorial-video-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.75rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16 / 9;
    position: relative;
    background: #000;
}

.tutorial-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tutorial-video-note {
    text-align: center;
    font-size: 0.76rem;
    color: #6B7280;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.tutorial-video-note i {
    color: #14B8A6;
}

/* --------------------------------------------------------------------------
   Step 5 — Service Request Form Mock
   -------------------------------------------------------------------------- */
.mock-form-page {
    background: #F8FAFC;
    padding: 12px;
}

.mock-form-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.mock-form-title {
    height: 14px;
    width: 55%;
    background: #C7D2FE;
    border-radius: 4px;
    margin-bottom: 6px;
}

.mock-form-subtitle {
    height: 9px;
    width: 38%;
    background: #D1D5DB;
    border-radius: 4px;
    margin-bottom: 14px;
}

.mock-field-full {
    height: 32px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    width: 100%;
    margin-bottom: 8px;
}

.mock-field-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mock-field-half {
    flex: 1;
    height: 32px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
}

.mock-textarea {
    height: 52px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    width: 100%;
    margin-bottom: 10px;
}

.mock-upload-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 8px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    background: #F8FAFC;
}

.mock-upload-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #DBEAFE;
    flex-shrink: 0;
}

.mock-upload-text-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-upload-line-1 {
    height: 8px;
    width: 80px;
    background: #94A3B8;
    border-radius: 3px;
}

.mock-upload-line-2 {
    height: 7px;
    width: 55px;
    background: #CBD5E1;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Step 7 — IBAN Management Mock
   -------------------------------------------------------------------------- */
.mock-iban-page {
    background: #F8FAFC;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 230px;
}

.mock-iban-saved-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mock-iban-bank-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    flex-shrink: 0;
}

.mock-iban-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-iban-number {
    height: 10px;
    width: 180px;
    background: #374151;
    border-radius: 3px;
    direction: ltr;
}

.mock-iban-bank-name {
    height: 8px;
    width: 80px;
    background: #D1D5DB;
    border-radius: 3px;
}

.mock-iban-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 2px 0;
}

.mock-iban-form-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-select-field {
    height: 32px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    width: 100%;
    position: relative;
}

.mock-select-field::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #9CA3AF;
}

.mock-iban-input-field {
    height: 32px;
    background: #F8FAFC;
    border: 1px solid #4F46E5;
    border-radius: 7px;
    width: 100%;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* --------------------------------------------------------------------------
   Step 8 — Employee Management Mocks
   -------------------------------------------------------------------------- */
.mock-emp-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mock-add-emp-btn {
    height: 24px;
    width: 76px;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    border-radius: 6px;
}

.mock-emp-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-emp-row {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mock-emp-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    flex-shrink: 0;
}

.mock-emp-avatar.green  { background: linear-gradient(135deg, #DCFCE7, #BBF7D0); }
.mock-emp-avatar.purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }

.mock-emp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-emp-name {
    height: 9px;
    width: 90px;
    background: #374151;
    border-radius: 3px;
}

.mock-emp-role {
    height: 7px;
    width: 60px;
    background: #D1D5DB;
    border-radius: 3px;
}

.mock-svc-count-chip {
    height: 18px;
    width: 38px;
    background: #DBEAFE;
    border-radius: 20px;
}

.mock-toggle {
    width: 30px;
    height: 17px;
    border-radius: 20px;
    flex-shrink: 0;
}

.mock-toggle-on  { background: #14B8A6; }
.mock-toggle-off { background: #D1D5DB; }

.mock-trash-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #FEE2E2;
    flex-shrink: 0;
}

/* Service Access Matrix */
.mock-matrix {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.mock-matrix-header {
    display: flex;
    background: #F3F4F6;
    padding: 7px 10px;
    gap: 8px;
    border-bottom: 1px solid #E5E7EB;
    align-items: center;
}

.mock-matrix-emp-col {
    width: 80px;
    flex-shrink: 0;
    height: 8px;
    background: #9CA3AF;
    border-radius: 3px;
}

.mock-matrix-svc-col {
    flex: 1;
    height: 8px;
    background: #CBD5E1;
    border-radius: 3px;
}

.mock-matrix-row {
    display: flex;
    padding: 8px 10px;
    gap: 8px;
    border-bottom: 1px solid #F1F5F9;
    align-items: center;
}

.mock-matrix-row:last-child { border-bottom: none; }

.mock-matrix-emp-name {
    width: 80px;
    flex-shrink: 0;
    height: 9px;
    background: #374151;
    border-radius: 3px;
}

.mock-cb {
    flex: 1;
    height: 15px;
    border-radius: 3px;
    border: 2px solid #E2E8F0;
}

.mock-cb.checked {
    background: #14B8A6;
    border-color: #14B8A6;
}

/* --------------------------------------------------------------------------
   Step 9 — Reports & Invoices Mocks
   -------------------------------------------------------------------------- */
.mock-report-type-tabs {
    display: flex;
    gap: 4px;
    background: #F1F5F9;
    padding: 3px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.mock-report-tab-item {
    flex: 1;
    height: 22px;
    border-radius: 5px;
    background: transparent;
}

.mock-report-tab-item.active-tab {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mock-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
}

.mock-date-field {
    flex: 1;
    height: 28px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
}

.mock-exec-btn {
    height: 28px;
    width: 58px;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    border-radius: 6px;
    flex-shrink: 0;
}

.mock-results-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-result-row {
    background: #ffffff;
    border-radius: 7px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #F1F5F9;
}

.mock-result-ref {
    height: 8px;
    width: 48px;
    background: #D1D5DB;
    border-radius: 3px;
    flex-shrink: 0;
}

.mock-result-date {
    height: 8px;
    width: 58px;
    background: #E2E8F0;
    border-radius: 3px;
    flex-shrink: 0;
}

.mock-result-name {
    flex: 1;
    height: 8px;
    background: #E2E8F0;
    border-radius: 3px;
}

.mock-result-amount {
    height: 9px;
    width: 42px;
    background: #374151;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Invoices list */
.mock-invoice-row {
    background: #ffffff;
    border-radius: 7px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mock-inv-ref {
    height: 8px;
    width: 44px;
    background: #9CA3AF;
    border-radius: 3px;
    flex-shrink: 0;
}

.mock-inv-name {
    flex: 1;
    height: 8px;
    background: #E2E8F0;
    border-radius: 3px;
}

.mock-inv-amount {
    height: 11px;
    width: 48px;
    background: #374151;
    border-radius: 3px;
    flex-shrink: 0;
}

.mock-inv-pay-btn {
    height: 20px;
    width: 48px;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    border-radius: 5px;
    flex-shrink: 0;
}

.mock-inv-dl-btn {
    height: 20px;
    width: 48px;
    background: #DBEAFE;
    border-radius: 5px;
    flex-shrink: 0;
}

.mock-inv-paid-badge {
    height: 18px;
    width: 48px;
    background: #DCFCE7;
    border-radius: 20px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Step 10 — JC Employee Dashboard Mock
   -------------------------------------------------------------------------- */
.mock-jc-dashboard {
    background: #F8FAFC;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 240px;
}

.mock-jc-profile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mock-jc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E3A8A, #4F46E5);
    flex-shrink: 0;
}

.mock-jc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-jc-name {
    height: 11px;
    width: 120px;
    background: #374151;
    border-radius: 4px;
}

.mock-jc-dept {
    height: 8px;
    width: 90px;
    background: #D1D5DB;
    border-radius: 3px;
}

.mock-jc-status-active {
    height: 20px;
    width: 68px;
    background: #DCFCE7;
    border-radius: 20px;
    flex-shrink: 0;
}

.mock-jc-cert-cards {
    display: flex;
    gap: 8px;
}

.mock-jc-cert-card {
    flex: 1;
    background: #ffffff;
    border-radius: 10px;
    padding: 11px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mock-jc-cert-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #CCFBF1, #99F6E4);
}

.mock-jc-cert-card:last-child .mock-jc-cert-icon-wrapper {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}

.mock-jc-cert-label {
    height: 8px;
    width: 70%;
    background: #D1D5DB;
    border-radius: 3px;
}

.mock-jc-cert-btn {
    height: 22px;
    width: 80%;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    border-radius: 6px;
}

.mock-jc-coming-soon {
    height: 18px;
    width: 70%;
    background: #FEF9C3;
    border-radius: 20px;
}

.mock-jc-apps {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-jc-app-row {
    background: #ffffff;
    border-radius: 7px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #F1F5F9;
}

.mock-jc-cert-type {
    flex: 1;
    height: 8px;
    background: #E2E8F0;
    border-radius: 3px;
}

.mock-jc-cert-date {
    height: 8px;
    width: 52px;
    background: #D1D5DB;
    border-radius: 3px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Mobile: Slide background gradients for steps 6–10
   -------------------------------------------------------------------------- */
.swipe-slide:nth-child(6) .swipe-slide-bg {
    background: linear-gradient(145deg, #14532D 0%, #16A34A 50%, #4ADE80 100%);
}

.swipe-slide:nth-child(7) .swipe-slide-bg {
    background: linear-gradient(145deg, #1E293B 0%, #4F46E5 50%, #7C3AED 100%);
}

.swipe-slide:nth-child(8) .swipe-slide-bg {
    background: linear-gradient(145deg, #78350F 0%, #D97706 55%, #FCD34D 100%);
}

.swipe-slide:nth-child(9) .swipe-slide-bg {
    background: linear-gradient(145deg, #7F1D1D 0%, #DC2626 50%, #F87171 100%);
}

.swipe-slide:nth-child(10) .swipe-slide-bg {
    background: linear-gradient(145deg, #0F766E 0%, #0D9488 45%, #14B8A6 100%);
}
