/* ============================================================
   LIFF Design System — Gen-R-Rai
   Clean, unified CSS (replaced 1785-line mockup mashup)
   ============================================================ */

:root {
  /* Core palette */
  --bg: #fffafb;
  --ink: #5c4b4b;
  --muted: #a69898;
  --line: #fce4e4;
  --card: #ffffff;
  --surface: #ffebeb;
  --primary: #ffb6b9;
  --primary-deep: #e891b2;
  --primary-ink: #ffffff;
  --primary-gradient: linear-gradient(135deg, #ffb6b9, #ffd3b6);
  --primary-shadow: rgba(255, 182, 185, 0.35);
  --danger: #e05a6d;
  --ok: #5dba8a;

  /* Spacing */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Typography */
  --font: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* ── Page Container ── */
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

/* ── Fade-in animation ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page>*:not(.home-header):not(.bottom-nav):not(script) {
  animation: fadeInUp 0.35s ease-out both;
}

/* ── Header ── */
.header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  position: sticky;
  top: 10px;
  z-index: 20;
}

.title {
  margin: 0;
  font-size: 26px;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Top Bar (sticky page title) ── */
.top-bar {
  padding: 20px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  position: sticky;
  top: 0;
  background: rgba(255, 250, 251, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20;
}

.top-bar .icons {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 20px;
}

.back-btn {
  margin-right: 12px;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
}

/* ── Container ── */
.container {
  padding: 0 16px 100px 16px;
}

/* ── Panel / Card ── */
.panel {
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 12px;
  box-shadow: 0 4px 20px rgba(107, 90, 63, 0.06);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px var(--primary-shadow);
  transition: transform 0.2s ease;
}

.card:active {
  transform: scale(0.985);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Banner ── */
.banner {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 160px;
  background: linear-gradient(145deg, #eaf4ff, #fff8ef);
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Feature Card ── */
.feature-card {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px var(--primary-shadow);
  position: relative;
  overflow: hidden;
}

.feature-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* ── Buttons ── */
.btn {
  border: 0;
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.btn.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn.danger {
  background: #ffe6e6;
  color: #7d2323;
}

.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  box-shadow: 0 6px 18px var(--primary-shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px var(--primary-shadow);
}

.btn-confirm {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  box-shadow: 0 6px 18px var(--primary-shadow);
  cursor: pointer;
}

.btn-topup {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 18px var(--primary-shadow);
  text-decoration: none;
}

.btn-full {
  width: 100%;
  background: #00B900;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 185, 0, 0.2);
}

/* ── Layout Helpers ── */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.muted {
  color: var(--muted);
}

.text-danger {
  color: var(--danger);
}

.text-ok {
  color: var(--ok);
}

/* ── Status Chip ── */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  background: #fff6e2;
  color: #805f2a;
  font-size: 13px;
  font-weight: 600;
}

.status-chip.ok {
  background: #e7f7ef;
  color: #1e7a45;
}

.status-chip.warn {
  background: #fff0e0;
  color: #97561f;
}

/* ── Forms ── */
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.field {
  margin-top: 8px;
}

.label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.input-group input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
}

.input-group button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-shadow);
}

/* ── Receipt Card ── */
.receipt-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(255, 182, 185, 0.12);
  position: relative;
  margin-bottom: 20px;
}

.receipt-card::before,
.receipt-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border-radius: 50%;
  margin-top: -12px;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.02);
  z-index: 2;
}

.receipt-card::before {
  left: -12px;
}

.receipt-card::after {
  right: -12px;
}

.receipt-header {
  text-align: center;
  margin-bottom: 20px;
}

.receipt-header h2 {
  margin: 0;
  font-size: 20px;
}

.receipt-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.dashed-line {
  border-bottom: 2px dashed var(--line);
  margin: 20px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
}

.total-amount {
  font-size: 24px;
  color: var(--primary-deep);
}

/* ── Notice Box ── */
.notice-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notice-box .icon {
  font-size: 20px;
}

.notice-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

/* ── Discount Section ── */
.discount-section {
  background: var(--surface);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
}

.discount-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.or-divider {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--line);
}

.or-divider::before {
  left: 0;
}

.or-divider::after {
  right: 0;
}

.coupon-selector {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* ── Coupon Items ── */
.coupon-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.coupon-item {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.15s ease;
}

.coupon-item:active {
  transform: scale(0.98);
}

.coupon-left {
  background: var(--primary-gradient);
  color: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80px;
  font-weight: bold;
}

.coupon-left .amount {
  font-size: 22px;
  line-height: 1;
}

.coupon-left .unit {
  font-size: 11px;
  opacity: 0.9;
}

.coupon-right {
  padding: 14px;
  flex: 1;
}

.coupon-right h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.coupon-right p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* ── Code Box ── */
.code-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.code-box .code-text {
  flex: 1;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-deep);
  letter-spacing: 2px;
  text-align: center;
}

.code-box .btn-copy {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

/* ── Product & Package ── */
.product-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.package-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.package-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  background: linear-gradient(160deg, #fff, #fff6e8);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.package-box.active {
  border-color: #f0ba49;
  box-shadow: 0 0 0 2px #ffe5af inset;
}

.product-cover,
.coupon-cover {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 10px;
}

/* ── Upload Cards ── */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.upload-box,
.upload-card {
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 28px 14px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-box:hover,
.upload-card:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.upload-box .icon,
.upload-card .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.upload-box .label,
.upload-card .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Horizontal Scroll ── */
.h-scroll,
.template-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.h-scroll::-webkit-scrollbar,
.template-scroll::-webkit-scrollbar {
  display: none;
}

.template-card {
  min-width: 120px;
  height: 160px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.template-card.selected {
  border-color: var(--primary);
  transform: scale(1.03);
}

.template-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 55%);
}

.template-card-content {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius-md);
  margin: 12px 0 16px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-tabs {
  display: flex;
  padding: 0 20px;
  gap: 10px;
  margin: 10px 0 20px;
}

.cat-tab {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-tab.active {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Settings ── */
.settings-group {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.setting-value {
  font-size: 14px;
  color: var(--primary);
  font-weight: bold;
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 12px;
}

/* ── Profile ── */
.profile-card {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-shadow);
  margin-top: 8px;
}

.profile-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  overflow: hidden;
}

.profile-info {
  flex: 1;
}

.profile-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.profile-info p {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: 0.9;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(255, 182, 185, 0.08);
}

.stat-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-deep);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* ── Menu ── */
.menu-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(255, 182, 185, 0.08);
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: var(--surface);
}

.menu-icon {
  font-size: 18px;
  margin-right: 14px;
  width: 24px;
  text-align: center;
}

.menu-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.menu-arrow {
  color: var(--muted);
  font-size: 14px;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 12px;
  text-align: left;
}

/* ── History Grids ── */
.date-header {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 10px 4px;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.grid-1 img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.grid-3 img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

/* ── Fixed Bottom Bar ── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(255, 250, 251, 1), rgba(255, 250, 251, 0));
}

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.marquee-track {
  display: flex;
  gap: 8px;
  padding: 8px;
  animation: auto-scroll 16s linear infinite;
}

.marquee-item {
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.marquee-item.media {
  padding: 0;
  overflow: hidden;
}

.marquee-item.media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

@keyframes auto-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Floating Button ── */
.floating-btn-container {
  position: fixed;
  bottom: 100px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 12;
}

.floating-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--primary-shadow);
  pointer-events: auto;
  cursor: pointer;
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, #f5e5e5 25%, var(--line) 50%, #f5e5e5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Toast ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(6px);
  background: rgba(47, 43, 38, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 200;
  backdrop-filter: blur(4px);
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid rgba(232, 145, 178, 0.12);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #bbb;
  font-size: 10px;
  flex: 1;
  transition: color 0.2s;
}

.bottom-nav-item.active {
  color: var(--primary-deep);
}

.bottom-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 500;
}

.bottom-nav-item.center-btn {
  position: relative;
  top: -6px;
}

.bottom-nav-item.center-btn .bottom-nav-icon {
  background: linear-gradient(135deg, var(--primary), #c77dba);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 12px var(--primary-shadow);
}

.bottom-nav-item.center-btn .bottom-nav-label {
  color: var(--primary-deep);
  font-weight: 600;
}

/* ── Toggle ── */
.toggle {
  width: 44px;
  height: 24px;
  background: var(--primary);
  border-radius: 12px;
  position: relative;
}

.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  right: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ── Misc Legacy Compat ── */
.asset-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.asset-frame.square {
  aspect-ratio: 1 / 1;
}

.asset-frame.wide {
  aspect-ratio: 16 / 10;
}

.asset-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mascot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mascot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: #fff;
}

/* Skeleton shimmer animation */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}