/* The look of design.skalpack.gr: neutral panels, amber→orange accents, a warm stage for the cup; dark by default. */
:root {
  --bg: #ffffff; --panel: #ffffff; --soft: #f5f5f5; --line: #e5e5e5; --ink: #171717; --muted: #737373;
  --amber: #f59e0b; --orange: #f97316; --amber-soft: rgba(245, 158, 11, .1);
  --stage: linear-gradient(135deg, #ece6db, #e8e2d8 50%, #e0d8cc);
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
html.dark {
  --bg: #0a0a0a; --panel: #171717; --soft: #262626; --line: #262626; --ink: #f5f5f5; --muted: #a3a3a3;
  --stage: linear-gradient(135deg, #2a2520, #252018 50%, #201c15);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }

.shell { display: flex; height: 100vh; height: 100dvh; }
.side { width: 30%; min-width: 360px; max-width: 460px; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); }
.stage { flex: 1; position: relative; background: var(--stage); overflow: hidden; display: flex; flex-direction: column; }

.top { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; white-space: nowrap; }
.top-r { min-width: 0; }
@media (max-width: 1180px) { .brand .muted { display: none; } }
.brand .muted { color: var(--muted); font-weight: 400; }
.cube { width: 30px; height: 30px; border-radius: 8px; background: conic-gradient(from 210deg, #f43f5e, #f59e0b, #3b82f6, #8b5cf6, #f43f5e); box-shadow: inset 0 0 0 6px rgba(255,255,255,.14); }
.top-r { display: flex; align-items: center; gap: 6px; }
.who { font-size: 12px; color: var(--muted); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.step { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); padding: 2px; }
.step i { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--soft); }
.step.on { color: var(--ink); font-weight: 700; }
.step.on i { background: linear-gradient(90deg, var(--amber), var(--orange)); color: #fff; }
.step.done i { background: rgba(22,163,74,.15); color: var(--ok); }
.step:disabled { opacity: .45; cursor: default; }

.panel { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.side-foot { flex: none; padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.side-foot:empty { display: none; }

.hero { text-align: center; padding: 10px 6px 0; }
.hero .badge { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #fbbf24, #f97316 55%, #ef4444); box-shadow: 0 8px 24px rgba(249,115,22,.35); }
.hero h1 { font-size: 19px; margin: 0 0 6px; }
.hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.how { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--soft); }
.how .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--amber-soft); }
.how b { display: block; font-size: 13px; }
.how small { color: var(--muted); font-size: 11.5px; }
.free { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(22,163,74,.35); background: rgba(22,163,74,.08); font-size: 12px; }
.free b { color: #22c55e; font-size: 13px; display: block; }

.btn-amber { border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--amber), var(--orange)); box-shadow: 0 6px 18px rgba(249,115,22,.28); transition: transform .08s; }
.btn-amber:hover { background: linear-gradient(90deg, #d97706, #ea580c); }
.btn-amber:active { transform: scale(.97); }
.btn-amber:disabled { opacity: .5; box-shadow: none; cursor: default; }
.btn-amber.wide, .btn.wide { width: 100%; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 13px; }
.btn:hover { border-color: var(--amber); }
.btn.green { background: var(--ok); border-color: var(--ok); color: #fff; }
.link { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 4px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 12px; padding: 4px; }
.tabs button { border: 0; background: transparent; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
label.f input, label.f select, label.f textarea { border: 1px solid var(--line); background: var(--soft); border-radius: 11px; padding: 10px 12px; font-size: 14px; outline: none; }
label.f input:focus, label.f textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.sect { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sect > h3 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.lbl { font-size: 11px; color: var(--muted); }

.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 22px 12px; text-align: center; cursor: pointer; background: var(--soft); }
.drop:hover, .drop.over { border-color: var(--amber); background: var(--amber-soft); }
.drop b { display: block; font-size: 14px; margin: 6px 0 2px; }
.drop small { color: var(--muted); font-size: 12px; }
.logo-prev { display: flex; gap: 12px; align-items: center; }
.logo-prev .ck { width: 84px; height: 84px; border-radius: 12px; display: grid; place-items: center; background: repeating-conic-gradient(#d4d4d4 0 25%, #fafafa 0 50%) 0 0 / 14px 14px; }
.logo-prev img { max-width: 76px; max-height: 76px; }
.saved { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.saved button { flex: none; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.saved img { max-width: 100%; max-height: 100%; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 6px; }
.chip.on { border-color: var(--amber); background: var(--amber-soft); }
.chip canvas { width: 100%; height: auto; aspect-ratio: 108 / 48; border-radius: 8px; display: block; }
.chip b { font-size: 12.5px; display: block; }
.chip small { font-size: 10.5px; color: var(--muted); }
.chip .k { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--amber), var(--orange)); }

.sw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw button { width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--line); padding: 0; }
.sw button.on { outline: 2px solid var(--amber); outline-offset: 2px; }
.sw input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; }
.sw .auto { width: auto; padding: 0 9px; font-size: 11px; border-radius: 99px; background: var(--soft); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.seg button.on { border-color: var(--amber); background: var(--amber-soft); color: var(--orange); }
input[type=range] { width: 100%; accent-color: var(--orange); }
.toggle { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.toggle input { width: 38px; height: 22px; accent-color: var(--orange); }

.price { border-radius: 16px; padding: 14px; background: var(--amber-soft); border: 1px solid rgba(245,158,11,.35); }
.price b { font-size: 22px; display: block; }
.price small { color: var(--muted); font-size: 12px; }
.qty { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qty button { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px; text-align: left; }
.qty button.on { border-color: var(--amber); background: var(--amber-soft); }
.qty b { display: block; font-size: 15px; }
.qty small { font-size: 11px; color: var(--muted); }
.terms { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; padding-left: 18px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); text-align: left; padding: 0; }
.card .im { height: 120px; display: grid; place-items: center; background: var(--stage); }
.card .im img { max-height: 112px; max-width: 100%; }
.card .tx { padding: 8px 10px; }
.card b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card small { font-size: 11px; color: var(--muted); }
.card.new { display: grid; place-items: center; min-height: 170px; border-style: dashed; color: var(--muted); font-weight: 700; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.pill.sent { background: rgba(245,158,11,.15); color: var(--warn); }
.pill.changes { background: rgba(220,38,38,.12); color: var(--bad); }
.pill.approved, .pill.ordered { background: rgba(22,163,74,.15); color: var(--ok); }

.hist { display: flex; flex-direction: column; gap: 6px; }
.hist button { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 6px; text-align: left; font-size: 12px; }
.hist img { width: 34px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.msg { border-left: 3px solid var(--line); padding: 4px 10px; font-size: 12.5px; }
.msg.change { border-color: var(--bad); }
.msg.approval { border-color: var(--ok); }
.msg small { display: block; color: var(--muted); font-size: 11px; }

.stage-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.stage-toggles { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.float-btn { border: 0; border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.9); color: #262626; backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
html.dark .float-btn { background: rgba(23,23,23,.85); color: #f5f5f5; }
.float-btn.on { background: linear-gradient(90deg, var(--amber), var(--orange)); color: #fff; }
.cup3d { flex: 1; min-height: 0; }
.cup3d canvas { display: block; }
.sheet { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px 90px; min-height: 0; }
.sheet canvas { max-width: 100%; max-height: 100%; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.legend { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; } .legend .c { background: #00ade0; } .legend .y { background: #ffe600; } .legend .r { background: #ed1c24; }
.proof-note { position: absolute; top: 54px; right: 14px; margin: 0; font-size: 11px; padding: 6px 10px; border-radius: 9px; background: rgba(0,0,0,.55); color: #fff; z-index: 3; }
.stage-bar { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; align-items: center; z-index: 3; flex-wrap: wrap; padding: 0 12px; }
.sizes { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
html.dark .sizes { background: rgba(23,23,23,.85); }
.sizes button { border: 0; background: transparent; border-radius: 9px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sizes button.on { background: linear-gradient(90deg, var(--amber), var(--orange)); color: #fff; }

.toast { position: fixed; left: 0; right: 0; bottom: 20px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: #111; color: #fff; z-index: 50; font-size: 14px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 99px; animation: s .7s linear infinite; vertical-align: -2px; }
@keyframes s { to { transform: rotate(360deg); } }
.fade { animation: f .25s ease-out; }
@keyframes f { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 820px) {
  .shell { flex-direction: column-reverse; height: auto; min-height: 100dvh; }
  .side { width: 100%; min-width: 0; max-width: none; border-right: 0; }
  .stage { height: 56vh; flex: none; }
  .panel { overflow: visible; }
}
