/* ========================================
   Puding Sedot Kekinian — Main Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg: #fff7f1;
  --card: #fff;
  --ink: #3b1f14;
  --muted: #8a6b5e;
  --line: #f1dfd4;
  --pink: #ff5c8a;
  --pink-2: #ff8fb0;
  --pink-soft: #ffe6ee;
  --choco: #5a2e1f;
  --cream: #fff1d6;
  --matcha: #6fb34c;
  --matcha-soft: #e8f6dd;
  --mango: #ffb703;
  --mango-soft: #fff4d1;
  --sky: #e6f4ff;
  --shopee: #ee4d2d;
  --radius: 22px;
  --head: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
}

/* --- Base Reset & Globals --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font: 15px/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background-image:
    radial-gradient(ellipse 600px 500px at 10% 20%, #ffe6ee44 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 80% 60%, #fff4d144 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 90%, #e8f6dd44 0%, transparent 70%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--head);
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 19px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

p {
  margin: 0;
}

/* --- Skip Link --- */
.skip {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--pink);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  transform: translateY(-100%);
  transition: transform 0.2s;
}

.skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--choco);
}

/* --- Shell Layout --- */
.shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

/* --- Sidebar --- */
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #fffdfb;
  overflow-y: auto;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
}

/* --- Main & Content --- */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 32px 40px;
  width: 100%;
}

/* --- Brand --- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--pink), var(--mango));
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 4px 12px #ff5c8a30;
  flex-shrink: 0;
}

.brand b {
  font-family: var(--head);
  color: var(--choco);
  font-size: 20px;
  display: block;
  line-height: 1.15;
}

.brand em {
  font-style: normal;
  color: var(--pink);
  font-weight: 600;
  font-size: 15px;
  display: block;
  line-height: 1.15;
}

.brand.small .logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 20px;
}

.brand.small b {
  font-size: 16px;
}

.brand.small em {
  font-size: 12px;
}

/* --- Navigation --- */
.nav-group {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.nav-group small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b9998b;
  font-size: 10px;
  font-weight: 800;
  padding: 10px 12px 4px;
}

.nav-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s;
}

.nav-group a span {
  font-size: 17px;
}

.nav-group a:hover {
  background: var(--pink-soft);
}

.nav-group a.on {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 12px #ff5c8a40;
}

/* --- Top Bar (Mobile) --- */
.top {
  display: none;
}

/* --- Bottom Tab Bar (Mobile) --- */
.tabbar {
  display: none;
}

/* --- Drawer (Mobile) --- */
.drawer {
  display: none;
}

.drawer-in {
  background: #fff;
  width: min(300px, 85vw);
  height: 100%;
  padding: 16px;
  display: grid;
  align-content: start;
  overflow-y: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  transition: transform 0.12s;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--pink), #ff7ea8);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 4px 14px #ff5c8a35;
  text-shadow: 0 1px 2px #00000015;
}

.btn.ghost {
  background: #fff;
}

.btn.big {
  border-radius: 16px;
  min-height: 54px;
  padding: 12px 24px;
  font-size: 16px;
}

.btn.small {
  border-radius: 11px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.btn.shopee {
  background: var(--shopee);
  color: #fff;
  border-color: var(--shopee);
}

.btn.canva {
  background: linear-gradient(135deg, #00c4cc, #7d2ae8);
  color: #fff;
  border: 0;
}

.btn.wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 18px;
  padding: 24px;
  box-shadow: 0 2px 8px #3b1f1408;
}

/* --- Utility Classes --- */
.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.row.between {
  justify-content: space-between;
}

.row.center {
  justify-content: center;
}

.col {
  display: grid;
  gap: 10px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.mt {
  margin-top: 22px;
}

.accent {
  color: var(--pink);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  display: inline-block;
}

.lead {
  color: var(--muted);
  max-width: 720px;
  margin-top: 10px;
  font-size: 16px;
}

.head {
  margin-bottom: 22px;
}

.member {
  color: #3c8a26;
  background: var(--matcha-soft);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.link {
  color: var(--pink);
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* --- Pills & Badges --- */
.pill {
  color: var(--pink);
  background: #fff;
  border: 1px solid #ffd0de;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.badge {
  background: var(--pink-soft);
  color: var(--pink);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
}

/* --- Progress Bar --- */
.bar {
  background: #f6e4da;
  border-radius: 10px;
  height: 10px;
  margin: 10px 0 4px;
  overflow: hidden;
}

.bar span {
  display: block;
  background: linear-gradient(90deg, var(--pink), var(--mango));
  border-radius: 10px;
  height: 100%;
  transition: width 0.3s;
}

/* --- Notes --- */
.note {
  background: var(--cream);
  border: 1px dashed #f2c98f;
  border-radius: 14px;
  margin: 12px 0;
  padding: 12px 16px;
  font-size: 14px;
}

.note.warn {
  background: var(--mango-soft);
}

.note.good {
  background: var(--matcha-soft);
  border-color: #a9d68d;
}

.note.bad {
  background: #ffe9e6;
  border-color: #f4a99c;
}

/* --- Chips & Segments --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chips button {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chips button.on {
  background: var(--choco);
  border-color: var(--choco);
  color: #fff;
}

.seg {
  background: #fbeee6;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
}

.seg button {
  background: none;
  border: 0;
  border-radius: 10px;
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, box-shadow 0.15s;
}

.seg button[aria-pressed="true"] {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 2px 8px #3b1f1410;
}

/* --- Inputs --- */
.inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

label {
  color: #6d4c3f;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

input, select {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s;
}

input:focus, select:focus {
  border-color: var(--pink);
  outline: none;
}

.range {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

.range input {
  accent-color: var(--pink);
  border: 0;
  height: 28px;
  width: 100%;
  padding: 0;
}

.ticks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

/* --- Stats Grid --- */
.stats4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.stats4 > div {
  border: 1px solid var(--line);
  background: #fff8f3;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 2px;
}

.stats4 small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.stats4 b {
  font-family: var(--head);
  color: var(--choco);
  font-size: 22px;
}

.stats4.two {
  grid-template-columns: repeat(2, 1fr);
}

.stats4.one {
  grid-template-columns: 1fr;
}

.stats4 .good {
  background: var(--matcha-soft);
  border-color: #bfe3a8;
}

.stats4 .good b {
  color: #3c8a26;
}

.stats4 .warn {
  background: var(--mango-soft);
}

.stats4 .big {
  background: linear-gradient(135deg, var(--pink), #ff8c42);
  border: 0;
  color: #fff;
}

.stats4 .big small {
  color: #ffffffcc;
}

.stats4 .big b {
  color: #fff;
}

/* --- Grids --- */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid2.tight {
  gap: 12px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* --- Checks List --- */
.checks {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  list-style: none;
  padding: 0;
}

.checks li {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checks li::before {
  content: "✓";
  color: #fff;
  background: var(--matcha);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--choco);
  color: #fff;
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  z-index: 80;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #ffe6ee 0%, #fff4d1 50%, #e8f6dd 100%);
  border: 1px solid #ffd6e2;
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: var(--choco);
}

.hero h1 em {
  color: var(--pink);
  font-style: normal;
}

.hero-copy > p {
  color: #7b5a4d;
  font-size: 16px;
}

.hero .row {
  margin-top: 22px;
}

.hint {
  color: var(--muted);
  margin-top: 14px;
  font-size: 13px;
}

/* --- Hero Art (Bottle Display) --- */
.hero-art {
  height: 320px;
  position: relative;
}

.bottle {
  background-size: cover;
  background-position: center;
  border: 5px solid #fff;
  border-radius: 28px;
  position: absolute;
  box-shadow: 0 8px 24px #3b1f1418;
}

.bottle.b0 {
  width: 150px;
  height: 250px;
  top: 40px;
  left: 4%;
  transform: rotate(-8deg);
}

.bottle.b1 {
  width: 170px;
  height: 280px;
  top: 0;
  left: 30%;
  z-index: 2;
  transform: rotate(3deg);
}

.bottle.b2 {
  width: 150px;
  height: 250px;
  top: 46px;
  right: 4%;
  transform: rotate(9deg);
}

.bottle.b3 {
  display: none;
}

.sparkle {
  position: absolute;
  font-size: 26px;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}

.s1 {
  top: 10px;
  left: 0;
}

.s2 {
  top: 0;
  right: 2%;
  animation-delay: 0.8s;
}

.s3 {
  bottom: 0;
  left: 45%;
  animation-delay: 1.6s;
}

@keyframes float {
  50% {
    transform: translateY(-8px) rotate(10deg);
  }
}

/* --- Marquee --- */
.marquee {
  background: var(--choco);
  color: #ffe7c2;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.marquee div {
  display: inline-block;
  padding: 7px 0;
  animation: marq 40s linear infinite;
}

@keyframes marq {
  to {
    transform: translate(-50%);
  }
}

/* --- Tiles Navigation --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.tiles button {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.tiles button span {
  font-size: 26px;
}

.tiles button:hover {
  border-color: var(--pink-2);
  transform: translateY(-2px);
}

/* --- Shelf Items --- */
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.shelf-item {
  border: 1px solid var(--line);
  background: #fffaf6;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.shelf-item small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 800;
}

.shelf-item p {
  color: var(--muted);
  font-size: 13px;
}

/* --- Ebook Section --- */
.ebook {
  background: linear-gradient(135deg, #fff, var(--pink-soft));
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 20px;
}

/* --- Drive Banner --- */
.banner-drive {
  background: linear-gradient(135deg, var(--choco), #7d4530);
  color: #fff;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.banner-drive span {
  color: #ffd9c4;
  font-size: 13px;
}

/* --- Video Grid & Cards --- */
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.vcard {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  box-shadow: 0 2px 8px #3b1f1408;
}

.vcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #3b1f1414;
}

.vthumb {
  aspect-ratio: 4/5;
  background-color: var(--c, var(--line));
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}

.vthumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
  display: block;
}

.vcard:hover .vthumb img {
  transform: scale(1.05);
}

.vnum {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--choco);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.vdur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #000000a0;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.vdone {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--matcha);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.vplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: #ffffffe6;
  border-radius: 50%;
  color: var(--pink);
  font-size: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px #3b1f1420;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s;
}

.vplay:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.vbody {
  border-top: 5px solid var(--c, var(--line));
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
  align-content: start;
}

.vbody p {
  color: var(--muted);
  font-size: 13px;
}

.vcat {
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 800;
}

/* --- Video Player Dialog --- */
dialog {
  background: none;
  border: 0;
  max-width: none;
  max-height: none;
  padding: 0;
}

dialog::backdrop {
  backdrop-filter: blur(4px);
  background: #2b130bcc;
}

.player-in {
  background: #fff;
  border-radius: 26px;
  display: grid;
  grid-template-columns: auto 380px;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

.pv {
  background: #000;
  display: grid;
  place-items: center;
}

.pv video {
  max-width: 100%;
  max-height: calc(100vh - 24px);
}

.pinfo {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 20px;
  overflow-y: auto;
}

/* --- Tags --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
  list-style: none;
  padding: 0;
}

.tags li {
  background: var(--pink-soft);
  color: #c43262;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.tags.soft li {
  color: #7b5a4d;
  background: #f4ece6;
}

/* --- Lightbox --- */
.lightbox img {
  background: #fff;
  border-radius: 18px;
  max-width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 110px);
  margin: auto;
  display: block;
}

/* --- Timer / Clock --- */
.clock {
  font-family: var(--head);
  text-align: center;
  color: var(--choco);
  font-size: 72px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 10px 0;
}

.clock.done {
  color: var(--pink);
  animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.4;
  }
}

/* --- Accordion --- */
.acc {
  display: grid;
  gap: 10px;
}

.acc-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}

.acc-item > button {
  text-align: left;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
  cursor: pointer;
}

.acc-item .num {
  background: var(--pink-soft);
  width: 34px;
  height: 34px;
  color: var(--pink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 14px;
}

.acc-item .tag {
  background: var(--mango-soft);
  color: #b07400;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.chev {
  color: var(--muted);
  transition: transform 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}

.acc-item.open .chev {
  transform: rotate(180deg);
}

.acc-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}

.acc-body > div {
  background: #fffaf6;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.acc-body .tip {
  background: var(--matcha-soft);
}

/* --- Packages --- */
.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pack {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pack-emoji {
  font-size: 46px;
}

.facts {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.facts span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

/* --- Mini Box --- */
.mini {
  background: #fffaf6;
  border-radius: 16px;
  padding: 14px 16px;
}

.mini ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

/* --- CTA Boxes --- */
.cta-box {
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.cta-box p {
  color: var(--muted);
  font-size: 13px;
}

.shopee-bg {
  background: #fff0ec;
  border: 1px solid #ffd2c6;
}

.canva-bg {
  background: #eefbfc;
  border: 1px solid #c4eef0;
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery button {
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.gallery button:hover {
  border-color: var(--pink-2);
  transform: translateY(-2px);
}

.gallery img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.gallery.tall button {
  aspect-ratio: 3/4;
  padding: 0;
  overflow: hidden;
}

.gallery.tall img {
  object-fit: cover;
}

/* --- HPP Calculator --- */
.grid-hpp {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: 18px;
}

.table {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  overflow-x: auto;
}

.tr {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 0.9fr 34px;
  align-items: center;
  gap: 6px;
  min-width: 560px;
}

.tr.th span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.tr input {
  padding: 8px 9px;
  font-size: 13px;
}

.result {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 16px;
}

.big-num {
  font-family: var(--head);
  color: var(--choco);
  font-size: 40px;
  font-weight: 700;
}

.big-num small {
  color: var(--muted);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  display: block;
}

/* --- Inline Inputs --- */
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.inline input {
  width: 90px;
}

/* --- Lane --- */
.lane small {
  font-weight: 800;
}

.lane b {
  font-family: var(--head);
  color: var(--pink);
  margin: 4px 0;
  font-size: 28px;
  display: block;
}

/* --- Form --- */
.form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

/* --- Orders List --- */
.orders {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  list-style: none;
  padding: 0;
}

.orders li {
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 12px;
  padding: 12px;
  display: flex;
}

.orders li .grow {
  display: grid;
  gap: 2px;
}

.orders span {
  font-size: 13px;
}

.orders small {
  color: var(--muted);
  font-size: 11px;
}

.orders .right {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.status {
  background: var(--mango-soft);
  color: #b07400;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
}

.status.paid {
  background: var(--matcha-soft);
  color: #3c8a26;
}

/* --- Generated Content --- */
.gen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gen-item {
  border: 1px solid var(--line);
  background: #fffaf6;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.gen-item pre {
  white-space: pre-wrap;
  max-height: 260px;
  margin: 0;
  font: 13px/1.55 "Plus Jakarta Sans", system-ui, sans-serif;
  overflow-y: auto;
}

/* --- Plan Checklist --- */
.plan {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  list-style: none;
  padding: 0;
}

.plan li label {
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  transition: background 0.15s, border-color 0.15s;
}

.plan li.on label {
  background: var(--matcha-soft);
  border-color: #bfe3a8;
}

.plan input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--matcha);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan span {
  display: grid;
  gap: 2px;
}

.plan small {
  color: var(--muted);
  font-size: 13px;
}

/* --- Close Button --- */
.x {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  flex-shrink: 0;
  transition: background 0.15s;
}

.x:hover {
  background: #faf0ea;
}

/* --- Footer --- */
.foot {
  text-align: center;
  color: var(--muted);
  padding: 18px 16px 26px;
  font-size: 12px;
}

/* --- Empty State --- */
.empty {
  text-align: center;
  padding: 30px;
}

/* --- Section --- */
.section {
  margin: 26px 0 12px;
}


/* ============================
   Responsive Breakpoints
   ============================ */

/* ---- <= 1100px ---- */
@media (max-width: 1100px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .packs,
  .grid3,
  .grid-hpp {
    grid-template-columns: 1fr;
  }

  .result {
    position: static;
  }
}

/* ---- <= 900px (Mobile) ---- */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .top {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: #fffdfbee;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }

  .menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--ink);
  }

  .content {
    padding: 18px 14px 100px;
  }

  .foot {
    padding-bottom: 96px;
  }

  .tabbar {
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    grid-template-columns: repeat(5, 1fr);
    z-index: 30;
    backdrop-filter: blur(10px);
    background: #fffdfbf5;
    border-top: 1px solid var(--line);
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
  }

  .tabbar button {
    display: grid;
    justify-items: center;
    gap: 1px;
    font-size: 11px;
    font-weight: 700;
    background: none;
    border: 0;
    padding: 6px 4px;
    color: var(--muted);
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    margin: 0 4px;
    transition: background 0.15s, color 0.15s;
  }

  .tabbar button span {
    font-size: 20px;
  }

  .tabbar button.on {
    color: var(--pink);
    background: var(--pink-soft);
  }

  .drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #2b130b99;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .drawer.open {
    visibility: visible;
    opacity: 1;
  }

  .drawer-in {
    transform: translateX(-100%);
    transition: transform 0.25s;
  }

  .drawer.open .drawer-in {
    transform: translateX(0);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-art {
    height: 240px;
  }

  .bottle.b0 {
    width: 110px;
    height: 190px;
    top: 30px;
  }

  .bottle.b1 {
    width: 130px;
    height: 210px;
    top: 0;
  }

  .bottle.b2 {
    width: 110px;
    height: 190px;
    top: 34px;
  }

  .grid2,
  .ebook,
  .gen,
  .shelf,
  .acc-body {
    grid-template-columns: 1fr;
  }

  .stats4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-in {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .pv video {
    width: 100%;
    max-height: 62vh;
  }

  .toast {
    bottom: 88px;
  }
}

/* ---- <= 520px ---- */
@media (max-width: 520px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero .btn.big {
    width: 100%;
  }

  .clock {
    font-size: 56px;
  }

  .vgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .vbody {
    padding: 10px 12px 12px;
  }

  .vbody h3 {
    font-size: 15px;
  }

  .vbody p {
    display: none;
  }

  .vplay {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
