:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100%}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:#1f2937;background:linear-gradient(135deg,#667eea,#764ba2)}a{color:inherit}button{font:inherit}.app-container{max-width:430px;margin:0 auto;min-height:100vh;background:#f5f6ff;display:flex;flex-direction:column;position:relative;box-shadow:0 0 40px #00000026;border-radius:32px;overflow:hidden}.app-main{flex:1;overflow-y:auto;padding-bottom:80px}.app-header{background:linear-gradient(135deg,#5b21b6,#7c3aed);color:#fff;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 20px 40px #4c1d9540;position:sticky;top:0;z-index:20}.app-title{margin:0;font-size:22px;font-weight:700;letter-spacing:.03em}.app-title-link{color:inherit;text-decoration:none}.driver-pill{display:flex;align-items:center;gap:12px;background:#ffffff2e;padding:10px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.35);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.status-dot{width:14px;height:14px;border-radius:50%;background:#9ca3af;position:relative;border:2px solid rgba(255,255,255,.35)}.status-dot:after{content:"";position:absolute;inset:-6px;border-radius:inherit;background:radial-gradient(circle,rgba(255,255,255,.5) 0%,transparent 70%);opacity:.4}.status-dot.online{background:#4ade80}.status-dot.onduty{background:#facc15}.status-dot.offline{background:#ef4444}.tracking-indicator{position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(255,255,255,.3);opacity:0;transform:scale(.85);transition:opacity .3s ease,transform .3s ease,border-color .3s ease}.tracking-indicator.active{opacity:1;transform:scale(1);border-color:#10b98199;animation:trackingPulse 2s infinite}@keyframes trackingPulse{0%,to{opacity:.4;transform:scale(1)}50%{opacity:1;transform:scale(1.15)}}.driver-pill-text{display:flex;flex-direction:column;line-height:1.2;text-align:right}.driver-pill-status{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.12em}.driver-pill-name{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#ffffffbf}.bottom-nav{position:sticky;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #e5e7eb;padding:10px 0}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;color:#6b7280;text-decoration:none;font-size:12px}.nav-item span:first-child{font-size:20px}.nav-item.active{color:#667eea;font-weight:600}.login-container{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;padding:20px}.login-content{width:100%;max-width:420px}.login-logo{text-align:center;margin-bottom:40px;color:#fff}.logo-icon{width:100px;height:100px;border-radius:25px;background:#ffffff26;display:grid;place-items:center;font-size:48px;margin:0 auto 20px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 20px 45px #0003}.login-form{background:#fff;border-radius:20px;padding:30px;box-shadow:0 20px 60px #00000040}.form-group{display:flex;flex-direction:column;margin-bottom:20px}.form-group label{font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#4b5563;margin-bottom:8px}.form-group input{border:2px solid #e5e7eb;border-radius:10px;padding:14px 16px;font-size:16px;background:#f9fafb;transition:border-color .3s ease,box-shadow .3s ease}.form-group input:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea33}.login-btn{width:100%;padding:16px;border-radius:10px;border:none;cursor:pointer;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:600;letter-spacing:.6px;text-transform:uppercase;transition:transform .2s ease}.login-btn:disabled{opacity:.7;cursor:wait}.login-btn:not(:disabled):active{transform:scale(.98)}.login-footer{text-align:center;margin-top:25px;padding-top:25px;border-top:1px solid #e5e7eb}.demo-note{color:#667eea;font-size:12px;margin-bottom:10px}.demo-button{background:transparent;border:1px solid #667eea;color:#667eea;padding:8px 16px;border-radius:8px;cursor:pointer;font-size:12px}.tabs{display:flex;background:#fff;border-bottom:1px solid #e5e7ff;position:sticky;top:0;z-index:10;box-shadow:0 12px 28px #764ba214}.tab{flex:1;padding:18px 12px;text-align:center;font-weight:600;color:#a1a1b6;cursor:pointer;background:transparent;border:none;position:relative;font-size:14px;letter-spacing:.02em;transition:color .2s ease}.tab:hover{color:#7c3aed}.tab.active{color:#4c1d95}.tab.active:after{content:"";position:absolute;left:18%;right:18%;bottom:0;height:4px;border-radius:999px 999px 0 0;background:linear-gradient(90deg,#6d28d9,#8b5cf6);box-shadow:0 6px 16px #6d28d933}.tab-badge{background:#ede9fe;color:#5b21b6;font-size:11px;padding:2px 8px;border-radius:999px;margin-left:8px;font-weight:600}.orders-page{display:flex;flex-direction:column;min-height:100%;background:linear-gradient(180deg,#ede9fe8c,#f8faffe6 25%,#fff 55%)}.orders-content,.pending-orders,.active-orders,.completed-orders{display:flex;flex-direction:column;gap:24px;padding:24px}.orders-list{display:flex;flex-direction:column;gap:20px}.completed-orders-list{display:flex;flex-direction:column;gap:18px}.completed-order-card{display:flex;flex-direction:column}.completed-order-summary{background:#fff;border:1px solid #e5e7ff;border-radius:18px;padding:20px 22px;box-shadow:0 18px 38px #667eea1f;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:16px;transition:transform .2s ease,box-shadow .2s ease}.completed-order-summary:focus{outline:2px solid #8b5cf6;outline-offset:3px}.completed-order-summary:hover{transform:translateY(-2px);box-shadow:0 22px 40px #4f46e52e}.completed-order-card.expanded .completed-order-summary{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none}.summary-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.summary-meta{display:flex;align-items:center;gap:10px}.completed-order-summary .order-status-tag{margin:0}.summary-caret{font-size:14px;color:#6b7280;transition:transform .2s ease}.completed-order-card.expanded .summary-caret{transform:rotate(180deg)}.summary-body{display:flex;align-items:center;gap:14px}.completed-order-summary .customer-avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#ede9fe,#ddd6fe);display:grid;place-items:center;font-weight:700;color:#4c1d95;box-shadow:0 12px 24px #4c1d951a}.completed-order-summary .customer-details{display:flex;flex-direction:column}.completed-order-summary .customer-details h3{margin:0;font-size:16px;font-weight:600;color:#1f2937}.completed-order-summary .customer-details p{margin:4px 0 0;color:#6b7280;font-size:13px}.completed-order-detail .order-detail{border-radius:0 0 20px 20px;border:1px solid #e5e7ff;border-top:none;box-shadow:0 28px 45px #4f46e51a}.see-more-button{align-self:center;background:none;border:none;color:#5b21b6;font-weight:600;cursor:pointer;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.see-more-button:hover{text-decoration:underline}.order-card{background:#fff;border-radius:20px;padding:24px;box-shadow:0 24px 60px #667eea2e;position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease;cursor:pointer;border:1px solid #e5e7ff;display:flex;flex-direction:column;gap:18px}.order-card.static{cursor:default}.order-card:before{content:"";position:absolute;top:0;left:0;width:6px;height:100%;background:linear-gradient(180deg,#6d28d9,#8b5cf6)}.order-card.priority:before{background:linear-gradient(180deg,#f97316,#ef4444)}.order-card.selected{box-shadow:0 30px 70px #667eea4d;transform:translateY(-2px)}.order-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.order-number{font-size:18px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#312e81}.order-timer{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.timer-display{padding:10px 16px;border-radius:999px;font-size:16px;font-weight:700;min-width:92px;display:inline-flex;justify-content:center;align-items:center}.timer-display.normal{background:#ecfdf5;color:#047857}.timer-display.warning{background:#fff7ed;color:#c2410c}.timer-display.priority{background:#fee2e2;color:#b91c1c}.timer-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#6b7280}.timer-value{font-variant-numeric:tabular-nums}.customer-info{display:flex;align-items:center;gap:16px;padding:16px;background:linear-gradient(135deg,#ede9fe99,#f8faffe6);border-radius:16px}.customer-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff;display:grid;place-items:center;font-weight:700;font-size:18px;box-shadow:0 16px 35px #6d28d940}.customer-avatar.large{width:60px;height:60px;font-size:22px}.customer-details h3{margin:0 0 4px;font-size:16px;font-weight:600;color:#1f2937}.customer-details p{margin:0;font-size:13px;color:#6b7280}.phone-link{text-decoration:none;color:#4c1d95;font-weight:600}.order-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.order-item{display:flex;gap:12px;align-items:baseline;font-size:15px;color:#1f2937}.order-item+.order-item{padding-top:10px;border-top:1px dashed rgba(99,102,241,.2)}.item-quantity{font-weight:700;color:#4c1d95;min-width:32px}.item-name{flex:1}.items-section{background:#f8faffe6;border-radius:18px;padding:16px 18px;border:1px solid #ede9fe}.items-section.compact{margin:0;background:transparent;border:none;padding:0}.items-section h4{margin:0 0 12px;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#6b7280}.order-total{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:linear-gradient(135deg,#ede9fe99,#f8fafff2);border-radius:18px;font-weight:600;border:1px solid #e5e7ff}.order-total span:first-child{text-transform:uppercase;letter-spacing:.1em;font-size:12px;color:#6b7280}.order-total span:last-child{font-size:20px;font-weight:700;color:#1f2937}.action-btn{width:100%;padding:16px;border-radius:14px;border:none;cursor:pointer;font-weight:700;letter-spacing:.08em;text-transform:uppercase;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .2s ease,box-shadow .2s ease}.action-btn:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed;box-shadow:none}.action-btn:not(:disabled):hover{transform:translateY(-1px)}.action-btn.primary{background:linear-gradient(135deg,#34d399,#059669);color:#fff;box-shadow:0 18px 38px #05966940}.action-btn.danger{background:linear-gradient(135deg,#f87171,#ef4444);color:#fff;box-shadow:0 16px 32px #ef444433}.accept-btn{background:linear-gradient(135deg,#6d28d9,#9333ea);color:#fff;box-shadow:0 22px 48px #6d28d947}.order-status-tag{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:999px;background:#ede9fe;color:#5b21b6;font-size:12px;font-weight:600}.order-detail{background:#fff;border-radius:20px;padding:24px;box-shadow:0 28px 60px #4f46e52e;border:1px solid #e5e7ff;display:flex;flex-direction:column;gap:20px}.address-section{display:flex;gap:16px;align-items:flex-start;background:#f6f5ff;border-radius:18px;padding:18px}.address-section.compact{border:1px solid #ede9fe;background:#f6f5ffd9}.address-icon{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#ede9fe,#ddd6fe);display:grid;place-items:center;font-size:18px;color:#4c1d95}.address-text h4{font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 8px;color:#6b7280}.address-text p{margin:0;line-height:1.5;color:#1f2937}.address-links{margin-top:12px;display:flex;gap:16px;flex-wrap:wrap}.address-links a{color:#4c1d95;font-size:12px;text-decoration:none;font-weight:600;display:inline-flex;align-items:center;gap:6px}.address-links a:after{content:"↗";font-size:11px}.verification-stack{display:flex;flex-direction:column;gap:20px;margin-top:12px}.completion-banner{margin-top:12px;padding:16px;border-radius:14px;background:#10b98126;border:1px solid rgba(16,185,129,.35);color:#047857;font-weight:600;text-align:center}.verify-section{background:#f8faffe6;border-radius:18px;padding:20px;border:1px solid #ede9fe;display:flex;flex-direction:column;gap:12px}.verify-header h3,.verify-section h3{margin:0;font-size:14px;text-transform:uppercase;letter-spacing:.1em;color:#4c1d95}.verify-item{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:#fff;border-radius:14px;border:1px solid #e5e7ff;font-size:14px;cursor:pointer;color:#1f2937;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.verify-item:hover{border-color:#c7d2fe;box-shadow:0 12px 24px #6366f11f}.verify-item.checked{background:#10b9811f;border-color:#10b98166;color:#047857}.verify-checkbox{width:22px;height:22px;border-radius:6px;border:2px solid #d1d5db;display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:#10b981;background:#fff;font-weight:700}.verify-checkbox.checked{background:#34d399;border-color:#34d399;color:#fff}.signature-wrapper{display:flex;flex-direction:column;gap:12px;background:#f8faffe6;border:1px solid #ede9fe;border-radius:18px;padding:16px}.signature-canvas{width:100%;height:160px;border:2px dashed #c7d2fe;border-radius:12px;background:#fff;touch-action:none}.signature-clear{border:none;background:transparent;color:#4c1d95;font-weight:600;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;align-self:flex-end}.order-placeholder,.empty-state{text-align:center;color:#6b7280;padding:40px 20px}.chat-thread{display:flex;flex-direction:column;height:calc(100vh - 200px)}.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(135deg,#667eea1f,#764ba21f)}.chat-bubble{max-width:80%;padding:12px 16px;border-radius:16px;display:flex;flex-direction:column;gap:4px;font-size:14px}.chat-bubble.driver{align-self:flex-end;background:#667eea;color:#fff}.chat-bubble.customer,.chat-bubble.staff{align-self:flex-start;background:#fff;border:1px solid rgba(102,126,234,.25)}.chat-bubble time{font-size:11px;opacity:.75;align-self:flex-end}.chat-input{display:flex;padding:12px;gap:12px;border-top:1px solid #e5e7eb;background:#fff}.chat-input input{flex:1;border:1px solid #d1d5db;border-radius:999px;padding:12px 18px;font-size:14px}.chat-input button{border:none;border-radius:999px;background:#667eea;color:#fff;padding:0 24px;font-weight:600;cursor:pointer}.profile-page{padding:20px;display:flex;flex-direction:column;gap:20px}.profile-card{background:#fff;border-radius:16px;padding:20px;box-shadow:0 10px 30px #0000001a}.profile-card h2,.profile-card h3{margin-top:0}.profile-name{font-size:20px;font-weight:700}.profile-email,.profile-phone{color:#6b7280;margin:4px 0}.status-buttons{display:flex;gap:10px;flex-wrap:wrap}.status-button{flex:1;min-width:100px;border-radius:10px;border:1px solid #d1d5db;padding:12px;cursor:pointer;background:#f9fafb}.status-button.active{background:#667eea1f;border-color:#667eea;color:#4c1d95}.tracking-note{margin-top:12px;font-size:13px;color:#6b7280}.toast-container{position:fixed;top:20px;right:20px;display:flex;flex-direction:column;gap:12px;z-index:100}.toast{min-width:260px;background:#fff;border-radius:12px;padding:14px 16px;box-shadow:0 10px 30px #00000026;display:flex;align-items:flex-start;gap:12px;border-left:4px solid transparent}.toast.success{border-color:#10b981}.toast.error{border-color:#ef4444}.toast.info{border-color:#6366f1}.toast-content{flex:1}.toast-content strong{display:block;margin-bottom:4px}.toast-content p{margin:0;font-size:13px;color:#4b5563}.toast-close{background:transparent;border:none;font-size:18px;line-height:1;cursor:pointer}.loading-screen{min-height:100vh;display:grid;place-items:center;color:#fff;font-weight:600;background:linear-gradient(135deg,#667eea,#764ba2)}@media (min-width: 768px){body{display:flex;justify-content:center}.app-container{max-width:100%;width:420px}.toast-container{right:calc(50% - 230px)}.orders-content{flex-direction:row;align-items:flex-start}.orders-list,.order-detail{flex:1}}
