/* Loffer Buddy website — styled to match the Loffer mobile app:
   honey-yellow accents on clean white, near-black ink, red-orange discount
   callouts, Poppins type, pill buttons and soft-shadow cards. */
:root {
  --bg: #fafafb;
  --card: #ffffff;
  --border: #eaebef;
  --text: #1a1a1a;
  --ink: #1a1a1a;
  --grey: #6b7280;
  --muted: #9ca3af;
  --yellow: #ffc21a;
  --yellow-top: #ffd43b;
  --yellow-bottom: #ffba0a;
  --yellow-soft: #fff3cc;
  --amber: #f2a100;          /* yellow text on white */
  --offer: #f0501e;          /* "50% OFF" callouts */
  --danger: #e5382b;
  --success: #16a34a;
  --shadow: 0 6px 16px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 14px 32px rgba(26, 26, 26, 0.09);
  --shadow-yellow: 0 8px 20px rgba(255, 194, 26, 0.38);
  --radius: 18px;

  /* legacy aliases still referenced inline by app.js */
  --gold: var(--yellow);
  --gold-dark: var(--amber);
  --gold-light: var(--yellow-soft);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a, .topnav button.link {
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--grey); background: transparent; border: none;
}
.topnav a:hover, .topnav button.link:hover { color: var(--ink); background: var(--bg); }
.topnav a.active { color: var(--ink); background: var(--yellow-soft); font-weight: 600; }
.topnav .btn-cta {
  background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom));
  color: var(--ink); padding: 10px 22px; font-weight: 600; box-shadow: var(--shadow-yellow);
}
.topnav .btn-cta:hover { filter: brightness(1.03); color: var(--ink); }
.hamburger { display: none; background: none; border: none; font-size: 22px; color: var(--ink); }

@media (max-width: 720px) {
  .brand img { height: 36px; }
  .topnav { position: fixed; top: 58px; left: 0; right: 0; background: var(--card);
    flex-direction: column; align-items: stretch; padding: 12px; gap: 4px;
    box-shadow: var(--shadow-lg); display: none; border-radius: 0 0 20px 20px; }
  .topnav.open { display: flex; }
  .topnav a, .topnav button.link, .topnav .btn-cta { text-align: left; width: 100%; }
  .hamburger { display: block; }
}

/* ---------- Layout helpers ---------- */
#app { flex: 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.page-pad { padding: 32px 0 60px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14.5px; border: none;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom));
  color: var(--ink); box-shadow: var(--shadow-yellow);
}
.btn-primary:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn-outline { background: var(--card); color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--yellow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { filter: brightness(1.2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ---------- Landing hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffdc4a 0%, var(--yellow) 100%);
  padding-bottom: 70px;
}
.hero::before { /* lighter swoosh, like the app's headers */
  content: ''; position: absolute; left: -120px; top: -140px; width: 520px; height: 380px;
  background: rgba(255, 255, 255, 0.2); border-radius: 50%;
}
.hero::after { /* white wave into the page */
  content: ''; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 90px;
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto; padding: 56px 20px 30px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding-top: 36px; text-align: center; } }
.hero h1 {
  font-size: 50px; line-height: 1.08; margin: 0 0 16px; font-weight: 800;
}
.hero h1 span { color: #fff; text-shadow: 0 2px 0 rgba(180, 120, 0, 0.25); }
@media (max-width: 520px) { .hero h1 { font-size: 36px; } }
.hero p.lead { font-size: 16.5px; line-height: 1.6; color: #4a3b10; margin: 0 0 26px; max-width: 500px; }
@media (max-width: 860px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-actions { justify-content: center; } }
.hero .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 22px rgba(26, 26, 26, 0.25); }
.hero .btn-outline { background: #fff; border-color: #fff; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .bee { width: min(380px, 80%); filter: drop-shadow(0 18px 28px rgba(140, 90, 0, 0.28));
  animation: float 3.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-chip {
  position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.float-chip small { display: block; font-weight: 500; color: var(--grey); font-size: 11.5px; }
.float-chip .tag { background: var(--offer); color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.float-chip.one { left: 0; top: 18%; }
.float-chip.two { right: 0; bottom: 14%; }
@media (max-width: 520px) { .float-chip { display: none; } }

.stat-strip { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
@media (max-width: 860px) { .stat-strip { justify-content: center; } }
.stat-strip .stat {
  background: rgba(255, 255, 255, 0.85); border-radius: 16px; padding: 12px 20px; min-width: 130px;
}
.stat-strip .stat b { font-size: 24px; display: block; color: var(--ink); line-height: 1.2; }
.stat-strip .stat span { font-size: 12.5px; color: var(--grey); }

.section { padding: 54px 0; }
.section-head { text-align: center; max-width: 580px; margin: 0 auto 32px; }
.section-head h2 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.section-head h2 span { color: var(--amber); }
.section-head p { color: var(--grey); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* Feature cards reuse the app's onboarding illustrations. */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.feature-card {
  background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .art { aspect-ratio: 1 / 0.95; background: var(--yellow) center 70% / cover no-repeat; }
.feature-card .copy { padding: 18px 22px 24px; text-align: center; }
.feature-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.feature-card h3 span { color: var(--amber); }
.feature-card p { margin: 0; font-size: 13.5px; color: var(--grey); line-height: 1.6; }
/* legacy icon tile (still used if any template emits .ico) */
.feature-card .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--yellow-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }

.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffdc4a, var(--yellow)); color: var(--ink);
  border-radius: 28px; padding: 36px 40px; min-height: 180px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-yellow);
}
.cta-band h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.cta-band p { margin: 0; color: #4a3b10; font-size: 14.5px; max-width: 460px; line-height: 1.6; }
.cta-band .btn { flex-shrink: 0; position: relative; z-index: 1; }
.cta-band .cta-bee { position: absolute; right: 190px; bottom: -30px; width: 170px; opacity: .95; pointer-events: none; }
@media (max-width: 860px) { .cta-band .cta-bee { display: none; } }

/* ---------- Page header band (browse etc.) ---------- */
.page-band {
  background: linear-gradient(180deg, #ffdc4a 0%, var(--yellow) 100%);
  border-radius: 0 0 32px 32px; padding: 34px 0 30px; margin-bottom: 28px;
}
.page-band h1 { margin: 0 0 4px; font-size: 30px; font-weight: 800; }
.page-band p { margin: 0 0 18px; color: #4a3b10; font-size: 14.5px; }

/* ---------- Filters / toolbar ---------- */
.toolbar {
  display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap;
}
.toolbar input, .toolbar select {
  padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px;
  background: var(--card); min-width: 180px; font-family: inherit; color: var(--ink);
}
.page-band .toolbar { margin: 0; }
.page-band .toolbar input, .page-band .toolbar select { border-color: transparent; box-shadow: 0 6px 14px rgba(138, 98, 0, 0.12); }
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.page-band .btn-outline { border-color: transparent; }
.tabs { display: flex; gap: 6px; background: #f4f5f7; border-radius: 999px; padding: 4px; margin-bottom: 22px; width: fit-content; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; font-size: 13.5px; font-weight: 500; color: var(--grey);
  border: none; background: none; border-radius: 999px;
}
.tab.active { color: var(--ink); font-weight: 600; background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom)); }

/* ---------- Offer cards ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.offer-card {
  background: var(--card); border-radius: var(--radius); padding: 8px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.offer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.offer-thumb {
  height: 170px; border-radius: 14px;
  /* The photo is set inline as background-image; the colour shows through
     if it's missing or fails to load. */
  background: #ffd66b linear-gradient(135deg, #ffd66b, #ffa928) center/cover no-repeat;
  background-color: #ffc94d;
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: rgba(255,255,255,.85);
  position: relative;
}
.offer-thumb .badge-discount {
  position: absolute; bottom: 10px; left: 10px; background: var(--offer); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
}
.offer-thumb .thumb-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.offer-body { padding: 12px 8px 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.offer-biz { font-size: 12px; color: var(--grey); font-weight: 500; }
.offer-title { font-size: 15.5px; font-weight: 700; margin: 0; line-height: 1.35; }
.offer-meta { font-size: 12.5px; color: var(--grey); display: flex; align-items: center; gap: 6px; }
.offer-meta .dot { color: var(--amber); }
.offer-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.icon-btn {
  border: none; background: var(--card); border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); color: var(--ink); transition: transform .12s;
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn.active { background: var(--yellow); }
.icon-btn.fav-btn.active { background: #fff; color: var(--danger); }
.offer-card .btn { flex: 1; padding: 10px; font-size: 13px; }

.empty-msg, .loading-msg { color: var(--grey); font-size: 14px; padding: 36px 20px; text-align: center; grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 30px 20px; grid-column: 1 / -1; }
.empty-state img { width: 130px; margin: 0 auto 10px; }
.empty-state h3 { margin: 0 0 4px; font-size: 17px; }
.empty-state p { margin: 0 0 16px; color: var(--grey); font-size: 13.5px; }

/* ---------- Auth / forms ---------- */
.auth-shell { max-width: 400px; margin: 48px auto; }
.card {
  background: var(--card); border-radius: 22px; padding: 28px; box-shadow: var(--shadow);
}
.card h1, .card h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.card p.sub { color: var(--grey); font-size: 13.5px; margin: 0 0 20px; line-height: 1.55; }

.auth-split {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 44px auto;
  background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
}
@media (max-width: 760px) { .auth-split { grid-template-columns: 1fr; margin: 20px auto; } }
.auth-art {
  position: relative; background: linear-gradient(180deg, #ffdc4a, var(--yellow));
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 28px; text-align: center;
}
.auth-art img.bee { width: 72%; max-width: 260px; filter: drop-shadow(0 14px 22px rgba(140, 90, 0, 0.25)); }
.auth-art img.logo { width: 200px; margin-top: 12px; }
@media (max-width: 760px) { .auth-art { padding: 24px; } .auth-art img.bee { width: 150px; } .auth-art img.logo { width: 160px; } }
.auth-form { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .auth-form { padding: 28px 22px; } }
.auth-form h1 { margin: 0 0 4px; font-size: 26px; font-weight: 800; }
.auth-form p.sub { color: var(--grey); font-size: 13.5px; margin: 0 0 20px; }
.phone-field { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.phone-field:focus-within { outline: 2px solid var(--yellow); outline-offset: -1px; border-color: var(--yellow); }
.phone-field .cc { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; font-weight: 600; font-size: 14.5px; border-right: 1px solid var(--border); height: 26px; }
.phone-field .flag { width: 22px; height: 15px; border-radius: 2px; background: linear-gradient(#ff9933 33.3%, #fff 33.3% 66.6%, #138808 66.6%); position: relative; }
.phone-field .flag::after { content: ''; position: absolute; left: 9px; top: 5.5px; width: 4px; height: 4px; border-radius: 50%; background: #000080; }
.phone-field input { border: none !important; outline: none !important; background: transparent !important; }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 22px !important; font-weight: 700; }
.terms { font-size: 12px; color: var(--grey); text-align: center; margin-top: 18px; line-height: 1.5; }
.terms b { color: var(--ink); }

label { display: block; font-size: 12.5px; font-weight: 600; margin: 14px 0 6px; color: var(--grey); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 14px;
  font-size: 14px; background: #fff; font-family: inherit; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: -1px; border-color: var(--yellow); }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }
.error-text { color: var(--danger); font-size: 12.5px; margin-top: 10px; min-height: 14px; }
.hint-text { color: var(--grey); font-size: 12px; margin-top: 8px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row-2 { grid-template-columns: 1fr; } }
.field-group { margin-bottom: 4px; }
.otp-boxline { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.link-btn { background: none; border: none; color: var(--amber); font-weight: 600; font-size: 13px; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--ink);
  background: #fff; padding: 8px 16px 8px 12px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 18px; }
.back-link:hover { box-shadow: var(--shadow-lg); }

/* ---------- Dashboard shell ---------- */
.dash-shell { display: grid; grid-template-columns: 230px 1fr; gap: 24px; min-height: calc(100vh - 150px); padding-bottom: 40px; }
@media (max-width: 820px) { .dash-shell { grid-template-columns: 1fr; gap: 12px; } }
.dash-side {
  background: var(--card); border-radius: 22px; padding: 14px; box-shadow: var(--shadow);
  align-self: start; display: flex; flex-direction: column; gap: 4px;
}
@media (max-width: 820px) { .dash-side { flex-direction: row; overflow-x: auto; padding: 8px; } }
.dash-side .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--grey); white-space: nowrap;
}
.dash-side .nav-item:hover { background: var(--bg); color: var(--ink); }
.dash-side .nav-item.active { background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom)); color: var(--ink); font-weight: 600; }
.dash-main { padding: 4px 0 40px; min-width: 0; }
.dash-main h2 { margin: 0 0 4px; font-size: 23px; font-weight: 800; }
.dash-main p.section-sub { color: var(--grey); font-size: 13.5px; margin: 0 0 22px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border-radius: 18px; padding: 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-card .stat-ico {
  width: 44px; height: 44px; border-radius: 14px; background: var(--yellow-soft);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.stat-card .num { font-size: 25px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-card .label { font-size: 12px; color: var(--grey); margin-top: 2px; }

/* ---------- Dashboard header ---------- */
.dash-welcome {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 24px 26px; min-height: 110px;
  background: linear-gradient(180deg, #ffdc4a, var(--yellow)); border-radius: 26px; color: var(--ink);
  box-shadow: var(--shadow-yellow);
}
.dash-welcome .avatar {
  width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--amber);
  border: 3px solid #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex-shrink: 0;
}
.dash-welcome h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }
.dash-welcome p { margin: 2px 0 0; font-size: 13.5px; color: #4a3b10; }
.dash-welcome .welcome-bee { position: absolute; right: 18px; bottom: -26px; width: 130px; pointer-events: none; }
@media (max-width: 600px) { .dash-welcome .welcome-bee { width: 90px; right: 6px; bottom: -14px; } }

/* ---------- Charts ---------- */
.chart-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 24px; }
@media (max-width: 820px) { .chart-row { grid-template-columns: 1fr; } }
.chart-card { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.chart-card h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.chart-card p.chart-sub { margin: 0 0 16px; font-size: 12px; color: var(--grey); }
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 34px; align-items: center; gap: 10px; }
.bar-row .bar-name { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--yellow-soft); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--yellow-top), var(--yellow-bottom)); height: 100%; border-radius: 999px; min-width: 4px; }
.bar-row .bar-value { font-size: 12px; color: var(--grey); text-align: right; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.donut-svg { flex-shrink: 0; }
.donut-total { font-size: 20px; font-weight: 800; fill: var(--ink); font-family: 'Poppins', sans-serif; }
.donut-total-label { font-size: 10px; fill: var(--grey); font-family: 'Poppins', sans-serif; }
.chart-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-item .legend-count { margin-left: auto; font-weight: 700; color: var(--ink); padding-left: 14px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 13px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
th { background: #f7f7f9; font-weight: 600; color: var(--grey); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge.approved { background: #e5f8ee; color: var(--success); }
.badge.pending { background: var(--yellow-soft); color: #a86f00; }
.badge.rejected { background: #ffeceA; color: var(--danger); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--card); }
.btn-sm.delete { border-color: var(--danger); color: var(--danger); }
.btn-sm:hover { border-color: var(--yellow); }
.btn-add {
  padding: 10px 20px; border-radius: 999px; font-size: 13px; border: none;
  background: linear-gradient(180deg, var(--yellow-top), var(--yellow-bottom)); color: var(--ink);
  margin-left: auto; font-weight: 600; box-shadow: var(--shadow-yellow);
}
.btn-add:hover { filter: brightness(1.03); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(26, 26, 26, 0.45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal { background: var(--card); border-radius: 24px; padding: 26px; width: 500px; max-width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal .modal-actions .btn { flex: 1; }
.btn-cancel { background: #f4f5f7; color: var(--ink); }

/* ---------- Offer detail ---------- */
.detail-hero { position: relative; border-radius: 26px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow); }
.detail-hero img { width: 100%; height: 340px; object-fit: cover; }
.detail-hero .ph { height: 300px; background: linear-gradient(135deg, #ffd66b, #ffa928); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.detail-hero .badge-discount {
  position: absolute; left: 20px; bottom: 20px; background: var(--offer); color: #fff;
  font-weight: 800; font-size: 20px; padding: 8px 16px; border-radius: 12px; box-shadow: 0 8px 18px rgba(240, 80, 30, 0.35);
}
@media (max-width: 600px) { .detail-hero img { height: 230px; } }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid .biz-link { font-weight: 600; color: var(--amber); font-size: 14px; }
.detail-grid h1 { font-size: 30px; font-weight: 800; margin: 4px 0 12px; line-height: 1.2; }
.info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.info-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.info-row .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.info-row small { display: block; color: var(--grey); font-size: 11.5px; }
.promo-code { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow-soft); border: 1.5px dashed var(--yellow); border-radius: 12px; padding: 8px 14px; font-weight: 700; letter-spacing: 0.08em; }
.tier-card { border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; background: var(--card); box-shadow: var(--shadow); }
.tier-card .badge { margin-bottom: 6px; }
.biz-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.biz-head .offer-thumb { border-radius: 20px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--ink); color: white; padding: 12px 20px; border-radius: 14px; font-size: 13.5px; z-index: 100; box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); margin-top: 40px; box-shadow: 0 -1px 0 var(--border); }
.site-footer-inner { max-width: 1160px; margin: 0 auto; padding: 30px 20px; text-align: center; }
.footer-logo { height: 44px; width: auto; margin: 0 auto 6px; }
.site-footer-inner p { color: var(--grey); font-size: 12.5px; margin: 4px 0; }
.site-footer-inner .fine { font-size: 11.5px; }
.footer-nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.footer-nav a { font-size: 13px; font-weight: 500; color: var(--grey); }
.footer-nav a:hover { color: var(--amber); }
