/* Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  background: var(--bxl);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* Helpers */
.hidden { display: none !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mt-14 { margin-top: 14px; }
.align-end { align-items: flex-end; }

/* Typography */
.flbl { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.sec-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.opt { font-weight: 400; color: var(--mist); text-transform: none; letter-spacing: 0; font-size: 11px; }
.req { color: var(--bd); }
.wa-hint { font-size: 11.5px; color: var(--mist); text-align: center; margin-top: 10px; line-height: 1.5; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* Hero Section */
.hero {
  background: var(--ink);
  padding: 52px 24px 88px;
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200,184,154,.14), transparent), 
              radial-gradient(ellipse 40% 60% at 10% 90%, rgba(168,146,110,.10), transparent);
  pointer-events: none;
}

.hero-inner { max-width: 480px; margin: 0 auto; position: relative; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(200,184,154,.35); margin-bottom: 20px; }
.logo-mark span { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 300; color: var(--bm); }
.hero-eye { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bd); margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.05; color: var(--bxl); margin-bottom: 14px; }
.hero-desc { font-size: 14px; line-height: 1.7; color: rgba(250,247,244,.60); max-width: 340px; }
.hero-dots { display: flex; gap: 8px; margin-top: 28px; }
.hero-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dot-1 { background: #FAF7F4; }
.dot-2 { background: #C8B89A; }
.dot-3 { background: #A8926E; }
.dot-4 { background: #E8DDD0; }
.dot-5 { background: #6B5E54; }

/* Main Card & Containers */
.outer { max-width: 480px; margin: 0 auto; padding: 0 16px 60px; }
.card { background: #fff; border-radius: var(--rxl); box-shadow: var(--sd); margin-top: -44px; position: relative; z-index: 2; overflow: hidden; }

/* Tabs & Views */
.vtabs { display: flex; border-bottom: 1px solid var(--line); }
.vtab { flex: 1; padding: 14px 6px 12px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--mist); cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; user-select: none; }
.vtab.on { color: var(--ink); border-bottom-color: var(--ink); }
.vtab svg { display: block; margin: 0 auto 4px; width: 16px; height: 16px; pointer-events: none; }
.view { display: none; }
.view.on { display: block; }

/* Panel System */
.panel { display: none; padding: 20px 20px 24px; }
.panel.on { display: block; animation: up .25s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ptitle { font-size: 20px; margin-bottom: 4px; }
.psub { font-size: 13px; color: var(--stone); line-height: 1.55; margin-bottom: 20px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }

/* Grids */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }

/* Step Bar */
.step-bar { display: flex; align-items: center; padding: 18px 20px 0; }
.si { display: flex; align-items: center; gap: 6px; flex: 1; }
.si:last-child { flex: 0 0 auto; }
.sline { flex: 1; height: 1px; background: var(--line); margin: 0 5px; min-width: 10px; }

/* Admin Base */
.admin-login { padding: 32px 20px 28px; text-align: center; }
.admin-login h2 { font-size: 22px; margin-bottom: 8px; }
.admin-login p { font-size: 13.5px; color: var(--stone); margin-bottom: 24px; }
.admin-login .ff { text-align: left; }
.adm-body { display: none; }
.adm-body.on { display: block; }
.adm-wrap { padding: 20px 16px 28px; }
.adm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.adm-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.adm-user { font-size: 12px; color: var(--stone); margin-top: 2px; }

/* Avis System */
.avis-wrap { padding: 24px 20px 32px; }
.avis-hero { text-align: center; margin-bottom: 28px; }
.avis-hero h2 { font-size: 22px; margin-bottom: 6px; }
.avis-hero p { font-size: 13.5px; color: var(--stone); line-height: 1.6; max-width: 300px; margin: 0 auto; }
.avis-prat { margin-bottom: 18px; }
.prat-choice { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 8px; }
.avis-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.avis-sent { text-align: center; padding: 20px 0 8px; display: none; }
.avis-sent.on { display: block; animation: up .3s ease both; }
.avis-sent h2 { font-size: 20px; margin-bottom: 8px; }
.avis-sent p { font-size: 13.5px; color: var(--stone); line-height: 1.6; margin-bottom: 20px; }
.recent-avis { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Agenda Layout */
.ag-tbl { border-radius: var(--rmd); overflow: hidden; border: 1px solid var(--line); }
.ag-grid { display: grid; grid-template-columns: 48px 1fr 1fr; }
.day-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

/* Modal Background */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(24,19,15,.42); z-index: 800; align-items: flex-end; justify-content: center; }
.modal-bg.on { display: flex; }