/* Product X-Ray — GorbaTech theme. Για άλλο look άλλαξε μόνο τις μεταβλητές του :root. */
@font-face { font-family: "Ubuntu Sans"; font-weight: 400 800; font-display: swap; src: url("assets/fonts/ubuntu-sans-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Ubuntu Sans"; font-weight: 400 800; font-display: swap; src: url("assets/fonts/ubuntu-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212; }

:root {
  --bg: #06090E;
  --sky: #38BDF8;
  --blue: #2563EB;
  --indigo: #6366F1;
  --purple: #A855F7;
  --pink: #EC4899;
  --green: #22C55E;
  --glass: rgba(15, 23, 42, .78);
  --line: rgba(255, 255, 255, .1);
  --text: #F1F5F9;
  --muted: rgba(226, 232, 240, .68);
  --font: "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nocam-bg: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(60% 40% at 12% 0%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(60% 40% at 92% 100%, rgba(99, 102, 241, .26), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  color: var(--text); font-family: var(--font);
  overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
button { font: inherit; }
[hidden] { display: none !important; }

/* top bar */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: linear-gradient(rgba(6, 9, 14, .85), rgba(6, 9, 14, 0)); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(56, 189, 248, .6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 17px; font-weight: 800; }
.brand-text b span { color: var(--sky); }
.brand-text small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .22em; color: var(--muted); }
.bar-tools { display: flex; gap: 8px; }
.tool { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font-weight: 700; cursor: pointer; }
.tool.off { opacity: .6; }

/* screens */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }
#start, #reveal, #mobileGate, #unsupported { overflow-y: auto; padding: calc(70px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.card { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.card.wide { max-width: 940px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .08);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.title { margin: 0; font-size: clamp(34px, 10vw, 52px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.title span { background: linear-gradient(90deg, #38BDF8, #A855F7, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title.small { font-size: 26px; }
.subtitle { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.product-pill { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-align: left; }
.product-pill img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: rgba(56, 189, 248, .08); }
.product-pill b { display: block; font-size: 16px; }
.product-pill small { color: var(--muted); font-size: 12.5px; }
.howto { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.howto li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.howto b { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; }
.btn { width: 100%; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 16px; background: linear-gradient(90deg, var(--sky), var(--blue)); color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 10px 30px rgba(37, 99, 235, .35); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); box-shadow: none; font-size: 14.5px; }
.btn:disabled { background: rgba(30, 41, 59, .9); color: var(--muted); box-shadow: none; cursor: default; }
.link { background: none; border: 0; color: var(--sky); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; padding: 6px; }
.req { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(56, 189, 248, .35); font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: left; }
.req b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px; }

/* gate */
.gate-grid { width: 100%; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .gate-grid { grid-template-columns: 1fr 1fr; } }
.panel { padding: 20px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.panel-title { margin: 0; font-size: 20px; color: var(--sky); }
.qr-box { width: min(62vw, 230px); aspect-ratio: 1; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 2px rgba(56, 189, 248, .5), 0 20px 50px rgba(0, 0, 0, .5); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.mono-hint { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.trigger-img { width: min(100%, 300px); aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #fff; }

/* unsupported */
.unsup-icon { position: relative; font-size: 56px; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; background: var(--glass); border: 1px solid var(--line); }
.unsup-icon i { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; font-style: normal; font-size: 18px; font-weight: 800; display: grid; place-items: center; }
.help { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(236, 72, 153, .08); border: 1px solid rgba(236, 72, 153, .35); font-size: 13.5px; line-height: 1.5; text-align: left; }

/* play */
#play { background: #000; overflow: hidden; touch-action: none; }
body.no-cam #play { background: var(--bg); background-image: var(--nocam-bg), radial-gradient(70% 50% at 50% 60%, rgba(56, 189, 248, .18), transparent 70%); background-size: cover; background-position: center; }
.ar-host { position: absolute; inset: 0; overflow: hidden; }
.ar-host canvas { display: block; }
.cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hotspots.hide { display: none; }
.hs { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; --c: var(--pink); }
.hs-dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; }
.hs-dot::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--c); animation: ring 1.6s ease-out infinite; }
.hs-dot i { width: 28px; height: 28px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; color: #fff; font-style: normal; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; box-shadow: 0 0 16px var(--pink); }
.hs.done .hs-dot i { background: var(--green); box-shadow: 0 0 14px var(--green); }
.hs.done .hs-dot::before { animation: none; opacity: 0; }
.hs.back { opacity: .55; }
.hs.back .hs-dot { transform: scale(.82); }
@keyframes ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.hs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hs-lines line { stroke-width: 1.5; opacity: .8; }
.hs-tag { position: absolute; right: 10px; top: 0; max-width: 44vw; padding: 7px 10px; border-radius: 10px; background: rgba(15, 23, 42, .92); border: 1px solid var(--c, var(--line));
  font-size: 12.5px; font-weight: 700; line-height: 1.2; color: #fff; text-align: left; pointer-events: auto; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.hs-tag.left { right: auto; left: 10px; }
.hud { position: absolute; z-index: 8; left: 0; right: 0; top: calc(58px + env(safe-area-inset-top)); padding: 0 12px; }
.hud-row { display: flex; gap: 10px; align-items: center; }
.progress { flex: 1; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.progress-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--sky); margin-bottom: 8px; }
.progress-top b { color: var(--text); letter-spacing: .05em; }
.progress-bar { height: 7px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #38BDF8, #A855F7, #EC4899); transition: width .5s; }
.scan { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; pointer-events: none; transition: opacity .3s; }
.scan.hide { opacity: 0; }
.scan-frame { width: min(64vw, 280px); aspect-ratio: 1; border-radius: 22px; border: 2px solid rgba(56, 189, 248, .8); box-shadow: 0 0 0 9999px rgba(6, 9, 14, .35), 0 0 30px rgba(56, 189, 248, .4) inset;
  display: grid; place-items: center; position: relative; overflow: hidden; }
.scan-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--sky); box-shadow: 0 0 14px var(--sky); animation: sweep 2.2s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { top: 4%; } 50% { top: 94%; } }
.scan-frame img { width: 34%; opacity: .55; border-radius: 10px; }
.scan p { margin: 0; padding: 8px 14px; border-radius: 12px; background: var(--glass); font-weight: 700; }
.bottom { position: absolute; z-index: 8; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 14px; border-radius: 20px; background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto; }
.bottom-hint { margin: 0; text-align: center; font-weight: 700; font-size: 15px; }
.pop { position: absolute; z-index: 9; left: 0; right: 0; top: 34%; margin: 0; text-align: center; font-size: 26px; font-weight: 800; opacity: 0; pointer-events: none; text-shadow: 0 4px 20px rgba(0, 0, 0, .7); }
.pop.show { animation: pop 1.6s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: scale(.7); } 15% { opacity: 1; transform: scale(1.06); } 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-20px); } }

/* sheets */
.sheet { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); background: rgba(6, 9, 14, .35); }
.sheet-card { width: 100%; max-width: 520px; padding: 18px; border-radius: 22px; background: rgba(15, 23, 42, .94); border: 1px solid rgba(56, 189, 248, .35); display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); animation: up .28s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-icon { --c: var(--sky); flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid var(--c); }
.sheet-card h3 { margin: 0; font-size: 21px; }
.sheet-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.opt { min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 700; font-size: 15.5px; cursor: pointer; text-align: left; }
.opt.right { background: rgba(34, 197, 94, .25); border-color: var(--green); }
.opt.wrong { background: rgba(236, 72, 153, .18); border-color: var(--pink); animation: shake .35s; opacity: .7; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-msg { min-height: 1.2em; font-size: 14px; }
.quiz-msg.ok { color: var(--green) !important; font-weight: 700; }
.quiz-msg.bad { color: var(--pink) !important; }

/* coupon */
.coupon { width: 100%; position: relative; padding: 22px 18px 18px; border-radius: 24px; background: linear-gradient(160deg, rgba(56, 189, 248, .16), rgba(168, 85, 247, .14) 60%, rgba(236, 72, 153, .12));
  border: 1px solid rgba(56, 189, 248, .45); display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 20px 60px rgba(37, 99, 235, .25); animation: up .4s ease-out; }
.coupon-label { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--sky); }
.coupon-title { margin: 0; font-size: 40px; font-weight: 800; background: linear-gradient(90deg, #38BDF8, #A855F7, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coupon-for { margin: 0; font-weight: 700; }
.coupon-hero { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(56, 189, 248, .5)); }
.coupon-cut { width: calc(100% + 36px); border-top: 2px dashed rgba(255, 255, 255, .25); margin: 6px 0; }
.coupon-code { display: flex; flex-direction: column; gap: 4px; }
.coupon-code small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.coupon-code b { font-family: var(--mono); font-size: 24px; letter-spacing: .08em; }
.coupon-qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 14px; }
.coupon-qr svg { width: 100%; height: 100%; display: block; }
.coupon-valid { margin: 0; font-size: 12.5px; color: var(--muted); }
.terms { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* toast & loader */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 14px; background: rgba(15, 23, 42, .95);
  border: 1px solid var(--line); opacity: 0; transition: .25s; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loader { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(6, 9, 14, .82); }
.loader.show { display: grid; }
.loader-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loader-logo { border-radius: 50%; box-shadow: 0 0 0 3px rgba(56, 189, 248, .5), 0 0 40px rgba(56, 189, 248, .5); animation: blink 1.6s infinite; }
.loader-card p { margin: 0; font-weight: 700; }
.loader-bar { width: 200px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--blue)); transition: width .2s; }
.loader.indeterminate .loader-bar i { width: 40%; animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* λήψη εικόνων (tools): μόνο το ολόγραμμα */
body.shot .bar, body.shot .hud, body.shot .bottom, body.shot .hotspots, body.shot .pop, body.shot .scan { display: none !important; }
