*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --sys: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --line: rgba(0, 0, 0, .12);
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--sys);
  color: #1d1d1b;
  background: #f5f4f0;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Κουμπιά και πεδία ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.4em;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--accent, #1d1d1b); color: #fff;
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink, #1d1d1b); border-color: currentColor; }
.btn-sm { min-height: 34px; padding: 0 .9em; font-size: 14px; border-radius: 8px; }
.btn-danger { background: #a3362a; }

label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-weight: 400; font-size: 16px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent, #1d1d1b); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fbe9e6; color: #8b2a1f; font-size: 14px; }
.ok { margin: 0; padding: 10px 12px; border-radius: 8px; background: #e7f3ea; color: #215c33; font-size: 14px; }

/* ---------- Σελίδα αγοράς (θέμα της επιχείρησης) ---------- */
body.themed { background: var(--bg); color: var(--ink); }
body.themed h1, body.themed .brand-name { font-family: var(--font); }
.top { padding: 36px 16px 8px; text-align: center; }
.cover { height: clamp(160px, 28vw, 280px); background: center / cover no-repeat; }
.top.has-cover { position: relative; margin: -44px auto 0; max-width: 360px; padding: 18px 24px; background: var(--bg); border-radius: 14px; }
.brand-logo { max-height: 72px; width: auto; margin: 0 auto; }
.brand-name { font-size: 28px; font-weight: 600; letter-spacing: .01em; }
.top-tag { margin: 6px 0 0; opacity: .7; }
.store { max-width: 620px; margin: 0 auto; padding: 16px 16px 48px; }
.store h1 { margin: 16px 0 4px; font-size: clamp(30px, 6vw, 40px); font-weight: 600; line-height: 1.15; }
.lead { margin: 0 0 24px; opacity: .78; }
#buy { display: grid; gap: 22px; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 17px; }
.opts { gap: 10px; }
.opt { display: block; cursor: pointer; font-weight: 400; }
.opt input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.opt-body {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 12px;
  background: color-mix(in srgb, #fff 55%, var(--bg));
}
.opt input:checked + .opt-body { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #fff; }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-title { font-weight: 600; font-size: 16px; }
.opt-note { grid-column: 1; font-size: 14px; opacity: .7; }
.opt-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-size: 18px; color: var(--accent); }
.opt-price .amount { width: 96px; min-height: 40px; text-align: right; }
.fields label { color: var(--ink); }
.terms { margin: 0; font-size: 13px; opacity: .7; }
#buy .btn { width: 100%; min-height: 52px; font-size: 17px; }
.bottom { padding: 24px 16px 40px; text-align: center; font-size: 14px; opacity: .7; }

/* ---------- Σελίδα δωροεπιταγής ---------- */
body.voucher { background: #e9e7e2; }
.vpage { max-width: 820px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 18px; }
.note-box { padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.note-box h2 { margin: 0 0 6px; font-size: 18px; }
.note-box p { margin: 6px 0 0; }
.note-box .pay { white-space: normal; padding: 10px 12px; background: #f5f4f0; border-radius: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.left { margin: 0; text-align: center; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.actions .btn { --accent: #1d1d1b; --ink: #1d1d1b; }
.staff { margin: 0; text-align: center; font-size: 13px; opacity: .6; }

/* Η κάρτα. Όλα τα μεγέθη σε cqw, ώστε να είναι ίδια σε κάθε πλάτος και στο χαρτί. */
.gv-wrap { container-type: inline-size; width: 100%; }
.gv {
  --pad: 6cqw;
  position: relative; overflow: hidden;
  aspect-ratio: 210 / 148;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 2.1cqw; line-height: 1.35;
  border-radius: 1.6cqw;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.10);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.gv::after {
  content: ''; position: absolute; inset: 2.4cqw; pointer-events: none;
  border: .18cqw solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 1cqw;
}
.gv-brand { display: grid; justify-items: center; gap: .6cqw; text-align: center; }
.gv-logo { max-height: 8cqw; max-width: 40cqw; width: auto; object-fit: contain; }
.gv-name { font-size: 3.6cqw; font-weight: 600; letter-spacing: .02em; }
.gv-tag { margin: 0; font-size: 1.7cqw; opacity: .7; }
.gv-main { display: grid; align-content: center; justify-items: center; text-align: center; gap: .8cqw; min-height: 0; }
.gv-kicker { margin: 0; font-size: 2.6cqw; font-style: italic; color: var(--accent); }
.gv-value { margin: 0; font-size: 7.2cqw; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; max-width: 80cqw; }
.gv-sub { margin: 0; font-size: 2.2cqw; opacity: .75; }
.gv-people { display: flex; gap: 6cqw; margin: 1.2cqw 0 0; }
.gv-people div { display: flex; gap: 1.2cqw; align-items: baseline; }
.gv-people dt { font-size: 1.7cqw; opacity: .65; }
.gv-people dd { margin: 0; font-size: 2.6cqw; font-weight: 600; min-width: 4cqw; }
.gv-line { display: inline-block; width: 22cqw; border-bottom: .15cqw solid currentColor; opacity: .5; }
.gv-msg { margin: .4cqw 0 0; max-width: 64cqw; font-size: 2.1cqw; font-style: italic; opacity: .85; }
.gv-foot { display: grid; grid-template-columns: 13cqw 1fr; gap: 3cqw; align-items: end; }
.gv-qr { width: 13cqw; aspect-ratio: 1; background: #fff; padding: .9cqw; border-radius: .6cqw; }
.gv-qr svg { width: 100%; height: 100%; display: block; }
.gv-meta { display: grid; gap: .3cqw; font-family: var(--sys); font-size: 1.55cqw; opacity: .85; }
.gv-meta p { margin: 0; }
.gv-code { font-family: ui-monospace, Consolas, 'Courier New', monospace; font-size: 2.6cqw; font-weight: 700; letter-spacing: .08em; opacity: 1; }
.gv-terms { font-size: 1.3cqw; opacity: .75; }

/* Παραλλαγή: στήλη με χρώμα αριστερά */
.gv-split { grid-template-columns: 30cqw 1fr; grid-template-rows: 1fr auto; padding: 0; }
.gv-split::after { display: none; }
.gv-split .gv-brand {
  grid-row: 1 / span 2; align-content: center; padding: 4cqw;
  background: var(--accent); color: #fff;
}
.gv-split .gv-logo { max-width: 22cqw; }
.gv-split .gv-main { justify-items: start; text-align: left; padding: 6cqw 6cqw 0; }
.gv-split .gv-kicker { color: var(--accent); }
.gv-split .gv-value { font-size: 6.4cqw; }
.gv-split .gv-people { flex-direction: column; gap: .6cqw; }
.gv-split .gv-foot { padding: 0 6cqw 5cqw; grid-template-columns: 11cqw 1fr; }
.gv-split .gv-qr { width: 11cqw; }

/* Παραλλαγή: σκούρα */
.gv-dark { background: var(--ink); color: var(--bg); }
.gv-dark .gv-kicker { color: var(--accent); }
.gv-dark .gv-value { color: var(--bg); }

/* ---------- Panel και admin ---------- */
body.app { background: #f5f4f0; }
.app-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.app-top strong { font-size: 17px; margin-right: auto; }
.tabs { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; }
.tabs button {
  border: 0; background: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-size: 15px;
}
.tabs button[aria-selected=true] { background: #1d1d1b; color: #fff; }
.app-main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 64px; display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.card h2 { margin: 0; font-size: 18px; }
.card h3 { margin: 0; font-size: 16px; }
.muted { color: #6b6a65; font-size: 14px; margin: 0; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > label { flex: 1 1 180px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.stat { padding: 14px 16px; border-radius: 12px; background: #f5f4f0; }
.stat b { display: block; font-size: 24px; }
.stat span { font-size: 13px; color: #6b6a65; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 13px; color: #6b6a65; font-weight: 600; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.scroll { overflow-x: auto; }
.code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #ecebe6; white-space: nowrap; }
.pill.active { background: #e2f1e6; color: #215c33; }
.pill.pending { background: #fdf0d8; color: #7a5310; }
.pill.used { background: #e6e9f2; color: #33406b; }
.pill.void, .pill.expired { background: #f5e2df; color: #8b2a1f; }
.pill.blank { background: #ecebe6; color: #555; }
.found { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: #f5f4f0; }
.found .big { font-size: 26px; font-weight: 700; }
.login { max-width: 380px; margin: 12vh auto 0; padding: 0 16px; }
.login .card { gap: 16px; }
.preview { max-width: 520px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatches label { flex: 1 1 100px; }
.swatches input[type=color] { padding: 4px; min-height: 44px; cursor: pointer; }
.link-box { display: flex; gap: 8px; }
.link-box input { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* ---------- Discount24 (αρχική, panel, admin) ---------- */
.d24, .app { --accent: #dc1f26; }
.d24 { background: #fff; }
.d24-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 20px 16px; }
.d24-top .btn { background: #111; }
.d24-logo { height: 40px; width: auto; }
.d24-hero { max-width: 720px; margin: 0 auto; padding: 10vh 16px 64px; }
.d24-hero h1 { margin: 0 0 14px; font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
.d24-hero p { margin: 0 0 28px; font-size: 19px; color: #444; }
.d24-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.d24-list li { padding-left: 22px; position: relative; }
.d24-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: #dc1f26; }
.d24-cta { background: #dc1f26 !important; min-height: 52px; padding: 0 1.6em; }
.d24-hero2 { max-width: 1080px; margin: 0 auto; padding: 32px 16px 56px; display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.d24-hero-text h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.025em; }
.d24-hero-text p { margin: 0 0 28px; font-size: 19px; color: #444; max-width: 30em; }
.d24-hero-art { position: relative; padding-bottom: 40px; }
.d24-hero-art > img { width: 100%; aspect-ratio: 11 / 9; object-fit: cover; border-radius: 18px; }
.d24-float { position: absolute; left: -32px; bottom: 0; width: 72%; transform: rotate(-4deg); }
.d24-steps { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.d24-steps div { padding: 22px; border-radius: 14px; background: #f5f4f0; }
.d24-steps b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dc1f26; color: #fff; }
.d24-steps h3 { margin: 14px 0 4px; font-size: 18px; }
.d24-steps p { margin: 0; color: #555; }
.d24-sectors { max-width: 1080px; margin: 0 auto; padding: 0 16px 72px; }
.d24-sectors h2, .d24-end h2 { margin: 0 0 24px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; }
.d24-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.d24-card { position: relative; }
.d24-photo { aspect-ratio: 16 / 10; border-radius: 14px; background: #ddd center / cover no-repeat; }
.d24-mini { width: 78%; margin: -28% auto 0; position: relative; transition: transform .3s ease; }
.d24-card:hover .d24-mini { transform: translateY(-6px); }
.d24-card h3 { margin: 14px 0 0; font-size: 17px; text-align: center; }
.d24-end { max-width: 1080px; margin: 0 auto 64px; padding: 48px 24px; text-align: center; border-radius: 20px; background: #111; color: #fff; }
.d24-end h2 { margin-bottom: 8px; }
.d24-end p { margin: 0 0 24px; color: #bbb; }
.d24-foot { max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: #888; border-top: 1px solid var(--line); }
.d24-foot img { height: 22px; width: auto; }
@media (max-width: 820px) {
  .d24-hero2 { grid-template-columns: 1fr; }
  .d24-float { left: 8px; width: 80%; }
  .d24-steps { grid-template-columns: 1fr; }
}
.app .btn:not(.btn-ghost):not(.btn-danger) { background: #111; }
.app-logo { height: 26px; width: auto; }
.login-logo { height: 34px; width: auto; margin-bottom: 4px; }
.made { margin: 0; font-size: 12px; opacity: .55; }
.made a { text-decoration: none; }

/* ---------- Αρχική / σημειώσεις ---------- */
body.plain { background: #f5f4f0; }
.note { max-width: 560px; margin: 14vh auto; padding: 0 16px; }
.note h1 { margin: 0 0 8px; }

@media (max-width: 560px) {
  .opt-price .amount { width: 80px; }
  .card { padding: 14px; }
}

/* ---------- Εκτύπωση: μία δωροεπιταγή ανά A5 οριζόντιο ---------- */
@page { size: A5 landscape; margin: 0; }
@media print {
  body, body.voucher { background: #fff; }
  .noprint, .actions { display: none !important; }
  .vpage { display: block; max-width: none; padding: 0; }
  .gv-wrap { width: 210mm; height: 148mm; break-after: page; page-break-after: always; }
  .gv-wrap:last-of-type { break-after: auto; page-break-after: auto; }
  .gv { border-radius: 0; box-shadow: none; width: 210mm; height: 148mm; }
}
