/* ═══════════════════════════════════════════════
   IJEN SPA — Kiosk (index.html) Styles
   Depends on: variables.css
   ═══════════════════════════════════════════════ */

html, body {
  width: 100vw; height: 100vh; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: 'Lato', sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* SCREENS */
.screen { display: none; position: absolute; inset: 0; flex-direction: column; padding: 20px 24px 56px; animation: fadeIn .3s ease; }
.screen.active { display: flex; }

/* HEADER */
.hdr { text-align: center; margin-bottom: 8px; flex-shrink: 0; }
.hdr h1 { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold); letter-spacing: 5px; margin-bottom: 2px; }
.hdr p { font-size: 12px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; }
.ornl { text-align: center; color: var(--border); letter-spacing: 8px; font-size: 12px; margin: 5px 0; flex-shrink: 0; }

/* PROGRESS */
.dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 8px; flex-shrink: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .3s; }
.dot.on { background: var(--gold); }

/* CARD base */
.card { background: var(--card); border: 1px solid var(--border); cursor: pointer; transition: border-color .2s, background .2s; }
.card.sel, .card:active { border-color: var(--gold); background: rgba(201,168,76,.1); }

/* BUTTON */
.btn { font-family: 'Playfair Display', serif; border: 1px solid var(--gold); background: transparent; color: var(--gold); padding: 10px 24px; font-size: 15px; cursor: pointer; letter-spacing: 2px; transition: all .2s; white-space: nowrap; }
.btn:active, .btn.solid { background: var(--gold); color: var(--bg); }
.btn:disabled { opacity: .3; pointer-events: none; }
.btn.ghost { border-color: var(--border); color: var(--muted); }
.btn.ghost:active { border-color: var(--gold); color: var(--gold); background: transparent; }

/* BOTTOM NAV */
.bnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 12px; flex-shrink: 0; }
.bnav > span { width: 100%; text-align: center; margin-bottom: 6px; order: -1; }
.bnav > .btn.solid { margin-left: auto; }

/* ═══════════ SCREEN 1: Massage ═══════════ */
.cols { display: flex; gap: 12px; flex: 1; min-height: 0; }
.col { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.col-hdr { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--gold); text-align: center; padding: 8px; border: 1px solid var(--border); background: rgba(201,168,76,.04); letter-spacing: 2px; flex-shrink: 0; }
.mcrd { padding: 11px 13px; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.mcrd .mname { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--white); margin-bottom: 3px; }
.mcrd .mdesc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.mcrd .mprice { font-size: 17px; color: var(--gold); margin-top: 6px; font-family: 'Playfair Display', serif; letter-spacing: .5px; }

/* ═══════════ SCREEN 2: Oil ═══════════ */
.ogrid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,1fr); gap: 10px; flex: 1; min-height: 0; }
.ocrd { padding: 0; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; }
.ocrd .oimg { width: 100%; height: 56%; object-fit: cover; flex-shrink: 0; display: block; }
.ocrd .oinfo { display: flex; flex-direction: column; align-items: center; padding: 7px 6px 8px; flex: 1; justify-content: center; }
.ocrd .oname { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--white); margin-bottom: 2px; }
.ocrd .odesc { font-size: 11px; color: var(--muted); line-height: 1.35; margin-bottom: 4px; }
.badge { display: inline-block; padding: 2px 6px; font-size: 8.5px; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid; border-radius: 1px; }
.badge.free { color: var(--green); border-color: var(--green); }
.badge.prem { color: var(--gold); border-color: var(--gold); }
.ocrd .oprice { font-size: 11.5px; color: var(--gold); margin-top: 3px; font-weight: 700; letter-spacing: .3px; }

/* ═══════════ SCREEN 3 & 4: Body Map ═══════════ */
.bwrap { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; overflow-y: auto; justify-content: center; }
.bsvg-wrap { flex: none; display: flex; justify-content: center; }
.vitruvian-wrap { position: relative; width: 220px; aspect-ratio: 744/800; }
.vitruvian-img { width: 100%; height: 100%; display: block; filter: invert(1) sepia(1) saturate(1.1) brightness(0.72) hue-rotate(2deg); }
.vzones { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.vdot { cursor: pointer; fill: rgba(201,168,76,0.08); stroke: rgba(201,168,76,0.38); stroke-width: 1.5; transition: fill .2s, stroke .2s; pointer-events: all; r: 18; }
@media(max-width:480px) { .vdot { r: 28; } }
.vdot:hover { fill: rgba(201,168,76,0.25); stroke: rgba(201,168,76,0.8); }
.vdot.att { fill: var(--gold); stroke: var(--gold2); stroke-width: 2; }
.vdot.avd { fill: var(--red); stroke: #d46060; stroke-width: 2; }
.zpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; align-content: start; }
.zpanel > .phase-badge { grid-column: 1/-1; }
.zcrd { border: 1px solid var(--border); background: var(--card); padding: 8px 11px; cursor: pointer; display: flex; align-items: center; gap: 9px; transition: border-color .2s, background .2s; white-space: nowrap; }
@media(min-width:700px) {
  .bwrap { flex-direction: row; align-items: stretch; overflow-y: visible; }
  .bsvg-wrap { width: 52%; display: flex; align-items: center; justify-content: center; }
  .vitruvian-wrap { width: 100%; aspect-ratio: 744/800; max-height: 100%; }
  .zpanel { flex: 1; display: flex; flex-direction: column; align-content: unset; justify-content: center; }
  .zpanel > .phase-badge { grid-column: unset; }
}
.zcrd:active, .zcrd.sel { border-color: var(--gold); background: rgba(201,168,76,.1); }
.zcrd.sel-r { border-color: var(--red); background: rgba(184,68,68,.1); }
.chk { width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; transition: all .2s; }
.zcrd.sel .chk { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.zcrd.sel-r .chk { background: var(--red); border-color: var(--red); color: #fff; }
.zcrd .zname { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--white); }
.zcrd .zdesc { font-size: 10px; color: var(--muted); margin-top: 1px; }
.phase-badge { display: inline-block; padding: 3px 10px; border: 1px solid; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; border-radius: 1px; align-self: flex-start; }
.phase-badge.att { color: var(--gold); border-color: var(--gold); }
.phase-badge.avd { color: var(--red); border-color: var(--red); }
.zclear-btn { font-size: 10px; color: var(--muted); background: none; border: 1px solid var(--border); padding: 3px 10px; cursor: pointer; letter-spacing: 1px; border-radius: 1px; transition: all .2s; grid-column: 1/-1; justify-self: end; }
.zclear-btn:active { border-color: var(--gold); color: var(--gold); }

/* ═══════════ SCREEN 5: Summary ═══════════ */
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.scrd { padding: 15px; border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.slbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.sval { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--white); margin-bottom: 4px; }
.sdet { font-size: 15px; color: var(--gold); }
.stags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; justify-content: center; }
.stag { padding: 3px 10px; border: 1px solid; font-size: 11px; border-radius: 1px; }
.stag.a { border-color: var(--gold); color: var(--gold); }
.stag.r { border-color: var(--red); color: var(--red); }
.total-box { border: 1px solid var(--border); padding: 14px; text-align: center; background: var(--card); grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.total-lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 6px; }
.total-val { font-family: 'Playfair Display', serif; font-size: 52px; color: var(--gold); line-height: 1; letter-spacing: 1px; }
.total-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ═══════════ LANGUAGE SWITCHER ═══════════ */
.lang-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 6px 0 8px; z-index: 50; pointer-events: none; }
.lang-btn { pointer-events: all; width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; background: rgba(23,18,10,0.85); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; transition: border-color .2s, transform .2s, background .2s; backdrop-filter: blur(6px); }
.lang-btn:hover { border-color: var(--dim); transform: scale(1.1); }
.lang-btn.active { border-color: var(--gold); background: rgba(201,168,76,0.15); transform: scale(1.15); }

/* ═══════════ MOBILE RESPONSIVE ═══════════ */
@media(max-width:480px) {
  .screen { padding: 12px 10px 52px; }
  .hdr h1 { font-size: 22px; letter-spacing: 3px; }
  .hdr p { font-size: 10px; letter-spacing: 1.5px; }
  .ornl { font-size: 10px; letter-spacing: 5px; margin: 3px 0; }
  .dots { gap: 5px; margin-bottom: 5px; }
  .dot { width: 6px; height: 6px; }
  .btn { padding: 9px 18px; font-size: 13px; }
  .cols { flex-direction: column; gap: 10px; overflow-y: auto; }
  .col { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; flex: none; }
  .col-hdr { font-size: 14px; padding: 6px; letter-spacing: 1.5px; grid-column: 1/-1; }
  .mcrd { padding: 12px; min-height: 0; flex: none; }
  .mcrd .mname { font-size: 14px; }
  .mcrd .mdesc { font-size: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mcrd .mprice { font-size: 14px; margin-top: auto; }
  .ogrid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; gap: 8px; overflow-y: auto; }
  .ocrd .oimg { height: 120px; }
  .ocrd .oinfo { padding: 6px 5px 7px; }
  .ocrd .oname { font-size: 13px; }
  .ocrd .odesc { font-size: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bwrap { gap: 6px; }
  .vitruvian-wrap { width: min(80vw, 300px); }
  .zpanel { gap: 4px; }
  .zcrd { padding: 7px 9px; gap: 7px; }
  .zcrd .zname { font-size: 13px; }
  .chk { width: 17px; height: 17px; font-size: 10px; }
  .phase-badge { font-size: 8.5px; padding: 2px 8px; }
  .sgrid { grid-template-columns: 1fr; gap: 8px; }
  .scrd { padding: 12px; }
  .slbl { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 5px; }
  .sval { font-size: 20px; }
  .sdet { font-size: 13px; }
  .total-box { padding: 12px; }
  .total-val { font-size: 36px; }
  .total-note { font-size: 11px; }
  .lang-bar { padding: 4px 0 5px; gap: 4px; }
  .lang-btn { width: 28px; height: 28px; font-size: 15px; }
  .bnav { margin-top: 8px; }
  .bnav > span { font-size: 13px; margin-bottom: 4px; }
  .ovbox { padding: 24px 20px; }
  .ovbox h2 { font-size: 20px; }
  .ovbox .price { font-size: 28px; }
}

@media(max-width:375px) {
  .screen { padding: 10px 8px 48px; }
  .hdr h1 { font-size: 20px; }
  .mcrd .mname { font-size: 14px; }
  .ogrid { gap: 6px; }
  .ocrd .oimg { height: 100px; }
  .vitruvian-wrap { width: min(75vw, 280px); }
  .total-val { font-size: 30px; }
}

/* ═══════════ LAVA CORNERS ═══════════ */
#lava-tl, #lava-tr { position: fixed; top: 0; pointer-events: none; z-index: 0; }
#lava-tl { left: 0; }
#lava-tr { right: 0; }

/* Confirmation overlay */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); align-items: center; justify-content: center; z-index: 100; animation: fadeIn .3s ease; }
.overlay.active { display: flex; }
.ovbox { border: 1px solid var(--gold); background: var(--card); padding: 40px 48px; text-align: center; max-width: 440px; width: 90%; }
.ovbox h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--gold); margin-bottom: 6px; letter-spacing: 3px; }
.ovbox p { color: var(--muted); font-size: 13px; margin-bottom: 20px; letter-spacing: .5px; line-height: 1.6; }
.ovbox .price { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--gold2); margin: 12px 0; letter-spacing: 1px; }
.ovbox.error h2 { color: var(--red); }
.ovbox .ov-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.ov-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .6s linear infinite; margin: 12px auto; }
