@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1a1f24;
  --muted: #5b6570;
  --accent: #0f766e;
  --accent-2: #c8a06a;
  --stroke: #e6e1d8;
  --shadow: 0 16px 40px rgba(26, 31, 36, 0.08);
  --radius: 18px;
}

/* 1.1 Global behaviour */
html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(15, 118, 110, 0.2);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #faf7f1 0%, #f1f6f5 60%, #fdfbf7 100%);
}

.page {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.08), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(200, 160, 106, 0.12), transparent 40%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* 1.2 Typography */
h2 {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 24px;
}

/* Dense topbar layout (shop page) */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
}
.topbar-right .nav-toggle {
  display: block;
}
.topbar-right .nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  z-index: 100;
}
.topbar-right .nav.nav-open {
  display: flex;
}
.topbar-right .nav .tag {
  display: block;
  text-align: left;
  border: none;
  background: none;
  border-radius: 8px;
  padding: 10px 14px;
}
.topbar-right .nav .tag:hover {
  background: rgba(15, 118, 110, 0.06);
}
.topbar-right select.input {
  max-width: 200px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-home {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-home:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.5);
  outline-offset: 4px;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  line-height: 1.1;
}

.brand-sub {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Phase 2: brand-mark as flex container for SVG */
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, #0f766e, #2f9e95);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Nav */
.nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* 1.6 Tag interaction */
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tag:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 36px;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
}

/* 1.4 Card interaction */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card.card-disabled {
  opacity: 0.75;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(26, 31, 36, 0.12);
  border-color: rgba(15, 118, 110, 0.25);
}

/* 3.1 Landing card icon */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

[data-reservation-layout].calendar-mode {
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 1.2 Section title upgrade */
.section-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* 1.5 Input interaction */
.input {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #a0a8b0;
  opacity: 1;
}

.input:hover:not(:focus) {
  border-color: rgba(15, 118, 110, 0.3);
}

.input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* 1.3 Button interaction */
.button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.button:hover:not(:disabled) {
  background: #0c6059;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(15, 118, 110, 0.35);
}

.button.secondary:hover:not(:disabled) {
  background: rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button.danger {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.button.danger:hover:not(:disabled) {
  background: #a93226;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.button:focus-visible,
.tag:focus-visible,
.chip:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.5);
  outline-offset: 2px;
}

.active {
  display: block !important;
}

.hidden {
  display: none !important;
}

.tabs .tag.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--accent);
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  font-size: 12px;
  color: var(--accent);
}

.list {
  display: grid;
  gap: 12px;
}

/* 1.12 List-item hover */
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.list-item:hover {
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.06);
}

.list-item:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.5);
  outline-offset: 2px;
}

.list-item.selected {
  border-color: rgba(15, 118, 110, 0.65);
  background: rgba(15, 118, 110, 0.08);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.18), 0 10px 22px rgba(15, 118, 110, 0.12);
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(26, 31, 36, 0.08);
  color: var(--ink);
}

.badge.confirmed { background: rgba(15, 118, 110, 0.15); color: #0f766e; }
.badge.pending { background: rgba(200, 160, 106, 0.2); color: #a06d2a; }
.badge.canceled { background: rgba(220, 53, 69, 0.12); color: #c0392b; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: min(420px, 92vw);
  background: #fff;
  border-left: 1px solid var(--stroke);
  box-shadow: -8px 0 24px rgba(26, 31, 36, 0.12);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 12;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 11;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.drawer-body {
  padding: 20px;
  min-height: 0;
}

.drawer-body > :last-child {
  margin-bottom: 0;
}

.drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--stroke);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.date-range-inline {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.date-range-inline .input {
  min-width: 170px;
}

/* 1.6 Chip interaction */
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover:not(.active) {
  background: rgba(15, 118, 110, 0.04);
  border-color: rgba(15, 118, 110, 0.25);
}

.chip.active {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* 1.12 Calendar cell hover */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  font-size: 13px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.calendar .cell {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 12px;
  height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.calendar .cell:not(.empty):hover {
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

.calendar .cell .day {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.calendar .cell-events {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.calendar .cell.empty {
  background: rgba(255, 255, 255, 0.6);
}

.calendar .event {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.4;
  cursor: pointer;
}

.calendar .event.pending { color: #a06d2a; }
.calendar .event.confirmed { color: #0f766e; }
.calendar .event.canceled { color: #c0392b; text-decoration: line-through; }

.site-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.step {
  border-left: 3px solid rgba(15, 118, 110, 0.2);
  padding-left: 12px;
  margin-bottom: 12px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.summary {
  background: rgba(15, 118, 110, 0.06);
  border: 1px dashed rgba(15, 118, 110, 0.3);
  border-radius: 12px;
  padding: 12px;
}

.error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 6px;
}

.helper {
  color: var(--muted);
  font-size: 12px;
}

.consent-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* 1.8 Modal / Drawer animation */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 36, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal.active {
  display: flex !important;
  align-items: flex-start;
  animation: modalFadeIn 0.2s ease;
}

.modal.active .card {
  animation: modalSlideUp 0.25s ease;
}

.modal .card {
  max-width: 420px;
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  margin: 18px auto 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.modal .card.modal-wide {
  max-width: 920px;
  max-height: 88dvh;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.modal-close-btn:hover {
  background: #f2f5f7;
}

body.ui-modal-open {
  overflow: hidden;
}

body.drawer-open {
  overflow: hidden;
}

/* 1.12 Dashboard KPI hover */
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-kpi {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.dashboard-kpi:hover {
  box-shadow: 0 4px 12px rgba(26, 31, 36, 0.08);
  border-color: rgba(15, 118, 110, 0.2);
}

.dashboard-kpi-label {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-kpi-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-kpi-state {
  margin-top: 4px;
  font-size: 12px;
}

.dashboard-kpi-state.ok {
  color: #027a48;
}

.dashboard-kpi-state.warn {
  color: #b54708;
}

.dashboard-kpi-state.critical {
  color: #b42318;
}

.dashboard-trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dashboard-trend-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.dashboard-alert-list {
  max-height: 220px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-trend-grid {
    grid-template-columns: 1fr;
  }
}

/* 1.7 Toast animation */
.ui-toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
  display: grid;
  gap: 8px;
}

.ui-toast {
  min-width: 240px;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: toastSlideIn 0.3s ease;
}

.ui-toast.success {
  border-color: rgba(15, 118, 110, 0.35);
}

.ui-toast.error {
  border-color: rgba(192, 57, 43, 0.35);
}

.ui-toast.hide {
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.ui-confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 31, 36, 0.45);
  z-index: 990;
}

.ui-confirm-modal.active {
  display: flex;
}

.ui-confirm-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.ui-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* 1.5 Invalid input */
.input.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.stagger > * {
  animation: fadeUp 0.6s ease both;
}

.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1.7 Toast slide-in */
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 1.8 Modal animations */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1.9 Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.skeleton-line:last-child {
  width: 60%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 1.10 Spacing utilities */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-520 { max-width: 520px; }
.max-w-560 { max-width: 560px; }
.max-w-720 { max-width: 720px; }
.flex-row { display: flex; flex-direction: row; }

/* 1.11 Form field label & group */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group .input {
  margin-top: 0;
}

/* 3.2 Login page: divider & links */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
}

.login-links a {
  color: var(--accent);
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-links .login-links-sep {
  color: var(--stroke);
}

/* 3.2 OAuth button styles (moved from login.html inline) */
.oauth-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.oauth-logo {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.oauth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 3.4 Booking step number */
.booking-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Phase 5: shop.html inline styles */
.shop-card {
  padding: 18px 20px;
}

.shop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-card-header .section-title {
  margin-bottom: 0;
}

.shop-card-toggle {
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.shop-card-toggle:hover {
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--accent);
}

.shop-card.is-collapsed .shop-card-body {
  display: none;
}

/* Phase 5: admin.html inline styles */
.admin-card {
  padding: 18px 20px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.admin-card-header .section-title {
  margin-bottom: 0;
}

.admin-card-toggle {
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.admin-card-toggle:hover {
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--accent);
}

.admin-card.is-collapsed .admin-card-body {
  display: none;
}

.admin-pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pagination .button.secondary {
  padding: 8px 12px;
}

.admin-pagination .muted {
  min-width: 120px;
  text-align: center;
}

.admin-filters-advanced {
  display: none;
}

.admin-filters-advanced.active {
  display: flex;
}

/* Phase 5: shop-plans.html inline styles */
.hero h1.plan-title {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.pricing-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.pricing-card.active {
  border-color: rgba(15, 118, 110, 0.65);
  background: rgba(15, 118, 110, 0.06);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
}

.pricing-price {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.pricing-features {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.pricing-features .muted {
  line-height: 1.5;
}

.usage-progress {
  height: 10px;
  border-radius: 999px;
  background: #e8ecef;
  overflow: hidden;
}

.usage-progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0f766e;
  width: 0%;
  transition: width 0.2s ease;
}

.cycle-switch {
  display: inline-flex;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.cycle-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.cycle-switch button.active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.rule-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.price-pair {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.price-pair .muted {
  font-size: 13px;
}

[data-plan-checkout-modal] [data-plan-tappay-card-number],
[data-plan-checkout-modal] [data-plan-tappay-card-expiration],
[data-plan-checkout-modal] [data-plan-tappay-card-ccv] {
  min-height: 44px;
  height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.checkout-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.checkout-total {
  margin-top: 4px;
  font-weight: 700;
  color: var(--ink);
}

/* Phase 5: customer.html inline style */
.container > .card + .card {
  margin-top: 20px;
}

/* Phase 4: Hamburger menu */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.nav-toggle:hover {
  border-color: rgba(15, 118, 110, 0.3);
}

.nav-toggle svg {
  display: block;
}

/* Phase 5: Container margin overrides (from shop.html / admin.html) */
.container > .card,
.container > .grid-2 {
  margin-top: 20px !important;
}

.container > .hero {
  margin-bottom: 20px;
}

.container > .grid-2 > .card {
  height: 100%;
}

/* Phase 5: admin.html row & promo styles */
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.admin-row-main {
  min-width: 0;
}

.admin-row-title {
  font-weight: 700;
  color: var(--text);
}

.admin-row-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-drawer-grid {
  display: grid;
  gap: 12px;
}

.admin-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.promo-filter-grid .button {
  height: 44px;
}

.promo-form {
  margin-top: 12px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.promo-form-section + .promo-form-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke);
}

.promo-form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.promo-grid {
  display: grid;
  gap: 10px;
}

.promo-grid-3 {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.promo-grid-4 {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.promo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.promo-field-required {
  color: #b42318;
  margin-left: 4px;
}

.promo-field.is-disabled {
  opacity: 0.56;
}

.promo-field .helper {
  min-height: 18px;
}

/* Responsive — nav collapse for lighter pages (contact, shop-plans, etc.) */
@media (max-width: 900px) {
  .topbar .nav-toggle { display: block; }
  .topbar:has(.nav-toggle) { position: relative; }
  .topbar:has(.nav-toggle) .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    flex-direction: column;
    min-width: 180px;
    z-index: 20;
  }
  .topbar:has(.nav-toggle) .nav.nav-open { display: flex; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .topbar select.input {
    min-width: 0 !important;
  }
  .date-range-inline {
    width: 100%;
  }
  .date-range-inline .input {
    min-width: 0;
  }
  .calendar {
    gap: 6px;
  }
  .calendar-weekdays {
    gap: 6px;
  }
  .calendar .cell {
    height: 140px;
    padding: 8px;
  }
  .calendar .cell .day {
    font-size: 12px;
  }
  .calendar .event {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Phase 4: Mobile nav — handled by 900px breakpoint above */

  /* shop-plans responsive */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    min-height: 0;
  }
  .cycle-switch {
    width: 100%;
    justify-content: space-between;
  }
  .shop-card-header {
    align-items: flex-start;
  }
  .admin-card-header {
    align-items: flex-start;
  }
  .admin-pagination {
    justify-content: flex-start;
  }
  .admin-row {
    grid-template-columns: 1fr;
  }
  .admin-row-actions {
    justify-content: flex-start;
  }
  .promo-filter-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .promo-grid-3,
  .promo-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Blog & Article pages ── */
.article-container {
  max-width: 800px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.article-breadcrumbs a:hover {
  text-decoration: underline;
}

.article-breadcrumbs span:last-child {
  color: var(--ink);
  font-weight: 600;
}

.article-hero-img {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(15, 118, 110, 0.04);
}

.article-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-body {
  line-height: 1.8;
  font-size: 16px;
}

.article-body h1 {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.article-body time {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--stroke);
}

.article-body h3 {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body blockquote {
  background: rgba(15, 118, 110, 0.06);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
}

.article-body blockquote p {
  margin: 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
}

.article-body th {
  font-weight: 700;
  background: rgba(15, 118, 110, 0.04);
}

.article-body a {
  color: #0a635c;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: text-decoration-color 0.15s ease;
}

.article-body a:hover {
  text-decoration-color: rgba(15, 118, 110, 0.8);
  color: #084e48;
}

.article-body code {
  background: rgba(26, 31, 36, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.article-body pre {
  background: #1a1f24;
  color: #e6e1d8;
  padding: 16px 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 32px 0;
}

.article-body strong {
  font-weight: 700;
}

.article-cta {
  margin-top: 48px;
  padding: 40px 32px;
  background: #0f766e;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.article-cta-text {
  position: relative;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.5;
}

.article-cta .button {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 44px;
  letter-spacing: 0.5px;
  background: #fff;
  color: #0f766e;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.article-cta .button:hover {
  background: #f0fdf9;
  color: #0c6059;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.20);
  transform: translateY(-2px);
}

/* Blog index */
.blog-hero {
  margin-bottom: 28px;
}

.blog-hero h1 {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

/* Blog filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.blog-filter {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.blog-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.blog-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Blog show more */
.blog-show-more-wrap {
  text-align: center;
  margin: 32px 0 16px;
}

.blog-show-more {
  font-size: 15px;
  padding: 12px 32px;
}

/* Blog card hidden — needs higher specificity than .blog-card */
.blog-card.blog-card-hidden {
  display: none;
}

.blog-grid {
  display: grid;
  gap: 20px;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-category {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.blog-card-desc {
  margin: 0 0 10px;
  line-height: 1.6;
}

.blog-card-date {
  font-size: 13px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.blog-card-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Blog mobile */
@media (max-width: 600px) {
  .article-body h1 {
    font-size: 24px;
  }

  .article-body h2 {
    font-size: 19px;
  }

  .article-body {
    font-size: 15px;
  }

  .article-body blockquote {
    padding: 12px 14px;
    font-size: 14px;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-cta {
    padding: 28px 20px;
  }
  .article-cta .button {
    font-size: 16px;
    padding: 16px 32px;
  }

  .blog-hero h1 {
    font-size: 24px;
  }

  .blog-card-title {
    font-size: 18px;
  }
}

/* Purchase terms (shop-plans checkout) */
.purchase-terms-details { margin-top: 4px; }
.purchase-terms-body {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.purchase-terms-body ol { margin: 0; padding-left: 18px; }
.purchase-terms-body li + li { margin-top: 6px; }
.purchase-terms-body a { color: var(--accent); }

/* Phone breakpoint */
@media (max-width: 600px) {
  /* Layout — prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
  }

  .page {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding: 16px 14px 40px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Typography */
  h2 {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 14px;
  }

  /* ── Topbar ── */
  .topbar {
    padding: 10px 0 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .topbar .brand-text {
    display: none;
  }

  .topbar .brand-mark {
    width: 34px;
    height: 34px;
  }

  .topbar > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    width: 100%;
    order: 3;
  }

  .topbar select.input {
    min-width: 0 !important;
    flex: 1 1 0;
    max-width: 160px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .topbar .tag {
    font-size: 12px;
    padding: 6px 10px;
  }

  .topbar .button {
    font-size: 13px;
    padding: 8px 12px;
  }

  .topbar .nav-toggle {
    order: 2;
    margin-left: auto;
  }

  .topbar .brand {
    order: 1;
  }

  .topbar .nav {
    order: 4;
  }

  /* Logout button: pull up next to hamburger on pages that have one */
  .topbar:has(.nav-toggle) [data-logout] {
    position: absolute;
    top: 9px;
    right: 52px;
    font-size: 12px;
    padding: 8px 12px;
    min-height: 36px;
    border-radius: 8px;
    z-index: 5;
  }

  /* ── Cards ── */
  .card {
    padding: 16px;
    border-radius: 14px;
  }

  .shop-card {
    padding: 14px 16px;
  }

  .admin-card {
    padding: 14px 16px;
  }

  /* ── Calendar ── */
  .calendar {
    gap: 2px;
    font-size: 11px;
  }

  .calendar-weekdays {
    gap: 2px;
    font-size: 10px;
    margin-bottom: 6px;
  }

  .calendar .cell {
    height: auto;
    min-height: 52px;
    padding: 3px;
    border-radius: 6px;
    border-color: rgba(230, 225, 216, 0.6);
  }

  .calendar .cell .day {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    text-align: center;
  }

  .calendar .cell-events {
    max-height: 40px;
  }

  .calendar .event {
    font-size: 0;
    margin-bottom: 1px;
    line-height: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.5;
  }

  .calendar .event.confirmed {
    background: #0f766e;
    opacity: 0.7;
  }

  .calendar .event.pending {
    background: #a06d2a;
    opacity: 0.6;
  }

  .calendar .event.canceled {
    background: #c0392b;
    opacity: 0.4;
  }

  /* ── Dashboard KPIs ── */
  .dashboard-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .dashboard-kpi {
    padding: 8px 10px;
  }

  .dashboard-kpi-label {
    font-size: 11px;
  }

  .dashboard-kpi-value {
    font-size: 18px;
    margin-top: 4px;
  }

  /* ── Filter bar ── */
  .filter-bar {
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter-bar .chip,
  .filter-bar .tag {
    flex-shrink: 0;
  }

  .date-range-inline {
    flex-wrap: wrap;
  }

  /* ── Checkout ── */
  .checkout-meta-grid {
    grid-template-columns: 1fr;
  }

  /* ── List items — larger tap targets ── */
  .list-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .list-item .badge {
    font-size: 12px;
    padding: 4px 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  /* ── Drawer ── */
  .drawer {
    width: 100%;
  }

  .drawer-header {
    padding: 16px;
  }

  .drawer-body {
    padding: 16px;
  }

  /* ── Chips & Tabs — ensure 44px min tap target ── */
  .chip {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .tag {
    padding: 8px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* ── Toast ── */
  .ui-toast-root {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .ui-toast {
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
  }

  /* ── Pricing ── */
  .pricing-price {
    font-size: 22px;
  }

  .pricing-card {
    padding: 14px;
  }

  /* ── Admin ── */
  .admin-row-meta {
    white-space: normal;
  }

  /* ── Footer ── */
  .site-footer {
    margin-top: 28px;
    gap: 10px;
  }

  .site-footer-meta {
    font-size: 12px;
  }

  .site-footer-links {
    gap: 6px;
    font-size: 12px;
  }

  /* ── Modal ── */
  .modal {
    padding: 10px;
  }

  .modal .card {
    padding: 16px;
    margin: 10px auto 16px;
    border-radius: 14px;
    max-width: 100%;
  }

  .modal .card.modal-wide {
    max-width: 100%;
  }

  /* ── Date range ── */
  .date-range-inline {
    flex-wrap: wrap;
  }

  .date-range-inline .input {
    min-width: 0;
    flex: 1 1 100%;
  }

  /* ── Hero ── */
  .hero {
    grid-template-columns: 1fr !important;
  }

  /* ── Grids ── */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Tables (schedule view etc.) ── */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Stats row — full width on phones ── */
  .stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stats > div {
    min-width: 0;
  }

  /* ── Misc ── */
  .step {
    padding-left: 10px;
  }

  .summary {
    padding: 10px;
  }

  .section-title {
    font-size: 15px;
  }

  /* Prevent any fixed-width inline inputs from overflowing */
  .input, select.input, input.input {
    max-width: 100%;
  }

  /* Ensure all selects reset min-width on mobile */
  select.input {
    min-width: 0 !important;
  }

  /* Minimum touch target for all interactive elements */
  .button, .tag, .chip, select.input, .nav-toggle, .list-item, .modal-close-btn {
    min-height: 44px;
  }

  .modal-close-btn {
    width: 36px;
    height: 36px;
  }

  /* Nav toggle larger tap target */
  .nav-toggle {
    padding: 8px 10px;
  }
}

/* Password toggle button */
.pw-field-wrap {
  position: relative;
  display: block;
}
.pw-field-wrap > .input {
  width: 100%;
  padding-right: 44px;
}
.pw-toggle-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.pw-toggle-btn:hover,
.pw-toggle-btn:focus-visible {
  color: var(--text, #1c2526);
  background: rgba(15, 118, 110, 0.06);
  outline: none;
}
.pw-toggle-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.3);
}
@media (max-width: 600px) {
  .pw-toggle-btn {
    min-height: 40px;
    min-width: 40px;
  }
}

/* === Floating Help / Manual button === */
.help-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.help-fab:hover,
.help-fab:focus-visible {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
  outline: none;
  color: #ffffff;
  text-decoration: none;
}
.help-fab:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35), 0 6px 20px rgba(15, 118, 110, 0.35);
}
.help-fab:active {
  transform: translateY(0);
}
.help-fab .help-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.help-fab .help-fab-label {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .help-fab {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px 10px 12px;
    font-size: 13px;
  }
  .help-fab .help-fab-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}
@media print {
  .help-fab {
    display: none !important;
  }
}
