/* ============================================================
   Fabiss — Mockup design system
   Tokens mirror CLAUDE.md §8 (light mode only).
   ============================================================ */

:root {
  /* Brand */
  --bg: #FFFFFF;
  --bg-secondary: #F2E8DA;
  --brown: #402005;
  --brown-soft: #6B4A2B;
  --cream: #F2E8DA;
  --cream-deep: #E8D9C4;

  /* Vivid accents */
  --primary: #3E7C47;
  --primary-dark: #2F6235;
  --primary-light: #D6EAD9;
  --accent: #C8761E;
  --accent-bg: #FBEAD3;

  /* Text */
  --text: #2B1A0C;
  --text-secondary: #5A4636;
  --text-muted: #8A7A6A;
  --border: #E2D6C5;
  --border-light: #EFE7DA;

  /* Status */
  --success: #2F7D12;
  --success-bg: #E3F2D6;
  --danger: #B23A2E;
  --danger-bg: #F7E2DF;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-2xl: 22px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(64, 32, 5, .06);
  --shadow-md: 0 6px 18px rgba(64, 32, 5, .10);
  --shadow-lg: 0 16px 40px rgba(64, 32, 5, .16);

  --font: "Nunito", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: var(--font);
  color: var(--text);
  background: #EFE6DA;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, #F6EFE4 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #EADDC9 0%, transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   Top toolbar (mockup chrome — not part of the app UI)
   ============================================================ */
.toolbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.toolbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brown); }
.toolbar .brand .logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brown); color: #fff; font-size: 16px;
}
.toolbar .brand small { display: block; font-weight: 600; color: var(--text-muted); font-size: 11px; }
.toolbar .spacer { flex: 1; }
.toolbar .seg { display: inline-flex; background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-full); padding: 3px; }
.toolbar .seg button {
  border: 0; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700;
  color: var(--text-secondary); padding: 7px 16px; border-radius: var(--r-full); font-size: 13px;
}
.toolbar .seg button.active { background: var(--brown); color: #fff; box-shadow: var(--shadow-sm); }
.toolbar .hint { font-size: 12px; color: var(--text-muted); }
.toolbar select {
  font-family: inherit; font-weight: 700; color: var(--brown); font-size: 13px;
  border: 1px solid var(--border); background: #fff; border-radius: var(--r-full);
  padding: 8px 14px; cursor: pointer; max-width: 230px;
}

/* ============================================================
   Stage + Phone frame
   ============================================================ */
.stage { display: grid; place-items: center; padding: 30px 16px 60px; min-height: calc(100vh - 56px); }

.device {
  width: 390px; height: 844px; position: relative; flex: none;
  background: #1c130a; border-radius: 54px; padding: 13px;
  box-shadow: var(--shadow-lg), 0 0 0 2px #2a1c0e inset;
}
.device .notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 30px; background: #1c130a; border-radius: 0 0 18px 18px; z-index: 30;
}
.screen-viewport {
  width: 100%; height: 100%; background: var(--bg); border-radius: 42px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}

/* Status bar (iOS-style) */
.statusbar {
  height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 30px; font-size: 14px; font-weight: 800; color: var(--text); flex: none;
  position: relative; z-index: 20;
}
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.statusbar .icons svg { width: 17px; height: 17px; }

/* Each screen */
.screen { display: none; flex: 1; min-height: 0; flex-direction: column; }
.screen.active { display: flex; }
.screen-body { flex: 1; overflow-y: auto; overflow-x: hidden; }
.screen-body::-webkit-scrollbar { width: 0; }
.pad { padding: 4px 20px 24px; }

/* ============================================================
   App header (in-screen)
   ============================================================ */
.appbar { display: flex; align-items: center; gap: 12px; padding: 6px 18px 12px; }
.appbar .iconbtn { background: var(--cream); }
.appbar h1 { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.2px; }
.appbar h1 small { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.appbar .spacer { flex: 1; }

.iconbtn {
  width: 40px; height: 40px; border-radius: var(--r-full); border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text);
  flex: none; transition: transform .08s ease;
}
.iconbtn:active { transform: scale(.93); }
.iconbtn svg { width: 20px; height: 20px; }

/* Greeting header (home) */
.greet { padding: 6px 20px 8px; display: flex; align-items: center; gap: 12px; }
.greet .hello { flex: 1; }
.greet .hello span { color: var(--text-muted); font-weight: 700; font-size: 14px; }
.greet .hello h2 { font-size: 23px; font-weight: 800; color: var(--text); letter-spacing: -.4px; }
.avatar {
  width: 48px; height: 48px; border-radius: var(--r-full); background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; overflow: hidden;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Cards & primitives
   ============================================================ */
.card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: 16px;
}
.card.tight { padding: 13px; }
.section-title { font-size: 16px; font-weight: 800; color: var(--text); margin: 18px 0 10px; letter-spacing: -.2px; }
.section-title.row { display: flex; align-items: center; justify-content: space-between; }
.section-title .link { font-size: 13px; font-weight: 700; color: var(--primary); }
.muted { color: var(--text-muted); }
.tiny { font-size: 12px; }

/* Hero/active booking card */
.hero-card {
  border-radius: var(--r-2xl); padding: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 12px 26px rgba(47,98,53,.30);
}
.hero-card .pawmark { position: absolute; right: -16px; bottom: -22px; font-size: 110px; opacity: .12; }
.hero-card .eyebrow { font-size: 12px; font-weight: 800; opacity: .92; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .6px; }
.hero-card h3 { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.hero-card .meta { font-size: 13px; opacity: .92; font-weight: 600; }
.hero-card .row { display: flex; gap: 8px; margin-top: 14px; }
.hero-card .pill {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-full); padding: 7px 12px; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(4px);
}

/* Cream note card */
.note {
  background: var(--accent-bg); border: 1px solid #F0D8B4; border-radius: var(--r-lg);
  padding: 13px 14px; display: flex; gap: 10px; align-items: flex-start;
}
.note .ico { color: var(--accent); flex: none; margin-top: 1px; }
.note b { color: var(--brown); }
.note p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Quick-actions grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.qa {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .08s ease;
}
.qa:active { transform: scale(.97); }
.qa .ic { width: 42px; height: 42px; border-radius: var(--r-md); background: #fff; display: grid; place-items: center; color: var(--primary); box-shadow: var(--shadow-sm); }
.qa.amber .ic { color: var(--accent); }
.qa .lbl { font-weight: 800; font-size: 14px; color: var(--text); }
.qa .sub { font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-top: -4px; }

/* List rows */
.list { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 13px; cursor: pointer; transition: transform .08s ease;
}
.row-item:active { transform: scale(.985); }
.row-item .thumb {
  width: 46px; height: 46px; border-radius: var(--r-md); background: var(--cream); display: grid; place-items: center;
  color: var(--brown-soft); flex: none; overflow: hidden;
}
.row-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .grow b { font-size: 15px; font-weight: 800; display: block; }
.row-item .grow span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.row-item .chev { color: var(--text-muted); }

/* Pills / badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-full); }
.badge.green { background: var(--primary-light); color: var(--primary-dark); }
.badge.amber { background: var(--accent-bg); color: var(--accent); }
.badge.cream { background: var(--cream); color: var(--brown-soft); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.badge.outline { background: #fff; border: 1px solid var(--border); color: var(--text-secondary); }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  border: 0; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 16px;
  padding: 16px; border-radius: var(--r-lg); transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(62,124,71,.30); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.dark { background: var(--brown); color: #fff; }
.btn.outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn.ghost { background: var(--cream); color: var(--brown); }
.btn.sm { padding: 11px 14px; font-size: 14px; width: auto; }
.btn.block { width: 100%; }
.btn svg { width: 19px; height: 19px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* Sticky footer CTA inside screen */
.footer-cta { padding: 12px 20px 18px; border-top: 1px solid var(--border-light); background: #fff; }
.footer-cta .summary { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.footer-cta .summary .price { font-size: 22px; font-weight: 800; color: var(--brown); }
.footer-cta .summary .price small { font-size: 12px; color: var(--text-muted); font-weight: 700; }

/* Inputs */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--text-secondary); margin-bottom: 6px; }
.input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 14px;
  font-family: inherit; font-size: 15px; color: var(--text); background: #fff;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--primary); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 19px; height: 19px; }
.input-icon .input { padding-left: 44px; }

/* Selectable option cards (radio) */
.opt {
  display: flex; align-items: center; gap: 13px; border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 14px; background: #fff; cursor: pointer; transition: all .12s ease;
}
.opt.sel { border-color: var(--primary); background: #FBFDFB; box-shadow: 0 0 0 3px var(--primary-light); }
.opt .thumb { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--cream); display: grid; place-items: center; color: var(--brown-soft); overflow: hidden; flex: none; }
.opt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.opt .grow { flex: 1; }
.opt .grow b { font-size: 15px; font-weight: 800; display: block; }
.opt .grow span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.opt .radio { width: 24px; height: 24px; border-radius: var(--r-full); border: 2px solid var(--border); flex: none; display: grid; place-items: center; }
.opt.sel .radio { border-color: var(--primary); background: var(--primary); color: #fff; }
.opt.sel .radio svg { width: 14px; height: 14px; }
.opt .radio svg { display: none; }
.opt.sel .radio svg { display: block; }

/* Divider */
.hr { height: 1px; background: var(--border-light); margin: 14px 0; border: 0; }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.kv span { color: var(--text-secondary); font-weight: 600; }
.kv b { color: var(--text); font-weight: 800; }
.kv.total b, .kv.total span { font-size: 17px; color: var(--brown); }

/* ============================================================
   Bottom tab bar
   ============================================================ */
.tabbar {
  display: flex; justify-content: space-around; align-items: center; padding: 10px 8px 26px;
  border-top: 1px solid var(--border-light); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); flex: none;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); cursor: pointer; font-size: 10.5px; font-weight: 700; flex: 1; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--primary); }
.tabbar a .dot { display: none; }

/* ============================================================
   Calendar
   ============================================================ */
.cal { background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }
.cal .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal .head b { font-weight: 800; color: var(--brown); }
.cal .dow, .cal .days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; }
.cal .dow span { font-size: 11px; font-weight: 800; color: var(--text-muted); padding-bottom: 6px; }
.cal .days .d { padding: 9px 0; font-size: 14px; font-weight: 700; color: var(--text); border-radius: var(--r-sm); position: relative; cursor: pointer; }
.cal .days .d.muted { color: #C9BBAA; }
.cal .days .d.range { background: var(--primary-light); border-radius: 0; }
.cal .days .d.start { background: var(--primary); color: #fff; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.cal .days .d.end { background: var(--primary); color: #fff; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cal .days .d.full { color: #C9BBAA; text-decoration: line-through; }

/* ============================================================
   Daily report
   ============================================================ */
.report-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-photos .ph {
  aspect-ratio: 1/1; border-radius: var(--r-lg); display: grid; place-items: center; color: var(--brown-soft);
  overflow: hidden; background: var(--cream-deep);
}
.report-photos .ph.green { background: var(--primary-light); color: var(--primary-dark); }
.report-photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.metric { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.metric:last-child { border-bottom: 0; }
.metric .mi { color: var(--text-secondary); width: 20px; display: grid; place-items: center; }
.metric .ml { flex: 1; font-weight: 700; color: var(--text-secondary); font-size: 14px; }
.metric .mv { font-weight: 800; font-size: 14px; }
.metric .mv.good { color: var(--success); }
.metric .mv.amber { color: var(--accent); }

/* Pet profile */
.pet-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); height: 120px; position: relative; }
.pet-hero .topbar { display: flex; justify-content: space-between; padding: 12px 18px; }
.pet-hero .topbar .iconbtn { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); color: #fff; }
.pet-avatar {
  width: 96px; height: 96px; border-radius: var(--r-full); border: 4px solid #fff; background: var(--cream);
  margin: -54px auto 0; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-md); position: relative; z-index: 2;
}
.pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pet-name { text-align: center; margin-top: 10px; }
.pet-name h2 { font-size: 24px; font-weight: 800; }
.pet-name span { color: var(--text-muted); font-weight: 700; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 0; }
.stat { background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 13px 8px; text-align: center; }
.stat b { display: block; font-size: 19px; font-weight: 800; color: var(--brown); }
.stat span { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.stat.vip b { color: var(--accent); }
.info-row { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border-light); border-radius: var(--r-lg); margin-bottom: 10px; background: #fff; }
.info-row .ic { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--cream); display: grid; place-items: center; color: var(--brown-soft); flex: none; }
.info-row.warn .ic { background: var(--accent-bg); color: var(--accent); }
.info-row .grow b { display: block; font-size: 14px; font-weight: 800; }
.info-row .grow span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-grid .g {
  aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; background: var(--cream-deep);
  display: grid; place-items: center; color: var(--brown-soft); position: relative;
}
.gallery-grid .g img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .g.video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 24px; background: rgba(0,0,0,.25); }

/* Video live */
.video-stage { aspect-ratio: 9/16; background: #14100b; border-radius: var(--r-lg); position: relative; overflow: hidden; display: grid; place-items: center; }
.video-stage img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-stage .live { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: var(--r-full); display: flex; align-items: center; gap: 6px; }
.video-stage .live .blink { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: blink 1.2s infinite; }
.video-stage .cam-label { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: var(--r-full); }
@keyframes blink { 50% { opacity: .25; } }

/* Tabs (segmented inside screen) */
.tabs { display: flex; gap: 6px; background: var(--cream); border-radius: var(--r-full); padding: 4px; margin: 0 20px; }
.tabs button { flex: 1; border: 0; background: transparent; font-family: inherit; font-weight: 800; font-size: 13px; color: var(--text-secondary); padding: 9px; border-radius: var(--r-full); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--brown); box-shadow: var(--shadow-sm); }

/* Signature pad */
.sigpad { border: 2px dashed var(--border); border-radius: var(--r-lg); height: 150px; display: grid; place-items: center; color: var(--text-muted); background: #FCFAF6; position: relative; }
.sigpad .sig { font-family: "Brush Script MT", cursive; font-size: 38px; color: var(--brown); transform: rotate(-4deg); }

/* Doc card */
.doc { display: flex; align-items: center; gap: 13px; border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 14px; background: #fff; margin-bottom: 10px; }
.doc .ic { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; }
.doc.ok .ic { background: var(--success-bg); color: var(--success); }
.doc.warn .ic { background: var(--accent-bg); color: var(--accent); }
.doc .grow b { display: block; font-size: 14.5px; font-weight: 800; }
.doc .grow span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* Timeline (booking detail) */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl { position: relative; padding-bottom: 16px; }
.tl::before { content: ""; position: absolute; left: -22px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--border); }
.tl.done::before { background: var(--primary); border-color: var(--primary); }
.tl.active::before { background: var(--accent); border-color: var(--accent-bg); box-shadow: 0 0 0 3px var(--accent-bg); }
.tl b { font-size: 14px; font-weight: 800; }
.tl span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* Loyalty / progress */
.progress { height: 12px; background: var(--cream); border-radius: var(--r-full); overflow: hidden; border: 1px solid var(--border); }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: var(--r-full); }
.referral { background: var(--brown); color: #fff; border-radius: var(--r-lg); padding: 16px; text-align: center; }
.referral .code { font-size: 26px; font-weight: 800; letter-spacing: 3px; margin: 8px 0; border: 2px dashed rgba(255,255,255,.4); border-radius: var(--r-md); padding: 10px; }

/* Empty social/event feed */
.event-card { border: 1px solid var(--border-light); border-radius: var(--r-lg); overflow: hidden; background: #fff; margin-bottom: 14px; }
.event-card .cover { height: 130px; background: linear-gradient(135deg, var(--accent), #E8A24A); display: grid; place-items: center; color: #fff; }
.event-card .body { padding: 13px; }
.event-card .body h4 { font-size: 15px; font-weight: 800; }
.event-card .body p { font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-top: 3px; }

/* Chat */
.chat-wrap { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.bubble { max-width: 78%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: var(--cream); color: var(--text); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.bubble .t { display: block; font-size: 10px; opacity: .7; margin-top: 4px; font-weight: 700; }
.chat-input { display: flex; gap: 8px; padding: 12px 16px 18px; border-top: 1px solid var(--border-light); }
.chat-input .input { border-radius: var(--r-full); }

/* Pay methods */
.pay { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.pay.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.pay .logo { width: 46px; height: 32px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex: none; }
.pay .grow b { font-size: 14px; font-weight: 800; }
.pay .grow span { font-size: 12px; color: var(--text-muted); }

/* Success check */
.success-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 30px; }
.success-wrap .big { width: 96px; height: 96px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin-bottom: 20px; }
.success-wrap .big svg { width: 50px; height: 50px; }
.success-wrap h2 { font-size: 24px; font-weight: 800; }
.success-wrap p { color: var(--text-muted); font-weight: 600; margin-top: 8px; line-height: 1.5; }

/* Welcome */
.welcome { height: 100%; display: flex; flex-direction: column; background: linear-gradient(160deg, #fff 0%, var(--cream) 100%); }
.welcome .top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px; }
.welcome .logo-big { width: 92px; height: 92px; border-radius: 26px; background: var(--brown); color: #fff; display: grid; place-items: center; font-size: 46px; box-shadow: var(--shadow-md); }
.welcome h1 { font-size: 30px; font-weight: 800; color: var(--brown); letter-spacing: -.5px; }
.welcome p { text-align: center; color: var(--text-secondary); font-weight: 600; line-height: 1.55; max-width: 280px; }
.welcome .bottom { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: var(--r-lg); border: 1.5px solid var(--border); background: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.social-btn.apple { background: #000; color: #fff; border-color: #000; }

/* Brand logo (wordmark) */
.brand-mark { height: 30px; width: auto; display: block; }
.logo-card { background: #fff; border-radius: var(--r-xl); padding: 18px 22px; box-shadow: var(--shadow-md); display: inline-block; }
.brand-wordmark { display: block; width: 230px; max-width: 100%; height: auto; }

/* ============================================================
   Board (overview) mode
   ============================================================ */
body.board-mode .stage { display: block; padding: 28px; }
.board { display: none; }
body.board-mode .board { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px; max-width: 1400px; margin: 0 auto; }
body.board-mode .device { display: none; }
.board-item { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; }
.board-item .mini {
  width: 250px; height: 541px; border-radius: 34px; background: #1c130a; padding: 8px;
  box-shadow: var(--shadow-md); transition: transform .15s ease, box-shadow .15s ease; overflow: hidden;
}
.board-item:hover .mini { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.board-item .mini .scaler { width: 390px; height: 844px; transform: scale(.6); transform-origin: top left; }
.board-item .mini .screen-viewport { border-radius: 26px; }
.board-item .label { font-weight: 800; color: var(--brown); font-size: 14px; }
.board-item .label small { display: block; color: var(--text-muted); font-weight: 600; font-size: 12px; }

/* Responsive */
@media (max-width: 460px) {
  .device { transform: scale(.92); }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar select { max-width: 150px; }
}
