/* Chiquita Books & Café: colours come straight from the logo */
:root {
  --slate: #3a526b; --slate-dk: #263849; --slate-lt: #e6ecf2;
  --crimson: #e11e4f; --crimson-dk: #b9123d; --crimson-lt: #fde8ee;
  --blue: #4169b3; --sun: #f9c93a; --rose: #e5357a; --green: #52a36b; --orange: #ec5a0e;
  --cream: #fbf7f1; --paper: #ffffff; --ink: #22303d; --muted: #66727f; --line: #ebe3d7;
  --radius: 14px; --shadow: 0 1px 2px rgba(34,48,61,.06), 0 6px 20px rgba(34,48,61,.07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Kaushan Script', 'Brush Script MT', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--slate-dk); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.script { font-family: var(--script); color: var(--crimson); font-weight: 400; }
.hide { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* rainbow stripe from the logo's book fan */
.fan-stripe { height: 5px; background: linear-gradient(90deg, var(--blue) 0 20%, var(--crimson) 20% 40%, var(--sun) 40% 60%, var(--rose) 60% 75%, var(--green) 75% 90%, var(--orange) 90%); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 22px;
  font-weight: 800; font-size: 15px; cursor: pointer; background: var(--crimson); color: #fff; text-decoration: none !important; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--crimson-dk); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.alt { background: var(--slate); } .btn.alt:hover { background: var(--slate-dk); }
.btn.ghost { background: transparent; color: var(--slate-dk); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--slate); background: #fff; }
.btn.light { background: #fff; color: var(--crimson); } .btn.light:hover { background: var(--crimson-lt); }
.btn.sm { padding: 7px 14px; font-size: 13.5px; }
.btn.xs { padding: 4px 10px; font-size: 12.5px; }
.btn.danger { background: #fff; color: #b42318; box-shadow: inset 0 0 0 2px #f3c7c3; } .btn.danger:hover { background: #fdecea; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--crimson); cursor: pointer; font-weight: 700; }
.linkbtn:hover { text-decoration: underline; }
label.f { display: block; font-size: 13.5px; font-weight: 800; color: var(--slate-dk); margin-bottom: 12px; }
label.f > span.h { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.in, label.f input:not([type=checkbox]):not([type=radio]), label.f select, label.f textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; font-size: 15px; }
.in:focus, label.f input:focus, label.f select:focus, label.f textarea:focus, .search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(65,105,179,.15); }
textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 8px 0; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--crimson); width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.err { color: #b42318; font-size: 14px; font-weight: 700; margin: 6px 0 10px; }
.ok { color: #1d7a45; font-size: 14px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--slate-dk); cursor: pointer; text-decoration: none !important; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--crimson)); }
.chip:hover, .chip.on { border-color: var(--c, var(--crimson)); background: color-mix(in srgb, var(--c, var(--crimson)) 9%, #fff); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px;
  background: var(--slate-lt); color: var(--slate-dk); }
.badge.red { background: var(--crimson-lt); color: var(--crimson-dk); }
.badge.sun { background: #fff4cf; color: #8a6400; }
.badge.green { background: #e3f3e8; color: #23683b; }
.badge.blue { background: #e5ecf8; color: #2c4d8c; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; border: 2px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.loading::before { content: ''; display: block; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--crimson); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.announce { background: var(--slate-dk); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; font-weight: 700; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(251,247,241,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 800; color: var(--slate-dk); font-size: 15px; text-decoration: none; }
.nav a:hover { background: #fff; }
.nav a.on { color: var(--crimson); }
.search { flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 38px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14.5px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.icons { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: transparent; color: var(--slate-dk); cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { background: #fff; }
.icon-btn .count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--crimson); color: #fff;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font-weight: 800; color: var(--slate-dk); box-shadow: inset 0 0 0 1.5px var(--line); }
.menu-btn { display: none; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 6px; min-width: 210px; z-index: 50; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--ink); font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.dropdown a:hover, .dropdown button:hover { background: var(--cream); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* ---------- avatars & covers ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c, var(--crimson)); color: #fff; font-weight: 800;
  flex: none; overflow: hidden; width: var(--s, 34px); height: var(--s, 34px); font-size: calc(var(--s, 34px) * .4); text-decoration: none !important; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 6px 10px 10px 6px; overflow: hidden; background: var(--c, var(--slate));
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 8px 18px rgba(34,48,61,.18), inset 4px 0 0 rgba(0,0,0,.12); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.gen { display: flex; flex-direction: column; justify-content: space-between; padding: 12% 11% 9%; color: #fff; height: 100%;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.18), transparent 60%), var(--c, var(--slate)); }
.gen .t { font-family: var(--serif); font-weight: 700; line-height: 1.12; font-size: var(--ts, 17px); text-shadow: 0 1px 2px rgba(0,0,0,.15); overflow-wrap: anywhere; }
.gen .a { font-size: var(--as, 11.5px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .92; position: relative; z-index: 1; }
.gen svg { position: absolute; left: 0; bottom: 0; width: 46%; opacity: .9; }
.gen .fmt { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); color: var(--slate-dk); border-radius: 999px; font-size: 10px; font-weight: 800; padding: 2px 7px; text-transform: uppercase; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .script { display: block; font-size: .62em; margin-bottom: 6px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-stack { position: relative; height: 400px; }
.hero-stack .cover { position: absolute; width: 180px; transition: transform .3s; }
.hero-stack .cover:hover { transform: translateY(-6px) rotate(0deg) !important; z-index: 5; }
.hero-fan { position: absolute; right: -60px; top: -40px; width: 520px; opacity: .1; pointer-events: none; }
.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head .more { margin-left: auto; font-weight: 800; }
.cats { display: flex; gap: 10px; flex-wrap: wrap; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.pillar .ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); margin-bottom: 12px; }
.band { background: var(--slate-dk); color: #e9eef3; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band .fan-bg { position: absolute; right: -40px; bottom: -70px; width: 360px; opacity: .22; pointer-events: none; }
.band > div { position: relative; z-index: 1; }
.band.crimson { background: linear-gradient(135deg, var(--crimson), var(--rose)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.two-col.split-a { grid-template-columns: 1.3fr 1fr; align-items: start; }
.two-col.split-b { grid-template-columns: 1fr 300px; align-items: start; margin-top: 10px; }

/* ---------- product cards ---------- */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 30px 22px; }
.bk { display: flex; flex-direction: column; gap: 10px; }
.bk .cover { transition: transform .2s; }
.bk a.cv:hover .cover { transform: translateY(-4px); }
.bk h4 { font-size: 16px; margin: 2px 0 0; line-height: 1.25; }
.bk h4 a { color: var(--slate-dk); }
.bk .by { font-size: 14px; color: var(--muted); }
.bk .by a { color: inherit; }
.bk .foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.price { font-weight: 800; color: var(--ink); }
.price s { color: var(--muted); font-weight: 600; margin-left: 5px; font-size: .9em; }
.stars { display: inline-flex; gap: 1px; color: var(--sun); font-size: 15px; letter-spacing: 1px; vertical-align: middle; }
.stars .off { color: #ddd3c4; }
.rate { display: inline-flex; gap: 2px; }
.rate button { border: 0; background: none; padding: 0 1px; font-size: 22px; cursor: pointer; color: #ddd3c4; line-height: 1; }
.rate button.on { color: var(--sun); }
.shelf-pop { position: relative; }
.shelf-btn { border: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--slate-dk); }
.shelf-btn.on { background: var(--crimson); color: #fff; box-shadow: none; }

/* ---------- shop ---------- */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 34px 0 60px; }
.fdet > summary { display: none; }
.filters h4 { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.filters a.cat { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; color: var(--slate-dk); font-weight: 700; font-size: 15px; text-decoration: none; }
.filters a.cat .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.filters a.cat:hover { background: #fff; }
.filters a.cat.on { background: #fff; color: var(--crimson); box-shadow: var(--shadow); }
.filters a.cat .n { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar select { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------- book page ---------- */
.book { display: grid; grid-template-columns: 330px 1fr; gap: 50px; padding: 40px 0; }
.book .cover { --ts: 30px; --as: 15px; }
.book h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 4px; }
.book .sub { font-size: 19px; color: var(--muted); font-family: var(--serif); font-style: italic; margin-bottom: 8px; }
.book .byline { font-size: 18px; margin-bottom: 14px; }
.buybox { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 20px 0; display: grid; gap: 14px; }
.buybox .big { font-size: 28px; font-weight: 800; }
.shelf-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.shelf-seg button { border: 1.5px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--slate-dk); display: inline-flex; gap: 6px; align-items: center; }
.shelf-seg button.on { background: var(--slate-dk); border-color: var(--slate-dk); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { border: 0; background: none; width: 34px; height: 36px; cursor: pointer; font-size: 18px; font-weight: 800; color: var(--slate-dk); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.note-card { border-left: 5px solid var(--sun); background: #fffaf0; padding: 14px 18px; border-radius: 10px; margin: 18px 0; }
.note-card b { font-family: var(--script); font-weight: 400; color: var(--crimson); font-size: 19px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14.5px; }
.details dt { color: var(--muted); font-weight: 700; }
.details dd { margin: 0; }
.review { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review .who { font-weight: 800; color: var(--slate-dk); }

/* ---------- forum ---------- */
.boards { display: grid; gap: 12px; }
.board { display: grid; grid-template-columns: 6px 1fr 90px 220px; gap: 18px; align-items: center; background: #fff; border-radius: 12px; padding: 16px 18px 16px 0; box-shadow: var(--shadow); text-decoration: none !important; color: var(--ink); }
.board .bar { align-self: stretch; background: var(--c); border-radius: 0 6px 6px 0; }
.board h3 { margin: 0 0 2px; font-size: 18px; }
.board .stat { text-align: center; font-size: 13px; color: var(--muted); }
.board .stat b { display: block; font-size: 18px; color: var(--ink); }
.board .last { font-size: 13.5px; color: var(--muted); overflow: hidden; }
.board .last b { display: block; color: var(--slate-dk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board:hover { box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.topics { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.topic { display: grid; grid-template-columns: auto 1fr 80px 130px; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.topic:first-child { border-top: 0; }
.topic:hover { background: #fffcf7; }
.topic .tt { font-weight: 800; color: var(--slate-dk); font-size: 16px; }
.topic .meta { font-size: 13px; color: var(--muted); }
.topic .n { text-align: center; font-weight: 800; }
.topic .n small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.post { display: grid; grid-template-columns: 150px 1fr; gap: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; }
.post.op { border-top: 5px solid var(--crimson); }
.post.hidden-post { opacity: .55; border: 2px dashed #e0a8a8; }
.post .who { text-align: center; font-size: 13.5px; }
.post .who a.name { display: block; font-weight: 800; color: var(--slate-dk); margin-top: 8px; }
.post .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post .pfoot { display: flex; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 8px; }
.crumbs a { color: var(--muted); font-weight: 700; }

/* ---------- profile / feed ---------- */
.prof-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 36px 0 24px; }
.counts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 12px; }
.counts div { font-size: 13px; color: var(--muted); font-weight: 700; }
.counts b { display: block; font-size: 22px; color: var(--slate-dk); font-family: var(--serif); }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 10px 0 24px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 16px; font-weight: 800; color: var(--muted); border: 0; background: none; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; text-decoration: none; font-size: 15px; }
.tabs a.on, .tabs button.on { color: var(--crimson); border-bottom-color: var(--crimson); }
.tabs .n { font-size: 12px; background: var(--slate-lt); color: var(--slate-dk); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.feed { display: grid; gap: 10px; }
.act { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.act .what { font-size: 14.5px; }
.act .what a.u { font-weight: 800; color: var(--slate-dk); }
.act .when { font-size: 12.5px; color: var(--muted); }
.act .mini { width: 38px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.member { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; }
.member b { display: block; color: var(--slate-dk); }
.goal { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.goal .barx { height: 12px; background: var(--slate-lt); border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
.goal .barx i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--orange), var(--sun)); border-radius: 6px; }
.shelf-list { display: grid; gap: 12px; }
.sh-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.sh-item .cover { --ts: 9px; --as: 7px; }
.sh-item h4 { margin: 0 0 2px; font-size: 17px; }
.sh-item .ctrl { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.sh-item select { padding: 6px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }

/* ---------- cart / checkout / orders ---------- */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 30px; padding: 34px 0 60px; align-items: start; }
.line { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.sum { display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { font-size: 20px; font-weight: 800; border-top: 2px solid var(--line); padding-top: 10px; margin-top: 4px; }
.radio-card { display: flex; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; margin-bottom: 10px; }
.radio-card.on { border-color: var(--crimson); background: #fffafb; }
.radio-card input { accent-color: var(--crimson); margin-top: 4px; }
.status { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.st-pending_payment { background: #fff4cf; color: #8a6400; }
.st-paid, .st-ready { background: #e5ecf8; color: #2c4d8c; }
.st-shipped, .st-completed { background: #e3f3e8; color: #23683b; }
.st-cancelled, .st-refunded { background: #f1f1f1; color: #666; }
.stripe-ready { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--slate-lt); font-size: 13.5px; color: var(--slate-dk); }

/* ---------- footer & admin corner ---------- */
footer.site { background: var(--slate-dk); color: #cbd5df; margin-top: 60px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 20px 30px; }
footer.site img { height: 60px; width: auto; margin-bottom: 14px; }
footer.site h4 { color: #fff; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
footer.site a { display: block; color: #cbd5df; padding: 3px 0; font-size: 14.5px; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px 70px; font-size: 13px; text-align: center; color: #93a2b1; }
.admin-corner { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  background: rgba(38,56,73,.9); color: #fff; font-weight: 800; font-size: 12.5px; padding: 8px 13px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: .75; }
.admin-corner:hover { opacity: 1; background: var(--slate-dk); }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,28,36,.55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--cream); border-radius: 18px; width: 100%; max-width: 480px; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; }
.modal.wide { max-width: 760px; }
.modal .mh { display: flex; align-items: center; gap: 12px; padding: 18px 22px 0; }
.modal .mh h3 { margin: 0; font-size: 22px; }
.modal .mh .x { margin-left: auto; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal .mb { padding: 16px 22px 22px; }
.modal .mf { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(30px); background: var(--slate-dk); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-weight: 700; z-index: 200; opacity: 0; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: #b42318; }

/* ---------- admin ---------- */
.adm { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 30px 0 60px; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 96px; align-self: start; }
.adm-nav a { padding: 9px 12px; border-radius: 10px; font-weight: 800; color: var(--slate-dk); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.adm-nav a:hover { background: #fff; }
.adm-nav a.on { background: var(--slate-dk); color: #fff; }
.adm-nav .who { font-size: 13px; color: var(--muted); padding: 0 12px 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.tile { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); border-left: 5px solid var(--c, var(--crimson)); }
.tile b { display: block; font-size: 28px; font-family: var(--serif); color: var(--slate-dk); }
.tile span { font-size: 13px; color: var(--muted); font-weight: 700; }
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 11px 12px; background: #fbf8f3; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr.off td { opacity: .5; }
table.t .cv { width: 38px; }
table.t .cover { --ts: 6px; --as: 5px; border-radius: 3px; }
table.t input.in, table.t select.in { margin: 0; padding: 6px 8px; font-size: 14px; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: #d3ccc1; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(18px); }
.cover-edit { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
.cover-edit.av-edit { grid-template-columns: 120px 1fr; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .hero .wrap, .band, .two-col, .two-col.split-a, .two-col.split-b, .book, .cart, .shop, .adm { grid-template-columns: 1fr; }
  .hero-stack { height: 300px; }
  .hero-stack .cover { width: 140px; }
  .fdet[open] { display: flex; flex-wrap: wrap; gap: 6px; }
  .filters h4 { width: 100%; margin: 6px 0 0; }
  .book .cover-col { max-width: 260px; }
  .adm-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .adm-nav .who { width: 100%; padding-bottom: 4px; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 6px 1fr 80px; }
  .board .last { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 8px; height: 64px; }
  .logo img { height: 42px; }
  .nav.open { top: 64px; }
  .search { display: none; }
  .search.mobile { display: block; max-width: none; margin: 12px 0 0; }
  .fdet > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; color: var(--slate-dk); padding: 10px 14px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); list-style: none; width: 100%; }
  .fdet > summary::-webkit-details-marker { display: none; }
  .fdet { width: 100%; }
  .fdet[open] { display: flex; flex-wrap: wrap; gap: 6px; }
  .me-btn .nm { display: none; }
  .me-btn { padding: 3px; }
  .hero { padding: 34px 0 40px; }
  .hero-stack { display: none; }
  .hero-fan { width: 320px; right: -80px; top: 20px; }
  .fdet:not([open]) > :not(summary) { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .books { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .band { padding: 26px; }
  .two, .three { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 10px; }
  .post .who { display: flex; gap: 10px; align-items: center; text-align: left; }
  .post .who a.name { margin: 0; }
  .topic { grid-template-columns: auto 1fr 54px; }
  .topic .last { display: none; }
  .board { grid-template-columns: 6px 1fr; }
  .board .stat { display: none; }
  .prof-head { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; }
  .prof-head > .av { width: 84px !important; height: 84px !important; font-size: 32px !important; }
  .counts { gap: 18px; }
  .sh-item { grid-template-columns: 54px 1fr; }
  .sh-item .ctrl { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .line { grid-template-columns: 56px 1fr; }
  .line .lq, .line .lp { grid-column: 2; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .act { grid-template-columns: auto 1fr; }
  .act .mini { display: none; }
  .cover-edit, .cover-edit.av-edit { grid-template-columns: 1fr; }
  .cover-edit > div:first-child { max-width: 160px; }
}

/* ---------- the Virtual Café ---------- */
.nav-cafe { display: inline-flex; align-items: center; gap: 6px; }
.live-n { background: var(--green); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.dot-live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(82,163,107,.6); animation: pulse 1.8s infinite; margin-right: 6px; vertical-align: middle; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(82,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(82,163,107,0); } }
.live-line { margin-top: 16px; font-size: 14.5px; color: var(--slate-dk); display: flex; align-items: center; gap: 4px; }
.cafe-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; background: linear-gradient(135deg, #fff 0%, #fff6ea 100%); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cafe-band::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--blue) 0 20%, var(--crimson) 20% 40%, var(--sun) 40% 60%, var(--rose) 60% 75%, var(--green) 75% 90%, var(--orange) 90%); }
.cafe-band h2 { margin: 6px 0 10px; }
.cafe-band .cb-text p { color: var(--muted); font-size: 17px; }
.cb-tables { display: flex; flex-wrap: wrap; gap: 8px; }
.steam { font-size: 40px; display: inline-block; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.cb-live { background: var(--cream); border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.cb-head { display: flex; align-items: center; font-size: 14px; color: var(--slate-dk); padding: 2px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.avs { display: inline-flex; } .avs .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--cream); }
.cb-more { display: block; text-align: right; font-weight: 800; margin-top: 8px; font-size: 14px; }
.msg { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 9px 6px; border-radius: 12px; }
.msg + .msg { margin-top: 2px; }
.msg:hover { background: rgba(255,255,255,.7); }
.msg.mine .mb2 .mh2 b { color: var(--crimson); }
.msg.hidden-post { opacity: .5; }
.mh2 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.mh2 b { color: var(--slate-dk); }
.mt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.share-book { display: inline-flex; gap: 10px; align-items: center; margin-top: 6px; padding: 8px 12px 8px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-size: 13.5px; max-width: 320px; }
.share-book .cover { width: 34px; flex: none; }
.share-book:hover { border-color: var(--crimson); }
.cafe { display: grid; grid-template-columns: 230px 1fr 250px; gap: 22px; padding: 26px 20px 40px; align-items: start; }
.cafe h4 { font-family: var(--sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; }
.cafe-tables, .cafe-people { position: sticky; top: 96px; }
.ctab { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; color: var(--ink); text-decoration: none !important; margin-bottom: 4px; border-left: 4px solid transparent; }
.ctab b { display: block; color: var(--slate-dk); font-size: 14.5px; }
.ctab .em { font-size: 22px; width: 30px; text-align: center; }
.ctab:hover { background: #fff; }
.ctab.on { background: #fff; box-shadow: var(--shadow); border-left-color: var(--c); }
.cafe-room { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border-top: 6px solid var(--c); }
.room-head { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fffaf3, #fff); }
.room-head h1 { font-size: 26px; margin: 0; }
.em.big { font-size: 38px; }
.chat { height: calc(100vh - 360px); min-height: 380px; overflow-y: auto; padding: 14px 16px; background: radial-gradient(circle at 100% 0, rgba(249,201,58,.08), transparent 40%), #fffdf9; }
.chat-empty { text-align: center; color: var(--muted); padding: 80px 20px; }
.composer { padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 15px; }
.composer textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(65,105,179,.15); }
.composer.guest { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attach { font-size: 13.5px; background: var(--crimson-lt); color: var(--crimson-dk); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; display: inline-block; }
.person { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none !important; position: relative; }
.person:hover { background: #fff; }
.person > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person b { color: var(--slate-dk); font-size: 14.5px; }
.person .on { position: absolute; left: 34px; top: 34px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--cream); }
.etiquette { margin-top: 16px; font-size: 13px; color: var(--muted); background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.pick { max-height: 52vh; overflow-y: auto; display: grid; gap: 6px; }
.pick-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px; cursor: pointer; }
.pick-row:hover { border-color: var(--crimson); }
@media (max-width: 1020px) {
  .cafe { grid-template-columns: 1fr; }
  .cafe-tables, .cafe-people { position: static; }
  .cafe-tables { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .cafe-tables h4, .cafe-tables p { display: none; }
  .ctab { flex: none; background: #fff; margin: 0; }
  .ctab .tiny { display: none; }
  .cafe-band { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 640px) {
  .cafe { padding: 16px 16px 30px; gap: 14px; }
  .chat { height: 58vh; min-height: 320px; }
  .composer .row { flex-wrap: wrap !important; }
  .composer textarea { width: 100%; flex-basis: 100%; }
  .room-head h1 { font-size: 21px; }
  .cafe-band { padding: 22px 18px; }
  .nav-cafe { justify-content: flex-start; }
}
