/* ══════════════════════════════════════════════════════════
   Reservation.HUB  —  iOS 26 Liquid Glass Design System
   ══════════════════════════════════════════════════════════ */

:root {
  /* Core palette */
  --bg:        #000000;
  --card:      rgba(20, 20, 24, 0.75);
  --card-solid: #1c1c1e;
  --stroke:    rgba(255, 255, 255, 0.13);
  --stroke2:   rgba(255, 255, 255, 0.06);

  --text:      #ffffff;
  --text-dim:  rgba(235, 235, 245, 0.82);
  --muted:     #8e8e93;

  /* iOS system colors */
  --blue:   #0a84ff;
  --green:  #30d158;
  --orange: #ff9f0a;
  --red:    #ff453a;
  --purple: #bf5af2;

  /* iOS 26 liquid glass blur levels */
  --blur-sm:  blur(24px) saturate(180%);
  --blur-md:  blur(50px) saturate(200%) brightness(0.96);
  --blur-lg:  blur(80px) saturate(220%) brightness(0.94);
  --blur-ov:  blur(20px) saturate(180%);

  /* Spring & ease */
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:     cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Liquid glass shadows: outer depth + inner specular */
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -0.5px 0 rgba(0,0,0,0.18);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -0.5px 0 rgba(0,0,0,0.2);
  --shadow-lg: 0 24px 56px rgba(0,0,0,0.55), 0 8px 20px rgba(0,0,0,0.3),  inset 0 1px 0 rgba(255,255,255,0.2),  inset 0 -0.5px 0 rgba(0,0,0,0.22);
}

/* ── Reset ── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  background: var(--bg);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 110px;
  overflow-x: hidden;
}

/* Depth aurora background */
body::before {
  content: ""; position: fixed; inset: -20%;
  background:
    radial-gradient(circle at 15% 20%, rgba(191,90,242,0.12), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(10,132,255,0.10), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(48,209,88,0.04), transparent 60%);
  filter: blur(60px); z-index: -1; pointer-events: none;
  animation: auroraHubShift 24s ease-in-out infinite alternate;
}
@keyframes auroraHubShift {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-3%, 5%); }
  100% { transform: scale(1) translate(4%, -3%); }
}

/* ── SVGs ── */
svg {
  width: 20px !important; height: 20px !important;
  flex-shrink: 0 !important; fill: none !important;
  stroke: currentColor !important; stroke-width: 2 !important;
  stroke-linecap: round !important; stroke-linejoin: round !important;
  display: inline-block; vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════
   TOP BAR  —  Liquid Glass
   ══════════════════════════════════════════════════════════ */
.ios-top-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom: 0.5px solid var(--stroke);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.3);
}
/* Specular top line */
.ios-top-bar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.28) 40%, rgba(255,255,255,0.36) 60%, transparent 95%);
  pointer-events: none;
}

.top-left { display: flex; align-items: center; gap: 10px; }
.app-title { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; margin: 0; }
.top-right { display: flex; align-items: center; gap: 14px; }
.clock { font-size: 14px; font-weight: 700; font-family: "SF Mono", ui-monospace, monospace; color: var(--text-dim); letter-spacing: 0.5px; }

.ios-avatar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,69,58,0.1); color: var(--red);
  border: 0.5px solid rgba(255,69,58,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
  cursor: pointer; text-decoration: none;
}
.ios-avatar-btn:active { transform: scale(0.86); }
.ios-avatar-btn svg { stroke: currentColor !important; width: 18px !important; height: 18px !important; }

/* ══════════════════════════════════════════════════════════
   BOTTOM DOCK  —  iOS 26 pill
   ══════════════════════════════════════════════════════════ */
.ios-dock {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 520px;
  height: 72px;
  background: rgba(22, 22, 26, 0.88);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 0.5px solid rgba(255,255,255,0.16);
  border-radius: 36px;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  padding: 0 8px;
}
/* Specular top line on dock */
.ios-dock::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  border-radius: 36px; pointer-events: none;
}

.dock-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); cursor: pointer; flex: 1;
  transition: transform 0.3s var(--spring), color 0.2s;
  position: relative;
}
.dock-item svg { width: 26px !important; height: 26px !important; transition: transform 0.3s var(--spring), filter 0.2s; }
.dock-item span { font-size: 10px; font-weight: 700; letter-spacing: 0.2px; }
.dock-item:active { transform: scale(0.82); }

.dock-item.active { color: #fff; transform: translateY(-3px); }
.dock-item.active svg {
  fill: currentColor !important;
  filter: drop-shadow(0 3px 8px rgba(255,255,255,0.25));
  transform: scale(1.08);
}

.icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.dock-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--red); color: #fff; border-radius: 12px;
  font-size: 11px; font-weight: 800; border: 2px solid #1c1c1e;
  box-shadow: 0 2px 8px rgba(255,69,58,0.55);
  min-width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  font-family: -apple-system, sans-serif;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT & ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.main-container { padding: 20px; max-width: 1100px; margin: 0 auto; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: hubTabIn 0.42s var(--spring) both; }
@keyframes hubTabIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardPop {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.loc-card { animation: cardPop 0.44s var(--spring) both; }

.ios-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ios-section-title { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; margin: 0 0 20px 0; }

/* ══════════════════════════════════════════════════════════
   BENTO GRID
   ══════════════════════════════════════════════════════════ */
.ios-bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
@media (min-width: 768px) { .ios-bento-grid { grid-template-columns: repeat(4, 1fr); } }

.bento-box {
  border-radius: 24px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 0.5px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s var(--spring), box-shadow 0.28s;
  position: relative; overflow: hidden;
}
/* Inner specular on all bento boxes */
.bento-box::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  pointer-events: none;
}
.bento-box:active { transform: scale(0.93); }

/* Solid gradient cards for stats */
.bento-box.accent-1 { background: linear-gradient(140deg, #6366f1, #a855f7); }
.bento-box.accent-2 { background: linear-gradient(140deg, #10b981, #059669); }
.bento-box.accent-3 { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.bento-box.accent-4 { background: linear-gradient(140deg, #f43f5e, #dc2626); }
.bento-box.accent-5 { background: linear-gradient(140deg, #27272a, #18181b); border-color: rgba(255,255,255,0.1); }

/* Glass stat card */
.bento-box.glass {
  background: var(--card);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
}

.bento-icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.18);
  border: 0.5px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.bento-icon.orange { background: rgba(255,159,10,0.18); color: var(--orange); border-color: rgba(255,159,10,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.bento-icon.green  { background: rgba(48,209,88,0.18);  color: var(--green);  border-color: rgba(48,209,88,0.22);  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.bento-icon.blue   { background: rgba(10,132,255,0.18); color: var(--blue);   border-color: rgba(10,132,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.bento-icon.red    { background: rgba(255,69,58,0.18);  color: var(--red);    border-color: rgba(255,69,58,0.22);  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.bento-icon.purple { background: rgba(191,90,242,0.18); color: var(--purple); border-color: rgba(191,90,242,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.bento-icon svg { width: 22px !important; height: 22px !important; }

.bento-val { font-size: 30px; font-weight: 800; margin-bottom: 4px; letter-spacing: -1px; }
.bento-lbl { font-size: 13px; color: rgba(255,255,255,0.72); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Generic card ── */
.ios-card {
  background: var(--card);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-radius: 24px; padding: 20px;
  border: 0.5px solid var(--stroke);
  box-shadow: var(--shadow-md);
  position: relative;
}
.ios-card::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  pointer-events: none;
}
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 16px 0; display: flex; align-items: center; gap: 8px; }
.text-purple { color: var(--purple); }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }

/* ══════════════════════════════════════════════════════════
   FORME  —  iOS Settings style
   ══════════════════════════════════════════════════════════ */
.ios-form-group {
  background: rgba(28, 28, 32, 0.72);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border-radius: 18px; margin-bottom: 24px; overflow: hidden;
  border: 0.5px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.25);
}
.ios-form-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 0.5px solid var(--stroke2);
}
.ios-form-row:last-child { border-bottom: none; }
.ios-form-row label { font-size: 16px; font-weight: 500; color: #fff; width: 40%; }
.ios-form-row input,
.ios-form-row select {
  width: 60%; background: transparent; border: none; color: var(--blue);
  font-size: 16px; font-weight: 600; text-align: right; outline: none; font-family: inherit;
}
.ios-form-row textarea {
  resize: vertical; min-height: 80px; text-align: left; width: 100%;
  background: transparent; border: none; color: #fff; font-weight: 400; outline: none; font-family: inherit;
}
.ios-form-row.vertical { flex-direction: column; align-items: flex-start; gap: 8px; }
.ios-form-row.vertical label { width: 100%; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.ios-form-row input::placeholder, .ios-form-row textarea::placeholder { color: var(--muted); font-weight: 400; }
.ios-form-row select option { background: var(--card-solid); color: #fff; text-align: left; }

/* ── Search bar ── */
.ios-search-bar { position: relative; margin-bottom: 18px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ios-search-bar input {
  width: 100%; padding: 14px 14px 14px 44px;
  background: rgba(118,118,128,0.20);
  border: 0.5px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: 16px; color: #fff; font-size: 16px; outline: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ios-search-bar input:focus {
  background: rgba(118,118,128,0.30);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,132,255,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.ios-btn-primary {
  background: linear-gradient(140deg, var(--blue), #005bb5);
  color: #fff; border: none; border-radius: 14px;
  padding: 15px; font-size: 17px; font-weight: 700; width: 100%;
  cursor: pointer;
  transition: transform 0.22s var(--spring), box-shadow 0.22s;
  box-shadow: 0 8px 24px rgba(10,132,255,0.38), inset 0 1px 0 rgba(255,255,255,0.28);
}
.ios-btn-primary.purple {
  background: linear-gradient(140deg, var(--purple), #7e22ce);
  box-shadow: 0 8px 24px rgba(191,90,242,0.38), inset 0 1px 0 rgba(255,255,255,0.28);
}
.ios-btn-primary:active { transform: scale(0.92); box-shadow: 0 2px 10px rgba(10,132,255,0.3); }

.ios-btn-icon {
  background: rgba(255,255,255,0.10);
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  color: var(--blue); width: 40px; height: 40px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.22s var(--spring), background 0.2s;
}
.ios-btn-icon:active { transform: scale(0.84); background: rgba(255,255,255,0.18); }

.ios-btn-text {
  background: rgba(10,132,255,0.12);
  border: 0.5px solid rgba(10,132,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--blue); padding: 10px 20px;
  border-radius: 99px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform 0.22s var(--spring), background 0.2s;
}
.ios-btn-text:active { transform: scale(0.9); }

.ios-btn-pill {
  background: rgba(118,118,128,0.22);
  border: 0.5px solid rgba(255,255,255,0.10);
  color: #fff; padding: 10px 18px;
  border-radius: 99px; font-size: 14px; font-weight: 600;
  cursor: pointer; flex: 1;
  transition: transform 0.22s var(--spring), background 0.2s;
}
.ios-btn-pill:active { transform: scale(0.92); }

.ios-btn-action {
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color: #fff; padding: 13px; border-radius: 14px;
  font-size: 15px; font-weight: 600;
  display: flex; justify-content: center; align-items: center; gap: 7px;
  cursor: pointer; transition: transform 0.22s var(--spring), background 0.2s;
}
.ios-btn-action:active { transform: scale(0.91); background: rgba(255,255,255,0.15); }
.ios-btn-action svg { width: 17px !important; height: 17px !important; }
.ios-btn-action.danger { color: var(--red); background: rgba(255,69,58,0.10); border-color: rgba(255,69,58,0.20); }
.ios-btn-action.danger:active { background: rgba(255,69,58,0.20); }
.ios-btn-action.success { color: var(--green); background: rgba(48,209,88,0.10); border-color: rgba(48,209,88,0.20); }

/* ══════════════════════════════════════════════════════════
   LOCATION CARDS
   ══════════════════════════════════════════════════════════ */
.ios-list-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }

.loc-card {
  background: var(--card);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-radius: 28px; padding: 22px;
  border: 0.5px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
/* Per-card aurora blobs */
.loc-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(168,85,247,0.22) 0%, transparent 70%);
  filter: blur(28px); z-index: 0; pointer-events: none;
}
.loc-card:nth-child(even)::before {
  background: radial-gradient(circle, rgba(10,132,255,0.22) 0%, transparent 70%);
}
.loc-card > * { position: relative; z-index: 1; }
/* Top specular */
.loc-card::after {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  pointer-events: none; z-index: 2;
}
.loc-card:active { transform: scale(0.97); }

.loc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.loc-title { font-size: 19px; font-weight: 800; margin: 0 0 5px 0; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.loc-title svg { stroke: var(--text-dim) !important; width: 20px !important; height: 20px !important; opacity: 0.75; }
.loc-slug { font-size: 14px; color: var(--blue); margin: 0; font-weight: 600; }

.badge {
  padding: 5px 12px; border-radius: 10px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  border: 0.5px solid transparent; letter-spacing: 0.5px; flex-shrink: 0;
}
.badge.active   { color: var(--green);  background: rgba(48,209,88,0.15);  border-color: rgba(48,209,88,0.28);  }
.badge.suspended{ color: var(--red);    background: rgba(255,69,58,0.15);  border-color: rgba(255,69,58,0.28);  }
.badge.warning  { color: var(--orange); background: rgba(255,159,10,0.15); border-color: rgba(255,159,10,0.28); }

.loc-data {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  background: rgba(0,0,0,0.28); padding: 14px; border-radius: 16px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.data-item { display: flex; flex-direction: column; }
.data-item.full-width { grid-column: span 2; }
.data-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; margin-bottom: 3px; letter-spacing: 0.5px; }
.data-val { font-size: 15px; font-weight: 600; color: #fff; }

.loc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.loc-actions.duo { grid-template-columns: 2fr 1fr; }

/* ══════════════════════════════════════════════════════════
   TERMINAL / CONSOLE
   ══════════════════════════════════════════════════════════ */
.terminal {
  padding: 0; background: #000; overflow: hidden;
  border: 0.5px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.terminal-header {
  background: rgba(28,28,30,0.9); padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 0.5px solid var(--stroke);
  backdrop-filter: blur(20px);
}
.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.dot.r { background: var(--red);    color: var(--red); }
.dot.y { background: var(--orange); color: var(--orange); }
.dot.g { background: var(--green);  color: var(--green); }
.term-title { font-family: "SF Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); font-weight: 600; }
.terminal-body {
  padding: 18px; height: 380px; overflow-y: auto;
  font-family: "SF Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.7; color: #a1a1aa;
}
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════
   MODAL / BOTTOM SHEET  —  iOS 26 spring
   ══════════════════════════════════════════════════════════ */
.ios-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: var(--blur-ov);
  -webkit-backdrop-filter: var(--blur-ov);
  z-index: 200; display: none; justify-content: center; align-items: flex-end;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.ios-modal-overlay.show { display: flex !important; opacity: 1; }

.ios-sheet {
  background: rgba(20, 20, 24, 0.94);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 0.5px solid rgba(255,255,255,0.16);
  border-radius: 36px 36px 0 0;
  width: 100%; max-width: 620px; max-height: 92vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.52s var(--spring);
  box-shadow: 0 -24px 60px rgba(0,0,0,0.55), 0 -4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.18);
}
.ios-modal-overlay.show .ios-sheet { transform: translateY(0); }

.sheet-handle {
  width: 40px; height: 5px;
  background: rgba(255,255,255,0.25); border-radius: 3px;
  margin: 14px auto 4px;
}
.sheet-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 22px 18px; border-bottom: 0.5px solid var(--stroke);
}
.sheet-header h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.sheet-close { background: transparent; border: none; color: var(--blue); font-size: 17px; font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.sheet-close:active { background: rgba(10,132,255,0.15); }
.sheet-content { padding: 20px; overflow-y: auto; padding-bottom: 48px; }
.sheet-content::-webkit-scrollbar { width: 4px; }
.sheet-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════
   ALERT (Apple-style confirm dialog)
   ══════════════════════════════════════════════════════════ */
.ios-alert {
  background: rgba(24, 24, 28, 0.92);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: 20px; width: 280px; text-align: center;
  display: flex; flex-direction: column;
  transform: scale(0.82); opacity: 0;
  transition: transform 0.38s var(--spring), opacity 0.22s;
  margin: auto;
  box-shadow: var(--shadow-lg);
}
.ios-modal-overlay.show .ios-alert { transform: scale(1); opacity: 1; }

.alert-content { padding: 22px 20px; }
.alert-icon { font-size: 38px; margin-bottom: 12px; }
.alert-title { margin: 0 0 6px 0; font-size: 17px; font-weight: 700; }
.alert-msg { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.5; }
.alert-input {
  width: 100%; padding: 10px 12px; margin-top: 14px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: 10px; color: #fff; text-align: center; outline: none;
  font-family: inherit; font-size: 15px;
}
.alert-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,132,255,0.2); }
.alert-actions { display: flex; flex-direction: column; }
.alert-btn {
  background: transparent; border: none;
  border-top: 0.5px solid var(--stroke2);
  padding: 14px; color: var(--blue); font-size: 17px;
  cursor: pointer; transition: background 0.15s; font-family: inherit;
}
.alert-btn:active { background: rgba(255,255,255,0.08); }
.alert-btn.danger { color: var(--red); font-weight: 700; }
.alert-btn.cancel { font-weight: 400; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════
   TOAST  —  Dynamic Island style
   ══════════════════════════════════════════════════════════ */
.ios-toast {
  position: fixed; top: -80px; left: 50%;
  transform: translateX(-50%) scaleX(0.5) scaleY(0.6);
  background: rgba(24, 24, 28, 0.96);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 0.5px solid rgba(255,255,255,0.18);
  padding: 12px 22px; border-radius: 99px;
  display: flex; align-items: center; gap: 10px;
  z-index: 999999; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-md);
  transition: top 0.42s var(--spring), transform 0.42s var(--spring), opacity 0.2s;
  white-space: nowrap;
}
.ios-toast.show {
  top: 22px;
  transform: translateX(-50%) scale(1);
}

/* ══════════════════════════════════════════════════════════
   LOGIN BOX  (embedded in PHP head section)
   ══════════════════════════════════════════════════════════ */
.ios-login-box {
  background: rgba(18, 18, 22, 0.80);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 0.5px solid rgba(255,255,255,0.16);
  border-radius: 36px; padding: 44px 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: lgBoxIn 0.56s var(--spring) both;
  position: relative;
}
.ios-login-box::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
  border-radius: 36px; pointer-events: none;
}
@keyframes lgBoxIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Helpers ── */
.mt-3 { margin-top: 16px; }
.company-fields { display: none; }
.company-fields.active { display: block; animation: hubTabIn 0.3s var(--spring) both; }
