:root {
  --primary: #000000;
  --primary-hover: #333333;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text-main: #000000;
  --text-muted: #6f6f6f;
  --border-color: #eeeeee;
  --field-bg: #f6f6f6;
  --success: #00a680;
  --warning: #f5a623;
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Uber Move', 'Uber Move Text', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
html, body, button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
*:focus { outline: none; }
*:active { -webkit-tap-highlight-color: transparent; }

body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.container {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
}

.dashboard-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Marca */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand.small {
  margin-bottom: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow:hidden;
}

.brand.small .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-logo img{width:100%;height:100%;object-fit:cover;display:block}

.brand-bolt {
  width: 14px;
  height: 20px;
  background: #fff;
  clip-path: polygon(58% 0, 0 56%, 42% 56%, 30% 100%, 100% 40%, 55% 40%);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand.small .brand-name {
  font-size: 1.15rem;
}

.brand.small h2 {
  font-size: 1.15rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

h1,
h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--field-bg);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #b0b0b0;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.role-option {
  position: relative;
}

.role-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.role-card {
  padding: 14px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  background: var(--field-bg);
  font-weight: 500;
  transition: all 0.2s;
}

.role-option input:checked + .role-card {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:active {
  transform: scale(0.99);
}

.btn-route {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}

.btn-route:hover {
  background: var(--field-bg);
  color: #000;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: #000;
  width: auto;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--field-bg);
  color: #000;
}

.toggle-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toggle-link a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.toggle-link a:hover {
  text-decoration: underline;
}

.online-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  background:var(--card-bg);
  border:1px solid var(--border-color);
  border-bottom:none;
  padding:16px 20px;
  padding-bottom:calc(16px + env(safe-area-inset-bottom));
  border-radius:20px 20px 0 0;
  box-shadow:0 -4px 24px rgba(0,0,0,0.10);
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:760px;
  z-index:100;
  margin-bottom:0;
}
.online-card.online{ border-color:var(--border-color); background:#fff; }
.online-card.offline{ background:#fff; }
.online-info{ display:flex; align-items:center; gap:12px; }
.status-dot{
  width:12px;height:12px;border-radius:50%;background:#ccc;flex-shrink:0;
  box-shadow:0 0 0 4px rgba(0,0,0,0.04);
}
.online-card.online .status-dot{ background:var(--success); box-shadow:0 0 0 4px rgba(0,166,128,0.18); }
#online-status-text{ font-size:1rem; }
.online-card .btn{ width:auto; padding:14px 28px; min-width:148px; border-radius:999px; font-weight:600; font-size:1rem; }
.online-card .btn.online{ background:var(--success); }
.online-card .btn.online:hover{ background:#008a6b; }
.dashboard-container{ padding-bottom:92px; }
@media(max-width:480px){
  .online-card{ padding:14px 16px; padding-bottom:calc(14px + env(safe-area-inset-bottom)); }
  .online-card .btn{ min-width:132px; padding:14px 20px; }
}

/* Pedidos / Cards */
.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.settings-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.settings-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.settings-toggle strong {
  font-weight: 600;
  color: var(--text-main);
}

.settings-caret {
  transition: transform 0.2s;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.settings-card.open .settings-caret {
  transform: rotate(180deg);
}

.settings-card .settings-body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-card .settings-body .role-selector {
  margin-top: 14px;
}

.settings-card .muted {
  margin-bottom: 16px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.order-card{
  background:var(--card-bg);
  border:1px solid #ececec;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:0;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  min-width:0;
  overflow:hidden;
}
.order-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px 12px;
}
.order-card-title{flex:1;min-width:0}
.order-card-title strong{
  font-size:.98rem;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.25;
  display:block;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.order-card-meta{
  font-size:.72rem;
  color:#9a9a9a;
  margin-top:4px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.order-card-meta .meta-dot{width:3px;height:3px;border-radius:50%;background:#d0d0d0;display:inline-block}
.order-badges{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
.badge{
  padding:5px 10px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex-shrink:0;
  line-height:1;
}
.badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.9;flex-shrink:0}
.badge-pendente{background:#fff7e6;color:#a86b00;border:1px solid #fde4b3}
.badge-aguardando_pagamento{background:#fff7e6;color:#a86b00;border:1px solid #fde4b3}
.badge-aguardando_suporte{background:#fff7e6;color:#a86b00;border:1px solid #fde4b3}
.badge-aguardando_atribuicao{background:#fff7e6;color:#a86b00;border:1px solid #fde4b3}
.badge-em_transporte{background:#111;color:#fff;border:1px solid #111}
.badge-concluido{background:#e3f4ee;color:#007a5e;border:1px solid #c8eadc}
.badge-aprovado{background:#e3f4ee;color:#007a5e;border:1px solid #c8eadc}
.badge-rejeitado{background:#fdeaea;color:#c0392b;border:1px solid #f5c6c6}
.badge-pay{padding:4px 8px;font-size:.62rem;border-radius:999px;font-weight:700;letter-spacing:.03em}
.badge-pay.pix{background:#e3f4ee;color:#007a5e;border:1px solid #c8eadc}
.badge-pay.dinheiro{background:#fff7e6;color:#8a5a00;border:1px solid #fde4b3}
.order-timeline{
  padding:0 16px 12px;
  display:flex;
  flex-direction:column;
  gap:0;
}
.tl-row{display:flex;gap:12px;min-width:0}
.tl-icon{width:26px;display:flex;flex-direction:column;align-items:center;flex-shrink:0}
.tl-dot{width:10px;height:10px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 2px currentColor;flex-shrink:0;margin-top:2px}
.tl-dot.origin{color:#00a680;background:#00a680}
.tl-dot.dest{color:#111;background:#111}
.tl-line{width:2px;flex:1;background:#ececec;margin:2px 0}
.tl-content{flex:1;min-width:0;padding-bottom:10px}
.tl-content label{font-size:.62rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#9a9a9a;display:block;margin-bottom:2px}
.tl-content span{font-size:.88rem;font-weight:500;color:#111;line-height:1.35;overflow-wrap:anywhere;word-break:break-word;display:block}
.tl-row:last-child .tl-content{padding-bottom:0}
.order-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:12px 16px;
  background:#fafafa;
  border-top:1px solid #efefef;
  border-bottom:1px solid #efefef;
}
.info-box{
  background:#fff;
  border:1px solid #ececec;
  border-radius:12px;
  padding:10px 8px;
  text-align:center;
  min-width:0;
}
.info-box label{font-size:.6rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#9a9a9a;margin-bottom:3px;display:block}
.info-box span{font-size:.85rem;font-weight:700;color:#111;overflow-wrap:anywhere}
.info-box.highlight{background:#111;color:#fff;border-color:#111}
.info-box.highlight label{color:rgba(255,255,255,.65)}
.info-box.highlight span{color:#fff}
.info-box.highlight .badge-pay{background:#fff;color:#111;border-color:#fff}
.info-box.highlight .badge-pay.pix{background:#fff;color:#007a5e;border-color:#fff}
.info-box.highlight .badge-pay.dinheiro{background:#ffcc00;color:#111;border-color:#ffcc00}
.info-box.success{background:#e3f4ee;border-color:#c8eadc}
.info-box.success label{color:#007a5e}
.info-box.success span{color:#006b50}
.arrived-banner{
  background:#e3f4ee;
  color:#006b50;
  padding:10px 16px;
  font-size:.82rem;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
  border-top:1px solid #c8eadc;
}
.arrived-banner i{width:22px;height:22px;border-radius:50%;background:#00a680;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.75rem;flex-shrink:0}
.person-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  font-size:.84rem;
  border-top:1px solid #f0f0f0;
  color:#444;
}
.person-row strong{color:#111;font-weight:600}
.person-avatar{width:28px;height:28px;border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;font-size:.75rem;flex-shrink:0}
.order-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px 16px 16px;
}
.order-actions .btn{border-radius:12px;padding:13px;font-weight:700}
.btn-verify{background:#fff;border:1px solid #111;color:#111}
.btn-verify:hover{background:#f6f6f6}
.order-route{display:none}
.order-header{display:none}

.btn-reject {
  background: #fff;
  border: 1px solid #c0392b;
  color: #c0392b;
}

.btn-reject:hover {
  background: #fdeaea;
  color: #c0392b;
}

/* Página de aprovação */
.approval-box {
  text-align: center;
  padding: 16px 0;
}

.approval-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.approval-box h2 {
  margin-bottom: 12px;
}

.approval-box .muted {
  margin-bottom: 24px;
}

/* Painel administrativo */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar{display:none}

.admin-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab.active {
  color: #000;
  border-bottom-color: #000;
}

.tab-count {
  display: inline-block;
  background: var(--field-bg);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.75rem;
  margin-left: 4px;
}

.admin-tab.active .tab-count {
  background: #000;
  color: #fff;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.user-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.role-tag {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-card { min-width: 0; overflow: hidden; }
.user-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--border-color);
  padding-left: 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.user-details p { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }

.user-details span {
  display: inline-block;
  min-width: 80px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.app-body{background:#f2f2f2;align-items:flex-start;padding:0;min-height:100vh;min-height:100dvh}
.app-shell{width:100%;max-width:480px;min-height:100vh;min-height:100dvh;background:#fff;display:flex;flex-direction:column;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.04)}
header.app-topbar{margin-bottom:0;padding-bottom:0;border-bottom:1px solid #ececec}
.app-topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border-bottom:1px solid #ececec;padding-top:env(safe-area-inset-top)}
.app-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;min-height:60px;width:100%}
.app-topbar-inner .brand{flex:1;min-width:0;justify-content:flex-start}
.app-topbar-text h2{font-size:.95rem;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.app-topbar-text .muted{font-size:.78rem;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.btn-icon{padding:8px 14px;font-size:.85rem;border-radius:999px;min-height:36px;flex-shrink:0;margin-left:auto}
.app-main{flex:1;padding:16px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:18px;background:#f8f8f8}
.app-card{background:#fff;border:1px solid #ececec;border-radius:20px;padding:18px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.form-card .section-label{margin-bottom:14px}
.section-label{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9a9a9a}
.section-label.row-between{display:flex;justify-content:space-between;align-items:center}
.btn-primary-lg{margin-top:6px;padding:16px;border-radius:14px;font-weight:700;font-size:1rem;letter-spacing:-.01em}
.orders-section{padding:2px 0 0}
.app-body .orders-list{margin-top:12px;gap:12px}
.app-body .order-card{border-radius:18px;border-color:#ececec}
.app-body .dashboard-container{max-width:480px;margin:0 auto}
.driver-main{padding-bottom:100px}
.app-body .online-card{left:50%;transform:translateX(-50%);max-width:480px;width:100%;border-radius:20px 20px 0 0}
.wallet-card{background:linear-gradient(135deg,#000 0%,#1a1a1a 100%);color:#fff;border-radius:20px;padding:0;box-shadow:0 8px 24px rgba(0,0,0,.18);position:relative;overflow:hidden}
.wallet-card::after{content:'';position:absolute;top:-40px;right:-40px;width:120px;height:120px;background:rgba(255,255,255,.06);border-radius:50%;pointer-events:none}
.wallet-toggle{width:100%;background:transparent;border:none;color:#fff;text-align:left;padding:20px;cursor:pointer;font-family:inherit}
.wallet-top{display:flex;justify-content:space-between;align-items:flex-start}
.wallet-label{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.7}
.wallet-sub{font-size:.75rem;opacity:.55;margin-top:2px;display:flex;align-items:center;gap:6px}
.wallet-dot{width:7px;height:7px;border-radius:50%;background:var(--success);display:inline-block;box-shadow:0 0 0 4px rgba(0,166,128,.18)}
.wallet-eye{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(8px);flex-shrink:0}
.wallet-eye svg{width:20px;height:20px;display:block}
.wallet-caret{font-size:.8rem;opacity:.6;transition:transform .2s}
.wallet-card.open .wallet-caret{transform:rotate(180deg)}
.wallet-balance{font-size:2rem;font-weight:800;letter-spacing:-.03em;margin-top:14px}
.wallet-body{height:0;overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1);padding:0 20px}
.wallet-card.open .wallet-body{padding-bottom:20px}
.wallet-stats{display:flex;gap:12px;margin-top:4px}
.wallet-stat{flex:1;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px;text-align:center}
.wallet-stat span{font-size:.95rem;font-weight:700;display:block}
.wallet-stat label{font-size:.65rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;opacity:.6;margin-top:2px}
.admin-body{background:#f2f2f2;min-height:100vh;display:flex;justify-content:center;align-items:flex-start;padding:0}
.admin-shell{width:100%;max-width:900px;min-height:100vh;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.06);display:flex;flex-direction:column}
.admin-topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(16px) saturate(180%);border-bottom:1px solid #ececec;padding-top:env(safe-area-inset-top)}
.admin-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;min-height:64px}
.admin-topbar h2{font-size:1.05rem;font-weight:700;letter-spacing:-.02em}
.admin-topbar .muted{font-size:.8rem}
.admin-main{flex:1;padding:20px;background:#f8f8f8;display:flex;flex-direction:column;gap:16px}
.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.admin-stats.cols-3{grid-template-columns:repeat(3,1fr)}
.stat-card{background:#fff;border:1px solid #ececec;border-radius:16px;padding:16px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.stat-card.highlight{border-color:#e3f4ee;background:#f6fdfb}
.stat-num{font-size:1.5rem;font-weight:800;letter-spacing:-.03em;display:block}
.stat-label{font-size:.65rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);margin-top:4px;display:block}
.stat-card .stat-dot{width:8px;height:8px;border-radius:50%;background:var(--success);display:inline-block;margin-left:6px;vertical-align:middle}
.admin-main .admin-tabs{background:#fff;border:1px solid #ececec;border-radius:14px;padding:4px;margin-bottom:0}
.admin-main .admin-tab{flex:1;border-radius:10px;border-bottom:none;margin-bottom:0;padding:10px 12px}
.admin-main .admin-tab.active{background:#000;color:#fff;border-color:#000}
.admin-main .orders-list,.admin-main .users-list{margin-top:0}
.admin-main .order-card,.admin-main .user-card{border-radius:16px}
@media(max-width:640px){
  .admin-stats{grid-template-columns:repeat(2,1fr)}
  .admin-stats.cols-3{grid-template-columns:repeat(3,1fr)}
  .admin-main{padding:16px}
}
.app-body .settings-card{border-radius:18px;padding:16px;margin-bottom:0}
.app-body input{padding:14px 14px;font-size:.95rem;border-radius:14px}
.app-body .order-card:active{transform:scale(.99)}
@media(min-width:481px){
  .app-body{padding:0;justify-content:center;background:#e8e8e8}
  .app-shell{border-radius:0;min-height:100dvh}
  .app-main{padding:20px 20px calc(20px + env(safe-area-inset-bottom))}
}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.45);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;opacity:0;pointer-events:none;transition:opacity .22s}
.modal-overlay.open{opacity:1;pointer-events:auto}
.modal-box{background:#fff;border-radius:20px;padding:28px 24px;width:100%;max-width:380px;transform:scale(.96) translateY(8px);transition:transform .28s cubic-bezier(.32,1,.5,1);box-shadow:0 20px 60px rgba(0,0,0,.18);text-align:center;min-width:0}
.modal-overlay.open .modal-box{transform:scale(1) translateY(0)}
.modal-icon{width:52px;height:52px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700}
.modal-icon.success{background:#e3f4ee;color:#00a680}
.modal-icon.error{background:#fdeaea;color:#c0392b}
.modal-icon.warning{background:#fdf3e2;color:#a86b00}
.modal-icon.info{background:#f1f1f1;color:#000}
.modal-title{font-size:1.2rem;font-weight:700;margin-bottom:8px;overflow-wrap:anywhere}
.modal-message{color:var(--text-muted);font-size:.95rem;line-height:1.5;margin-bottom:22px;overflow-wrap:anywhere;word-break:break-word}
.sheet-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(2px);z-index:200;opacity:0;pointer-events:none;transition:opacity .25s}
.sheet-overlay.open{opacity:1;pointer-events:auto}
.bottom-sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,100%);width:100%;max-width:480px;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.18);z-index:201;padding:12px 16px calc(20px + env(safe-area-inset-bottom));transition:transform .32s cubic-bezier(.32,1,.5,1);max-height:88dvh;overflow:auto}
.bottom-sheet.open{transform:translate(-50%,0)}
.sheet-handle{width:36px;height:4px;border-radius:999px;background:#e0e0e0;margin:0 auto 14px}
.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.sheet-header h3{font-size:1.05rem;font-weight:700;letter-spacing:-.02em}
.sheet-close{width:32px;height:32px;border-radius:50%;border:1px solid #ececec;background:#f6f6f6;font-size:1.2rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.bottom-sheet .form-group{margin-bottom:14px}
.bottom-sheet .btn-primary-lg{width:100%;margin-top:4px}
.modal-actions{display:flex;gap:10px}
.modal-actions .btn{flex:1;padding:14px}
@keyframes pulse{0%{box-shadow:0 0 0 4px rgba(0,166,128,.18)}50%{box-shadow:0 0 0 8px rgba(0,166,128,.08)}100%{box-shadow:0 0 0 4px rgba(0,166,128,.18)}}
