/* ============================================================
   SHREE DELIVERY APPS — style.css
   Professional Premium Dark Theme (Glassmorphism)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0d14;
  --bg2: #161a2b;
  --bg3: #1f253d;
  --card: rgba(22, 26, 43, 0.75);
  --card-hover: rgba(31, 37, 61, 0.85);
  --primary: #10b981; 
  --primary-dark: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --accent: #34d399;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --text: #ffffff;
  --text2: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --font: 'Inter', sans-serif;
  --glass-blur: blur(12px);
}

html, body { 
  height: 100%; 
  font-family: var(--font); 
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 40%),
                    radial-gradient(circle at 85% 30%, rgba(52, 211, 153, 0.05), transparent 40%);
  color: var(--text); 
  overflow: hidden; 
}
.hidden { display: none !important; }

/* ─── LIGHT THEME ────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --card: rgba(255, 255, 255, 0.85);
  --card-hover: rgba(255, 255, 255, 1);
  --text: #0f172a;
  --text2: #64748b;
  --border: rgba(0, 0, 0, 0.1);
  --border-light: rgba(0, 0, 0, 0.15);
  --primary-glow: rgba(16, 185, 129, 0.15);
}
[data-theme="light"] .splash { background: linear-gradient(135deg, #f8fafc, #e2e8f0); }
[data-theme="light"] .splash-title { background: linear-gradient(to right, #059669, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .bottom-nav { background: rgba(255, 255, 255, 0.9); box-shadow: 0 -8px 32px rgba(0,0,0,0.05); }
[data-theme="light"] .form-group input, [data-theme="light"] .form-group select { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .form-group input:focus, [data-theme="light"] .form-group select:focus { background: #fff; }
[data-theme="light"] .items-box { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .pay-mode-btn { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .login-bg { background-image: radial-gradient(circle at 50% 0%, rgba(16,185,129,0.15), transparent 50%); }

/* ─── LUCIDE ICONS ───────────────────────────────────── */
i[data-lucide] { vertical-align: middle; stroke-width: 2.5; display: inline-block; transition: all 0.3s ease; }

/* ─── SPLASH ─────────────────────────────────────────── */
.splash { position: fixed; inset: 0; background: linear-gradient(135deg, #0b0d14, #161a2b); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.splash-content { text-align: center; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.splash-logo { position: relative; width: 110px; height: 110px; margin: 0 auto 24px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); backdrop-filter: var(--glass-blur); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(16, 185, 129, 0.2); }
.logo-img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.splash-title { font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; background: linear-gradient(to right, #fff, #a7f3d0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.splash-subtitle { color: var(--text2); font-size: 16px; margin-top: 6px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.splash-bar { width: 200px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; margin: 36px auto 0; overflow: hidden; }
.splash-fill { height: 100%; width: 0; background: var(--primary); border-radius: 4px; box-shadow: 0 0 10px var(--primary); animation: fillBar 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ─── LOGIN ──────────────────────────────────────────── */
.login-bg { position: fixed; inset: 0; background: var(--bg); background-image: radial-gradient(circle at 50% 0%, rgba(16,185,129,0.1), transparent 50%); }
#login-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10; }
.login-card { position: relative; width: 100%; max-width: 420px; background: var(--card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: 32px; padding: 48px 32px; box-shadow: var(--shadow); animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); text-align: center; }
.login-header { margin-bottom: 40px; }
.login-img { width: 80px; height: 80px; object-fit: contain; display: block; margin: 0 auto 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 24px; padding: 14px; box-shadow: 0 12px 24px var(--primary-glow); }
.login-header h2 { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.login-header p { color: var(--text2); font-size: 15px; margin-top: 8px; font-weight: 500; }

/* ─── FORM ELEMENTS ──────────────────────────────────── */
.form-group { margin-bottom: 24px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select { width: 100%; background: rgba(0, 0, 0, 0.2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 16px; padding: 16px 20px; outline: none; font-family: var(--font); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); background: rgba(0, 0, 0, 0.4); box-shadow: 0 0 0 4px var(--primary-glow); transform: translateY(-2px); }
.error-msg { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; border-radius: var(--radius-sm); padding: 14px; font-size: 14px; font-weight: 500; margin-bottom: 20px; text-align: left; display: flex; align-items: center; gap: 8px; }
.error-msg::before { content: '⚠'; font-size: 16px; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: var(--radius-sm); padding: 18px 24px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; font-family: var(--font); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 8px 20px var(--primary-glow); position: relative; overflow: hidden; }
.btn-primary::after { content:''; position:absolute; top:0; left:-100%; width:50%; height:100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent); transform: skewX(-20deg); transition: 0.5s; }
.btn-primary:hover::after { left: 150%; }
.btn-primary:active { transform: scale(0.97); box-shadow: 0 4px 10px var(--primary-glow); }

.btn-success { background: linear-gradient(135deg, #059669, #047857); color: #fff; border: none; border-radius: var(--radius-sm); padding: 18px 24px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; font-family: var(--font); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-success:active { transform: scale(0.97); box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2); }

.btn-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1.5px solid rgba(239, 68, 68, 0.3); border-radius: var(--radius-sm); padding: 16px 24px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; font-family: var(--font); transition: all 0.3s ease; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.full-width { width: 100%; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }

.btn-scan i, .btn-primary i, .btn-success i, .btn-danger i { width: 22px; height: 22px; margin-right: 10px; vertical-align: middle; }

/* ─── APP SHELL ───────────────────────────────────────── */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.top-bg-green { position: absolute; top: 0; left: 0; right: 0; height: 320px; background: linear-gradient(180deg, rgba(16,185,129,0.15) 0%, transparent 100%); z-index: 0; pointer-events: none; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 16px; position: relative; z-index: 2; flex-shrink: 0; }
.header-left { display: flex; align-items: center; gap: 16px; }
.header-img { width: 48px; height: 48px; object-fit: contain; background: linear-gradient(135deg, var(--bg2), var(--bg3)); border-radius: 16px; padding: 8px; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.header-title { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.header-sub { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.icon-btn { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: var(--glass-blur); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-sm); }
.icon-btn:hover { background: var(--card-hover); transform: translateY(-2px); border-color: var(--border-light); }
.icon-btn i { width: 20px; height: 20px; }

.app-main { flex: 1; overflow-y: auto; padding: 16px 20px 100px; position: relative; z-index: 1; }
.page { display: none; }
.page.active { display: block; animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 24px; color: var(--text); letter-spacing: -0.5px; }

/* ─── STATUS CARD ─────────────────────────────────────── */
.status-card { background: var(--card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); margin-bottom: 24px; transition: all 0.3s ease; }
.status-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.status-left strong { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--text); margin-bottom: 4px; font-weight: 800; }
.status-left strong::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-left span { font-size: 14px; color: var(--text2); font-weight: 500; }
.toggle-switch { width: 56px; height: 32px; background: rgba(255,255,255,0.1); border-radius: 16px; position: relative; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; border: 1px solid var(--border); }
.toggle-switch::after { content: ''; position: absolute; left: 4px; top: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.toggle-switch.active { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.toggle-switch.active::after { left: 26px; }

/* ─── STATS ROW ───────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 12px; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-light); background: var(--card-hover); }
.stat-num { font-size: 28px; font-weight: 800; margin-top: 4px; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 8px; }
.text-primary { color: #a7f3d0; text-shadow: 0 0 20px rgba(167, 243, 208, 0.4); }
.text-success { color: var(--success); text-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.text-warning { color: var(--warning); text-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }

/* ─── SCAN CARD ───────────────────────────────────────── */
.scan-card { background: var(--card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; box-shadow: var(--shadow); }
.btn-scan { width: 100%; background: rgba(16, 185, 129, 0.1); color: var(--primary); border: 2px dashed rgba(16, 185, 129, 0.4); border-radius: var(--radius-sm); padding: 20px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; }
.btn-scan:hover { background: rgba(16, 185, 129, 0.15); border-color: var(--primary); transform: translateY(-2px); }
.btn-scan:active { transform: scale(0.98); }
.or-divider { text-align: center; color: var(--text2); font-size: 13px; margin: 20px 0; position: relative; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.or-divider::before, .or-divider::after { content: ''; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--border); }
.or-divider::before { left: 0; } .or-divider::after { right: 0; }
.search-bar { display: flex; gap: 12px; }
.search-bar input { flex: 1; background: rgba(0,0,0,0.2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 16px 20px; font-size: 15px; outline: none; transition: all 0.3s; }
.search-bar input:focus { border-color: var(--primary); background: rgba(0,0,0,0.4); box-shadow: 0 0 0 4px var(--primary-glow); }
.search-bar button { background: var(--bg2); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-sm); width: 54px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.search-bar button:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px var(--primary-glow); }
.search-bar button i { width: 22px; height: 22px; margin:0; }

/* ─── ORDERS LIST ─────────────────────────────────────── */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.loading-state { text-align: center; color: var(--text2); padding: 60px 0; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; font-weight: 600; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
.empty-state { text-align: center; color: var(--text2); padding: 60px 0; font-size: 16px; font-weight: 600; background: var(--card); backdrop-filter: var(--glass-blur); border-radius: var(--radius); border: 2px dashed var(--border); }
.empty-icon { width: 64px !important; height: 64px !important; display: block; margin: 0 auto 16px; opacity: 0.5; color: var(--primary); filter: drop-shadow(0 0 20px rgba(16,185,129,0.2)); }

.order-card { background: var(--card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.order-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.order-card:hover { transform: translateY(-4px); border-color: var(--border-light); background: var(--card-hover); box-shadow: var(--shadow); }
.order-card:active { transform: scale(0.98); }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.order-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.order-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text2); font-weight: 600; }
.order-meta i { width: 18px; height: 18px; margin-right: 6px; vertical-align: middle; color: var(--text); }
.due-badge { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1); }
.order-vendor { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.order-ref { font-size: 14px; color: var(--text2); margin-top: 6px; font-weight: 500; }
.order-amount { font-size: 22px; font-weight: 800; color: var(--text); }
.status-pill { font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pill.pending { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-pill.delivered { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-pill.failed { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-pill.out_for_delivery { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

/* ─── TRANSACTION CARDS ───────────────────────────────── */
.txn-card { background: var(--card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); display: flex; justify-content: space-between; align-items: center; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.txn-card:hover { transform: translateY(-3px); border-color: var(--border-light); background: var(--card-hover); }
.txn-info { flex: 1; }
.txn-vendor { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--text); letter-spacing: -0.5px; }
.txn-meta { font-size: 14px; color: var(--text2); font-weight: 500; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.txn-meta i { width: 16px; height: 16px; vertical-align: middle; color: var(--text); opacity: 0.8; }
.txn-amount { font-size: 20px; font-weight: 800; white-space: nowrap; padding-left: 16px; }
.txn-amount.cash { color: #6ee7b7; text-shadow: 0 0 15px rgba(110, 231, 183, 0.3); }
.txn-amount.upi { color: #93c5fd; text-shadow: 0 0 15px rgba(147, 197, 253, 0.3); }

/* ─── FILTER CHIPS ────────────────────────────────────── */
.filter-row { display: flex; gap: 12px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { background: var(--bg2); border: 1px solid var(--border); color: var(--text2); border-radius: 24px; padding: 10px 24px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap; box-shadow: var(--shadow-sm); }
.filter-chip:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.filter-chip.active { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: 0 4px 16px rgba(255,255,255,0.2); }

/* ─── PROFILE ─────────────────────────────────────────── */
.profile-card { background: var(--card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; margin-bottom: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100px; background: linear-gradient(180deg, rgba(16,185,129,0.1), transparent); }
.profile-avatar { margin: 0 auto 20px; width: 96px; height: 96px; background: linear-gradient(135deg, var(--bg2), var(--bg3)); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg); box-shadow: 0 8px 24px rgba(0,0,0,0.3); position: relative; z-index: 1; }
.profile-avatar i { width: 48px; height: 48px; color: var(--primary); filter: drop-shadow(0 0 10px var(--primary-glow)); }
.profile-name { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; position: relative; z-index: 1; }
.profile-phone { color: var(--text2); font-size: 16px; margin-top: 6px; font-weight: 600; position: relative; z-index: 1; }
.profile-tags { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.profile-tag { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 700; backdrop-filter: blur(4px); }
.details-card { background: var(--card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.details-card .detail-row { border-bottom: 1px solid var(--border); padding: 16px 0; }
.details-card .detail-row:last-child { border-bottom: none; }

.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.pstat { background: var(--card); backdrop-filter: var(--glass-blur); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 12px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s; }
.pstat:hover { transform: translateY(-4px); }
.pstat-num { font-size: 22px; font-weight: 800; color: #a7f3d0; text-shadow: 0 0 15px rgba(167, 243, 208, 0.3); }
.pstat-label { font-size: 12px; font-weight: 700; color: var(--text2); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── BOTTOM NAV ──────────────────────────────────────── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: rgba(11, 13, 20, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); z-index: 100; box-shadow: 0 -8px 32px rgba(0,0,0,0.4); padding-top: 8px; }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 8px 16px; background: none; border: none; color: var(--text2); cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-btn.active { color: var(--primary); transform: translateY(-4px); }
.nav-icon { position: relative; margin-bottom: 6px; transition: all 0.3s; }
.nav-btn:hover .nav-icon { transform: scale(1.1); color: var(--text); }
.nav-btn.active .nav-icon { filter: drop-shadow(0 0 10px var(--primary-glow)); }
.nav-btn.active .nav-icon::after { content:''; position:absolute; bottom: -22px; left: 50%; transform: translateX(-50%); width: 28px; height: 4px; background: var(--primary); border-radius: 4px; box-shadow: 0 0 10px var(--primary); }
.nav-icon i { width: 26px; height: 26px; stroke-width: 2.5; }
.nav-label { font-size: 12px; font-weight: 700; margin-top: 4px; opacity: 0; transform: translateY(10px); transition: all 0.3s; }
.nav-btn.active .nav-label { opacity: 1; transform: translateY(0); color: var(--primary); }

/* ─── MODALS ──────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: flex-end; }
.modal-sheet { width: 100%; background: var(--bg2); border-radius: 36px 36px 0 0; padding: 24px 24px 48px; max-height: 92vh; overflow-y: auto; animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 -20px 60px rgba(0,0,0,0.5); border: 1px solid var(--border); border-bottom: none; }
.modal-drag { width: 60px; height: 6px; background: rgba(255,255,255,0.2); border-radius: 6px; margin: 0 auto 28px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.modal-header h3 { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.modal-close { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.modal-close:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }
.modal-close i { width: 22px; height: 22px; }
.modal-actions { display: flex; gap: 16px; margin-top: 32px; flex-direction: column; }
@media (min-width: 480px) { .modal-actions { flex-direction: row; } }

/* Order detail modal body */
.detail-grid { display: flex; flex-direction: column; gap: 0; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.detail-row:last-child { border-bottom: none; }
.dl { color: var(--text2); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; }
.dv { font-weight: 700; color: var(--text); text-align: right; }
.dv.accent { color: #a7f3d0; font-size: 18px; text-shadow: 0 0 15px rgba(167, 243, 208, 0.3); }
.dv.warning { color: #fcd34d; }
.items-box { margin-top: 24px; background: rgba(0,0,0,0.2); border-radius: var(--radius-sm); padding: 20px; border: 1px solid var(--border); }
.items-title { font-size: 13px; font-weight: 800; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.item-row { display: flex; justify-content: space-between; font-size: 15px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-weight: 600; color: var(--text); }
.item-row:last-child { border-bottom: none; }

/* Payment modal */
.vendor-due-banner { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: #fcd34d; border-radius: var(--radius-sm); padding: 16px; font-size: 15px; margin-bottom: 24px; font-weight: 600; display: none; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1); }
.pay-mode-row { display: flex; gap: 16px; margin-bottom: 24px; }
.pay-mode-btn { flex: 1; background: rgba(0,0,0,0.2); border: 1.5px solid var(--border); color: var(--text2); border-radius: var(--radius-sm); padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; gap: 8px; }
.pay-mode-btn:hover { background: rgba(255,255,255,0.05); }
.pay-mode-btn.active { background: rgba(16, 185, 129, 0.15); color: var(--primary); border-color: var(--primary); box-shadow: 0 4px 16px var(--primary-glow); transform: translateY(-2px); }

.qr-container { text-align: center; padding: 24px 0; }
.qr-container img { width: 240px; height: 240px; border-radius: 20px; background: #fff; padding: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.4); border: 2px solid var(--primary); }
.qr-note { font-size: 14px; font-weight: 600; color: var(--text2); margin-top: 16px; }

/* ─── TOAST ───────────────────────────────────────────── */
.toast { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%) translateY(30px) scale(0.9); background: rgba(17, 24, 39, 0.95); backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; padding: 16px 28px; font-size: 15px; font-weight: 700; z-index: 999; opacity: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap; pointer-events: none; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.toast.success { background: rgba(16, 185, 129, 0.95); border-color: #34d399; }
.toast.error { background: rgba(239, 68, 68, 0.95); border-color: #fca5a5; }

/* ─── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fillBar { from { width: 0; } to { width: 100%; } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
