@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #E0F2FE;
    --primary-fade: #F0F9FF;
    --secondary: #06B6D4;
    --accent: #8B5CF6;
    --white: #FFFFFF;
    --dark: #0F172A;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --gray-lighter: #CBD5E1;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --surface: #F8FAFC;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

body { 
    background: #f0f0f0;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    padding: 20px;
}

/* Device Frame */
.device-frame {
    width: 390px; 
    height: 844px; 
    background: #000; 
    border-radius: 48px; 
    padding: 12px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15), 
        0 10px 20px rgba(0,0,0,0.1),
        inset 0 0 0 3px #333;
    position: relative;
}

.dynamic-island { 
    position: absolute; 
    top: 22px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 110px; 
    height: 32px; 
    background: #000; 
    border-radius: 18px; 
    z-index: 100;
}

.home-indicator { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 120px; 
    height: 4px; 
    background: #fff; 
    border-radius: 8px; 
    z-index: 100; 
    opacity: 0.25;
}

/* App Screen */
.app-screen {
    width: 100%; 
    height: 100%; 
    border-radius: 40px; 
    overflow-y: auto; 
    overflow-x: hidden;
    background: var(--white);
    position: relative; 
    scroll-behavior: smooth;
    display: flex; 
    flex-direction: column;
}

.app-screen::-webkit-scrollbar { display: none; }

.content-area { flex: 1; }

/* Spacing */
.pad-24 { padding: 24px; }
.pad-20 { padding: 20px; }
.pad-16 { padding: 16px; }
.mt-50 { margin-top: 50px; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }
.mt-12 { margin-top: 12px; }
.mt-8 { margin-top: 8px; }

/* Typography - Adjusted sizes */
.header-title { 
    font-size: 26px; 
    font-weight: 800; 
    color: var(--dark); 
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.header-sub { 
    font-size: 15px; 
    color: var(--gray); 
    font-weight: 400; 
    margin-top: 8px;
    line-height: 1.5;
}

.text-small {
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.5;
}

.text-xs {
    font-size: 12px;
    color: var(--gray-light);
    font-weight: 400;
}

/* Form Elements */
.input-label { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--dark); 
    margin-bottom: 10px; 
}

.minimal-input {
    display: flex; 
    align-items: center; 
    background: var(--surface);
    border-radius: 14px; 
    padding: 14px 16px; 
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.minimal-input:focus-within { 
    border-color: var(--primary); 
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.minimal-input input, .minimal-input select {
    flex: 1; 
    border: none; 
    background: transparent; 
    font-size: 15px; 
    font-weight: 500; 
    color: var(--dark); 
    outline: none;
}

.minimal-input input::placeholder {
    color: var(--gray-light);
}

.prefix { 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 15px; 
    margin-right: 10px;
}

/* Role Options */
.role-option {
    display: flex; 
    align-items: center; 
    padding: 18px; 
    background: var(--surface);
    border-radius: 16px; 
    margin-bottom: 14px; 
    cursor: pointer; 
    border: 2px solid transparent;
    transition: all 0.2s;
}

.role-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.role-option.active { 
    border-color: var(--primary); 
    background: var(--primary-light);
}

.role-icon { 
    font-size: 24px; 
    color: var(--primary); 
    margin-right: 16px;
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s;
}

.role-option.active .role-icon {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.role-text h3 { 
    font-size: 16px; 
    color: var(--dark); 
    font-weight: 700; 
}

.role-text p { 
    font-size: 13px; 
    color: var(--gray); 
    margin-top: 4px; 
}

.check-icon {
    transition: all 0.3s;
}

.role-option.active .check-icon {
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Buttons */
.btn-primary {
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none; 
    border-radius: 14px; 
    font-size: 15px; 
    font-weight: 700;
    cursor: pointer; 
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:active { 
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%; 
    padding: 16px; 
    background: var(--surface);
    color: var(--dark);
    border: none;
    border-radius: 14px; 
    font-size: 15px; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.2s;
}

.btn-outline {
    width: 100%; 
    padding: 16px; 
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 14px; 
    font-size: 15px; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.2s;
}

.btn-danger {
    width: 100%; 
    padding: 16px; 
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    border-radius: 14px; 
    font-size: 15px; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.2s;
}

/* Bottom Dock */
.bottom-dock { 
    position: sticky; 
    bottom: 70px; 
    left: 50; 
    width: 100%; 
    padding: 20px 24px 32px 24px; 
    background: linear-gradient(to top, var(--white) 90%, transparent);
    z-index: 50;
}

.auth-footer { 
    text-align: center; 
    font-size: 14px; 
    color: var(--gray); 
    margin-top: 16px;
}

.auth-footer a { 
    color: var(--primary); 
    font-weight: 700; 
    text-decoration: none;
}

/* Splash Screen with Animation */
.splash-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-fade) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.splash-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.splash-logo {
    font-size: 80px; 
    color: var(--primary);
    animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(14, 165, 233, 0.3));
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.splash-title {
    font-size: 36px; 
    font-weight: 800; 
    color: var(--dark);
    margin-top: 32px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--gray-lighter);
    transition: all 0.3s;
}

.step.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    animation: pulse 2s infinite;
}

.step.completed {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--gray-lighter);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 0.5s;
}

.step-line.completed::after {
    width: 100%;
}

/* Dashboard Header */

/* Sticky Top Navbar */
.top-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(180deg, var(--primary-fade) 0%, var(--white) 100%);
}

.top-sticky-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--surface);
}
.dash-header { 
    padding: 55px 20px 24px; 
    background: linear-gradient(180deg, var(--primary-fade) 0%, var(--white) 100%);
    position: sticky;
    top: 0;
    z-index: 90;
}

.dash-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-avatar {
    width: 48px; 
    height: 48px; 
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.stat-card {
    background: var(--white);
    padding: 18px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid var(--surface);
    cursor: pointer;
}

.stat-card:active {
    transform: scale(0.96);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
    font-weight: 500;
}

.stat-card.primary .stat-value { color: var(--primary); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* Job Cards */
.job-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    border: 1px solid transparent;
}

.job-card:active {
    transform: scale(0.98);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.job-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
}

.job-type.install { background: var(--primary-light); color: var(--primary); }
.job-type.repair { background: var(--danger-light); color: var(--danger); }
.job-type.service { background: var(--success-light); color: var(--success); }
.job-type.warranty { background: var(--warning-light); color: var(--warning); }

.job-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-customer {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.job-product {
    font-size: 14px;
    color: var(--gray);
    margin-top: 6px;
    font-weight: 500;
}

.job-meta {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-lighter);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    border-bottom: 1px solid var(--surface);
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--white);
    position: sticky;
    top: 132px;
    z-index: 89;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.tab:hover {
    color: var(--primary);
}

/* Tab Content Animation */
.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Job Details */
.detail-section {
    padding: 20px;
    border-bottom: 1px solid var(--surface);
}

.detail-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    font-weight: 700;
}

.detail-value {
    font-size: 15px;
    color: var(--dark);
    font-weight: 600;
}

.customer-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.customer-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-fade) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.contact-btn {
    flex: 1;
    padding: 12px;
    background: var(--surface);
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.contact-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.contact-btn.primary:hover {
    background: var(--primary-dark);
}

/* SLA Badge */
.sla-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.sla-badge.urgent {
    background: var(--danger-light);
    color: var(--danger);
    animation: pulse 2s infinite;
}

.sla-badge.normal {
    background: var(--primary-light);
    color: var(--primary);
}

/* Action Buttons Row */
.action-row {
    display: flex;
    gap: 12px;
}

.action-row .btn-primary,
.action-row .btn-danger,
.action-row .btn-secondary {
    flex: 1;
}

/* OTP Inputs */
.otp-container {
    display: flex; 
    gap: 12px;
    justify-content: center;
}

.otp-input {
    width: 64px;
    height: 72px;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 16px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    transition: all 0.3s;
}

.otp-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Reject Reasons */
.reason-list {
    padding: 0 20px;
}

.reason-item {
    display: flex;
    align-items: center;
    padding: 18px;
    background: var(--surface);
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.reason-item:hover {
    border-color: var(--gray-lighter);
}

.reason-item.selected {
    background: var(--primary-light);
    border-color: var(--primary);
}

.reason-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-lighter);
    border-radius: 50%;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.reason-item.selected .reason-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.reason-text {
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

/* Upload Grid & Box */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.upload-box {
    background: var(--surface);
    border: 2px dashed var(--gray-lighter);
    border-radius: 16px;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 120px;
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px);
}

.upload-box .material-symbols-rounded {
    color: var(--gray);
    font-size: 36px;
    transition: all 0.3s;
}

.upload-box:hover .material-symbols-rounded {
    color: var(--primary);
    transform: scale(1.1);
}

.upload-box span:not(.material-symbols-rounded) {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

/* ID Type Selector */
.id-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.id-type-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--gray-lighter);
    background: var(--white);
    border-radius: 12px;
    font-weight: 600;
    color: var(--gray);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.id-type-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Notification Item */
.notif-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--surface);
    transition: all 0.2s;
}

.notif-item:hover {
    background: var(--surface);
}

.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.notif-icon.blue { background: var(--primary-light); color: var(--primary); }
.notif-icon.green { background: var(--success-light); color: var(--success); }
.notif-icon.orange { background: var(--warning-light); color: var(--warning); }

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.notif-desc {
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: var(--gray-light);
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state .material-symbols-rounded {
    font-size: 64px;
    color: var(--gray-lighter);
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray);
}

/* Status Page */
.status-container {
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 24px; 
    text-align: center;
}

.status-icon {
    width: 100px; 
    height: 100px; 
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-fade) 100%);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 28px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.status-icon::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px dashed var(--primary-light);
    border-radius: 50%;
    animation: spin 15s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.status-icon .material-symbols-rounded {
    font-size: 48px; 
    color: var(--primary);
}

.status-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.status-desc {
    font-size: 15px;
    color: var(--gray);
    margin-top: 12px;
    line-height: 1.6;
    max-width: 300px;
}

/* Info Box */
.info-box {
    background: var(--surface);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box .icon {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

/* Earnings Card */
.earnings-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.earnings-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.earnings-amount {
    font-size: 36px;
    font-weight: 800;
    margin-top: 8px;
}

/* Status Step */
.status-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.status-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.status-step-icon.done {
    background: var(--success);
    color: white;
}

.status-step-icon.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-step-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* STICKY BOTTOM NAVIGATION */
.bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--surface);
    padding: 12px 0 0px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 120;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-item .nav-icon {
    font-size: 24px;
    color: var(--gray);
    transition: all 0.2s;
}

.nav-item .nav-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.2s;
}

.nav-item.active .nav-icon {
    color: var(--primary);
}

.nav-item.active .nav-label {
    color: var(--primary);
    font-weight: 600;
}

/* Content padding for bottom nav */
.content-with-nav {
    padding-bottom: 110px;
}



/* Global Header Controls */
.auto-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.back-chip {
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.back-chip .material-symbols-rounded {
    font-size: 16px;
}

.ghost-chip {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Dashboard Enhancement */
.dashboard-surface {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 45%, #6366f1 100%);
    border-radius: 18px;
    padding: 20px;
    color: var(--white);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.quick-link-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--primary-light);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.quick-link-card .material-symbols-rounded {
    color: var(--primary);
}

/* Presentation-grade workflow chrome */
.auto-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.back-arrow-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-arrow-btn .material-symbols-rounded {
    font-size: 20px;
}

.workflow-mini {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
}

.workflow-card {
    background: var(--white);
    border: 1px solid var(--primary-light);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
    margin-bottom: 12px;
}

.workflow-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.workflow-card-sub {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.45;
}

.kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.kpi-box {
    background: var(--surface);
    border-radius: 12px;
    padding: 10px;
}

.kpi-label {
    font-size: 11px;
    color: var(--gray);
}

.kpi-value {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.dashboard-surface {
    background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 45%, #6366f1 100%);
    border-radius: 18px;
    padding: 20px;
    color: var(--white);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.quick-link-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--primary-light);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.quick-link-card .material-symbols-rounded {
    color: var(--primary);
}

/* Production Screen Layout */
.screen-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-back-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.inline-back-btn .material-symbols-rounded {
    font-size: 20px;
    color: var(--dark);
}

.screen-title {
    font-size: 23px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.4px;
}

.screen-subtitle {
    font-size: 14px;
    color: var(--gray);
    margin-top: 10px;
    line-height: 1.45;
}

.screen-type-badge {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 10px;
}

.screen-type-badge .material-symbols-rounded {
    font-size: 15px;
}

.prod-shell {
    display: grid;
    gap: 12px;
}

.prod-card {
    background: var(--white);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.prod-hero {
    background: linear-gradient(145deg, #f0f9ff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
}

.prod-hero-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
}

.prod-hero-sub {
    margin-top: 5px;
    font-size: 13px;
    color: var(--gray);
}

.prod-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.prod-text {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.prod-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.prod-k {
    font-size: 11px;
    color: var(--gray);
}

.prod-v {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.prod-list-item {
    font-size: 13px;
    color: var(--dark);
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-lighter);
}

.prod-list-item:last-child {
    border-bottom: none;
}

.prod-map {
    height: 230px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    background:
        linear-gradient(45deg, rgba(14, 165, 233, 0.08) 25%, transparent 25%, transparent 50%, rgba(14, 165, 233, 0.08) 50%, rgba(14, 165, 233, 0.08) 75%, transparent 75%, transparent),
        linear-gradient(135deg, #ecfeff, #eff6ff);
    background-size: 28px 28px, cover;
}

.map-route {
    position: absolute;
    left: 18%;
    top: 62%;
    width: 64%;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.map-pin {
    position: absolute;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.map-pin.customer {
    right: 12%;
    top: 20%;
    background: var(--danger);
}

.map-pin.tech {
    left: 12%;
    top: 58%;
    background: var(--success);
}

/* Workflow V2 Theme */
.flow-v2 {
    background: radial-gradient(circle at 0% 0%, #ecfeff 0%, #ffffff 40%);
}

/* Header with Logo - Rounded Container Style */
.app-header {
    padding: 55px 24px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-header-logo-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.app-header-logo {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 14px;
}

.app-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-header-subtitle {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.app-header-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

/* Splash Screen Logo Animation */
.splash-logo-box {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.35);
    animation: splashBoxPop 1s ease-out forwards;
}

.splash-logo-img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 24px;
    animation: splashLogoFadeIn 1s ease-out 0.2s both;
}

@keyframes splashBoxPop {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashLogoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.neo-header {
    padding: 54px 20px 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0ea5e9 100%);
    color: white;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.neo-head-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neo-back {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.neo-back .material-symbols-rounded {
    font-size: 20px;
}

.neo-head-text h1 {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.neo-head-text p {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.9;
    max-width: 250px;
}

.neo-icon {
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.neo-icon .material-symbols-rounded {
    font-size: 22px;
}

.neo-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.08);
    padding: 14px;
}

.neo-item {
    font-size: 13px;
    color: var(--dark);
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.neo-item:last-child {
    border-bottom: none;
}

.neo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.neo-metric {
    background: linear-gradient(145deg, #f8fafc, #eff6ff);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px;
}

.neo-metric span {
    font-size: 11px;
    color: var(--gray);
}

.neo-metric strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--dark);
}

.route-stage {
    position: relative;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #ecfeff, #eff6ff);
    border: 1px solid #bae6fd;
}

.route-layer {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(14,165,233,0.10) 1px, transparent 1px), linear-gradient(rgba(14,165,233,0.10) 1px, transparent 1px);
    background-size: 26px 26px;
}

.route-line {
    position: absolute;
    left: 18%;
    top: 58%;
    width: 62%;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #10b981, #0ea5e9, #6366f1);
}

.route-badge {
    position: absolute;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.route-badge.from {
    left: 12%;
    top: 54%;
    background: #10b981;
}

.route-badge.to {
    right: 12%;
    top: 22%;
    background: #ef4444;
}

/* Dashboard Banner */
.dash-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.dash-banner:active {
    transform: scale(0.98);
}

/* Finance Cards */
.finance-card {
    background: var(--white);
    border: 1px solid var(--surface);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.finance-card:active {
    transform: scale(0.96);
}

.finance-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.finance-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.finance-label {
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
    font-weight: 500;
}

/* Empty Technician Card */
.empty-tech-card {
    background: var(--surface);
    border: 2px dashed var(--gray-lighter);
    border-radius: 16px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.empty-tech-card:hover {
    border-color: var(--primary);
    background: var(--primary-fade);
}

/* Stock Cards */
.stock-card {
    background: var(--white);
    border: 1px solid var(--surface);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stock-card:active {
    transform: scale(0.96);
}

.stock-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stock-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.stock-label {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
    font-weight: 500;
}

/* Stock Date Filter */
.stock-date-filter {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stock-date-filter::-webkit-scrollbar {
    display: none;
}

.date-filter-chip {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    background: var(--surface);
    border: 1px solid var(--gray-lighter);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-filter-chip.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.date-filter-chip:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* Help Videos */
.help-videos-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.help-videos-scroll::-webkit-scrollbar {
    display: none;
}

.help-video-card {
    min-width: 160px;
    max-width: 160px;
    background: var(--white);
    border: 1px solid var(--surface);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.help-video-card:active {
    transform: scale(0.97);
}

.help-video-thumb {
    width: 100%;
    height: 95px;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-video-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    padding: 10px 10px 2px;
    line-height: 1.3;
}

.help-video-duration {
    font-size: 11px;
    color: var(--gray);
    padding: 0 10px 10px;
}
