html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== APP BAR ===== */
.cf-appbar {
    z-index: 1200 !important;
}

.cf-avatar {
    border: 2px solid rgba(255,255,255,0.3) !important;
}

/* ===== DRAWER ===== */
.cf-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
}

.cf-drawer-header {
    border-bottom: 1px solid var(--mud-palette-divider) !important;
    padding: 16px !important;
}

.cf-logo-avatar {
    border-radius: 10px !important;
}

.cf-nav-menu .mud-nav-link {
    border-radius: 8px !important;
    margin: 2px 8px !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
}

.cf-nav-menu .mud-nav-link.active {
    background-color: var(--mud-palette-primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

.cf-nav-menu .mud-nav-link.active .mud-icon-root {
    color: white !important;
}

.cf-nav-menu .mud-nav-link:not(.active):hover {
    background-color: var(--mud-palette-hover) !important;
}

.cf-nav-section-title {
    font-size: 0.65rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

/* ===== MAIN CONTENT ===== */
.cf-main-content {
    padding: 24px !important;
    margin-top: 3rem;
    min-height: calc(100vh - 48px) !important;
    background-color: var(--mud-palette-background) !important;
    overflow-x: hidden !important;
}

@media (max-width: 600px) {
    .cf-main-content {
        padding: 12px !important;
    }
}

/* ===== PAGE LAYOUT ===== */
.cf-page {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.cf-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== STAT CARDS ===== */
.cf-stat-card {
    padding: 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: 1px solid var(--mud-palette-divider) !important;
}

.cf-stat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.cf-stat-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.cf-stat-primary .cf-stat-icon {
    background-color: rgba(89, 74, 226, 0.12) !important;
    color: #594AE2 !important;
}

.cf-stat-success .cf-stat-icon {
    background-color: rgba(0, 200, 83, 0.12) !important;
    color: #00C853 !important;
}

.cf-stat-info .cf-stat-icon {
    background-color: rgba(33, 150, 243, 0.12) !important;
    color: #2196F3 !important;
}

.cf-stat-warning .cf-stat-icon {
    background-color: rgba(255, 152, 0, 0.12) !important;
    color: #FF9800 !important;
}

.cf-stat-info {
    flex: 1;
    min-width: 0;
}

/* ===== CHART CARDS ===== */
.cf-chart-card {
    padding: 24px !important;
    border-radius: 12px !important;
    border: 1px solid var(--mud-palette-divider) !important;
    height: 100%;
}

/* ===== LOGIN PAGE ===== */
.cf-login-wrapper {
    min-height: 100vh;
    display: flex;
}

.cf-login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.cf-login-left {
    flex: 1;
    background: linear-gradient(135deg, #594AE2 0%, #7C4DFF 50%, #9C27B0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.cf-login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: cf-pulse 8s ease-in-out infinite;
}

@keyframes cf-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cf-login-brand {
    text-align: center;
    z-index: 1;
}

.cf-login-logo {
    border-radius: 16px !important;
    width: 72px !important;
    height: 72px !important;
}

.cf-login-features {
    margin-top: 48px;
    z-index: 1;
}

.cf-login-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cf-login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background-color: #F5F5FA;
}

.cf-login-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.cf-login-button {
    height: 48px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-transform: none !important;
}

@media (max-width: 960px) {
    .cf-login-left {
        display: none;
    }
    .cf-login-right {
        padding: 24px;
    }
}

/* ===== ACCESS DENIED / 404 ===== */
.cf-access-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}

.cf-access-card {
    padding: 48px !important;
    text-align: center;
    border-radius: 16px !important;
    max-width: 480px;
}

/* ===== ERROR ===== */
.cf-error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}

.cf-error-card {
    padding: 48px !important;
    text-align: center;
    border-radius: 16px !important;
    max-width: 520px;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== RESPONSIVE TABLES ===== */
@media (max-width: 600px) {
    .mud-table {
        font-size: 0.8rem !important;
    }
    .mud-table .mud-table-cell {
        padding: 8px !important;
    }
}

/* ===== LANDING PAGE ===== */
.landing-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-main {
    flex: 1;
}

.landing-appbar {
    background: transparent !important;
    box-shadow: none !important;
    position: absolute !important;
    z-index: 100 !important;
}

.landing-nav-link {
    color: var(--mud-palette-text-primary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.landing-nav-link:hover {
    color: var(--mud-palette-primary) !important;
}

.landing-cta-button {
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 8px 24px !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 80px 0;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #F5F5FA 0%, #E8E6FF 50%, #F0F4FF 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(89, 74, 226, 0.08) 0%, transparent 70%);
    animation: hero-pulse 10s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    color: var(--mud-palette-text-primary) !important;
}

@media (max-width: 960px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-section {
        padding: 100px 0 60px 0;
        min-height: auto;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #594AE2 0%, #FF4081 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    line-height: 1.6 !important;
    max-width: 540px;
}

.hero-button {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    font-size: 1rem !important;
}

.hero-illustration {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-card {
    padding: 24px !important;
    border-radius: 16px !important;
    width: 100%;
    max-width: 380px;
    background: white !important;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: white;
}

.feature-card {
    padding: 32px !important;
    border-radius: 16px !important;
    border: 1px solid var(--mud-palette-divider) !important;
    height: 100%;
    transition: all 0.3s ease !important;
    background: white !important;
}

.feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(89, 74, 226, 0.15) !important;
    border-color: var(--mud-palette-primary) !important;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F5F5FA 0%, #E8E6FF 100%);
}

.stat-item {
    text-align: center;
    padding: 32px 16px;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background: white;
}

.step-card {
    padding: 40px 32px !important;
    border-radius: 16px !important;
    border: 1px solid var(--mud-palette-divider) !important;
    text-align: center;
    height: 100%;
    position: relative;
    background: white !important;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(89, 74, 226, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #F5F5FA 0%, #E8E6FF 100%);
}

.cta-card {
    padding: 64px 48px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #594AE2 0%, #7C4DFF 100%) !important;
    text-align: center;
}

.cta-button {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 14px 40px !important;
    font-size: 1.1rem !important;
    color: var(--mud-palette-primary) !important;
}

/* Footer */
.landing-footer {
    background: #1A1A2E;
    color: white;
    padding: 64px 0 32px 0;
}

.landing-footer .mud-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.landing-footer .mud-link:hover {
    color: white !important;
}

.landing-footer .mud-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 600px) {
    .features-section,
    .how-it-works-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .cta-card {
        padding: 40px 24px !important;
    }
    
    .landing-footer {
        padding: 40px 0 24px 0;
    }
}

.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 48px;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ============================================================
   USER LAYOUT — Modern applicant-facing portal
   ============================================================ */

/* ---- Layout container ---- */
.user-layout {
    display: flex;
    min-height: 100vh;
    background: #F5F5FA;
}
.user-layout.dark {
    background: #0F0F23;
}

/* ---- Sidebar ---- */
.user-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}
.user-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.4);
}
.user-sidebar-overlay.open { display: block; }

.user-sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.user-logo {
    border-radius: 10px !important;
    width: 40px !important;
    height: 40px !important;
}
.user-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}
.user-brand-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.user-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.user-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.user-nav-item.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
}
.user-nav-item .mud-icon-root { color: inherit !important; }
.user-nav-item.active .mud-icon-root { color: #fff !important; }

.user-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- Topbar ---- */
.user-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.user-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid #E8E8EE;
}

.user-layout.dark .user-topbar {
    background: #1A1A2E;
    border-color: rgba(255,255,255,0.08);
}

.user-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #424242;
    padding: 4px;
}
.user-layout.dark .user-menu-toggle { color: #E0E0E0; }

.user-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 50% !important;
}
.user-info .mud-text { line-height: 1.2; }

/* ---- Content area ---- */
.user-content {
    flex: 1;
    padding: 32px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ---- Mobile bottom nav ---- */
.user-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid #E8E8EE;
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0;
}

.user-layout.dark .user-mobile-nav {
    background: #1A1A2E;
    border-color: rgba(255,255,255,0.08);
}

.user-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #757575;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}
.user-mobile-nav-item.active { color: #594AE2; }
.user-mobile-nav-item .mud-icon-root { color: inherit !important; }
.user-layout.dark .user-mobile-nav-item { color: #9E9E9E; }
.user-layout.dark .user-mobile-nav-item.active { color: #7C4DFF; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .user-sidebar {
        transform: translateX(-100%);
    }
    .user-sidebar.open {
        transform: translateX(0);
    }
    .user-main {
        margin-left: 0;
    }
    .user-topbar {
        padding: 0 16px;
    }
    .user-content {
        padding: 16px;
        padding-bottom: 80px;
    }
    .user-menu-toggle {
        display: block;
    }
    .user-mobile-nav {
        display: flex;
    }
    .user-info {
        display: none;
    }
}

/* ============================================================
   APPLY — Landing Hero & Service Cards
   ============================================================ */

.apply-hero {
    text-align: center;
    padding: 48px 24px 40px;
    background: linear-gradient(135deg, #F5F5FA 0%, #E8E6FF 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}
.user-layout.dark .apply-hero {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
}

.apply-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1A1A2E;
}
.user-layout.dark .apply-hero-title { color: #E0E0E0; }

.apply-hero-subtitle {
    font-size: 1rem;
    color: #6B7280;
    margin: 0 0 28px;
}
.user-layout.dark .apply-hero-subtitle { color: #9E9E9E; }

.apply-hero .mud-button-root {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 12px 36px !important;
    font-size: 1rem !important;
}

/* ---- Service Cards Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.service-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #E8E8EE;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(89,74,226,0.12);
    border-color: #594AE2;
}

.user-layout.dark .service-card {
    background: #1A1A2E;
    border-color: rgba(255,255,255,0.08);
}
.user-layout.dark .service-card:hover {
    border-color: #7C4DFF;
    box-shadow: 0 12px 32px rgba(124,77,255,0.15);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(89,74,226,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #594AE2;
    font-size: 1.5rem;
}
.user-layout.dark .service-card-icon {
    background: rgba(124,77,255,0.15);
    color: #7C4DFF;
}

.service-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #1A1A2E;
}
.user-layout.dark .service-card-title { color: #E0E0E0; }

.service-card-desc {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}
.user-layout.dark .service-card-desc { color: #9E9E9E; }

.service-card .mud-button-root {
    align-self: flex-start;
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

@media (max-width: 640px) {
    .apply-hero {
        padding: 32px 16px 28px;
    }
    .apply-hero-title { font-size: 1.5rem; }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   WIZARD — Step Indicator
   ============================================================ */

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wizard-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    background: #E0E0E0;
    color: #757575;
    flex-shrink: 0;
}
.wizard-step.active .wizard-step-circle {
    background: #594AE2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(89,74,226,0.3);
}
.wizard-step.completed .wizard-step-circle {
    background: #594AE2;
    color: #fff;
}
.wizard-step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #757575;
    white-space: nowrap;
}
.wizard-step.active .wizard-step-label {
    color: #1A1A2E;
    font-weight: 600;
}
.wizard-step.completed .wizard-step-label {
    color: #594AE2;
}
.wizard-connector {
    width: 40px;
    height: 2px;
    background: #E0E0E0;
    margin: 0 8px;
    border-radius: 1px;
    transition: background 0.3s ease;
}
.wizard-connector.completed {
    background: #594AE2;
}

.user-layout.dark .wizard-step-circle {
    background: #2C2C4A;
    color: #9E9E9E;
}
.user-layout.dark .wizard-step.active .wizard-step-circle,
.user-layout.dark .wizard-step.completed .wizard-step-circle {
    background: #7C4DFF;
    color: #fff;
}
.user-layout.dark .wizard-step-label { color: #9E9E9E; }
.user-layout.dark .wizard-step.active .wizard-step-label { color: #E0E0E0; }
.user-layout.dark .wizard-step.completed .wizard-step-label { color: #7C4DFF; }
.user-layout.dark .wizard-connector { background: #2C2C4A; }
.user-layout.dark .wizard-connector.completed { background: #7C4DFF; }

@media (max-width: 640px) {
    .wizard-steps {
        gap: 4px;
    }
    .wizard-connector { width: 24px; margin: 0 4px; }
    .wizard-step-label { display: none; }
}

/* ---- Form card ---- */
.form-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    border: 1px solid #E8E8EE;
    margin-bottom: 20px;
}
.user-layout.dark .form-card {
    background: #1A1A2E;
    border-color: rgba(255,255,255,0.08);
}

.form-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 24px;
    color: #1A1A2E;
}
.user-layout.dark .form-card-title { color: #E0E0E0; }

/* ---- Sticky action bar ---- */
.wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid #E8E8EE;
    margin-top: 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}
.user-layout.dark .wizard-actions {
    background: #1A1A2E;
    border-color: rgba(255,255,255,0.08);
}

@media (max-width: 640px) {
    .form-card {
        padding: 20px;
    }
    .wizard-actions {
        border-radius: 14px 14px 0 0;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================================
   REVIEW SCREEN — Two-column summary
   ============================================================ */

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.review-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.review-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.user-layout.dark .review-item-label { color: #9E9E9E; }

.review-item-value {
    font-size: 0.95rem;
    color: #1A1A2E;
    line-height: 1.4;
}
.user-layout.dark .review-item-value { color: #E0E0E0; }

@media (max-width: 640px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */

.success-card {
    text-align: center;
    padding: 48px 32px !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.user-layout.dark .success-card {
    background: #1A1A2E !important;
}

.success-icon {
    font-size: 4rem !important;
    color: #00C853 !important;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 16px 0 8px;
    color: #1A1A2E;
}
.user-layout.dark .success-title { color: #E0E0E0; }

.success-ref {
    font-size: 1.25rem;
    font-weight: 700;
    color: #594AE2;
    margin: 16px 0 24px;
}
.user-layout.dark .success-ref { color: #7C4DFF; }

/* ============================================================
   MY APPLICATIONS — Cards dashboard
   ============================================================ */

.applications-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.app-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #E8E8EE;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
}
.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #594AE2;
}

.user-layout.dark .app-card {
    background: #1A1A2E;
    border-color: rgba(255,255,255,0.08);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.app-card-ref {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A2E;
}
.user-layout.dark .app-card-ref { color: #E0E0E0; }

.app-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.app-card-service {
    font-size: 0.85rem;
    color: #6B7280;
}
.user-layout.dark .app-card-service { color: #9E9E9E; }

.app-card-date {
    font-size: 0.75rem;
    color: #9E9E9E;
}
.user-layout.dark .app-card-date { color: #6B7280; }

.app-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #E8E8EE;
}
.user-layout.dark .app-card-footer { border-color: rgba(255,255,255,0.08); }

@media (max-width: 640px) {
    .applications-dashboard {
        grid-template-columns: 1fr;
    }
}

/* ---- Status badges ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-badge.submitted { background: #E3F2FD; color: #1565C0; }
.status-badge.underreview { background: #FFF3E0; color: #E65100; }
.status-badge.approved { background: #E8F5E9; color: #2E7D32; }
.status-badge.rejected { background: #FFEBEE; color: #C62828; }
.status-badge.returned { background: #F3E5F5; color: #6A1B9A; }
.status-badge.changesrequested { background: #FFF8E1; color: #F57F17; }
.status-badge.draft { background: #F5F5F5; color: #616161; }
.status-badge.closed { background: #ECEFF1; color: #37474F; }

.user-layout.dark .status-badge.submitted { background: rgba(21,101,192,0.2); color: #90CAF9; }
.user-layout.dark .status-badge.underreview { background: rgba(230,81,0,0.2); color: #FFB74D; }
.user-layout.dark .status-badge.approved { background: rgba(46,125,50,0.2); color: #A5D6A7; }
.user-layout.dark .status-badge.rejected { background: rgba(198,40,40,0.2); color: #EF9A9A; }
.user-layout.dark .status-badge.returned { background: rgba(106,27,154,0.2); color: #CE93D8; }
.user-layout.dark .status-badge.changesrequested { background: rgba(245,127,23,0.2); color: #FFD54F; }
.user-layout.dark .status-badge.draft { background: rgba(255,255,255,0.08); color: #BDBDBD; }
.user-layout.dark .status-badge.closed { background: rgba(55,71,79,0.2); color: #90A4AE; }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.skeleton {
    background: #E0E0E0;
    border-radius: 8px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.user-layout.dark .skeleton { background: #2C2C4A; }

.skeleton-hero {
    height: 200px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.skeleton-card {
    height: 160px;
    border-radius: 14px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}
.skeleton-text-sm { width: 60%; }
.skeleton-text-md { width: 80%; }

/* ============================================================
   WIZARD FULLSCREEN MODE
   ============================================================ */

.user-layout.wizard-mode {
    background: #F5F5FA;
}
.user-layout.wizard-mode.dark {
    background: #0F0F23;
}

.user-main-fullscreen {
    margin-left: 0 !important;
}

.user-content-fullscreen {
    max-width: 720px !important;
    padding: 24px 16px !important;
}

@media (max-width: 768px) {
    .user-content-fullscreen {
        padding: 16px 12px !important;
    }
}

.wizard-topbar-actions {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */

@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 641px) {
    .show-mobile { display: none !important; }
}

/* ============================================================
   FORM BUILDER DRAG-AND-DROP
   ============================================================ */

.field-drag-over {
    outline: 2px dashed var(--mud-palette-primary);
    outline-offset: -2px;
}
