/* =========================================================
   Tindi Potha — ordering UI (v3)
   Builds on style.css tokens.
   ========================================================= */
:root { --veg: #1E8E3E; --nonveg: #C0392B; --ok: #2E9E5B; --warn: #E6A100; }

/* ---------- Splash screen ---------- */
.splash {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, var(--cream) 55%, var(--cream-dark) 100%);
  transition: opacity .5s ease, visibility .5s ease;
}
.no-splash .splash, .splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.no-splash .splash { display: none; }
.splash-inner { text-align: center; padding: 16px; }
.splash-ring {
  width: min(62vw, 260px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(242,114,28,.10), 0 0 0 22px rgba(242,114,28,.05), var(--shadow-lg);
  animation: splashPop .7s cubic-bezier(.2,1.4,.4,1) both;
}
.splash-logo { width: 84%; height: auto; }
.splash-road { position: relative; width: min(70vw, 280px); height: 30px; margin: 26px auto 6px; border-bottom: 3px dashed rgba(209,129,33,.45); overflow: hidden; }
.splash-scooter { position: absolute; bottom: -2px; left: -40px; font-size: 26px; animation: ride 1.5s ease-in-out .2s both; transform: scaleX(-1); }
.splash-tag { font-family: 'Baloo 2', sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--brown); font-size: 13px; font-weight: 700; opacity: 0; animation: fadeUp .6s ease .5s forwards; }
@keyframes splashPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ride { from { left: -40px; } to { left: calc(100% + 10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash-ring, .splash-scooter, .splash-tag { animation: none; opacity: 1; } }

html, body { overflow-x: clip; }

/* ---------- Header additions ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brown); background: #fff; box-shadow: var(--shadow-sm); }
.cart-btn:hover { color: var(--orange-deep); }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--cream); }
.cart-count.hidden { display: none; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 12px; padding: 5px 12px 5px 5px; cursor: pointer; box-shadow: var(--shadow-sm); font: inherit; color: var(--brown); font-weight: 600; font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; display: none; z-index: 120; }
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--cream); }
.nav-mobile-only { display: none !important; }
.main-nav { gap: 24px; }

@media (max-width: 1080px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 24px 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; z-index: 99;
  }
  .main-nav:not(.open) { visibility: hidden; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a:not(.btn) { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .nav-mobile-only { display: block !important; }
}
@media (max-width: 560px) {
  .brand-logo { height: 44px; }
  .user-name { display: none; }
  .user-btn { padding: 5px; }
  .login-btn { padding: 9px 14px; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--brown); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 10000; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #B23A3A; }
.toast.success { background: var(--ok); }
.has-cartbar .toast { bottom: 96px; }

/* ---------- Generic ---------- */
.page-wrap { padding: 36px 0 72px; }
.card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h3 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--brown-soft); cursor: pointer; white-space: nowrap; }
.chip.active, .chip:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #E6F4EA; color: var(--veg); }
.badge-orange { background: #FDEBDD; color: var(--orange-deep); }
.badge-red { background: #FDECEC; color: #B23A3A; }
.badge-grey { background: #EFEAE6; color: #6B5A50; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.input, .form-row input, .form-row select, .form-row textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; color: var(--text); }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,114,28,.15); }
.veg-icon { width: 16px; height: 16px; border: 1.5px solid var(--veg); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.veg-icon::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--veg); }
.veg-icon.nonveg { border-color: var(--nonveg); }
.veg-icon.nonveg::after { background: transparent; width: 0; height: 0; border-radius: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-bottom: 8px solid var(--nonveg); }

/* ---------- Home hero search ---------- */
.hero-search { margin-top: 28px; display: flex; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); padding: 6px; max-width: 520px; }
.hero-search .loc { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--orange-deep); font-weight: 600; font-size: 14px; border-right: 1px solid var(--border); white-space: nowrap; }
.hero-search input { flex: 1; border: 0; padding: 12px 14px; font: inherit; font-size: 15px; min-width: 0; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search button { border-radius: 12px; }
@media (max-width: 480px) { .hero-search .loc { display: none; } }
.cuisine-strip { padding: 36px 0 8px; }
.cuisine-strip h2 { font-size: 24px; margin-bottom: 16px; }
.section-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-row h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }

/* ---------- Restaurant cards (clickable) ---------- */
a.restaurant-card { display: block; color: inherit; }
.restaurant-card .restaurant-thumb { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--cream-dark), #F7D9BA); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.restaurant-card.is-closed .restaurant-thumb img { filter: grayscale(.8); }
.restaurant-card .offer-tag { position: absolute; left: 0; bottom: 12px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px 4px 10px; border-radius: 0 8px 8px 0; }
.restaurant-body .cuisine-line { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.restaurant-body .meta-row { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--brown-soft); flex-wrap: wrap; }
.restaurant-body .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.listing-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.listing-toolbar form { flex: 1; min-width: 240px; display: flex; gap: 10px; }
.listing-toolbar .input { flex: 1; }

/* ---------- Restaurant (menu) page ---------- */
.rest-hero { position: relative; background: var(--brown); color: #fff; overflow: hidden; }
.rest-hero .cover { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.rest-hero .container { position: relative; padding-top: 44px; padding-bottom: 36px; display: flex; gap: 24px; align-items: flex-end; }
.rest-hero .logo-box { width: 104px; height: 104px; border-radius: 20px; background: #fff; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.rest-hero .logo-box img { width: 100%; height: 100%; object-fit: cover; }
.rest-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 4px; }
.rest-hero .sub { opacity: .9; font-size: 14.5px; margin-bottom: 12px; }
.rest-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.rest-stats span { background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 10px; font-size: 13.5px; backdrop-filter: blur(4px); }
.closed-banner { background: #FDECEC; color: #B23A3A; text-align: center; padding: 12px; font-weight: 600; }
.menu-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0 80px; }
.menu-cats { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.menu-cats a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; color: var(--brown-soft); border-left: 3px solid transparent; }
.menu-cats a:hover, .menu-cats a.active { background: #fff; color: var(--orange-deep); border-left-color: var(--orange); font-weight: 600; }
.menu-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.menu-tools .input { flex: 1; min-width: 200px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--veg); cursor: pointer; user-select: none; }
.toggle input { width: 38px; height: 22px; appearance: none; background: #ddd; border-radius: 11px; position: relative; cursor: pointer; transition: .2s; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked { background: var(--veg); }
.toggle input:checked::after { left: 19px; }
.menu-section { margin-bottom: 36px; scroll-margin-top: calc(var(--header-h) + 20px); }
.menu-section h2 { font-size: 22px; margin-bottom: 4px; }
.menu-item { display: flex; gap: 20px; justify-content: space-between; padding: 22px 0; border-bottom: 1px dashed var(--border); }
.menu-item .info { flex: 1; min-width: 0; }
.menu-item h4 { font-size: 17px; margin: 6px 0 4px; }
.menu-item .price { font-weight: 600; color: var(--brown); }
.menu-item .price s { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 13px; }
.menu-item .desc { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item .media { position: relative; width: 140px; flex-shrink: 0; text-align: center; }
.menu-item .media .img { width: 140px; height: 120px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--cream-dark), #F7D9BA); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.menu-item .media .img img { width: 100%; height: 100%; object-fit: cover; }
.menu-item .media .add-wrap { margin-top: -22px; position: relative; }
.menu-item.no-img .media .add-wrap { margin-top: 0; }
.menu-item.no-img .media .img { display: none; }
.add-btn { min-width: 108px; height: 40px; border-radius: 10px; background: #fff; border: 1.5px solid var(--orange); color: var(--orange-deep); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: var(--shadow-sm); letter-spacing: .03em; }
.add-btn:hover { background: var(--orange); color: #fff; }
.qty { display: inline-flex; align-items: center; height: 40px; min-width: 108px; border-radius: 10px; background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.qty button { width: 36px; height: 100%; background: none; border: 0; color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.qty button:hover { background: rgba(0,0,0,.1); }
.qty span { flex: 1; text-align: center; font-weight: 700; }
.qty.sm { height: 32px; min-width: 88px; }
.qty.sm button { width: 28px; font-size: 16px; }
.menu-empty { text-align: center; padding: 60px 20px; }
@media (max-width: 860px) {
  .menu-layout { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; }
  .menu-cats { position: sticky; top: var(--header-h); z-index: 20; background: var(--cream); display: flex; overflow-x: auto; gap: 6px; padding: 10px 0; margin: 0 -20px; padding-left: 20px; scrollbar-width: none; }
  .menu-cats a { white-space: nowrap; border-left: 0; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
  .menu-cats h4 { display: none; }
  .rest-hero .container { flex-direction: column; align-items: flex-start; }
  .rest-hero .logo-box { width: 76px; height: 76px; }
  .menu-item .media, .menu-item .media .img { width: 118px; }
  .menu-item .media .img { height: 100px; }
}

/* ---------- Floating cart bar ---------- */
.cart-bar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); width: min(720px, calc(100vw - 32px)); background: var(--ok); color: #fff; border-radius: 16px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-lg); z-index: 90; transition: transform .3s ease; }
.cart-bar.show { transform: translate(-50%, 0); }
.cart-bar b { font-size: 16px; }
.cart-bar a { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(43,24,16,.55); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; box-shadow: var(--shadow-lg); animation: fadeUp .25s ease; }
.modal-box h3 { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: var(--cream); border: 0; width: 34px; height: 34px; border-radius: 10px; font-size: 20px; cursor: pointer; }
.map-picker { height: 240px; border-radius: 14px; overflow: hidden; margin-bottom: 8px; background: var(--cream-dark); }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input { display: none; }
.seg span { display: block; text-align: center; padding: 10px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; }
.seg input:checked + span { border-color: var(--orange); background: #FFF1E6; color: var(--orange-deep); font-weight: 600; }

/* ---------- Cart / checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.checkout-grid .sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.cart-hotel { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cart-hotel img, .cart-hotel .ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cart-hotel h4 { margin: 0; font-size: 17px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.cart-line .name { flex: 1; font-size: 14.5px; font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.cart-line .name .veg-icon { margin-top: 3px; }
.cart-line .amt { width: 76px; text-align: right; font-weight: 600; }
.bill-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; color: var(--brown-soft); }
.bill-row.discount { color: var(--ok); }
.bill-row.total { border-top: 2px solid var(--brown); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--brown); }
.coupon-box { display: flex; gap: 8px; }
.coupon-box .input { text-transform: uppercase; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: #E9F7EF; border: 1px dashed var(--ok); border-radius: 12px; padding: 12px 14px; color: #1E7E45; font-weight: 600; }
.coupon-applied button { background: none; border: 0; color: #B23A3A; font-weight: 600; cursor: pointer; }
.offer-list { display: grid; gap: 8px; margin-top: 12px; }
.offer-list button { text-align: left; background: #FFF7EE; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; font-size: 13.5px; }
.offer-list b { color: var(--orange-deep); letter-spacing: .05em; }
.addr-list { display: grid; gap: 12px; }
.addr-card { display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; align-items: flex-start; }
.addr-card input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; }
.addr-card:has(input:checked) { border-color: var(--orange); background: #FFF6EE; }
.addr-card .t { font-weight: 600; color: var(--brown); display: flex; gap: 8px; align-items: center; }
.addr-card .a { font-size: 14px; color: var(--brown-soft); }
.addr-card .acts { margin-left: auto; display: flex; gap: 6px; }
.link-btn { background: none; border: 0; color: var(--orange-deep); font: inherit; font-weight: 600; cursor: pointer; font-size: 13.5px; padding: 4px; }
.link-btn.danger { color: #B23A3A; }
.pay-opts { display: grid; gap: 12px; }
.pay-opt { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; }
.pay-opt input { accent-color: var(--orange); width: 18px; height: 18px; }
.pay-opt:has(input:checked) { border-color: var(--orange); background: #FFF6EE; }
.pay-opt .ic { font-size: 26px; }
.pay-opt b { display: block; color: var(--brown); }
.pay-opt small { color: var(--muted); }
.pay-opt.disabled { opacity: .5; cursor: not-allowed; }
.place-btn { width: 100%; font-size: 17px; padding: 16px; margin-top: 18px; display: flex; justify-content: space-between; }
.secure-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-grid .sticky { position: static; } }

/* ---------- Login ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(160deg, var(--orange) 0%, var(--orange-deep) 60%, var(--brown) 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px; position: relative; overflow: hidden; }
.auth-art h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.auth-art p { opacity: .9; font-size: 16px; max-width: 420px; }
.auth-art .logo-disc { width: 150px; height: 150px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; box-shadow: 0 0 0 12px rgba(255,255,255,.15); }
.auth-art .logo-disc img { width: 86%; }
.auth-art ul { margin-top: 16px; display: grid; gap: 10px; }
.auth-art li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-step { display: none; }
.auth-step.active { display: block; animation: fadeUp .3s ease; }
.phone-field { display: flex; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.phone-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,114,28,.15); }
.phone-field span { padding: 14px; background: var(--cream); font-weight: 600; color: var(--brown); border-right: 1px solid var(--border); }
.phone-field input { flex: 1; border: 0; padding: 14px; font: inherit; font-size: 17px; letter-spacing: .06em; min-width: 0; }
.phone-field input:focus { outline: none; }
.otp-inputs { display: flex; gap: 10px; justify-content: space-between; margin: 8px 0 6px; }
.otp-inputs input { width: 100%; max-width: 58px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; }
.otp-inputs input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,114,28,.15); }
.dev-hint { background: #FFF6E0; border: 1px dashed var(--warn); color: #8A6200; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin-top: 12px; }
.form-err { color: #B23A3A; font-size: 13.5px; min-height: 20px; margin-top: 8px; }
.check-row { display: block; position: relative; padding-left: 28px; font-size: 13.5px; color: var(--brown-soft); line-height: 1.5; }
.check-row input { position: absolute; left: 0; top: 1px; accent-color: var(--orange); width: 18px; height: 18px; margin: 0; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: minmax(0,1fr); min-height: auto; } .auth-art { display: none; } .auth-panel { padding: 32px 16px 48px; } }

/* ---------- Orders ---------- */
.order-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 14px; color: inherit; transition: .2s; }
.order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.order-card .ph { width: 64px; height: 64px; border-radius: 14px; background: var(--cream-dark); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.order-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.order-card .mid { flex: 1; min-width: 0; }
.order-card h4 { margin: 0 0 2px; font-size: 16.5px; }
.order-card .items-line { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card .right { text-align: right; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }

.track-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.track-status { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-md); }
.track-status h2 { color: #fff; font-size: 26px; margin-bottom: 4px; }
.track-status .eta { font-size: 15px; opacity: .95; }
.progress-steps { display: flex; justify-content: space-between; margin: 22px 0 4px; position: relative; }
.progress-steps::before { content: ''; position: absolute; left: 14px; right: 14px; top: 13px; height: 3px; background: rgba(255,255,255,.3); }
.progress-steps .bar { position: absolute; left: 14px; top: 13px; height: 3px; background: #fff; transition: width .5s ease; }
.progress-steps .st { position: relative; text-align: center; flex: 1; font-size: 11.5px; opacity: .75; }
.progress-steps .st i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-style: normal; font-size: 13px; }
.progress-steps .st.done { opacity: 1; }
.progress-steps .st.done i { background: #fff; color: var(--orange-deep); }
.otp-box { display: flex; justify-content: space-between; align-items: center; background: #fff; color: var(--brown); border-radius: 14px; padding: 14px 18px; margin-top: 18px; }
.otp-box b { font-size: 28px; letter-spacing: .3em; font-family: 'Baloo 2', sans-serif; color: var(--orange-deep); }
.track-map { height: 320px; border-radius: var(--radius-md); overflow: hidden; background: var(--cream-dark); margin-top: 18px; box-shadow: var(--shadow-sm); }
.partner-card { display: flex; gap: 14px; align-items: center; }
.partner-card .pic { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.partner-card .call { margin-left: auto; }
.timeline-list li { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; position: relative; }
.timeline-list li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 6px; flex-shrink: 0; }
.timeline-list li span { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.stars { display: flex; gap: 6px; font-size: 32px; }
.stars button { background: none; border: 0; cursor: pointer; color: #DDD; font-size: 32px; padding: 0; line-height: 1; }
.stars button.on { color: #F5B301; }
.success-banner { background: #E9F7EF; border: 1px solid #BEE8CE; color: #1E7E45; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; font-weight: 500; }
@media (max-width: 900px) { .track-grid { grid-template-columns: 1fr; } }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.account-side .avatar { width: 72px; height: 72px; border-radius: 20px; font-size: 30px; margin-bottom: 12px; }
.account-side a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--brown-soft); }
.account-side a:hover { background: var(--cream); color: var(--orange-deep); }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }

.skeleton { background: linear-gradient(90deg, #f3e9df 25%, #faf3ec 50%, #f3e9df 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
