/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f1117;
  --bg2:       #161b27;
  --bg3:       #1e2535;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --text:      #e8eaf0;
  --text2:     #8b90a0;
  --text3:     #555c70;
  --cyan:      #00d4ff;
  --cyan2:     #0099bb;
  --green:     #1D9E75;
  --green2:    #0F6E56;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --purple:    #7c3aed;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 1px 3px rgba(0,0,0,0.4);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding: 32px 0 64px; }

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: -0.01em;
}
.logo svg { stroke: var(--cyan); }
.header-nav { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--cyan); background: rgba(0,212,255,0.1); }

/* ─── Views ────────────────────────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

.view-header { margin-bottom: 24px; }
.view-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.view-header p { color: var(--text2); font-size: 14px; }

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
}
.card-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ─── Address List ─────────────────────────────────────────────────────────── */
.addr-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stop-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid var(--border2);
  background: var(--bg3);
  color: var(--text2);
}
.stop-badge.start { background: var(--green2); border-color: var(--green); color: #fff; }
.stop-badge.end   { background: #7f1d1d; border-color: var(--red); color: #fca5a5; }

.addr-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  transition: border-color 0.15s;
  font-family: inherit;
}
.addr-input:focus {
  outline: none;
  border-color: var(--cyan2);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.addr-input::placeholder { color: var(--text3); }

.remove-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text3);
  transition: all 0.15s;
}
.remove-btn:hover { background: rgba(239,68,68,0.1); color: var(--red); }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,212,255,0.28);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}
.btn-outline:hover { background: var(--bg3); border-color: var(--text3); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-ghost.btn-danger:hover { background: rgba(239,68,68,0.1); color: var(--red); }

.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--radius-lg); }

/* ─── Misc UI ──────────────────────────────────────────────────────────────── */
.error-banner {
  display: none;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  color: #fca5a5;
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}
.error-banner.visible { display: block; }

.hint-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.hint-box svg { flex-shrink: 0; stroke: var(--cyan2); margin-top: 1px; }

.primary-actions { display: flex; gap: 12px; }

/* ─── Summary Grid ─────────────────────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.sum-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.sum-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 6px;
}
.sum-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.sum-unit { font-size: 13px; font-weight: 400; color: var(--text2); margin-left: 3px; }

/* ─── Two-column layout ────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ─── Route List ───────────────────────────────────────────────────────────── */
.route-list { padding: 8px 0; }
.route-stop { display: flex; gap: 14px; padding: 0 16px; }
.stop-left { display: flex; flex-direction: column; align-items: center; width: 32px; flex-shrink: 0; }
.stop-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid var(--border2);
  background: var(--bg3);
  color: var(--text2);
}
.stop-dot.s { background: var(--green2); border-color: var(--green); color: #fff; }
.stop-dot.e { background: #7f1d1d; border-color: var(--red); color: #fca5a5; }
.stop-dot.m { border-color: var(--cyan2); color: var(--cyan); }

.connector {
  flex: 1;
  width: 1.5px;
  background: var(--border2);
  margin: 3px 0;
  min-height: 44px;
  position: relative;
}
.leg-chip {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.leg-chip svg { stroke: var(--text3); flex-shrink: 0; }

.stop-content { flex: 1; padding: 4px 0 20px; }
.stop-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}
.stop-tag {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg3);
  color: var(--text3);
  border: 1px solid var(--border);
}
.stop-tag.s { background: rgba(29,158,117,0.12); color: var(--green); border-color: rgba(29,158,117,0.3); }
.stop-tag.e { background: rgba(239,68,68,0.1); color: #fca5a5; border-color: rgba(239,68,68,0.2); }

.card-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 16px;
  border-top: 1px solid var(--border);
  color: var(--text3);
}
.card-time-row svg { flex-shrink: 0; stroke: var(--text3); }
.card-time-row .form-label { color: var(--text2); font-size: 12px; }
.card-time-row .form-input { padding: 6px 10px; font-size: 13px; }

/* ─── Visit Schedule Table ──────────────────────────────────────────────────── */
.sched-wrap { overflow-x: auto; padding-bottom: 4px; }
.sched-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.sched-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  border-bottom: 1px solid var(--border2);
  white-space: nowrap;
}
.sched-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: top;
}
.sched-table tr:last-child td { border-bottom: none; }
.sched-table tr:hover td { background: var(--bg2); }
.sched-table td:nth-child(1),
.sched-table td:nth-child(2) { color: var(--text1); font-weight: 500; word-break: break-word; max-width: 220px; }
.sched-drive { white-space: nowrap; color: var(--text2) !important; }
.sched-start { color: var(--cyan) !important; font-weight: 600; white-space: nowrap; }
.sched-end   { color: #f59e0b !important; font-weight: 600; white-space: nowrap; }
.sched-na    { color: var(--text3) !important; font-weight: 400; }

.stop-tags-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.visit-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #f59e0b;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.visit-chip svg { stroke: #f59e0b; flex-shrink: 0; }

/* ─── Address row: input column + availability time inputs ──────────────────── */
.addr-input-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.avail-inputs {
  display: flex; align-items: center; gap: 6px;
  margin-top: 5px; padding: 4px 0;
}
.avail-inputs svg { stroke: var(--cyan2); flex-shrink: 0; }
.avail-inputs-label {
  font-size: 10.5px; font-weight: 600; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.avail-inputs-sep { font-size: 11px; color: var(--text3); }
.avail-time-input {
  width: 100px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text2); font-size: 11.5px;
  padding: 4px 7px; outline: none; font-family: inherit;
  transition: border-color 0.15s;
}
.avail-time-input:focus { border-color: var(--cyan2); box-shadow: 0 0 0 2px rgba(0,212,255,0.08); color: var(--text); }
.avail-time-input::-webkit-calendar-picker-indicator { filter: invert(0.4); cursor: pointer; opacity: 0.6; }

/* ─── Duration input inside address row ─────────────────────────────────────── */
.duration-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.duration-input {
  width: 52px; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--text); font-size: 12px;
  padding: 6px 4px; text-align: center; outline: none; font-family: inherit;
  -moz-appearance: textfield;
}
.duration-input::-webkit-inner-spin-button,
.duration-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.duration-input:focus { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(245,158,11,0.15); }
.duration-label { font-size: 11px; color: var(--text3); font-weight: 500; white-space: nowrap; }

/* ─── Schedule table: host availability column ──────────────────────────────── */
.sched-avail     { white-space: nowrap; font-size: 12px; }
.sched-avail-ok  { color: var(--green) !important; }
.sched-avail-warn{ color: var(--red) !important; font-weight: 600; }
.sched-avail-na  { color: var(--text3) !important; font-style: italic; }
.sched-conflict-row td  { background: rgba(239,68,68,0.05)  !important; }
.sched-overtime-row td  { background: rgba(245,158,11,0.06)  !important; }

/* ─── Multi-day schedule: day chip, date, notes ──────────────────────────────── */
.sched-day { white-space: nowrap; font-size: 11.5px; }
.day-chip {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.sched-date-text { display: block; font-size: 11px; color: var(--text3); margin-top: 2px; }
.sched-note { color: var(--text3); font-size: 12px; font-style: italic; max-width: 180px; word-break: break-word; }

/* ─── Note input inside address row ─────────────────────────────────────────── */
.note-wrap { margin-top: 5px; padding: 2px 0; }
.note-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  font-size: 11.5px;
  padding: 4px 8px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.note-input:focus { border-color: rgba(245,158,11,0.5); box-shadow: 0 0 0 2px rgba(245,158,11,0.08); color: var(--text); }
.note-input::placeholder { color: var(--text3); font-style: italic; }

/* ─── Map ──────────────────────────────────────────────────────────────────── */
.map-card { height: 100%; }
.map-wrap { position: relative; background: var(--bg3); }
.map-frame { width: 100%; height: 340px; border: none; display: block; }
.map-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.map-overlay svg { stroke: var(--text3); opacity: 0.5; }
.map-overlay p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.map-overlay code {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  color: var(--cyan);
}
.map-overlay.hidden { display: none; }

.link-small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  opacity: 0.85;
}
.link-small:hover { opacity: 1; }

/* ─── API Status Card ──────────────────────────────────────────────────────── */
.api-status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.api-status-card .card-header { display: none; }
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text3);
  margin-top: 4px;
  flex-shrink: 0;
}
.status-dot.ok   { background: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,0.2); }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.status-dot.err  { background: var(--red);   box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
.status-title { font-size: 13px; font-weight: 500; color: var(--text); }
.status-sub   { font-size: 12px; color: var(--text2); margin-top: 2px; line-height: 1.5; }
.status-sub code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 11px;
  color: var(--cyan);
}

/* ─── Route Actions ────────────────────────────────────────────────────────── */
.route-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
/* ─── Shared Form Elements ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--sm { width: 90px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: 0.04em; text-transform: uppercase; }
.form-label-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text3); }
.req { color: var(--cyan); }
.form-input {
  background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text); font-size: 14px; padding: 10px 13px; outline: none;
  transition: border-color 0.15s; font-family: inherit;
}
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.09); }
.form-input::placeholder { color: var(--text3); }
.reg-feedback {
  font-size: 13px; border-radius: var(--radius); padding: 0;
  max-height: 0; overflow: hidden; transition: max-height 0.25s, padding 0.25s;
}
.reg-feedback--ok  { background: rgba(29,158,117,0.12); border: 1px solid var(--green);  color: #4ade80; padding: 10px 14px; max-height: 120px; }
.reg-feedback--err { background: rgba(239,68,68,0.10);  border: 1px solid var(--red);    color: #f87171;  padding: 10px 14px; max-height: 120px; }
.data-policy {
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(0,212,255,0.05); border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 12px; color: var(--text2); line-height: 1.6;
}
.data-policy svg { flex-shrink: 0; margin-top: 2px; stroke: var(--cyan); }
.data-policy strong { color: var(--text); }

/* ─── Register Page ──────────────────────────────────────────────────────────── */
.reg-hero {
  text-align: center;
  padding: 8px 0 36px;
}
.reg-hero-icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.reg-hero-title {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 12px;
}
.reg-hero-sub {
  font-size: 15px; color: var(--text2);
  max-width: 500px; margin: 0 auto; line-height: 1.75;
}
.reg-form-wrap { max-width: 620px; margin: 0 auto 32px; }
.reg-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--purple) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.reg-card-body {
  padding: 28px 32px 32px;
  display: flex; flex-direction: column; gap: 0;
}
.reg-section { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 20px; }
.reg-section-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--cyan); margin-bottom: 2px;
}
.reg-section-label svg { stroke: var(--cyan); flex-shrink: 0; }
.reg-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.reg-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-divider { height: 1px; background: var(--border); }
.btn-block {
  width: 100%; justify-content: center;
  padding: 13px 24px; font-size: 15px; font-weight: 600;
  margin-top: 20px; border-radius: var(--radius-lg);
}

/* ─── Process Steps ──────────────────────────────────────────────────────────── */
.reg-steps {
  max-width: 680px; margin: 0 auto 8px;
  display: flex; align-items: flex-start; justify-content: center;
  flex-wrap: wrap;
}
.reg-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
  padding: 20px 12px; flex: 1; min-width: 130px;
}
.reg-step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,212,255,0.08);
  border: 1.5px solid rgba(0,212,255,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: var(--cyan); flex-shrink: 0;
}
.reg-step-body { display: flex; flex-direction: column; gap: 5px; }
.reg-step-body strong { font-size: 13px; font-weight: 600; color: var(--text); }
.reg-step-body span  { font-size: 12px; color: var(--text2); line-height: 1.5; }
.reg-step-arrow {
  display: flex; align-items: center; padding-top: 21px;
  color: var(--text3); flex-shrink: 0;
}

/* ─── Manage Page ───────────────────────────────────────────────────────────── */
.manage-layout { display: flex; gap: 20px; align-items: start; flex-wrap: wrap; }
.manage-info-card { flex: 1; min-width: 280px; padding: 24px; }

@media (max-width: 720px) {
  .reg-row--2 { grid-template-columns: 1fr; }
  .reg-card-body { padding: 20px 20px 24px; }
  .reg-hero-title { font-size: 23px; }
  .reg-step-arrow { display: none; }
}

/* ─── Manage Page ───────────────────────────────────────────────────────────── */
.manage-layout { display: flex; gap: 20px; align-items: start; flex-wrap: wrap; }
.manage-info-card { flex: 1; min-width: 280px; padding: 24px; }

@media (max-width: 720px) {
  .reg-layout { grid-template-columns: 1fr; }
  .reg-row { grid-template-columns: 1fr 80px; }
}

/* ─── About Page ────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.about-card--wide { grid-column: 1 / -1; }
.about-card { padding: 28px 28px 24px; }
.about-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--cyan);
}
.about-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.about-card-body {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 12px;
}
.about-card-body:last-child { margin-bottom: 0; }
.about-card-body strong { color: var(--text); font-weight: 600; }
.about-card-body em { color: var(--cyan); font-style: normal; font-weight: 500; }
.about-card-body a { color: var(--cyan); text-decoration: none; }
.about-card-body a:hover { text-decoration: underline; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--text2); line-height: 1.65;
}
.about-list-dot {
  flex-shrink: 0; margin-top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
}
.about-list li strong { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card--wide { grid-column: 1; }
  .about-card { padding: 20px; }
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer p { font-size: 12px; color: var(--text3); text-align: center; }
.site-footer a { color: var(--cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ─── Shared accent bar ──────────────────────────────────────────────────────── */
.card-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 50%, #f59e0b 100%);
}

/* ─── rp-* Design System (register-style, shared across pages) ───────────────── */
.rp-main { padding: 40px 0 72px; }

/* Hero */
.rp-hero { text-align: center; padding: 0 16px 44px; }
.rp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.35);
  border-radius: 24px; padding: 5px 16px 5px 10px;
  font-size: 12px; font-weight: 600; color: #a78bfa;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px;
}
.rp-hero-badge svg { flex-shrink: 0; }
.rp-hero-title {
  font-size: 36px; font-weight: 800; letter-spacing: -0.04em;
  color: #f1f5f9; line-height: 1.15; margin-bottom: 14px;
}
.rp-hero-title span {
  background: linear-gradient(135deg, #00d4ff 0%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rp-hero-sub { font-size: 16px; color: #8b90a0; max-width: 480px; margin: 0 auto; line-height: 1.75; }

/* Form wrap & card */
.rp-wrap { max-width: 660px; margin: 0 auto; }
.rp-card {
  background: #161b27; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.rp-card-top { height: 5px; background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 50%, #f59e0b 100%); }
.rp-card-body { padding: 36px 40px 40px; }

/* Sections */
.rp-section { margin-bottom: 28px; }
.rp-section:last-of-type { margin-bottom: 0; }
.rp-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rp-section-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rp-section-meta { display: flex; flex-direction: column; gap: 2px; }
.rp-section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #e8eaf0; }
.rp-section-sub { font-size: 12px; color: #555c70; }

/* Field grids */
.rp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rp-grid-name { display: grid; grid-template-columns: 1fr 115px; gap: 16px; }

/* Fields & labels */
.rp-field { display: flex; flex-direction: column; gap: 7px; }
.rp-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #8b90a0;
}
.rp-label-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.rp-req { color: #00d4ff; margin-left: 1px; }
.rp-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #3d4558; }

/* Icon inputs */
.rp-input-wrap { position: relative; }
.rp-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; pointer-events: none;
}
.rp-input {
  width: 100%; background: #1e2535;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: #e8eaf0;
  font-size: 14px; font-family: inherit;
  padding: 11px 14px 11px 42px; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.rp-input.no-icon { padding-left: 14px; }
.rp-input::placeholder { color: #3d4558; }
.rp-input:focus {
  border-color: var(--focus-color, #00d4ff);
  background: #222a3a;
  box-shadow: 0 0 0 3px var(--focus-glow, rgba(0,212,255,0.1));
}

/* Divider */
.rp-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent 100%);
  margin: 28px 0;
}

/* Policy */
.rp-policy {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.14);
  border-radius: 10px; padding: 12px 16px;
  font-size: 12.5px; color: #6b7280; line-height: 1.65; margin: 24px 0 0;
}
.rp-policy svg { flex-shrink: 0; margin-top: 2px; }
.rp-policy strong { color: #94a3b8; }

/* Feedback */
.rp-feedback {
  font-size: 13.5px; border-radius: 10px;
  max-height: 0; overflow: hidden; padding: 0;
  transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease; margin-top: 0;
}
.rp-feedback--ok {
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.35);
  color: #6ee7b7; padding: 12px 16px; max-height: 120px; margin-top: 16px;
}
.rp-feedback--err {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; padding: 12px 16px; max-height: 120px; margin-top: 16px;
}

/* Submit button */
.rp-submit {
  width: 100%; margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%); color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
}
.rp-submit:hover {
  opacity: 0.92; transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,212,255,0.3), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.rp-submit:active  { transform: translateY(0); }
.rp-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Process steps */
.rp-steps-wrap { max-width: 720px; margin: 40px auto 0; }
.rp-steps-title {
  text-align: center; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: #555c70; margin-bottom: 28px;
}
.rp-steps { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr; align-items: start; }
.rp-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.rp-step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
  transition: transform 0.2s;
}
.rp-step-icon:hover { transform: scale(1.07); }
.rp-step strong { font-size: 13px; font-weight: 700; color: #e8eaf0; display: block; }
.rp-step span   { font-size: 11.5px; color: #555c70; line-height: 1.5; display: block; }
.rp-step-connector { display: flex; align-items: center; justify-content: center; padding-top: 14px; color: #2a3045; }

/* Date picker icon */
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; }

/* ─── About icon color variants ──────────────────────────────────────────────── */
.about-card-icon--amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); }
.about-card-icon--amber svg { stroke: #fbbf24; }
.about-card-icon--green { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); }
.about-card-icon--green svg { stroke: #34d399; }
.about-card-icon--purple { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.25); }
.about-card-icon--purple svg { stroke: #a78bfa; }

@media (max-width: 680px) {
  .rp-card-body { padding: 24px 20px 28px; }
  .rp-hero-title { font-size: 26px; }
  .rp-grid-2, .rp-grid-name { grid-template-columns: 1fr; }
  .rp-steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rp-step-connector { display: none; }
}

/* --- Places Side Panel --- */
.places-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.places-overlay.open { display: block; }
.places-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 94vw;
  background: var(--bg2);
  border-left: 1px solid var(--border2);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.places-panel.open { transform: translateX(0); }
.places-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.places-panel-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.places-panel-sub { font-size: 12px; color: var(--text3); margin-top: 3px; line-height: 1.4; word-break: break-word; }
.places-panel-close {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); flex-shrink: 0; transition: all 0.15s;
}
.places-panel-close:hover { background: rgba(239,68,68,0.1); color: var(--red); border-color: rgba(239,68,68,0.3); }
.places-list { flex: 1; overflow-y: auto; padding: 12px 0; }
.places-loading { padding: 32px 20px; text-align: center; color: var(--text3); font-size: 13px; }
.places-loading.err { color: var(--red); }
.places-loading svg { display: block; margin: 0 auto 10px; stroke: var(--text3); opacity: 0.5; }
.place-item {
  display: flex; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid var(--border); transition: background 0.12s;
}
.place-item:last-child { border-bottom: none; }
.place-item:hover { background: var(--bg3); }
.place-number {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.25);
  color: var(--cyan); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.place-body { flex: 1; min-width: 0; }
.place-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; word-break: break-word; }
.place-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.place-rating { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--amber); font-weight: 600; }
.place-rating svg { stroke: var(--amber); }
.place-type { font-size: 11px; color: var(--text3); background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; text-transform: capitalize; }
.place-addr { font-size: 11.5px; color: var(--text3); margin-top: 3px; line-height: 1.4; }
.place-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 11.5px; color: var(--cyan); text-decoration: none; opacity: 0.85; }
.place-link:hover { opacity: 1; }
.places-gmaps-link { padding: 14px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.places-gmaps-link a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; background: linear-gradient(135deg,#00d4ff 0%,#7c3aed 100%);
  color: #fff; font-size: 13px; font-weight: 600; border-radius: var(--radius);
  text-decoration: none; transition: opacity 0.15s;
}
.places-gmaps-link a:hover { opacity: 0.9; }
.places-expand-btn {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
  padding: 2px 7px; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  border-radius: 4px; color: var(--cyan); font-size: 10.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
  vertical-align: middle; font-family: inherit;
}
.places-expand-btn:hover { background: rgba(0,212,255,0.15); border-color: rgba(0,212,255,0.4); }
