/* Rekast "Electric", refined: near-black surfaces, hairlines, one volt accent.
   Large type and one main action per screen for users aged 60+. */
:root {
  --night: #0A0A0B;      /* page */
  --surface: #141416;    /* cards and list groups */
  --surface-2: #1C1C1F;  /* image placeholders */
  --hairline: #2A2A2F;   /* borders and dividers */
  --edge: #3A3A40;       /* outline buttons */
  --ink: #F4F4F5;
  --ink-2: #A1A1AA;      /* secondary text */
  --muted: #8E8E96;      /* labels and chevrons */
  --volt: #C8FF2E;       /* the one accent: the main action and small tags */
  --volt-press: #B3E626;
  --volt-wash: #1C220E;  /* selected background */
  --on-volt: #0A0A0B;
  --warn: #FF8A80;
  --warn-edge: #5A2A2A;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--ink); color-scheme: dark; }
body { font-family: 'IBM Plex Sans Thai Looped', 'Noto Sans Thai', system-ui, sans-serif; font-size: 20px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
h1, h2, .btn, .tab, .row, .card-title, .chip, .item .t { font-family: 'IBM Plex Sans Thai', 'IBM Plex Sans Thai Looped', sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 16px 20px 40px; }
h1 { font-size: 28px; font-weight: 600; margin: 4px 0 12px; line-height: 1.3; }
h2 { font-size: 21px; font-weight: 600; margin: 24px 0 10px; }
p { margin: 8px 0; }
.quiet { color: var(--ink-2); font-size: 17px; }
.label { color: var(--muted); font-size: 15px; margin: 22px 0 8px; }
.center { text-align: center; padding: 48px 0 24px; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: 'Geist', sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -0.05em; }
.coins { display: flex; align-items: center; gap: 7px; border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 13px; font-size: 16px; color: var(--ink-2); }
.coins b { color: var(--ink); font-family: 'Geist', sans-serif; font-weight: 600; font-size: 17px; }
.coins svg { color: var(--volt); }
.hello { color: var(--ink-2); font-size: 17px; }

/* Buttons: one volt main action per screen; everything else is an outline. */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin: 10px 0; padding: 10px 18px;
  border: 1px solid var(--edge); border-radius: 10px; background: transparent; color: var(--ink);
  font: inherit; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 20px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--volt); border-color: var(--volt); color: var(--on-volt); font-weight: 600; }
.btn.primary:active { background: var(--volt-press); }
.btn:disabled { opacity: .4; }
.btn .sub { font-size: 16px; font-weight: 400; }
.btn svg { flex: none; }

/* Grouped list rows, like a banking app. */
.menu { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 0 16px; border: 0;
  border-bottom: 1px solid var(--hairline); background: none; color: var(--ink); font-size: 20px; font-weight: 500; text-align: left; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row > span { flex: 1; }
.row svg { flex: none; color: var(--ink-2); }
.row .chev { display: flex; font-style: normal; }
.row .chev svg { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; }
.panel .chip { margin-bottom: 10px; }
.panel .btn { margin: 14px 0 0; }
.card-title { font-size: 21px; font-weight: 600; }
.chip { display: inline-block; font-size: 14px; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: 6px; background: var(--volt); color: var(--on-volt); }
.chip.line { background: rgba(10, 10, 11, .6); color: var(--ink); border: 1px solid var(--edge); font-weight: 500; }

.balance { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 12px 16px; margin: 8px 0 16px; color: var(--ink-2); font-size: 18px; }
.balance b { color: var(--ink); font-family: 'Geist', 'IBM Plex Sans Thai', sans-serif; font-size: 24px; font-weight: 600; }
.banner { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-weight: 500; }
.error { background: var(--surface); border: 1px solid var(--warn-edge); color: var(--warn); border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-weight: 500; }

/* Gallery */
.titlebar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; }
.tab { flex: none; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--hairline); background: none; color: var(--ink); font-size: 17px; font-weight: 500; cursor: pointer; }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--night); font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.tile { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .chip { position: absolute; top: 8px; left: 8px; font-size: 13px; padding: 1px 8px; border-radius: 5px; }
.thumb .title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; background: linear-gradient(rgba(10, 10, 11, 0), rgba(10, 10, 11, .85));
  font-family: 'IBM Plex Sans Thai', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.3; }
.tile .meta { font-size: 15px; color: var(--ink-2); }

/* Template example: the photo sent, an arrow, the result */
.example { display: grid; grid-template-columns: 1fr auto 2fr; align-items: center; gap: 8px; margin: 4px 0 8px; }
.example figure { margin: 0; }
.example img, .example video { width: 100%; display: block; border-radius: 12px; background: var(--surface-2); object-fit: cover; }
.example .before img { aspect-ratio: 3 / 4; }
.example figcaption { margin-top: 6px; text-align: center; font-size: 15px; color: var(--ink-2); }
.example .arrow { display: flex; color: var(--volt); }
.example.single { display: block; }
.example.single img, .example.single video { max-height: 60vh; }

/* Making a picture or clip */
.hero { width: 100%; border-radius: 14px; background: var(--surface-2); display: block; max-height: 60vh; object-fit: cover; }
.slots { display: grid; gap: 12px; }
.slot { border: 1px dashed var(--edge); border-radius: 14px; padding: 14px; text-align: center; }
.slot.done { border: 2px solid var(--volt); }
.slot img { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 8px; }
.slot .btn { min-height: 54px; margin: 8px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 19px; margin: 14px 0; }
.check input { width: 26px; height: 26px; flex: none; margin-top: 3px; accent-color: var(--volt); }
input[type=text] { width: 100%; font: inherit; font-family: 'Geist', 'IBM Plex Sans Thai', sans-serif; font-size: 24px; padding: 14px;
  border: 1px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
input[type=text]:focus { outline: none; border-color: var(--volt); }

/* Top-up */
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amount { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 17px; text-align: center; cursor: pointer; }
.amount b { display: block; font-family: 'Geist', 'IBM Plex Sans Thai', sans-serif; font-size: 28px; font-weight: 600; color: var(--ink); }
.amount.on { border: 2px solid var(--volt); background: var(--volt-wash); padding: 13px; }
.methods .btn { justify-content: flex-start; }
/* QR codes need a white background to scan. */
.qr { width: 100%; max-width: 320px; display: block; margin: 12px auto; background: #fff; padding: 12px; border-radius: 14px; }

/* My creations */
.list { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.item { display: flex; gap: 14px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--hairline);
  background: none; color: var(--ink); font: inherit; text-align: left; }
.item:last-child { border-bottom: 0; }
.item img { width: 56px; height: 74px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.item .t { font-weight: 600; }
.ok { color: var(--volt); font-weight: 600; }

/* Status screens */
.status-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--volt); background: var(--volt-wash);
  color: var(--volt); display: flex; align-items: center; justify-content: center; }
.spinner { width: 44px; height: 44px; border: 3px solid var(--hairline); border-top-color: var(--volt); border-radius: 50%; margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; font: inherit; font-size: 18px; color: var(--ink-2); padding: 6px 0; margin-bottom: 4px; cursor: pointer; }
