/* ============================================================
   CardiBee — App page widgets
   Reusable: wallet hero, offer cards, category tiles, card visuals,
   stats, list rows, etc.
   ============================================================ */

/* ============ Wallet hero (Dashboard) ============ */
.wallet-hero {
  background: linear-gradient(160deg, #1a2350 0%, #0E163A 60%, #0a0f2a 100%);
  border-radius: 28px;
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wallet-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 95% -10%, rgba(245,176,39,.22), transparent 55%);
  pointer-events: none;
}
.wallet-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.featured-row { margin-top: 40px; }
.wh-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.wh-count {
  font-size: clamp(48px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 8px;
}
.wh-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
}
.wh-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  background: var(--honey);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.wh-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
}
.wh-stat .v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wh-stat .k {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}

/* Card carousel inside wallet */
.wallet-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 12px;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.wallet-cards:active { cursor: grabbing; }
.wallet-cards > * { scroll-snap-align: start; }
.wallet-cards::-webkit-scrollbar { height: 6px; }
.wallet-cards::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

@media (max-width: 760px) {
  /* Compact wallet so it + Featured offers fit one mobile screen.
     Placed AFTER the base .wh-* rules so these overrides actually win. */
  .wallet-hero { padding: 16px 16px; border-radius: 20px; }
  .wallet-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* Cards drop below the wallet text on mobile */
  .wallet-hero-grid > :last-child { order: 2; }
  .wallet-cards {
    margin: 0 -16px;
    padding: 4px 16px 8px;
    scroll-padding: 0 16px;
  }
  .wh-count { font-size: 40px; margin-top: 4px; }
  .wh-sub { font-size: 13px; margin-top: 4px; padding-right: 96px; }
  /* View all cards → top-right corner */
  .wh-cta {
    position: absolute;
    top: 16px; right: 16px;
    margin-top: 0;
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
    z-index: 2;
  }
  /* Tighter stats row */
  .wh-stats { gap: 14px; margin-top: 14px; flex-wrap: wrap; }
  .wh-stat .v { font-size: 18px; }
  .wh-stat .k { font-size: 11px; }
  .featured-row { margin-top: 24px; }
}

/* Real card art: show image, hide the synthetic labels, keep offer badge */
.bee-card.has-img,
.card-visual.has-img {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.bee-card.has-img > *:not(.bc-contact),
.card-visual.has-img > * { display: none; }
.bee-card.has-img .bc-contact {
  display: block;
  top: 12px; right: 12px;
  background: rgba(14,22,58,.72);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bee-card {
  flex-shrink: 0;
  width: 270px;
  height: 168px;
  border-radius: 16px;
  position: relative;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .25s ease;
  color: #fff;
}
.bee-card:hover { transform: translateY(-4px); }
.bc-gold {
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.25), transparent 60%),
    linear-gradient(135deg, #E8C26B 0%, #C9A04A 45%, #B58A39 100%);
  color: #1a1108;
}
.bc-navy {
  background:
    radial-gradient(circle at 80% 0%, rgba(245,176,39,.3), transparent 55%),
    linear-gradient(135deg, #1F2A60 0%, #0E163A 100%);
}
.bc-emerald {
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, #0a7a3e 0%, #054024 100%);
}
.bc-rose {
  background:
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, #B91C1C 0%, #5C0A0A 100%);
}

.bc-bank {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: left;
}
.bc-nick {
  font-size: 12.5px;
  font-style: italic;
  font-weight: 700;
  margin-top: 2px;
  opacity: .9;
  text-align: left;
}
.bc-brand {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.15;
  opacity: .85;
}
.bc-chip {
  width: 32px; height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffd56a, #b88a2a);
  margin-top: 22px;
  position: relative;
}
.bc-chip::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 2px;
}
.bc-gold .bc-chip {
  background: linear-gradient(135deg, #d4d4d4, #8d8d8d);
}
.bc-contact {
  position: absolute;
  top: 80px; right: 14px;
  font-size: 10px;
  font-weight: 700;
}
.bc-num {
  position: absolute;
  bottom: 32px; left: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.bc-holder {
  position: absolute;
  bottom: 12px; left: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.bc-net {
  position: absolute;
  bottom: 10px; right: 14px;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
}
.bc-offers {
  position: absolute;
  top: 70px; left: 16px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
}
.bc-gold .bc-offers {
  background: rgba(0,0,0,.18);
  color: #1a1108;
}

.bee-card.add {
  display: grid; place-items: center;
  background: rgba(255,255,255,.04);
  border: 2px dashed rgba(255,255,255,.18);
  box-shadow: none;
  color: rgba(255,255,255,.6);
  font-weight: 700;
}
.bee-card.add .plus {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  margin-bottom: 8px;
}

/* ============ Category tiles (compact) ============ */
.cat-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.cat-pill-tile {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.cat-pill-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--c, var(--ink));
}
.cat-pill-tile::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--c);
  opacity: .08;
}
.cat-pill-tile .ic {
  color: var(--c);
  position: relative;
  z-index: 1;
}
.cat-pill-tile .name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.cat-pill-tile .n {
  font-size: 11px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .cat-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 540px) {
  .cat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Offer cards (wide, list view) ============ */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-row {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 16px;
  align-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.offer-row:hover {
  border-color: var(--honey);
  box-shadow: var(--shadow-sm);
}
.offer-row .logo {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.offer-row .info { min-width: 0; }
.offer-row .merchant {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.offer-row .deal {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.offer-row .meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.offer-row .badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.offer-row .card-on {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,22,58,.04);
  padding: 4px 10px;
  border-radius: 999px;
}
.offer-row .card-on .swatch {
  width: 14px; height: 9px;
  border-radius: 2px;
  background: var(--c, #C9A04A);
}
.offer-row .actions,
.offer-row .foot {
  display: flex;
  gap: 10px;
  align-items: center;
}
.offer-row .heart-btn,
.offer-row .use-btn {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.offer-row .heart-btn { width: 38px; padding: 0; }
.offer-row .heart-btn.fav { color: var(--rose); border-color: rgba(233,75,106,.4); background: rgba(233,75,106,.06); }
.offer-row .use-btn { padding: 0 14px; }
.offer-row .use-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.offer-row .use-btn.primary {
  background: var(--honey);
  border-color: var(--honey);
}
.offer-row .use-btn.primary:hover {
  background: var(--honey-2);
  border-color: var(--honey-2);
  color: var(--ink);
}

.tag-pill {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag-honey { background: var(--honey-soft); color: #8C5A00; }
.tag-orange { background: var(--orange-soft); color: #B33C00; }
.tag-mint { background: var(--mint-soft); color: #0a6c41; }
.tag-rose { background: rgba(233,75,106,.15); color: #B0143A; }

@media (max-width: 760px) {
  .offer-row {
    grid-template-columns: 52px 1fr;
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
  }
  .offer-row .logo {
    width: 52px; height: 52px;
    grid-row: 1; grid-column: 1;
    border-radius: 15px;
    box-shadow: 0 6px 14px rgba(14,22,58,.18);
  }
  .offer-row .info { grid-row: 1; grid-column: 2 / -1; }
  .offer-row .merchant {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  .offer-row .badges {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    margin-top: 13px;
  }
  .offer-row .foot {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed var(--line-2);
  }
  .offer-row .foot .use-btn {
    height: 36px;
    border-radius: 999px;
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
  }
}

/* ============ Offer grid (cards view) ============ */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--honey);
}
.offer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.offer-card .logo {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.offer-card .heart-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(14,22,58,.04);
  border: 0;
  cursor: pointer;
  color: var(--muted);
  display: grid; place-items: center;
}
.offer-card .heart-btn.fav { color: var(--rose); background: rgba(233,75,106,.1); }
.offer-card .merchant {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 16px;
}
.offer-card .deal {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2px;
  line-height: 1.25;
}
.offer-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.offer-card .foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
/* Featured card with a real banner image background */
.offer-card.has-banner { min-height: 200px; justify-content: flex-end; }
.offer-card.has-banner .merchant { color: rgba(255,255,255,.85); }
.offer-card.has-banner .deal { color: #fff; }
.offer-card.has-banner .foot { color: rgba(255,255,255,.85); border-top-color: rgba(255,255,255,.25); }
.offer-card.has-banner .foot .use-btn { background: #fff; color: var(--ink); }
.offer-card .foot .use-btn {
  height: 32px;
  padding: 0 12px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ============ Filter bar (My Offers) ============ */
.filter-bar {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: inline-flex;
  background: rgba(14,22,58,.05);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.filter-tab {
  height: 34px;
  padding: 0 16px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.filter-tab .count {
  background: rgba(14,22,58,.08);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
}
.filter-tab.active .count { background: var(--honey-soft); color: #8C5A00; }

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip-filter:hover { border-color: var(--ink); }
.chip-filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.view-toggle {
  display: inline-flex;
  background: rgba(14,22,58,.05);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.view-toggle button {
  width: 34px; height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid; place-items: center;
}
.view-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ============ Big card visual (My Cards page) ============ */
.bigcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
@media (max-width: 760px) { .bigcard-grid { grid-template-columns: 1fr; } }

.bigcard {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 24px;
  position: relative;
}
.bigcard .card-visual {
  height: 220px;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.4);
}
.bigcard .card-visual.bc-gold { color: #1a1108; }
.bigcard .visual-bank {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
}
.bigcard .visual-nick {
  font-size: 14px; font-style: italic; font-weight: 700;
  margin-top: 2px;
}
.bigcard .visual-brand {
  position: absolute; top: 22px; right: 22px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-align: right; line-height: 1.1;
}
.bigcard .visual-chip {
  width: 42px; height: 32px;
  border-radius: 5px;
  margin-top: 28px;
  background: linear-gradient(135deg, #d4d4d4, #8d8d8d);
  position: relative;
}
.bigcard .visual-chip::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(0,0,0,.2); border-radius: 3px;
}
.bigcard .visual-num {
  position: absolute; bottom: 50px; left: 22px;
  font-size: 16px; font-weight: 800; letter-spacing: 0.16em;
}
.bigcard .visual-holder {
  position: absolute; bottom: 24px; left: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.bigcard .visual-net {
  position: absolute; bottom: 22px; right: 22px;
  font-size: 18px; font-weight: 900; font-style: italic;
}

.bigcard-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bigcard-meta .l {
  display: flex; gap: 14px; align-items: center;
}
.bigcard-meta .badge-circle {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--honey-soft);
  color: #8C5A00;
  font-weight: 800;
  display: grid; place-items: center;
}
.bigcard-meta .t { font-size: 15px; font-weight: 700; }
.bigcard-meta .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bigcard-meta .acts { display: flex; gap: 8px; }
.bc-iconbtn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--muted);
  cursor: pointer;
}
.bc-iconbtn:hover { color: var(--ink); border-color: var(--ink); }
.bc-iconbtn.danger:hover { color: var(--rose); border-color: var(--rose); }

/* ============ Profile widgets ============ */
.profile-hero {
  background: linear-gradient(160deg, #1a2350 0%, #0E163A 60%, #0a0f2a 100%);
  border-radius: 28px;
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(245,176,39,.2), transparent 55%);
  pointer-events: none;
}
.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
}
.ph-id {
  display: flex;
  gap: 18px;
  align-items: center;
}
.ph-avatar {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: var(--honey);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 26px;
  font-weight: 800;
}
.ph-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ph-meta {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}
.ph-meta-row {
  display: flex; gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.ph-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ph-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
}
.ph-stat .v {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ph-stat .v .unit { font-size: .55em; color: var(--honey); margin-left: 2px; }
.ph-stat .k {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.set-row {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.set-row + .set-row { border-top-left-radius: 16px; }
.set-ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(14,22,58,.05);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.set-ic.honey { background: var(--honey-soft); color: #8C5A00; }
.set-ic.rose { background: rgba(233,75,106,.12); color: var(--rose); }
.set-ic.mint { background: var(--mint-soft); color: var(--mint); }
.set-body { flex: 1; }
.set-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.set-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.set-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.set-arrow {
  color: var(--muted);
}

/* Toggle switch */
.switch {
  position: relative;
  width: 46px; height: 26px;
  background: rgba(14,22,58,.1);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.switch.on { background: var(--honey); }
.switch.on::after { transform: translateX(20px); }

/* ============ Right side widgets (Dashboard) ============ */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
}

.side-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 20px;
}
.side-card h4 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.suggest-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.suggest-card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.suggest-card-row:first-child { padding-top: 0; }
.suggest-card-row .l {
  display: flex; gap: 12px; align-items: center;
}
.swatch-card {
  width: 38px; height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  position: relative;
  flex-shrink: 0;
}
.suggest-card-row .merch { font-size: 13px; font-weight: 700; }
.suggest-card-row .pct { font-size: 12px; color: var(--muted); margin-top: 1px; }
.suggest-card-row .v {
  font-size: 14px; font-weight: 800; color: var(--mint);
  letter-spacing: -0.01em;
}

.weekly-hack {
  background: linear-gradient(160deg, #FFE9B5 0%, #FBD473 100%);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(245,176,39,.4);
}
.wh-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8C5A00;
}
.wh-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 10px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wh-byline {
  font-size: 12px;
  color: rgba(14,22,58,.6);
  margin-top: 14px;
}

/* ============ Add card form ============ */
.addcard-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
}
@media (max-width: 880px) { .addcard-card { grid-template-columns: 1fr; } }

.addcard-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.addcard-form .field { margin: 0; }
.addcard-form .field.full { grid-column: 1 / -1; }
.addcard-form .field-label {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.addcard-form .field-input {
  height: 46px;
  padding: 0 14px;
  border-radius: 11px;
}
.addcard-form .field-input input,
.addcard-form .field-input select {
  font-family: inherit;
  font-size: 14px;
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  color: var(--ink);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 20px;
}
.empty-state .ico {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--honey-soft);
  color: var(--honey);
  display: grid; place-items: center;
}
.empty-state .t { font-size: 18px; font-weight: 700; }
.empty-state .d { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 40ch; margin-left: auto; margin-right: auto; }
