.kiosk-container{height:100vh;height:100dvh;display:flex;flex-direction:row;background:linear-gradient(135deg,#fdf2f8,#fce7f3 30%,#fef3c7);position:fixed;top:0;right:0;bottom:0;left:0;z-index:500;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;overflow:hidden}.kiosk-container .hidden{display:none!important}.kiosk-container .kiosk-left{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3vh 3vw;position:relative}.kiosk-container .kiosk-info{display:flex;flex-direction:column;align-items:center;margin-bottom:3vh}.kiosk-container .brand-badge{width:64px;height:64px;border-radius:20px;background:linear-gradient(135deg,#e8876b,#f5a589);display:flex;align-items:center;justify-content:center;margin-bottom:16px;box-shadow:0 8px 24px #e8876b4d}.kiosk-container .kiosk-title{font-size:clamp(1.4rem,2.5vw,2rem);font-weight:800;color:#1f2937;margin-bottom:8px;letter-spacing:-.02em}.kiosk-container .clock{font-size:clamp(.85rem,1.2vw,1.1rem);font-weight:500;color:#6b7280;background:#ffffffb3;padding:8px 20px;border-radius:12px}.kiosk-container .code-section{display:flex;flex-direction:column;align-items:center}.kiosk-container .kiosk-subtitle{font-size:clamp(.8rem,1.1vw,1rem);color:#9ca3af;margin-bottom:clamp(12px,2vh,24px);font-weight:500}.kiosk-container .code-display{display:flex;gap:clamp(8px,1.2vw,16px)}.kiosk-container .code-digit{width:clamp(56px,6vw,80px);height:clamp(70px,7.5vw,100px);border-radius:20px;background:#fff;border:3px solid #e5e7eb;display:flex;align-items:center;justify-content:center;font-size:clamp(2rem,3.5vw,3rem);font-weight:800;color:#1f2937;box-shadow:0 4px 16px #0000000f;transition:all .15s ease}.kiosk-container .code-digit.filled{border-color:#e8876b;box-shadow:0 6px 20px #e8876b4d}.kiosk-container .code-digit.error{border-color:#ef4444;animation:kioskShake .4s ease}@keyframes kioskShake{0%,to{transform:translate(0)}25%{transform:translate(-8px)}75%{transform:translate(8px)}}.kiosk-container .kiosk-right{width:40vw;max-width:520px;display:flex;align-items:center;justify-content:center;background:#ffffff80;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-left:1px solid rgba(0,0,0,.06);padding:2vh 2vw}.kiosk-container .numpad{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(6px,1vh,12px);width:100%;max-height:100%}.kiosk-container .numpad-btn{aspect-ratio:1 / 1;border-radius:20px;border:none;font-size:clamp(1.6rem,3vw,2.5rem);font-weight:700;cursor:pointer;background:#fff;color:#1f2937;box-shadow:0 2px 10px #0000000f;transition:all .1s ease;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.kiosk-container .numpad-btn:active{transform:scale(.94);background:#f3f4f6}.kiosk-container .numpad-btn.action{background:#f3f4f6;color:#6b7280;font-size:clamp(1rem,1.8vw,1.5rem)}.kiosk-container .numpad-btn.action:active{background:#e5e7eb}.kiosk-container .postman-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#00000080;z-index:550;opacity:0;pointer-events:none;transition:opacity .3s ease}.kiosk-container .postman-overlay.show{opacity:1;pointer-events:auto}.kiosk-container .postman-card{background:#fff;border-radius:28px;padding:48px 64px;text-align:center;box-shadow:0 20px 60px #00000026;transform:scale(.8);transition:transform .3s ease}.kiosk-container .postman-overlay.show .postman-card{transform:scale(1)}.kiosk-container .postman-icon{width:96px;height:96px;border-radius:50%;background:#fff7ed;margin:0 auto 24px;display:flex;align-items:center;justify-content:center}.kiosk-container .postman-title{font-size:1.75rem;font-weight:700;color:#1f2937;margin-bottom:12px}.kiosk-container .postman-message{font-size:1.1rem;color:#6b7280;line-height:1.6;margin-bottom:24px}.kiosk-container .postman-spinner{width:32px;height:32px;border:3px solid #E8876B33;border-top-color:#e8876b;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto}.kiosk-container .result-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0006;z-index:600;opacity:0;pointer-events:none;transition:opacity .3s ease}.kiosk-container .result-overlay.show{opacity:1;pointer-events:auto}.kiosk-container .result-card{background:#fff;border-radius:28px;padding:56px 72px;text-align:center;box-shadow:0 20px 60px #00000026;transform:scale(.8);transition:transform .3s ease}.kiosk-container .result-overlay.show .result-card{transform:scale(1)}.kiosk-container .result-icon{width:96px;height:96px;border-radius:50%;margin:0 auto 24px;display:flex;align-items:center;justify-content:center}.kiosk-container .result-icon.checkin{background:#d1fae5}.kiosk-container .result-icon.checkout{background:#dbeafe}.kiosk-container .result-icon.error{background:#fee2e2}.kiosk-container .result-icon.done{background:#f3f4f6}.kiosk-container .result-title{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:8px}.kiosk-container .result-message{font-size:1.25rem;color:#6b7280}.kiosk-container .confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0006;z-index:590;opacity:0;pointer-events:none;transition:opacity .3s ease}.kiosk-container .confirm-overlay.show{opacity:1;pointer-events:auto}.kiosk-container .confirm-card{background:#fff;border-radius:32px;box-shadow:0 20px 60px #00000026;transform:scale(.8);transition:transform .3s ease;display:flex;flex-direction:row;overflow:hidden;min-width:600px;min-height:280px}.kiosk-container .confirm-overlay.show .confirm-card{transform:scale(1)}.kiosk-container .confirm-left{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 40px}.kiosk-container .confirm-student-icon{width:80px;height:80px;border-radius:50%;background:#fff7ed;margin-bottom:20px;display:flex;align-items:center;justify-content:center}.kiosk-container .confirm-student-icon svg{width:44px;height:44px}.kiosk-container .confirm-name{font-size:2.5rem;font-weight:700;color:#1f2937;margin-bottom:6px}.kiosk-container .confirm-grade{font-size:1.3rem;color:#6b7280;margin-bottom:16px}.kiosk-container .confirm-action-label{font-size:1rem;font-weight:600;margin-bottom:12px;padding:4px 16px;border-radius:12px}.kiosk-container .confirm-action-label.checkin{color:#16a34a;background:#dcfce7}.kiosk-container .confirm-action-label.checkout{color:#2563eb;background:#dbeafe}.kiosk-container .confirm-action-label.done{color:#6b7280;background:#f3f4f6}.kiosk-container .confirm-coupon{display:inline-flex;align-items:center;gap:8px;background:#fef3c7;color:#92400e;padding:10px 22px;border-radius:20px;font-size:1.1rem;font-weight:500}.kiosk-container .confirm-coupon-history{margin-top:14px;width:100%;max-width:280px;text-align:left;max-height:150px;overflow-y:auto}.kiosk-container .confirm-coupon-history:empty{display:none}.kiosk-container .coupon-history-item{display:flex;justify-content:space-between;padding:4px 0;font-size:.9rem;border-bottom:1px solid #fef3c7}.kiosk-container .coupon-history-item:last-child{border-bottom:none}.kiosk-container .coupon-history-item .reason{color:#6b7280}.kiosk-container .coupon-history-item .amount-earn{color:#16a34a;font-weight:600}.kiosk-container .coupon-history-item .amount-spend{color:#ef4444;font-weight:600}.kiosk-container .confirm-right{display:flex;flex-direction:column;width:200px}.kiosk-container .confirm-btn{border:none;font-weight:700;cursor:pointer;transition:all .15s;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}.kiosk-container .confirm-btn.ok{flex:2;background:linear-gradient(135deg,#e8876b,#f5a589);color:#fff;font-size:2rem;border-radius:0}.kiosk-container .confirm-btn.ok:active{background:#e8876b}.kiosk-container .confirm-btn.cancel{flex:1;background:#f3f4f6;color:#9ca3af;font-size:1.1rem;border-radius:0}.kiosk-container .confirm-btn.cancel:active{background:#e5e7eb}.kiosk-container .confirm-btn.subject{flex:1;background:linear-gradient(135deg,#e8876b,#f5a589);color:#fff;font-size:1.5rem;border-radius:0}.kiosk-container .confirm-btn.subject:active{background:#e8876b}.kiosk-container .admin-area{position:absolute;bottom:0;left:0;width:60px;height:60px;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;cursor:default}.kiosk-container .refresh-btn{position:absolute;bottom:12px;right:12px;width:40px;height:40px;border-radius:50%;border:none;background:#0000000f;color:#9ca3af;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s}.kiosk-container .refresh-btn:active{background:#0000001f}.kiosk-container .logout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#00000080;z-index:700;opacity:0;pointer-events:none;transition:opacity .3s ease}.kiosk-container .logout-overlay.show{opacity:1;pointer-events:auto}.kiosk-container .logout-card{background:#fff;border-radius:24px;padding:40px;width:360px;text-align:center;box-shadow:0 20px 60px #0003;transform:scale(.8);transition:transform .3s ease}.kiosk-container .logout-overlay.show .logout-card{transform:scale(1)}.kiosk-container .logout-title{font-size:1.5rem;font-weight:700;color:#1f2937;margin-bottom:8px}.kiosk-container .logout-desc{font-size:.9rem;color:#6b7280;margin-bottom:24px}.kiosk-container .logout-input{width:100%;padding:14px 16px;border:2px solid #e5e7eb;border-radius:12px;font-size:1.1rem;outline:none;text-align:center;transition:border-color .2s}.kiosk-container .logout-input:focus{border-color:#e8876b}.kiosk-container .logout-error{color:#dc2626;font-size:.85rem;margin-top:8px}.kiosk-container .logout-buttons{display:flex;gap:12px;margin-top:24px}.kiosk-container .logout-btn{flex:1;padding:14px;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .15s}.kiosk-container .logout-btn.cancel{background:#f3f4f6;color:#6b7280}.kiosk-container .logout-btn.cancel:active{background:#e5e7eb}.kiosk-container .logout-btn.confirm{background:#ef4444;color:#fff}.kiosk-container .logout-btn.confirm:active{background:#dc2626}*{margin:0;padding:0;box-sizing:border-box}html{height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#e5e5e5;color:#1f2937;min-height:100%;-webkit-font-smoothing:antialiased;overscroll-behavior:none}#phone-frame{width:390px;height:844px;margin:20px auto;border-radius:40px;border:8px solid #1a1a1a;overflow:hidden;box-shadow:0 20px 60px #0000004d,inset 0 0 0 2px #333;position:relative;background:#f5f5f5}#phone-frame:before{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:120px;height:28px;background:#1a1a1a;border-radius:0 0 16px 16px;z-index:9999}#app{width:100%;height:100%;overflow-y:auto;display:flex;flex-direction:column;position:relative;background:#f5f5f5}@media(max-width:430px){body{background:#f5f5f5}#phone-frame{width:100%;height:100vh;height:100dvh;margin:0;border-radius:0;border:none;box-shadow:none}#phone-frame:before{display:none}}.safe-top{padding-top:env(safe-area-inset-top,0)}.safe-bottom{padding-bottom:env(safe-area-inset-bottom,0)}.hidden{display:none!important}:root{--primary: #E8876B;--primary-dark: #E05A47;--primary-light: #f5a589;--primary-bg: rgba(232,135,107,.1);--gradient: linear-gradient(135deg, #E8876B 0%, #E05A47 100%);--success: #10b981;--warning: #f59e0b;--danger: #ef4444;--gray-50: #f9fafb;--gray-100: #f3f4f6;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-400: #9ca3af;--gray-500: #6b7280;--gray-600: #4b5563;--gray-700: #374151;--gray-800: #1f2937;--gray-900: #111827;--radius: 16px;--radius-lg: 20px;--shadow: 0 2px 8px rgba(0,0,0,.06);--shadow-md: 0 4px 12px rgba(0,0,0,.08);--shadow-lg: 0 8px 24px rgba(0,0,0,.1)}.loading-screen{display:flex;align-items:center;justify-content:center;min-height:100%;flex:1;flex-direction:column;gap:12px}.spinner{width:36px;height:36px;border:3px solid var(--gray-200);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;flex:1;padding:24px;background:linear-gradient(135deg,#fdf2f8,#fce7f3 30%,#fef3c7)}.login-card{width:100%;max-width:400px;background:#fffffff2;border-radius:var(--radius-lg);padding:32px 24px;box-shadow:0 20px 60px #00000014}.login-logo{text-align:center;margin-bottom:24px}.login-logo h1{font-size:1.5rem;font-weight:700;color:var(--gray-800);margin-top:12px}.login-logo p{font-size:.8rem;color:var(--gray-500);margin-top:4px}.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.role-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 8px;border:2px solid var(--gray-200);border-radius:14px;background:#fff;cursor:pointer;transition:all .2s}.role-btn:hover{border-color:var(--primary-light);background:var(--primary-bg)}.role-btn.active{border-color:var(--primary);background:var(--primary-bg)}.role-btn .role-icon{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--gray-100);transition:background .2s}.role-btn.active .role-icon{background:var(--primary);color:#fff}.role-btn .role-icon svg{width:22px;height:22px}.role-btn .role-label{font-size:.85rem;font-weight:600;color:var(--gray-700)}.form-group{margin-bottom:14px}.form-group label{display:block;font-size:.8rem;font-weight:600;color:var(--gray-700);margin-bottom:4px}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:2px solid var(--gray-200);border-radius:10px;font-size:.95rem;outline:none;transition:border-color .2s;font-family:inherit}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary)}.btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:12px;border:none;border-radius:12px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s}.btn:disabled{opacity:.6;cursor:not-allowed}.btn:active{transform:scale(.98)}.btn-primary{background:var(--gradient);color:#fff;box-shadow:0 4px 12px #e8876b4d}.btn-outline{background:#fff;color:var(--gray-700);border:2px solid var(--gray-200)}.btn-danger{background:var(--danger);color:#fff}.btn-sm{padding:8px 12px;font-size:.85rem;width:auto}.error-box{background:#fef2f2;border:1px solid #fecaca;color:#dc2626;border-radius:10px;padding:10px;font-size:.85rem;text-align:center;margin-top:12px}.app-layout{display:flex;flex-direction:column;min-height:100%;height:100%;background:#f5f5f5}.hero-header{background:var(--gradient);padding:16px 20px 24px;padding-top:max(44px,calc(16px + env(safe-area-inset-top,28px)));border-radius:0 0 28px 28px;position:relative;flex-shrink:0;color:#fff}.hero-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:28px;border-radius:0 0 28px 28px}.hero-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.hero-top .hero-title{font-size:1.1rem;font-weight:700;color:#fff}.hero-top .hero-actions{display:flex;gap:8px}.hero-top .hero-action-btn{width:36px;height:36px;border-radius:50%;background:#fff3;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff}.hero-profile{display:flex;align-items:center;gap:14px}.hero-avatar{width:52px;height:52px;border-radius:50%;background:#ffffff40;display:flex;align-items:center;justify-content:center;border:2.5px solid rgba(255,255,255,.5);flex-shrink:0}.hero-avatar svg{width:26px;height:26px;color:#fff}.hero-info{flex:1}.hero-name{font-size:1.15rem;font-weight:700}.hero-sub{font-size:.8rem;opacity:.85;margin-top:2px}.hero-badge{display:inline-flex;align-items:center;gap:4px;background:#fff3;border-radius:20px;padding:4px 12px;font-size:.75rem;font-weight:600;margin-top:6px}.hero-header.hero-sub-page{padding-bottom:18px;border-radius:0 0 22px 22px}.hero-sub-page .hero-top{margin-bottom:0}.hero-back-btn{width:36px;height:36px;border-radius:50%;background:#fff3;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff}.app-header{background:#fff;padding:12px 16px;border-bottom:1px solid var(--gray-200);display:flex;align-items:center;gap:12px;padding-top:max(36px,calc(12px + env(safe-area-inset-top,24px)));flex-shrink:0}.app-header h1{font-size:1.1rem;font-weight:700;flex:1}.app-content{flex:1;overflow-y:auto;padding:16px;padding-bottom:calc(90px + env(safe-area-inset-bottom,0))}.bottom-tabs{position:absolute;bottom:12px;left:16px;right:16px;background:#fff;border-radius:20px;display:flex;padding:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0));z-index:100;box-shadow:0 4px 20px #0000001f}.tab-item{flex:1;display:flex;flex-direction:column;align-items:center;padding:8px 0;gap:3px;cursor:pointer;border:none;background:none;color:var(--gray-400);font-size:.6rem;font-weight:500;transition:all .2s;border-radius:16px}.tab-item.active{color:#fff;background:var(--gradient);box-shadow:0 2px 8px #e8876b4d}.tab-item svg{width:20px;height:20px}.tab-item{position:relative}.tab-chat-badge{position:absolute;top:2px;right:50%;transform:translate(14px);min-width:16px;height:16px;border-radius:8px;background:#ef4444;color:#fff;font-size:.55rem;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px;line-height:1}.card{background:#fff;border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);margin-bottom:14px}.card-title{font-size:.9rem;font-weight:700;color:var(--gray-800);margin-bottom:12px}.icon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:4px 0}.icon-grid-item{display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;padding:8px;border-radius:12px;transition:background .2s}.icon-grid-item:active{background:var(--gray-50)}.icon-circle{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 2px 8px #0000000f;transition:transform .15s}.icon-grid-item:active .icon-circle{transform:scale(.92)}.icon-circle svg{width:30px;height:30px}.icon-grid-label{font-size:.75rem;font-weight:600;color:var(--gray-700);text-align:center}.icon-bg-coral{background:#ffe5de;color:#e05a47}.icon-bg-blue{background:#dbeafe;color:#2563eb}.icon-bg-green{background:#d1fae5;color:#059669}.icon-bg-purple{background:#ede9fe;color:#7c3aed}.icon-bg-yellow{background:#fef3c7;color:#d97706}.icon-bg-pink{background:#fce7f3;color:#db2777}.icon-bg-teal{background:#ccfbf1;color:#0d9488}.icon-bg-orange{background:#ffedd5;color:#ea580c}.icon-bg-indigo{background:#e0e7ff;color:#4f46e5}.pill-tabs{display:flex;gap:6px;background:var(--gray-100);border-radius:12px;padding:4px;margin-bottom:16px}.pill-tab{flex:1;padding:8px 12px;border:none;border-radius:10px;font-size:.8rem;font-weight:600;cursor:pointer;background:transparent;color:var(--gray-500);transition:all .2s}.pill-tab.active{background:var(--primary);color:#fff;box-shadow:0 2px 6px #e8876b40}.stat-row{display:flex;gap:10px}.stat-card{flex:1;text-align:center;padding:14px 8px;background:var(--gray-50);border-radius:14px}.stat-value{font-size:1.5rem;font-weight:800;margin-bottom:2px}.stat-label{font-size:.7rem;color:var(--gray-500);font-weight:500}.list-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--gray-100)}.list-item:last-child{border-bottom:none}.list-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--primary-bg);color:var(--primary);flex-shrink:0}.list-body{flex:1;min-width:0}.list-title{font-size:.9rem;font-weight:600}.list-sub{font-size:.75rem;color:var(--gray-500);margin-top:2px}.notif-toggle-list{display:flex;flex-direction:column}.notif-toggle-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--gray-100);cursor:pointer}.notif-toggle-item:last-child{border-bottom:none}.notif-toggle-label{font-size:.9rem;font-weight:600;color:var(--gray-800)}.notif-toggle-desc{font-size:.75rem;color:var(--gray-400);margin-top:2px}.toggle-switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:48px;height:28px;border-radius:14px;background:var(--gray-200);position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}.toggle-switch:before{content:"";position:absolute;top:2px;left:2px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s}.toggle-switch:checked{background:var(--primary)}.toggle-switch:checked:before{transform:translate(20px)}.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:.7rem;font-weight:600}.badge-success{background:#d1fae5;color:#065f46}.badge-warning{background:#fef3c7;color:#92400e}.badge-danger{background:#fee2e2;color:#991b1b}.badge-info{background:#dbeafe;color:#1e40af}.toast-container{position:fixed;top:60px;left:50%;transform:translate(-50%);z-index:9999;display:flex;flex-direction:column;gap:8px}.toast{padding:10px 20px;border-radius:12px;font-size:.85rem;font-weight:500;color:#fff;animation:toastIn .3s ease-out;box-shadow:0 4px 12px #00000026}.toast-success{background:var(--success)}.toast-error{background:var(--danger)}.toast-info{background:#3b82f6}@keyframes toastIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.empty-state{text-align:center;padding:40px 20px;color:var(--gray-400)}.empty-state svg{width:48px;height:48px;margin-bottom:12px;opacity:.5}.empty-state p{font-size:.85rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:flex-end;justify-content:center;z-index:200;animation:fadeIn .2s}.modal-content{background:#fff;border-radius:var(--radius-lg) var(--radius-lg) 0 0;width:100%;max-width:500px;max-height:80vh;overflow-y:auto;padding:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0));animation:slideUp .3s ease-out}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.modal-header h2{font-size:1.1rem;font-weight:700}.modal-close{background:none;border:none;font-size:1.5rem;color:var(--gray-400);cursor:pointer}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.abs-pill-group{display:flex;flex-wrap:wrap;gap:8px}.abs-pill{padding:12px 20px;border-radius:24px;font-size:.95rem;font-weight:500;border:1.5px solid var(--gray-200);background:#fff;color:var(--gray-600);cursor:pointer;transition:all .15s;white-space:nowrap;font-family:inherit}.abs-pill:active{transform:scale(.96)}.abs-pill.active{border-color:var(--primary);background:var(--primary-bg);color:var(--primary);font-weight:600}.pill-group{display:flex;flex-wrap:wrap;gap:8px}.pill-btn{padding:8px 16px;border-radius:20px;font-size:.85rem;font-weight:500;border:1.5px solid var(--gray-200);background:#fff;color:var(--gray-600);cursor:pointer;transition:all .15s;white-space:nowrap;font-family:inherit}.pill-btn:active{transform:scale(.96)}.pill-btn.active{border-color:var(--primary);background:var(--primary-bg);color:var(--primary);font-weight:600}.conv-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--gray-100);cursor:pointer;transition:background .15s}.conv-item:last-child{border-bottom:none}.conv-item:active{background:var(--gray-50)}.conv-avatar{width:48px;height:48px;border-radius:50%;background:var(--primary-bg);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1.1rem;font-weight:700}.conv-body{flex:1;min-width:0}.conv-name{font-size:.9rem;font-weight:600;color:var(--gray-800)}.conv-name small{font-weight:400;color:var(--gray-500);font-size:.75rem;margin-left:4px}.conv-preview{font-size:.8rem;color:var(--gray-500);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}.conv-time{font-size:.7rem;color:var(--gray-400)}.conv-unread{min-width:20px;height:20px;border-radius:10px;background:var(--primary);color:#fff;font-size:.65rem;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 6px}.chat-layout{display:flex;flex-direction:column;background:#f5f5f5;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden}.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:4px}.chat-date-divider{display:flex;align-items:center;gap:12px;margin:12px 0}.chat-date-divider:before,.chat-date-divider:after{content:"";flex:1;height:1px;background:var(--gray-200)}.chat-date-divider span{font-size:.7rem;color:var(--gray-400);white-space:nowrap}.chat-row{display:flex;max-width:80%;margin-bottom:2px}.chat-row.mine{align-self:flex-end}.chat-row.theirs{align-self:flex-start}.chat-row .chat-sender{font-size:.7rem;color:var(--gray-500);margin-bottom:2px;padding-left:12px}.chat-bubble{padding:10px 14px;border-radius:18px;font-size:.88rem;line-height:1.45;word-break:break-word;position:relative}.chat-row.mine .chat-bubble{background:var(--gradient);color:#fff;border-bottom-right-radius:4px}.chat-row.theirs .chat-bubble{background:#fff;color:var(--gray-800);border-bottom-left-radius:4px;box-shadow:0 1px 3px #0000000f}.chat-bubble .chat-time{display:block;font-size:.6rem;margin-top:4px;opacity:.65;text-align:right}.chat-row.theirs .chat-bubble .chat-time{text-align:left}.chat-input-bar{display:flex;align-items:flex-end;gap:8px;padding:10px 16px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0));background:#fff;border-top:1px solid var(--gray-200);flex-shrink:0}.chat-input-bar textarea{flex:1;resize:none;border:2px solid var(--gray-200);border-radius:20px;padding:10px 16px;font-size:.9rem;font-family:inherit;max-height:100px;outline:none;line-height:1.4;transition:border-color .2s}.chat-input-bar textarea:focus{border-color:var(--primary)}.chat-send-btn{width:40px;height:40px;border-radius:50%;background:var(--gradient);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;flex-shrink:0;transition:opacity .2s}.chat-send-btn:disabled{opacity:.4;cursor:not-allowed}.chat-send-btn svg{width:20px;height:20px}.daily-date-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;cursor:pointer;border-bottom:1px solid var(--gray-100);transition:background .15s}.daily-date-header:last-child{border-bottom:none}.daily-date-header:active{background:var(--gray-50)}.daily-date-left{display:flex;align-items:center;gap:10px}.daily-date-label{font-size:.88rem;font-weight:700;color:var(--gray-800)}.daily-date-count{font-size:.7rem;font-weight:600;color:#fff;background:var(--primary);border-radius:10px;padding:1px 8px;min-width:20px;text-align:center}.daily-date-chevron{width:18px;height:18px;color:var(--gray-400);transition:transform .2s}.daily-date-header.open .daily-date-chevron{transform:rotate(180deg)}.daily-date-body{display:none;padding:8px 14px 14px;border-bottom:1px solid var(--gray-100)}.daily-date-body.open{display:block}.daily-record-card{border-radius:10px;padding:12px 14px;margin-bottom:8px;position:relative}.daily-record-card:last-child{margin-bottom:0}.daily-record-subject{font-size:.75rem;font-weight:700;margin-bottom:8px}.daily-record-row{display:flex;align-items:flex-start;gap:8px;font-size:.84rem;color:var(--gray-700);padding:4px 0}.daily-record-row .rec-label{font-weight:600;color:var(--gray-500);min-width:52px;flex-shrink:0;font-size:.78rem}.daily-record-row .rec-value{flex:1;line-height:1.4}.calendar-nav{display:flex;align-items:center;justify-content:space-between;padding:12px 4px;margin-bottom:8px}.calendar-nav-btn{width:36px;height:36px;border-radius:50%;background:var(--gray-100);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--gray-600);transition:background .15s}.calendar-nav-btn:active{background:var(--gray-200)}.calendar-nav-title{font-size:1rem;font-weight:700;color:var(--gray-800)}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:.7rem;font-weight:600;color:var(--gray-400);padding:0 0 8px}.calendar-weekdays span:first-child{color:#ef4444}.calendar-weekdays span:last-child{color:#3b82f6}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.calendar-cell{display:flex;flex-direction:column;align-items:center;min-height:44px;padding:4px 0;cursor:pointer;border-radius:10px;transition:background .15s;position:relative}.calendar-cell:active{background:var(--gray-50)}.calendar-cell.other-month{opacity:.3}.calendar-cell .cal-day{font-size:.82rem;font-weight:600;color:var(--gray-700);width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1}.calendar-cell.sunday .cal-day{color:#ef4444}.calendar-cell.saturday .cal-day{color:#3b82f6}.calendar-cell.today .cal-day{background:var(--primary);color:#fff;font-weight:700}.calendar-cell.selected{background:var(--primary-bg)}.calendar-dots{display:flex;gap:3px;margin-top:2px;min-height:6px}.calendar-dot{width:5px;height:5px;border-radius:50%}.calendar-dot.present{background:#10b981}.calendar-dot.absent{background:#ef4444}.calendar-dot.late{background:#f59e0b}.calendar-dot.early-leave{background:#f97316}.calendar-dot.event{background:#3b82f6}.calendar-event-list{margin-top:16px}.calendar-event-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--gray-100)}.calendar-event-row:last-child{border-bottom:none}.calendar-event-date{font-size:.8rem;font-weight:700;color:var(--gray-500);min-width:40px}.calendar-event-title{flex:1;font-size:.85rem;font-weight:600;color:var(--gray-800)}.calendar-event-badge{display:inline-flex;padding:3px 10px;border-radius:20px;font-size:.65rem;font-weight:600}.calendar-event-badge.exam{background:#fee2e2;color:#991b1b}.calendar-event-badge.holiday{background:#dbeafe;color:#1e40af}.calendar-event-badge.event{background:#d1fae5;color:#065f46}.vehicle-day-tabs{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:4px 0;margin-bottom:16px;scrollbar-width:none}.vehicle-day-tabs::-webkit-scrollbar{display:none}.vehicle-day-tab{flex-shrink:0;padding:8px 16px;border:none;border-radius:20px;font-size:.82rem;font-weight:600;cursor:pointer;background:var(--gray-100);color:var(--gray-500);transition:all .2s}.vehicle-day-tab.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px #e8876b4d}.vehicle-schedule-card{background:#fff;border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);margin-bottom:12px}.vehicle-schedule-card .schedule-type{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;font-weight:700;margin-bottom:10px}.vehicle-schedule-card .schedule-type.arrival{color:#059669}.vehicle-schedule-card .schedule-type.departure{color:#2563eb}.vehicle-schedule-card .schedule-row{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:.85rem;color:var(--gray-700)}.vehicle-schedule-card .schedule-row .schedule-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.9rem}.vehicle-schedule-card .schedule-row .schedule-icon.arrival-bg{background:#d1fae5}.vehicle-schedule-card .schedule-row .schedule-icon.departure-bg{background:#dbeafe}.vehicle-schedule-card .schedule-label{color:var(--gray-400);font-size:.75rem;min-width:50px}.vehicle-schedule-card .schedule-value{font-weight:600}.vehicle-no-service{text-align:center;padding:24px;color:var(--gray-400);font-size:.85rem}.drive-mode{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;background:#111827;display:flex;flex-direction:column;color:#fff;animation:fadeIn .3s}.drive-status-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;padding-top:max(44px,calc(12px + env(safe-area-inset-top,28px)));background:#1f2937;flex-shrink:0}.drive-status-left{display:flex;align-items:center;gap:8px;font-size:.82rem}.drive-gps-dot{width:10px;height:10px;border-radius:50%;background:var(--success);animation:gpsPulse 1.5s infinite}.drive-gps-dot.inactive{background:var(--gray-500);animation:none}@keyframes gpsPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}.drive-clock{font-size:1.4rem;font-weight:800}.drive-end-btn{padding:12px 24px;border:none;border-radius:14px;background:var(--danger);color:#fff;font-size:1.1rem;font-weight:700;cursor:pointer}.drive-student-list{flex:1;overflow-y:auto;padding:12px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0));display:flex;flex-direction:column;gap:10px}.drive-student-card{background:#1f2937;border-radius:var(--radius-lg);padding:12px 14px;display:flex;align-items:center;gap:12px;border:2px solid #374151;transition:all .3s;flex:1}.drive-student-card.boarded{background:#064e3b;border-color:#059669}.drive-student-info{flex:1;min-width:0}.drive-student-name{font-size:1.4rem;font-weight:800;margin-bottom:2px}.drive-student-detail{font-size:.9rem;color:#9ca3af;display:flex;gap:8px;flex-wrap:wrap}.drive-student-card.boarded .drive-student-detail{color:#6ee7b7}.drive-actions{display:flex;flex-direction:column;gap:6px;align-items:center;flex-shrink:0}.drive-board-btn{width:64px;height:64px;border-radius:14px;border:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.8rem;font-weight:800;background:#374151;color:#9ca3af;transition:all .2s}.drive-board-btn.boarded{background:var(--success);color:#fff}.drive-board-btn svg{width:26px;height:26px}.drive-phone-row{display:flex;gap:6px}.drive-phone-btn{width:38px;height:38px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;background:#374151;color:#9ca3af;text-decoration:none;transition:background .2s}.drive-phone-btn:active{background:#4b5563}.drive-phone-btn svg{width:18px;height:18px}.drive-summary{display:flex;gap:16px;align-items:center;padding:12px 16px;background:#1f2937;border-bottom:1px solid #374151;font-size:1.1rem;color:#9ca3af;flex-shrink:0}.drive-summary strong{color:#fff;font-weight:800}.drive-stop-card{background:#292524;border-radius:var(--radius-lg);padding:12px 14px;display:flex;align-items:center;gap:12px;border:2px dashed #a16207;transition:all .3s;flex:1}.drive-stop-card.checked{background:#422006;border-color:#f59e0b;border-style:solid}.drive-stop-info{flex:1}.drive-stop-name{font-size:1.3rem;font-weight:800;color:#fbbf24}.drive-stop-card.checked .drive-stop-name{color:#fde68a}.drive-stop-time{font-size:.9rem;color:#a16207;margin-top:2px}.drive-stop-card.checked .drive-stop-time{color:#f59e0b}.drive-check-btn{width:64px;height:64px;border-radius:14px;border:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.8rem;font-weight:800;background:#44403c;color:#a8a29e;transition:all .2s}.drive-check-btn.checked{background:#f59e0b;color:#422006}.drive-check-btn svg{width:26px;height:26px}.drive-name-row{display:flex;align-items:center;gap:10px;margin-bottom:6px}.drive-name-row .drive-student-name{margin-bottom:0}.drive-name-phone{width:32px;height:32px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;text-decoration:none;flex-shrink:0;transition:background .2s}.drive-name-phone svg{width:20px;height:20px}.drive-name-phone.student-call{background:#374151;color:#9ca3af}.drive-name-phone.parent-call{background:#1e3a5f;color:#60a5fa}.drive-name-phone:active{opacity:.7}.drive-boarded-time{font-size:1.05rem;color:#6ee7b7;margin-top:6px;font-weight:700}.drive-confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:400;background:#0009;display:flex;align-items:center;justify-content:center;animation:fadeIn .15s}.drive-confirm-box{background:#fff;border-radius:24px;padding:36px 28px;width:92%;max-width:380px;text-align:center;animation:slideUp .2s ease-out}.drive-confirm-box h3{font-size:1.8rem;font-weight:800;color:var(--gray-800);margin-bottom:10px}.drive-confirm-box p{font-size:1.2rem;color:var(--gray-500);margin-bottom:28px}.drive-confirm-btns{display:flex;gap:12px}.drive-confirm-btns button{flex:1;padding:18px;border:none;border-radius:16px;font-size:1.2rem;font-weight:700;cursor:pointer}.drive-confirm-cancel{background:var(--gray-100);color:var(--gray-700)}.drive-confirm-ok{background:var(--gradient);color:#fff}.drive-slide-container{flex:1;overflow:hidden;position:relative}.drive-slide-track{display:flex;height:100%;transition:transform .3s ease}.drive-slide-page{min-width:100%;height:100%;display:flex;flex-direction:column;gap:12px;padding:12px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0));overflow-y:auto;box-sizing:border-box;justify-content:stretch}.drive-slide-indicator{display:flex;justify-content:center;gap:6px;padding:8px 0;padding-bottom:calc(8px + env(safe-area-inset-bottom,0));background:#111827;flex-shrink:0}.drive-slide-dot{width:8px;height:8px;border-radius:50%;background:#374151;transition:background .2s}.drive-slide-dot.active{background:#fff}.search-bar-wrap{display:flex;align-items:center;gap:8px;background:var(--gray-100);border-radius:12px;padding:10px 14px;margin-bottom:12px}.search-bar-wrap svg{width:18px;height:18px;color:var(--gray-400);flex-shrink:0}.search-bar-wrap input{flex:1;border:none;background:transparent;font-size:.9rem;outline:none;font-family:inherit;color:var(--gray-800)}.search-bar-wrap input::placeholder{color:var(--gray-400)}.phone-call-link{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#d1fae5;color:#059669;text-decoration:none;flex-shrink:0;transition:background .15s}.phone-call-link:active{background:#a7f3d0}.phone-call-link svg{width:16px;height:16px}.student-action-btn{display:inline-flex;align-items:center;gap:4px;padding:6px 14px;border-radius:20px;font-size:.78rem;font-weight:600;border:1.5px solid var(--gray-200);background:#fff;color:var(--gray-600);cursor:pointer;transition:all .15s;font-family:inherit}.student-action-btn:active{transform:scale(.96);background:var(--gray-50)}.student-action-btn svg{width:14px;height:14px}.vehicle-inline-expand{margin-top:10px;padding:12px;background:var(--gray-50);border-radius:12px;animation:fadeIn .2s}.student-contact-row{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:.82rem;color:var(--gray-700)}.student-contact-row .contact-label{min-width:36px;font-size:.75rem;color:var(--gray-400);font-weight:500}.student-contact-row .contact-number{flex:1;font-weight:500}.subject-pill{display:inline-flex;padding:2px 8px;border-radius:10px;font-size:.65rem;font-weight:600}.subject-pill-subject1{background:#dbeafe;color:#1e40af}.subject-pill-subject2{background:#fce7f3;color:#db2777}.result-count{font-size:.8rem;color:var(--gray-500);font-weight:500;margin-bottom:10px;padding:0 2px}.driver-status-item{padding:14px 0;border-bottom:1px solid var(--gray-100)}.driver-status-item:last-child{border-bottom:none}.driver-status-name{display:flex;align-items:center;gap:8px;font-size:.95rem;font-weight:700;color:var(--gray-800)}.driver-status-dot{width:8px;height:8px;border-radius:50%;background:#10b981;animation:pulse 2s infinite;flex-shrink:0}.driver-status-location{font-size:.85rem;color:var(--gray-600);margin-top:4px;padding-left:16px}.driver-status-dist{font-size:.8rem;color:var(--primary);font-weight:600;margin-top:2px;padding-left:16px}.driver-status-time{font-size:.75rem;color:var(--gray-400);margin-top:2px;padding-left:16px}.driver-refresh-btn{width:32px;height:32px;border-radius:50%;background:var(--gray-100);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--gray-500);transition:all .2s;flex-shrink:0}.driver-refresh-btn:active{background:var(--gray-200)}.driver-refresh-btn:disabled{opacity:.5;cursor:not-allowed}.driver-refresh-btn svg.spinning{animation:spin .8s linear infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.vehicle-group-card{background:#fff;border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);margin-bottom:14px}.vehicle-group-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--gray-100)}.vehicle-group-title{display:flex;align-items:center;gap:8px;font-size:.95rem;font-weight:700;color:var(--gray-800)}.vehicle-group-count{font-size:.75rem;font-weight:600;color:#fff;background:var(--primary);border-radius:10px;padding:2px 10px}.vehicle-student-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--gray-50)}.vehicle-student-row:last-child{border-bottom:none}.vehicle-student-name{font-size:.88rem;font-weight:600;color:var(--gray-800);min-width:60px}.vehicle-student-type{display:inline-flex;padding:2px 8px;border-radius:8px;font-size:.7rem;font-weight:600}.vehicle-student-type.arrival{background:#d1fae5;color:#065f46}.vehicle-student-type.departure{background:#dbeafe;color:#1e40af}.vehicle-student-time{font-size:.8rem;color:var(--gray-500);font-weight:500}.vehicle-student-location{flex:1;font-size:.78rem;color:var(--gray-400);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
