: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:#f8f9fa;display:flex;flex-direction:column;position:relative;box-shadow:0 0 40px #00000026}.app-main{flex:1;overflow-y:auto;padding-bottom:80px}.app-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 10px #00000026;position:sticky;top:0;z-index:20}.app-title{margin:0;font-size:20px;font-weight:600}.app-title-link{color:inherit;text-decoration:none}.driver-pill{display:flex;align-items:center;gap:10px;font-size:14px;background:#fff3;padding:8px 12px;border-radius:999px}.status-dot{width:10px;height:10px;border-radius:50%;background:#9ca3af;position:relative}.status-dot:after{content:"";position:absolute;inset:-4px;border-radius:inherit;border:1px solid rgba(255,255,255,.4)}.status-dot.online{background:#4ade80;animation:pulse 2s infinite}.status-dot.onduty{background:#facc15;animation:pulse 2s infinite}.status-dot.offline{background:#ef4444}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.driver-pill-text{display:flex;flex-direction:column;line-height:1.1}.driver-pill-name{font-weight:600;font-size:13px}.driver-pill-status{font-size:11px;opacity:.9}.tracking-indicator{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.4);background:#ffffff26}.tracking-indicator.active{background:#10b98133}.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 #e5e7eb;position:sticky;top:0;z-index:10}.tab{flex:1;padding:15px;text-align:center;font-weight:500;color:#6b7280;cursor:pointer;background:transparent;border:none;position:relative;font-size:14px}.tab.active{color:#667eea}.tab.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#667eea}.tab-badge{background:#ef4444;color:#fff;font-size:11px;padding:2px 6px;border-radius:999px;margin-left:6px}.orders-page{display:flex;flex-direction:column;min-height:100%}.orders-content,.pending-orders,.active-orders{display:flex;flex-direction:column;gap:20px;padding:20px}.orders-list{display:flex;flex-direction:column;gap:15px}.completed-orders{display:flex;flex-direction:column;gap:16px;padding:20px}.completed-orders-list{display:flex;flex-direction:column;gap:12px}.completed-order-card{display:flex;flex-direction:column}.completed-order-summary{background:#fff;border:none;border-radius:12px;padding:18px 20px;box-shadow:0 2px 10px #00000014;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:14px;transition:transform .2s ease,box-shadow .2s ease}.completed-order-summary:focus{outline:2px solid #667eea;outline-offset:2px}.completed-order-summary:hover{transform:translateY(-2px);box-shadow:0 8px 30px #667eea33}.completed-order-card.expanded .completed-order-summary{border-bottom-left-radius:0;border-bottom-right-radius:0}.summary-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.summary-meta{display:flex;align-items:center;gap:8px}.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:12px}.completed-order-summary .customer-avatar{width:40px;height:40px;border-radius:50%;background:#ede9fe;display:grid;place-items:center;font-weight:600;color:#4c1d95}.completed-order-summary .customer-details{display:flex;flex-direction:column}.completed-order-summary .customer-details h3{margin:0;font-size:16px}.completed-order-summary .customer-details p{margin:4px 0 0;color:#6b7280;font-size:13px}.completed-order-detail .order-detail{border-radius:0 0 16px 16px;box-shadow:none;border:1px solid #e5e7eb;border-top:none}.see-more-button{align-self:center;background:none;border:none;color:#667eea;font-weight:600;cursor:pointer;font-size:14px}.see-more-button:hover{text-decoration:underline}.order-card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 10px #00000014;position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease;cursor:pointer}.order-card.static{cursor:default}.order-card:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:#667eea}.order-card.priority:before{background:#dc2626}.order-card.selected{box-shadow:0 8px 30px #667eea40;transform:translateY(-2px)}.order-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px;gap:12px}.order-number{font-size:18px;font-weight:600}.order-timer{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.timer-display{padding:6px 10px;border-radius:8px;font-size:14px;font-weight:600}.timer-display.normal{background:#dcfce7;color:#15803d}.timer-display.warning{background:#fed7aa;color:#c2410c}.timer-display.priority{background:#fecaca;color:#dc2626}.timer-label{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#6b7280}.customer-info{display:flex;align-items:center;gap:12px;padding:12px;background:#f9fafb;border-radius:8px;margin-bottom:15px}.customer-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:grid;place-items:center;font-weight:600}.customer-avatar.large{width:52px;height:52px;font-size:18px}.customer-details h3{margin:0 0 2px;font-size:14px}.customer-details p{margin:0;font-size:12px;color:#6b7280}.phone-link{text-decoration:none;color:#667eea;font-weight:600}.order-total{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#f3f4f6;border-radius:8px;font-weight:600;margin-bottom:15px}.order-items{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.order-item{display:flex;gap:10px;align-items:center;font-size:14px;color:#374151}.item-quantity{font-weight:600;color:#111827;min-width:32px}.item-name{flex:1}.items-section{background:#f9fafb;border-radius:12px;padding:16px;margin-bottom:16px}.items-section h4{margin:0 0 12px;font-size:14px;text-transform:uppercase;letter-spacing:.5px;color:#6b7280}.action-btn{width:100%;padding:16px;border-radius:10px;border:none;cursor:pointer;font-weight:600;letter-spacing:.5px;text-transform:uppercase;transition:transform .2s ease,opacity .2s ease}.action-btn:disabled{opacity:.6;cursor:not-allowed}.action-btn.primary{background:#10b981;color:#fff}.action-btn.danger{background:#dc2626;color:#fff}.accept-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;margin-top:10px}.order-status-tag{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:8px;background:#d1fae5;color:#047857;font-size:12px;font-weight:600;margin-top:12px}.order-detail{background:#fff;border-radius:16px;padding:20px;box-shadow:0 16px 40px #4f46e526}.address-section{display:flex;gap:12px;margin-bottom:15px}.address-icon{width:36px;height:36px;border-radius:10px;background:#ede9fe;display:grid;place-items:center}.address-text h4{font-size:12px;letter-spacing:.6px;text-transform:uppercase;margin:0 0 4px;color:#6b7280}.address-text p{margin:0;line-height:1.4}.address-links{margin-top:10px;display:flex;gap:12px}.address-links a{color:#667eea;font-size:12px;text-decoration:none;font-weight:600}.verification-stack{display:flex;flex-direction:column;gap:16px;margin-top:20px}.completion-banner{margin-top:20px;padding:14px;border-radius:10px;background:#10b98126;color:#047857;font-weight:600;text-align:center}.verify-section{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 12px #00000014}.verify-header h3,.verify-section h3{margin:0 0 16px;font-size:16px}.verify-item{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px;background:#f9fafb;border-radius:8px;border:none;font-size:14px;cursor:pointer;margin-bottom:10px;color:#1f2937}.verify-item.checked{background:#10b9811f}.verify-item.disabled{cursor:default;opacity:.65;justify-content:flex-start}.verify-checkbox{width:24px;height:24px;border-radius:8px;border:2px solid #d1d5db;display:inline-flex;align-items:center;justify-content:center;font-size:14px;color:#fff;background:transparent}.verify-checkbox.checked{background:#667eea;border-color:#667eea}.signature-wrapper{display:flex;flex-direction:column;gap:10px}.signature-canvas{width:100%;height:160px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;touch-action:none}.signature-clear{border:1px solid #e5e7eb;border-radius:8px;padding:10px;background:#f3f4f6;cursor:pointer}.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}}
