/* ============================================
   HOMIE CHECKIN — Design System
   Brand: StayMastery
   Font: Nunito (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
  /* Brand */
  --coral:        #E8655A;
  --coral-light:  #FFEDEB;
  --coral-dark:   #C94E44;
  --dark:         #1A1714;
  --dark-80:      rgba(26, 23, 20, 0.8);
  --dark-40:      rgba(26, 23, 20, 0.4);
  --dark-12:      rgba(26, 23, 20, 0.12);

  /* Neutrals */
  --white:        #FFFFFF;
  --bg:           #FAF8F6;
  --surface:      #FFFFFF;
  --border:       #EDE9E4;
  --border-focus: var(--coral);

  /* Semantic */
  --success:      #3DAA72;
  --success-bg:   #EDFAF4;
  --warning:      #F0A500;
  --warning-bg:   #FFF8E6;
  --error:        #E8655A;
  --error-bg:     #FFEDEB;
  --info:         #4A90D9;
  --info-bg:      #EBF4FF;

  /* Typography */
  --font:         'Nunito', sans-serif;
  --text-xs:      0.75rem;    /* 12px */
  --text-sm:      0.875rem;   /* 14px */
  --text-base:    1rem;       /* 16px */
  --text-lg:      1.125rem;   /* 18px */
  --text-xl:      1.25rem;    /* 20px */
  --text-2xl:     1.5rem;     /* 24px */
  --text-3xl:     1.875rem;   /* 30px */

  /* Spacing */
  --s1:  0.25rem;   /* 4px */
  --s2:  0.5rem;    /* 8px */
  --s3:  0.75rem;   /* 12px */
  --s4:  1rem;      /* 16px */
  --s5:  1.25rem;   /* 20px */
  --s6:  1.5rem;    /* 24px */
  --s8:  2rem;      /* 32px */
  --s10: 2.5rem;    /* 40px */
  --s12: 3rem;      /* 48px */

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(26,23,20,0.08), 0 1px 2px rgba(26,23,20,0.06);
  --shadow-md:  0 4px 12px rgba(26,23,20,0.10), 0 2px 4px rgba(26,23,20,0.06);
  --shadow-lg:  0 10px 30px rgba(26,23,20,0.12);
  --shadow-coral: 0 4px 16px rgba(232,101,90,0.30);

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ── LAYOUT ──────────────────────────────────── */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

.container--wide {
  max-width: 960px;
}

/* ── HEADER PWA ──────────────────────────────── */
.pwa-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--s4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pwa-header__logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.pwa-header__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--coral);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: var(--text-sm);
}

.pwa-header__brand {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
}

/* ── PROGRESS BAR STEP ───────────────────────── */
.step-progress {
  padding: var(--s4) var(--s4) 0;
}

.step-progress__track {
  height: 4px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.step-progress__fill {
  height: 100%;
  background: var(--coral);
  border-radius: var(--r-full);
  transition: width var(--duration-slow) var(--ease);
}

.step-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s2);
}

.step-progress__label {
  font-size: var(--text-xs);
  color: var(--dark-40);
  font-weight: 600;
}

.step-progress__label--active {
  color: var(--coral);
}

/* ── STEP CARD ───────────────────────────────── */
.step-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s6);
  margin: var(--s4);
  box-shadow: var(--shadow-sm);
  animation: slideUp var(--duration-slow) var(--ease) both;
}

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

.step-card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: var(--s2);
}

.step-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: var(--s2);
}

.step-card__subtitle {
  font-size: var(--text-sm);
  color: var(--dark-80);
  line-height: 1.5;
}

/* ── WELCOME CARD ────────────────────────────── */
.welcome-card {
  background: var(--coral);
  border-radius: var(--r-xl);
  padding: var(--s6);
  margin: var(--s4);
  color: white;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.welcome-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.welcome-card__greeting {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: var(--s2);
  position: relative;
}

.welcome-card__name {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--s4);
  position: relative;
}

.welcome-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  position: relative;
}

.welcome-card__info-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.9;
}

/* ── FORM ELEMENTS ───────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
}

.form-label--required::after {
  content: ' *';
  color: var(--coral);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232,101,90,0.15);
}

.form-input--filled,
.form-input.ocr-filled {
  background: var(--coral-light);
  border-color: var(--coral);
}

.form-input::placeholder { color: var(--dark-40); }

.form-helper {
  font-size: var(--text-xs);
  color: var(--dark-40);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

/* ── UPLOAD AREA DOCUMENTO ───────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8) var(--s4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease),
              background var(--duration-base) var(--ease);
  position: relative;
}

.upload-area:hover,
.upload-area--dragover {
  border-color: var(--coral);
  background: var(--coral-light);
}

.upload-area--done {
  border-color: var(--success);
  background: var(--success-bg);
  border-style: solid;
}

.upload-area__icon {
  width: 48px;
  height: 48px;
  background: var(--coral-light);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s3);
  color: var(--coral);
}

.upload-area--done .upload-area__icon {
  background: var(--success-bg);
  color: var(--success);
}

.upload-area__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--s1);
}

.upload-area__sub {
  font-size: var(--text-xs);
  color: var(--dark-40);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* OCR badge */
.ocr-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  background: var(--coral-light);
  color: var(--coral-dark);
  border-radius: var(--r-full);
  padding: var(--s1) var(--s3);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-top: var(--s2);
}

.ocr-spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--coral-light);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── FIRMA CANVAS ────────────────────────────── */
.signature-wrap {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  position: relative;
}

.signature-canvas {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}

.signature-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-40);
  font-size: var(--text-sm);
  pointer-events: none;
  transition: opacity var(--duration-fast);
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  padding: var(--s2) var(--s3);
  border-top: 1px solid var(--border);
}

.btn-clear-sig {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--dark-40);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s1) var(--s2);
  border-radius: var(--r-sm);
  transition: color var(--duration-fast);
}

.btn-clear-sig:hover { color: var(--coral); }

/* ── CO-OSPITI ───────────────────────────────── */
.co-guest-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4);
  margin-bottom: var(--s3);
  position: relative;
  animation: slideUp var(--duration-base) var(--ease) both;
}

.co-guest-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.co-guest-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
}

.btn-remove-guest {
  width: 28px; height: 28px;
  background: var(--error-bg);
  color: var(--error);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: background var(--duration-fast);
}
.btn-remove-guest:hover { background: var(--coral); color: white; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3) var(--s6);
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease),
              background var(--duration-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

.btn--primary {
  background: var(--coral);
  color: white;
  box-shadow: var(--shadow-coral);
  width: 100%;
  padding: var(--s4) var(--s6);
  font-size: var(--text-lg);
}

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

.btn--primary:disabled {
  background: var(--border);
  color: var(--dark-40);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover { border-color: var(--dark-40); }

.btn--ghost {
  background: transparent;
  color: var(--coral);
  padding: var(--s3) var(--s4);
}

.btn--ghost:hover { background: var(--coral-light); }

.btn--add {
  background: var(--coral-light);
  color: var(--coral-dark);
  border: 1.5px dashed var(--coral);
  width: 100%;
  padding: var(--s3);
}

.btn--add:hover { background: var(--coral); color: white; }

/* Loading spinner nel bottone */
.btn .btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── BOTTOM NAV STEP ─────────────────────────── */
.step-nav {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--s4);
  display: flex;
  gap: var(--s3);
  align-items: center;
}

.step-nav .btn--primary { flex: 1; }
.step-nav .btn--secondary { width: 48px; height: 48px; padding: 0; border-radius: var(--r-md); flex-shrink: 0; }

/* ── SUMMARY / RIEPILOGO ─────────────────────── */
.summary-section {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s3);
  box-shadow: var(--shadow-sm);
}

.summary-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4);
  border-bottom: 1px solid var(--border);
}

.summary-section__title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--dark);
}

.summary-section__edit {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--coral);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--s1) var(--s2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  gap: var(--s4);
}

.summary-row:last-child { border-bottom: none; }

.summary-row__label {
  font-size: var(--text-xs);
  color: var(--dark-40);
  font-weight: 600;
  flex-shrink: 0;
}

.summary-row__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
  text-align: right;
}

/* Tassa soggiorno box */
.tassa-box {
  background: var(--warning-bg);
  border: 1.5px solid var(--warning);
  border-radius: var(--r-lg);
  padding: var(--s4);
  margin-bottom: var(--s4);
}

.tassa-box__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s2);
}

.tassa-box__amount {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--dark);
}

.tassa-box__detail {
  font-size: var(--text-xs);
  color: var(--dark-40);
  margin-top: var(--s1);
}

/* ── SUCCESS STATE ───────────────────────────── */
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s12) var(--s6);
  min-height: 80dvh;
  animation: slideUp var(--duration-slow) var(--ease) both;
}

.success-icon {
  width: 72px; height: 72px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--s6);
  animation: popIn 0.5s var(--ease-spring) 0.2s both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.success-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--s3);
}

.success-sub {
  font-size: var(--text-sm);
  color: var(--dark-80);
  max-width: 280px;
  margin: 0 auto;
}

/* ── ADMIN PANEL ─────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100dvh;
}

.admin-sidebar {
  width: 240px;
  background: var(--dark);
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar__logo {
  padding: var(--s6) var(--s5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar__logo-name {
  font-weight: 800;
  font-size: var(--text-lg);
  color: white;
}

.admin-sidebar__logo-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.admin-nav { padding: var(--s4) var(--s3); flex: 1; }

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s3);
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
  margin-bottom: var(--s1);
}

.admin-nav__item:hover { background: rgba(255,255,255,0.06); color: white; }
.admin-nav__item--active { background: var(--coral); color: white; }

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--s4) var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--dark);
}

.admin-content {
  flex: 1;
  padding: var(--s6);
  overflow-y: auto;
  background: var(--bg);
}

/* Stat card admin */
.stat-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}

.stat-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-40);
  margin-bottom: var(--s2);
}

.stat-card__value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--dark);
}

.stat-card__value--coral { color: var(--coral); }
.stat-card__value--success { color: var(--success); }

/* Badge stato */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 3px var(--s3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge--pending   { background: var(--warning-bg);  color: var(--warning); }
.badge--sent      { background: var(--info-bg);      color: var(--info); }
.badge--completed { background: var(--success-bg);   color: var(--success); }
.badge--expired   { background: var(--border);       color: var(--dark-40); }

/* Tabella admin */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background: var(--bg);
  padding: var(--s3) var(--s4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-40);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: var(--s3) var(--s4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

/* Action buttons tabella */
.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark-80);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.btn-icon:hover { border-color: var(--coral); color: var(--coral); }
.btn-icon--download:hover { background: var(--coral); color: white; border-color: var(--coral); }

/* ── TOAST NOTIFICATION ──────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + var(--s4));
  left: var(--s4);
  right: var(--s4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: white;
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s3);
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--duration-base) var(--ease-spring) both;
  pointer-events: all;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast--success { background: var(--success); }
.toast--error   { background: var(--coral); }
.toast--warning { background: var(--warning); color: var(--dark); }

/* ── LOGIN ADMIN ─────────────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: var(--s4);
}

.login-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s8);
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-card__logo {
  width: 56px; height: 56px;
  background: var(--coral);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s5);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
}

.login-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--s2);
}

.login-card__sub {
  font-size: var(--text-sm);
  color: var(--dark-40);
  margin-bottom: var(--s6);
}

/* ── UTILITIES ───────────────────────────────── */
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.text-coral { color: var(--coral); }
.text-muted { color: var(--dark-40); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 800; }

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--s4) 0;
}

.icon-circle {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle--coral   { background: var(--coral-light);   color: var(--coral); }
.icon-circle--success { background: var(--success-bg);    color: var(--success); }
.icon-circle--warning { background: var(--warning-bg);    color: var(--warning); }

/* ── SAFE AREA PWA ───────────────────────────── */
.page { padding-bottom: env(safe-area-inset-bottom); }

/* ── RESPONSIVE ADMIN ────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-layout  { flex-direction: column; }
}
