/* ======================================================
   Loylogic x Epsilon — Conference Demo
   Brand tokens per Loylogic Basic Elements Guideline (v2)
   ====================================================== */

:root {
  /* Loylogic master palette */
  --ll-red: #E6003C;
  --ll-red-dark: #BF0030;
  --ll-red-80: #EB324E;
  --ll-red-60: #F0648C;
  --ll-violet: #64009B;
  --ll-lightblue: #1EC3FF;
  --ll-green: #00EB8C;
  --ll-yellow: #FFDC00;
  --ll-black: #121418;
  --ll-ink: #14161C;
  --ll-ink-2: #3A3F4A;
  --ll-ink-3: #6B7280;
  --ll-line: #E5E7EB;
  --ll-surface: #FFFFFF;
  --ll-bg: #F7F7F8;

  /* Persona-themed surfaces (default = Loylogic red) */
  --p-primary: var(--ll-red);
  --p-primary-dark: var(--ll-red-dark);
  --p-accent: var(--ll-violet);
  --p-surface: #FFFFFF;
  --p-ink: var(--ll-ink);
  --p-hero: linear-gradient(135deg, var(--ll-red) 0%, var(--ll-violet) 100%);

  /* Type */
  --font: "Nunito", "Museo Sans Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-2: 0 10px 28px -8px rgba(16, 24, 40, .18);
  --shadow-3: 0 24px 64px -16px rgba(0, 0, 0, .25);

  /* Max layout */
  --page-max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ll-ink);
  background: var(--ll-bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
img { display: block; max-width: 100%; }

/* ----------------- Shared shell ----------------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; display: none; }
.page.is-active { display: block; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 680px) { .wrap { padding: 0 18px; } }

/* ----------------- Loylogic brand header (pages 1-3) ----------------- */
.ll-topbar {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--ll-line);
}
.ll-topbar .inner {
  max-width: var(--page-max); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ll-logo {
  display: inline-flex; align-items: center;
  height: 56px;
}
.ll-logo img { height: 56px; width: auto; }
.ll-topbar nav { display: flex; gap: 28px; font-weight: 700; color: var(--ll-ink-2); }
.ll-topbar nav a:hover { color: var(--ll-red); }
.ll-topbar .nav-cta {
  background: var(--ll-red); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 800;
}
@media (max-width: 720px) { .ll-topbar nav { display: none; } }

/* ----------------- Type rhythm ----------------- */
.kicker {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; font-weight: 800; color: var(--ll-red);
}
h1, h2, h3, h4 { font-family: var(--font); margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.h-display {
  font-size: clamp(40px, 6vw, 72px); font-weight: 900; line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.h-2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.h-3 { font-size: 20px; line-height: 1.3; }

.lead { font-size: 18px; line-height: 1.55; color: var(--ll-ink-2); }
.muted { color: var(--ll-ink-3); }

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800; font-size: 15px; letter-spacing: .01em;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn-primary {
  background: var(--p-primary); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .3);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--p-primary-dark); }

.btn-red { background: var(--ll-red); color: #fff; }
.btn-red:hover { background: var(--ll-red-dark); }

.btn-ghost {
  background: transparent; color: var(--p-primary);
  border: 2px solid var(--p-primary);
}
.btn-ghost:hover { background: var(--p-primary); color: #fff; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

/* ----------------- HERO (pages 1/2/3) ----------------- */
.hero-red {
  background: linear-gradient(135deg, var(--ll-red) 0%, var(--ll-violet) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-red::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,220,0,.18), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(30,195,255,.18), transparent 45%);
  pointer-events: none;
}
.hero-red .inner { position: relative; padding: 72px 0 92px; }
.hero-red h1 { color: #fff; }
.hero-red p { color: rgba(255,255,255,.9); }

/* Horizontal block layout (per brand guidelines) */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.block {
  background: #fff; border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-1);
  border: 1px solid var(--ll-line);
}
.block.tone-red { background: var(--ll-red); color: #fff; border-color: transparent; }
.block.tone-violet { background: var(--ll-violet); color: #fff; border-color: transparent; }
.block.tone-blue { background: var(--ll-lightblue); color: #fff; border-color: transparent; }
.block.tone-green { background: var(--ll-green); color: #14161C; border-color: transparent; }
.block.tone-yellow { background: var(--ll-yellow); color: #14161C; border-color: transparent; }

@media (max-width: 880px) { .blocks { grid-template-columns: 1fr; } }

/* ===============================================================
   PAGE 1 — Welcome (Loylogic x Epsilon)
   =============================================================== */
.w1-intro {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
}
.w1-intro h1 { color: #fff; }
.w1-intro .logos-pair {
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 18px 22px; border-radius: 22px; margin-bottom: 26px;
  font-weight: 800; letter-spacing: .04em; font-size: 13px; text-transform: uppercase;
}
.pair-logo { height: 40px; width: auto; }
.pair-x { font-size: 28px; font-weight: 300; opacity: .85; }

.w1-intro .epsilon-mark {
  background: #fff; color: #00205B; font-weight: 900; font-size: 22px;
  padding: 8px 14px; border-radius: 8px; letter-spacing: .04em;
}

.w1-mini {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px;
}
.w1-mini .mini {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 14px 16px; border-radius: 14px; color: #fff;
  font-size: 14px;
}
.w1-mini strong { display: block; font-size: 22px; }

.w1-pitch-section { padding: 80px 0; }
.w1-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .w1-grid3 { grid-template-columns: 1fr; } .w1-intro { grid-template-columns: 1fr; } }

.capability {
  padding: 28px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-1); border: 1px solid var(--ll-line);
}
.capability .dot {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ll-red), var(--ll-violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 900; margin-bottom: 16px;
}

.w1-united {
  background: linear-gradient(135deg, #0E0B2E 0%, #250F42 60%, #4C0D3F 100%);
  color: #fff; padding: 80px 0;
}
.w1-united .big-num { font-size: 72px; font-weight: 900; line-height: 1; color: var(--ll-green); }
.w1-united .metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.w1-united .metric-grid .m {
  padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px;
}
.w1-united .metric-grid .m small { opacity: .75; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.w1-united .metric-grid .m strong { display: block; font-size: 32px; margin-top: 4px; }
@media (max-width: 820px) { .w1-united .metric-grid { grid-template-columns: repeat(2, 1fr); } }

.w1-cta {
  padding: 72px 0 96px; text-align: center;
}
.w1-cta .btn-lg { margin-top: 28px; }

/* ===============================================================
   PAGE 2 — Sign up / HubSpot-style form
   =============================================================== */
.p2 {
  background:
    radial-gradient(circle at 90% -10%, rgba(230,0,60,.15), transparent 40%),
    radial-gradient(circle at -10% 110%, rgba(100,0,155,.18), transparent 40%),
    #fff;
  padding: 48px 0 80px;
}
.p2 .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) { .p2 .grid { grid-template-columns: 1fr; } }

.form-card {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-2);
  padding: 36px; border: 1px solid var(--ll-line);
}
.form-card h3 { margin-bottom: 4px; }
.form-card p.sub { margin: 0 0 22px; color: var(--ll-ink-3); }

.hubspot-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ll-ink-3); margin-bottom: 16px; }
.hubspot-brand .dot-orange { width: 8px; height: 8px; background: #FF7A59; border-radius: 50%; }

.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ll-ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--ll-line); font-family: inherit; font-size: 15px;
  background: #fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--ll-red); box-shadow: 0 0 0 3px rgba(230,0,60,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent { font-size: 12px; color: var(--ll-ink-3); margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; }
.consent input { margin-top: 3px; }

.p2-right h1 { color: var(--ll-red); }
.p2-right .raffle-tag {
  display: inline-flex; gap: 8px; align-items: center;
  background: linear-gradient(135deg, var(--ll-yellow), var(--ll-green));
  color: #14161C; padding: 8px 14px; border-radius: 999px;
  font-weight: 800; font-size: 13px; letter-spacing: .04em;
  margin-bottom: 18px;
}

.p2-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.p2-prizes .prize {
  padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ll-line);
  display: flex; flex-direction: column; gap: 6px;
}
.p2-prizes .prize strong { font-size: 15px; }
.p2-prizes .prize small { color: var(--ll-ink-3); }

/* ===============================================================
   PAGE 3 — Persona selector
   =============================================================== */
.p3 { padding: 40px 0 90px; background: #fff; }
.p3 .intro { text-align: center; max-width: 720px; margin: 0 auto 36px; }

.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1020px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .persona-grid { grid-template-columns: 1fr; } }

.persona-card {
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid var(--ll-line);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.persona-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.persona-card .band { height: 120px; position: relative; overflow: hidden; }
.persona-card .band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.18) 100%);
}
.persona-card .band img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.persona-card:hover .band img { transform: scale(1.06); }
.persona-card .avatar {
  position: absolute; bottom: -22px; left: 22px;
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #fff; font-weight: 900; font-size: 22px;
  border: 4px solid #fff; box-shadow: var(--shadow-1);
  z-index: 2;
}
.persona-card .body { padding: 30px 24px 24px; }
.persona-card h3 { font-size: 20px; margin-bottom: 4px; }
.persona-card .bio { color: var(--ll-ink-3); font-size: 13px; line-height: 1.5; }
.persona-card .tier {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ll-surface); border: 1px solid var(--ll-line);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  margin-top: 12px;
}
.persona-card .tier .bullet { width: 8px; height: 8px; border-radius: 50%; }

/* ===============================================================
   PAGE 4-7 — Store (persona-themed)
   =============================================================== */
.store-header {
  background: #fff; border-bottom: 1px solid var(--ll-line);
  position: sticky; top: 0; z-index: 55;
}
.store-header .row {
  max-width: var(--page-max); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.store-header .brand-logo {
  font-weight: 900; font-size: 22px; color: var(--p-primary);
  letter-spacing: .02em;
}
.store-header .search {
  flex: 1; max-width: 520px;
  background: var(--ll-bg); border: 1px solid var(--ll-line);
  border-radius: 999px; padding: 10px 18px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ll-ink-3); font-size: 14px;
}
.store-header .search::before { content: "🔍"; font-size: 15px; }
.store-header .member {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--ll-bg); border: 1px solid var(--ll-line);
}
.store-header .member .avi {
  width: 36px; height: 36px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.store-header .member .info { line-height: 1.15; }
.store-header .member .info strong { font-size: 14px; }
.store-header .member .info small { color: var(--ll-ink-3); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.store-header .pts { text-align: right; font-weight: 900; color: var(--p-primary); }
.store-header .pts small { display: block; color: var(--ll-ink-3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 820px) { .store-header .search { display: none; } }

.tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 10px;
  padding: 2px 8px; border-radius: 6px; color: #fff;
}
.tier-badge.diamond { background: linear-gradient(135deg, #7DD3FC, #0284C7); }
.tier-badge.platinum { background: linear-gradient(135deg, #475569, #0F172A); }
.tier-badge.gold { background: linear-gradient(135deg, #F59E0B, #B45309); }
.tier-badge.silver { background: linear-gradient(135deg, #94A3B8, #475569); }

/* --- Category chips --- */
.category-nav {
  background: #fff; border-bottom: 1px solid var(--ll-line);
}
.category-nav .row {
  max-width: var(--page-max); margin: 0 auto; padding: 14px 28px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.category-nav .row::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ll-bg); color: var(--ll-ink-2); font-weight: 700; font-size: 14px;
  border: 1px solid var(--ll-line); cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.cat-chip:hover { border-color: var(--p-primary); color: var(--p-primary); }
.cat-chip.is-active { background: var(--p-primary); color: #fff; border-color: var(--p-primary); }

/* --- Key visual hero --- */
.key-visual {
  margin-top: 20px; border-radius: var(--r-lg); overflow: hidden;
  position: relative; min-height: 320px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  color: #fff; padding: 40px;
}
.key-visual::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%);
}
.key-visual .copy { position: relative; max-width: 560px; }
.key-visual h2 {
  color: #fff; font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; line-height: 1.08;
  margin-bottom: 10px;
}
.key-visual p { margin: 0 0 18px; font-size: 16px; opacity: .95; }
.key-visual .btn-primary { background: #fff; color: var(--p-primary); }
.key-visual .btn-primary:hover { background: #f1f1f1; }

/* --- Reward shelves --- */
.shelf { margin: 40px 0; }
.shelf-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.shelf-head h3 { font-size: 22px; font-weight: 900; }
.shelf-head a { color: var(--p-primary); font-weight: 700; font-size: 14px; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--ll-line);
  transition: transform .2s ease, box-shadow .25s ease;
  cursor: pointer; display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.product .img {
  aspect-ratio: 1.2 / 1; background-size: cover; background-position: center;
  position: relative;
}
.product .badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--p-primary); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}
.product .body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product .merchant { font-size: 11px; color: var(--ll-ink-3); text-transform: uppercase; letter-spacing: .06em; }
.product .name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.product .prc { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.product .pts-val { color: var(--p-primary); font-weight: 900; font-size: 15px; }
.product .alt { color: var(--ll-ink-3); font-size: 12px; }

.product .rating { font-size: 11px; color: var(--ll-ink-3); display: flex; align-items: center; gap: 4px; }
.product .rating .star { color: #F59E0B; }

/* ===============================================================
   PAGE 5 — Category listing (filters)
   =============================================================== */
.cat-page { padding: 20px 0 60px; }
.cat-page .top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.cat-page h2 { font-size: 28px; font-weight: 900; }
.cat-page .sort {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ll-line);
  background: #fff; font-family: inherit; font-weight: 700; font-size: 14px;
}
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
@media (max-width: 920px) { .cat-layout { grid-template-columns: 1fr; } .filters { display: none; } }
.filters {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line);
  padding: 20px; align-self: start; position: sticky; top: 110px;
}
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }
.filter-group label {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--ll-ink-2); padding: 4px 0; cursor: pointer;
}
.filter-group input { accent-color: var(--p-primary); }
.filters .clear { color: var(--p-primary); font-weight: 700; font-size: 13px; background: transparent; padding: 0; }

/* ===============================================================
   PAGE 6 — Product detail
   =============================================================== */
.pdp { padding: 28px 0 60px; }
.crumbs { font-size: 13px; color: var(--ll-ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ll-ink-3); }
.crumbs a:hover { color: var(--p-primary); }

.pdp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .pdp-grid { grid-template-columns: 1fr; } }

.pdp-gallery {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line);
  padding: 18px;
}
.pdp-gallery .main-img {
  aspect-ratio: 1 / 1; background-size: cover; background-position: center;
  border-radius: 14px;
}
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pdp-thumbs .t { width: 60px; height: 60px; border-radius: 8px; background-size: cover; background-position: center; border: 2px solid var(--ll-line); cursor: pointer; }
.pdp-thumbs .t.active { border-color: var(--p-primary); }

.pdp-info h1 { font-size: 32px; font-weight: 900; line-height: 1.1; margin-bottom: 6px; }
.pdp-info .merchant-line { color: var(--ll-ink-3); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pdp-info .price-box {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line);
  padding: 24px; margin-top: 12px;
}

/* Points + Cash slider */
.mix-slider { margin-top: 16px; }
.mix-slider .current {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 18px; background: var(--ll-bg); border-radius: 14px; margin-bottom: 16px;
}
.mix-slider .current .pts {
  font-weight: 900; color: var(--p-primary); font-size: 22px;
}
.mix-slider .current .plus { color: var(--ll-ink-3); font-weight: 700; }
.mix-slider .current .cash { font-weight: 900; font-size: 22px; }

.mix-slider .slider-track {
  position: relative; height: 40px; display: flex; align-items: center;
}
.mix-slider input[type="range"] {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--p-primary) 0%, var(--p-primary) var(--pct,50%), var(--ll-line) var(--pct,50%), var(--ll-line) 100%);
  border-radius: 999px; outline: none;
}
.mix-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 4px solid var(--p-primary);
  cursor: pointer; box-shadow: var(--shadow-1);
}
.mix-slider input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 4px solid var(--p-primary); cursor: pointer;
}
.mix-slider .labels {
  display: flex; justify-content: space-between; font-size: 12px;
  color: var(--ll-ink-3); font-weight: 700; margin-top: 8px; letter-spacing: .04em; text-transform: uppercase;
}

.pdp-ctas { display: flex; gap: 12px; margin-top: 18px; }
.pdp-ctas .btn { flex: 1; }

.pdp-tabs { margin-top: 36px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line); }
.pdp-tab-heads {
  display: flex; border-bottom: 1px solid var(--ll-line);
}
.pdp-tab-heads button {
  background: transparent; padding: 16px 20px; font-weight: 800;
  color: var(--ll-ink-3); border-bottom: 3px solid transparent;
}
.pdp-tab-heads button.is-active { color: var(--p-primary); border-bottom-color: var(--p-primary); }
.pdp-tab-body { padding: 20px 24px; color: var(--ll-ink-2); line-height: 1.65; font-size: 15px; min-height: 180px; }

.pdp-reco { margin-top: 40px; }

/* ===============================================================
   PAGE 7 — Cart
   =============================================================== */
.cart-page { padding: 30px 0 80px; }
.cart-page h1 { margin-bottom: 22px; }
.cart-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-list {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line);
}
.cart-line {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 18px;
  padding: 22px; border-bottom: 1px solid var(--ll-line); align-items: start;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .img { width: 110px; height: 110px; border-radius: 12px; background-size: cover; background-position: center; }
.cart-line .meta { display: flex; flex-direction: column; gap: 6px; }
.cart-line .meta .merchant { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ll-ink-3); }
.cart-line .meta h4 { font-size: 17px; font-weight: 800; }
.cart-line .qty { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.cart-line .qty button {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ll-bg); border: 1px solid var(--ll-line); font-weight: 900; font-size: 16px;
}
.cart-line .remove { color: var(--ll-ink-3); font-size: 12px; background: transparent; padding: 0; }
.cart-line .remove:hover { color: var(--ll-red); }
.cart-line .line-price { text-align: right; font-weight: 900; font-size: 16px; color: var(--p-primary); min-width: 140px; }

.cart-sum {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line);
  padding: 24px; position: sticky; top: 110px;
}
.cart-sum h3 { margin-bottom: 12px; }
.cart-sum .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.cart-sum .row.total { border-top: 1px solid var(--ll-line); margin-top: 10px; padding-top: 14px; font-weight: 900; font-size: 18px; }

.empty-cart { text-align: center; padding: 60px 0; color: var(--ll-ink-3); }

/* ===============================================================
   PAGE 8 — Checkout
   =============================================================== */
.checkout-page { padding: 30px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .checkout-grid { grid-template-columns: 1fr; } }

.chk-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line);
  padding: 26px; margin-bottom: 18px;
}
.chk-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.chk-card .note { font-size: 12px; color: var(--ll-ink-3); margin-top: 6px; }

.card-strip { display: flex; gap: 8px; margin-left: auto; }
.card-strip span {
  background: var(--ll-bg); border: 1px solid var(--ll-line);
  padding: 4px 8px; border-radius: 6px; font-weight: 800; font-size: 11px;
}

/* ===============================================================
   PAGE 9 — Pay / conversion modal
   =============================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 22, 28, .65); backdrop-filter: blur(6px);
  z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: #fff; border-radius: 26px; box-shadow: var(--shadow-3);
  max-width: 620px; width: 100%; overflow: hidden;
  animation: modalin .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalin {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal .hat {
  background: linear-gradient(135deg, var(--ll-red) 0%, var(--ll-violet) 100%);
  color: #fff; padding: 32px 32px 24px; position: relative;
}
.modal .hat h2 { color: #fff; font-size: 28px; font-weight: 900; line-height: 1.1; }
.modal .hat .emoji { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.modal .body { padding: 28px 32px; }
.modal .body p { line-height: 1.55; color: var(--ll-ink-2); font-size: 16px; }
.modal .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.modal .value-grid .v { padding: 12px; border: 1px solid var(--ll-line); border-radius: 12px; }
.modal .value-grid .v strong { display: block; font-size: 22px; color: var(--ll-red); }
.modal .value-grid .v small { color: var(--ll-ink-3); font-size: 12px; }
.modal .foot { padding: 20px 32px 28px; display: flex; gap: 10px; }
.modal .foot .btn { flex: 1; }
.modal .close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.2); color: #fff;
  font-size: 20px; font-weight: 900;
}

/* ===============================================================
   Reward Play (Raffle) flow
   =============================================================== */
.gate-page { padding: 60px 0 100px; max-width: 560px; margin: 0 auto; }
.gate-page .gate-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--ll-line);
  padding: 40px; box-shadow: var(--shadow-1);
}
.gate-page h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }

.rp-header {
  background: linear-gradient(135deg, #10132D 0%, #2F1F6A 55%, #C2155D 100%);
  color: #fff; padding: 48px 0 40px; margin-bottom: 28px;
}
.rp-header h1 { color: #fff; font-size: clamp(32px, 4vw, 48px); font-weight: 900; }
.rp-header .sub { color: rgba(255,255,255,.85); font-size: 16px; max-width: 640px; margin-top: 10px; }
.rp-header .booklet-status {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-weight: 700; font-size: 14px;
}

.raffle-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding-bottom: 90px;
}
.raffle-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--ll-line);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  min-height: 200px;
}
.raffle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.raffle-card .pic {
  flex: 1; min-height: 140px;
  background-size: cover; background-position: center; position: relative;
}
.raffle-card .pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7));
}
.raffle-card .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; color: #fff; z-index: 2; }
.raffle-card .tier-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 10px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,255,255,.22); backdrop-filter: blur(6px);
  margin-bottom: 8px;
}
.raffle-card h4 { font-size: 18px; font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 4px; }
.raffle-card .worth { font-size: 13px; opacity: .9; }
.raffle-card .price-row {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--ll-ink);
  padding: 6px 12px; border-radius: 999px;
  font-weight: 900; font-size: 13px;
}
.raffle-card.in-booklet { box-shadow: 0 0 0 3px var(--ll-green), var(--shadow-2); }
.raffle-card.in-booklet .price-row { background: var(--ll-green); color: #0B3B22; }

.raffle-card.annual { grid-column: span 12; min-height: 340px; }
.raffle-card.annual h4 { font-size: 32px; }
.raffle-card.halfyear { grid-column: span 6; min-height: 260px; }
.raffle-card.quarterly { grid-column: span 4; }
.raffle-card.monthly { grid-column: span 3; min-height: 180px; }
.raffle-card.monthly h4 { font-size: 15px; }

@media (max-width: 980px) {
  .raffle-card.halfyear { grid-column: span 12; }
  .raffle-card.quarterly { grid-column: span 6; }
  .raffle-card.monthly { grid-column: span 6; }
}

.booklet-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: #14161C; color: #fff; border-radius: 999px;
  padding: 12px 12px 12px 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-2);
  font-weight: 700; font-size: 14px; z-index: 40;
}
.booklet-bar.hidden { display: none; }
.booklet-bar .btn-red { padding: 10px 20px; font-size: 13px; }

/* ===============================================================
   Footer (Loylogic shared)
   =============================================================== */
.ll-footer {
  background: #14161C; color: rgba(255,255,255,.82);
  padding: 48px 0 30px; margin-top: auto;
}
.ll-footer .row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.ll-footer h5 { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.ll-footer a { display: block; padding: 4px 0; font-size: 14px; color: rgba(255,255,255,.72); }
.ll-footer a:hover { color: #fff; }
.ll-footer .brand-word { color: #fff; font-weight: 900; font-size: 22px; margin-bottom: 10px; letter-spacing: .02em; }
.ll-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.5); }
@media (max-width: 780px) { .ll-footer .row { grid-template-columns: 1fr 1fr; } }

/* --- Tiny utilities --- */
.pts-big { color: var(--p-primary); font-weight: 900; }
.hidden { display: none !important; }
.center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.flex { display: flex; }
.gap-10 { gap: 10px; }
