:root {
  --primary: #e4007c;
  --primary-dark: #b40063;
  --primary-soft: #ffe6f3;
  --gold: #c99b3f;
  --gold-soft: #fbf3dd;
  --ink: #231a22;
  --muted: #7a6b76;
  --line: #ece1e9;
  --bg: #faf6f8;
  --surface: #ffffff;
  --navy: #221630;
  --ok: #1f8a4c;
  --ok-soft: #e2f5ea;
  --warn: #b25e00;
  --warn-soft: #fff0df;
  --danger: #c0392b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(60, 20, 50, .08);
  --shadow-lg: 0 24px 60px rgba(60, 20, 50, .16);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: .4px; }
.brand:hover { color: #fff; }
.brand-mark { font-size: 1.4rem; }
.brand em { color: #ff6fb6; font-style: normal; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #eadff0; padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: var(--primary); }
.nav .link-ghost { background: rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 20px; gap: 4px; 
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 8px; padding: 12px; }
}

.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: .86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 20px; flex-wrap: wrap; }
.topbar-right { display: inline-flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-dark); padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.tier-tag { font-size: .66rem; padding: 2px 6px; border-radius: 999px; color: #fff; }
.tier-bronze { background: #9c6f44; }
.tier-silber { background: #8a8fa0; }
.tier-gold { background: var(--gold); }
.tier-platin { background: #4c6ef5; }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--primary); }

main { min-height: 55vh; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-align: center; transition: all .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #3a2a52; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-pink { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-pink:hover { background: var(--primary-soft); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { display: block; width: 100%; margin-bottom: 8px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b88927; color: #fff; }
.btn-danger-soft { background: var(--danger); color: #fff; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 20% -10%, #3b2a56, var(--navy) 60%);
  color: #fff;
  padding: 64px 0 110px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(228,0,124,.55), transparent 65%);

}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); max-width: 760px; }
.hero h1 em { color: #ff6fb6; font-style: normal; }
.hero p.lead { max-width: 620px; color: #e9def3; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats .stat b { font-size: 1.5rem; display: block; }
.hero-stats .stat span { color: #cfc0dd; font-size: .84rem; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.5rem; }
.section-head a.more { font-weight: 600; font-size: .9rem; }
.grid { display: grid; gap: 20px; }
.grid-models { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- model card ---------- */
.model-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.model-card a.detail-link { color: inherit; }
.model-card .thumb { aspect-ratio: 2/3; overflow: hidden; position: relative; }
.model-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.model-card .badge-row { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .5px; padding: 4px 8px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.5); }
.badge-vip { background: linear-gradient(90deg, #b88927, #e8c56c); color: #fff; }
.badge-ai { background: rgba(20,14,40,.75); border: 1px solid rgba(255,255,255,.5); }
.badge-fav { position: absolute; top: 12px; right: 12px; z-index: 2; }
.fav-btn { background: rgba(0,0,0,.35); border: 0; border-radius: 999px; color: #fff; font-size: 1.1rem; width: 36px; height: 36px; cursor: pointer; }
.fav-btn.on { background: var(--primary); }
.model-card .body { padding: 12px 14px 14px; }
.model-card .name { font-weight: 800; font-size: 1.02rem; }
.model-card .meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.model-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.rate-badge { font-weight: 800; color: var(--primary-dark); font-size: .95rem; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .9rem; }

/* ---------- category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink);
}
.chip:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.chip .count { color: var(--muted); font-weight: 500; }

/* ---------- flash & toast ---------- */
.flash { max-width: var(--maxw); margin: 16px auto; padding: 13px 18px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); font-weight: 600; }
.flash.err { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }

/* ---------- filters ---------- */
.filterbar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.filterbar label { font-size: .78rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.field { flex: 1 1 160px; }
.input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; background: #fff; color: var(--ink); font-family: inherit;
}
.input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
textarea { min-height: 100px; resize: vertical; }

/* ---------- model detail (sedcard) ---------- */
.sedcard { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 28px; }
@media (max-width: 800px) { .sedcard { grid-template-columns: 1fr; } }
.sedcard-gallery img { border-radius: var(--radius); aspect-ratio: 2/3; object-fit: cover; margin-bottom: 12px; }
.sedcard .gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sedcard .gallery-thumbs img { aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; cursor: pointer; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.info-cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.info-cell b { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.rate-card { text-align: center; background: var(--primary-soft); border-radius: var(--radius-sm); padding: 14px 8px; }
.rate-card b { display: block; font-size: 1.15rem; color: var(--primary-dark); }
.rate-card span { font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; background: #f1eaf7; color: var(--navy); padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin: 0 6px 8px 0; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border: 1px solid var(--gold); color: #7a5c14; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .86rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h3 { margin-top: 0; }

/* ---------- loyalty / progress ---------- */
.progress { background: #f1eaf7; height: 12px; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--gold), #f0d48a); border-radius: 999px; transition: width .4s ease; }
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
.tier-box { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.tier-box.current { border-color: var(--primary); background: var(--primary-soft); }
.tier-box b { display: block; font-size: .95rem; }
.tier-box span { font-size: .78rem; color: var(--muted); }

/* ---------- shop ---------- */
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.shop-card .thumb { aspect-ratio: 16/10; object-fit: cover; }
.shop-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-card .type-badge { font-size: .7rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--primary-dark); background: var(--primary-soft); padding: 3px 8px; border-radius: 999px; align-self: flex-start; }
.shop-card h3 { font-size: 1.05rem; margin: 0; }
.shop-card .price { font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; }

/* ---------- QR ---------- */
.qr-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
@media (max-width: 700px) { .qr-wrap { grid-template-columns: 1fr; text-align: center; } }
.qr-wrap img { width: 100%; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); }
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; align-items: flex-start; }
.benefit-list li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; padding: 12px 14px; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--line); background: #fdfafc; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .thumb-xs { width: 42px; height: 56px; object-fit: cover; border-radius: 6px; }

/* ---------- auth forms ---------- */
.auth-card { max-width: 460px; margin: 44px auto; }
.logo-dash { text-align: center; font-size: 2.4rem; margin-bottom: 6px; }
.auth-card .card h1 { text-align: center; font-size: 1.5rem; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin-bottom: 12px; }
.check input { margin-top: 3px; }
.error { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ---------- loyalty funnel ---------- */
.points-hero { background: linear-gradient(120deg, var(--navy), #3a1d4d); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.points-hero .big { font-size: 2.2rem; font-weight: 800; color: #ffc9e4; }
.reward-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.reward-card .cost { font-weight: 800; color: var(--gold); }

/* ---------- age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,10,30,.92);
  display: grid; place-items: center; padding: 20px;
}
.age-card { max-width: 420px; background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-lg); }
.age-badge { font-size: 2.6rem; margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cfc0dd; margin-top: 60px; padding: 44px 0 20px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.site-footer a { display: block; color: #b6a4ca; padding: 3px 0; }
.site-footer a:hover { color: #ff9fd0; }
.brand-footer { margin-bottom: 10px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ---------- misc ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 40px 0; }
.page-hero h1 { font-size: 1.9rem; margin: 0; }
.page-hero p { color: #cfc0dd; margin: 6px 0 0; }
.lead { font-size: 1.08rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.space-y > * + * { margin-top: 14px; }
.grid .model-card, .grid .shop-card { margin-bottom: 0; }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty .big { font-size: 3rem; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-nav a { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--ink); }
.admin-nav a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 1.5rem; }
.kpi span { color: var(--muted); font-size: .82rem; }
.grid-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.style-card { text-align: center; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; background: #fff; transition: border-color .15s; }
.style-card:hover { border-color: var(--primary); }
.style-card img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; margin: 0 auto 8px; max-width: 110px; }
/* announcement bar */
.announcement { background: linear-gradient(90deg, #e4007c, #ff9fd0); color: #fff; text-align: center; font-weight: 700; font-size: .9rem; padding: 8px 12px; }
.announcement a { color: #fff; text-decoration: underline; }

/* promo / spotlight */
.badge-spotlight { background: linear-gradient(90deg, #ff6b35, #e4007c); box-shadow: 0 0 10px rgba(255,90,70,.6); }
.model-card.promo-card { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }
.model-card.promo-card .thumb::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(180deg, rgba(255,180,60,.18), transparent 45%); pointer-events: none; z-index: 1; }
.model-card .thumb { position: relative; }
.model-card .badge-row { z-index: 2; }

/* ---------- user menu (topbar) ---------- */
.user-menu { position: relative; }
.user-menu > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; background: rgba(255,255,255,.08); padding: 6px 12px 6px 6px; border-radius: 999px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.user-menu-label { line-height: 1.15; }
.user-menu-label strong { display: block; font-size: .92rem; }
.user-menu-label small { font-size: .7rem; color: #ff9fd0; letter-spacing: .5px; text-transform: uppercase; }
.user-menu .caret { color: #ff9fd0; margin-left: 4px; }
.user-menu-panel { position: absolute; left: 0; top: calc(100% + 10px); min-width: 300px; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.user-menu-panel:before { content: ''; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.user-menu-item { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.user-menu-item:hover { background: var(--primary-soft); color: var(--primary-dark); }
.user-menu-sep { border-top: 1px solid var(--line); margin: 6px 4px; }
.topbar-right { display: inline-flex; align-items: center; gap: 8px; }
.pill-wallet { background: linear-gradient(135deg,#fff,#ffeaf4); border: 1px solid #f3c8dd; color: var(--primary-dark); }

/* ---------- generic account blocks ---------- */
.section-block { margin: 34px 0; }
.section-block > .section-head { margin-bottom: 16px; }
.tabnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.tabnav a { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--ink); }
.tabnav a:hover { border-color: var(--primary); color: var(--primary); }
.row-mb { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.stats-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats-row .stat-label { font-size: .82rem; color: var(--muted); letter-spacing: .5px; }
.vip-card { border: 1px solid var(--gold) !important; background: linear-gradient(135deg, #fffdf5, #fff) !important; }
.flash-vip { background: linear-gradient(90deg, #fff4d6, #ffe7f3); border: 1px solid var(--gold); color: #6b4d00; }
.squish { padding: 18px; }
.badge-verified { background: #1f8a4c; }
.badge-exclusive { background: #7a3cf0; }
.alert-vip { background: linear-gradient(135deg, #fff4d6, #ffe7f3); border: 1px solid var(--gold); color: #5c4500; padding: 14px; border-radius: var(--radius-sm); }
.checklist { list-style: none; padding: 0; margin: 0 0 0 0; }
.checklist li { padding: 4px 0 4px 26px; position: relative; font-size: .92rem; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.checklist li strong { color: var(--ink); }

/* amount tiles for top-up */
.amount-tile { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; overflow: hidden; }
.amount-tile input { display: none; }
.amount-tile span { padding: 12px 0; font-weight: 800; color: var(--ink); }
.amount-tile input:checked + span { background: var(--primary); color: #fff; }

/* payments */
.center-col > * { margin-left: auto; margin-right: auto; }
.checkout-card { padding: 26px; }
.pay-methods { display: grid; gap: 12px; }
.pay-method { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; transition: border-color .15s, transform .1s; }
.pay-method:hover { border-color: var(--primary); transform: translateY(-1px); }
.pay-icon { font-size: 1.7rem; }
.pay-method small { color: var(--muted); }
.pay-method-sandbox { border-style: dashed; border-color: var(--gold); }

/* chat / messages */
.chat-card { padding: 0; overflow: hidden; }
.chat-thread { display: flex; flex-direction: column; gap: 14px; padding: 20px; max-height: 480px; overflow-y: auto; }
.chat-msg { display: flex; flex-direction: column; }
.chat-msg.out { align-items: flex-end; }
.chat-msg .bubble { max-width: 78%; background: var(--primary-soft); padding: 10px 14px; border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-msg.out .bubble { background: var(--navy); color: #fff; border-radius: 14px; border-bottom-right-radius: 4px; }
.chat-meta { font-size: .72rem; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form .input { flex: 1; }
.conv-list { display: flex; flex-direction: column; gap: 10px; }
.conv-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.conv-item:hover { border-color: var(--primary); }
.conv-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.conv-body { flex: 1; min-width: 0; }
.conv-body strong { display: block; }
.conv-body .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: .86rem; }
.conv-meta { text-align: right; flex: none; font-size: .8rem; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-flagged { background: var(--warn-soft); }

/* referral */
.refer-box { display: flex; gap: 10px; align-items: stretch; max-width: 460px; }
.refer-box .input { font-weight: 700; letter-spacing: 1px; flex: 1; }
.link-danger { background: none; border: none; color: var(--danger); cursor: pointer; text-decoration: underline; padding: 0; font-size: .72rem; }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mt { margin-top: 12px; }
.mt-1 { margin-top: 8px; }
.badge-danger { background: var(--danger); }
.alert-danger { background: var(--danger); color: #fff; padding: 14px; border-radius: var(--radius-sm); }
code { background: var(--primary-soft); padding: 2px 6px; border-radius: 6px; font-size: .85em; }

/* ---------- responsive (kein Design-Wechsel, nur saubere Anordnung) ---------- */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refer-box { flex-direction: column; }
  .points-hero { align-items: flex-start; }
}
@media (max-width: 640px) {
  .user-menu-panel { left: auto; right: 0; min-width: min(300px, 86vw); }
  .user-menu-label small { font-size: .62rem; }
}
/* ---------- infinite scroll feed ---------- */
.feed-sentinel { text-align: center; padding: 26px 0; }
.feed-sentinel .spinner {
  display: none;
  width: 34px; height: 34px;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: js-spin .8s linear infinite;
}
.feed-sentinel .feed-end { display: none; color: var(--muted); font-size: .85rem; }
.feed-sentinel.loading .spinner { display: block; }
.feed-sentinel.done .feed-end { display: block; }
.feed-sentinel.done.loading .spinner { display: none; }
@keyframes js-spin { to { transform: rotate(360deg); } }
.badge-outline { background: rgba(20,14,40,.72); border: 1px dashed #fbb; color: #ffd; }
/* ---------- whatsapp preview ---------- */
.wa-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.wa-tab { border: 1px solid var(--line); background: #fff; padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.wa-tab:hover { border-color: var(--primary); color: var(--primary); }
.wa-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.wa-phone { max-width: 560px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.wa-phone-head { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: #075e54; color: #fff; }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.28); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; }
.wa-recipient { font-weight: 700; font-size: .95rem; }
.wa-online { font-size: .72rem; opacity: .85; }
.wa-body { background: #ded1bd; padding: 16px 14px 10px; min-height: 140px; }
.wa-bubble-wrap { display: none; }
.wa-bubble-wrap.is-talked { display: block; }
.wa-bubble { display: inline-block; max-width: 100%; background: #e7ffdb; border-radius: 12px 12px 12px 2px; padding: 9px 12px 6px; white-space: pre-wrap; font-size: .9rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa-meta { text-align: right; font-size: .68rem; color: #66806e; margin-top: 4px; }
