
/* FIG3 CLEAN REBUILD v3
   Style: deep eggplant purple + sage green + clay rose + warm stone.
   Mature local-brand UI with compact radii.
*/

:root{
  --bg:#F3EEE7;
  --surface:#FFFFFF;
  --surface-soft:#FAF7F2;
  --ink:#241F26;
  --text:#4F4853;
  --muted:#7D7681;
  --line:rgba(67,49,71,.12);

  --purple:#4B2E4F;
  --purple-dark:#38213D;
  --sage:#7D8F72;
  --sage-dark:#667A5C;
  --clay:#C68873;
  --clay-dark:#A96554;
  --stone:#B7B2A7;
  --radius-card:8px;
  --radius-btn:6px;
  --shadow:0 14px 36px rgba(36,26,38,.08);
  --shadow-sm:0 8px 22px rgba(36,26,38,.05);
  --container:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:linear-gradient(180deg,#FAF7F2 0%,var(--bg) 100%);
  color:var(--ink);
  font-family:"Noto Sans TC","Microsoft JhengHei","PingFang TC",sans-serif;
  line-height:1.68;
  letter-spacing:.01em;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
.container{width:min(var(--container),calc(100% - 36px));margin:auto}
h1,h2,h3,p{margin-top:0}

.site-header{
  position:sticky;top:0;z-index:90;
  background:linear-gradient(135deg,var(--purple),var(--purple-dark));
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 24px rgba(26,19,28,.16);
}
.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:42px;height:42px;border-radius:6px;
  display:grid;place-items:center;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.16);
}
.brand-mark img{width:100%;height:100%;object-fit:contain}
.brand-text strong{display:block;color:#fff;font-size:18px;line-height:1.1;font-weight:900}
.brand-text span{display:block;color:rgba(255,255,255,.72);font-size:12px;font-weight:700}

.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{
  color:rgba(255,255,255,.86);
  font-size:14px;font-weight:850;
  padding:10px 12px;
  border-radius:6px;
}
.nav-links a:hover,.nav-links a.active{background:rgba(255,255,255,.10);color:#fff}
.menu-btn{
  display:none;
  padding:9px 13px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;font-weight:900;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:40px;
  padding:10px 18px;
  border-radius:6px;
  border:1px solid transparent;
  cursor:pointer;
  transition:.18s ease;
  font-weight:900;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--sage);color:#fff;box-shadow:0 8px 18px rgba(125,143,114,.22)}
.btn-primary:hover{background:var(--sage-dark)}
.btn-dark{background:var(--purple);color:#fff;box-shadow:0 8px 18px rgba(75,46,79,.18)}
.btn-dark:hover{background:var(--purple-dark)}
.btn-soft{background:#fff;color:var(--clay-dark);border-color:rgba(198,136,115,.34)}
.btn-soft:hover{background:#FFF7F3}
.btn-outline{background:transparent;color:var(--purple);border-color:rgba(75,46,79,.18)}
.btn-line{background:#06C755;color:#fff}
.btn-redeem{background:#06C755;color:#fff;box-shadow:0 8px 18px rgba(6,199,85,.20)}
.btn-redeem:hover{background:#05B84F}

/* Home hero */
.page-shell{padding:20px 0 0}
.hero-wrap{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.hero{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  align-items:stretch;
  min-height:340px;
}
.hero-copy{
  padding:40px 34px 32px;
  background:linear-gradient(180deg,#FFFDFA 0%,#F8F3EC 100%);
}
.hero-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 12px;
  border-radius:6px;
  background:#F0ECE3;
  color:var(--sage-dark);
  border:1px solid rgba(125,143,114,.16);
  font-size:13px;font-weight:900;
}
.hero h1{
  margin:18px 0 14px;
  font-size:clamp(34px,5vw,58px);
  line-height:1.06;
  letter-spacing:-.05em;
}
.hero h1 span{
  display:block;
  margin-top:8px;
  font-size:.42em;
  letter-spacing:.12em;
  color:var(--purple);
  font-weight:900;
}
.hero p{color:var(--text);max-width:520px;font-size:18px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.hero-note{margin-top:14px;color:var(--muted);font-size:14px}
.hero-media{min-height:340px;background:url("pics/hero-local.svg") center/cover no-repeat;border-radius:0}
.hero-video-card{
  min-height:340px;
  display:grid;
  place-items:center;
  padding:24px;
  background:linear-gradient(135deg,#F7F0E8 0%,#E8DFD3 100%);
}
.shorts-frame{
  aspect-ratio:9/16;
  width:min(260px,100%);
  max-height:420px;
  margin:auto;
  border-radius:18px;
  overflow:hidden;
  background:#1f1722;
  box-shadow:0 18px 42px rgba(36,26,38,.18);
}
.shorts-frame iframe{width:100%;height:100%;border:0;border-radius:18px;display:block}

.section{padding:40px 0}
.section-tight{padding:28px 0}
.section-head.center{text-align:center}
.section-head h2{font-size:31px;line-height:1.16;letter-spacing:-.04em;margin-bottom:6px}
.section-head p{color:var(--muted)}
.more-link{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:14px;
  padding:8px 15px;
  border-radius:6px;
  background:#fff;
  color:var(--clay-dark);
  border:1px solid rgba(198,136,115,.25);
  font-size:13px;
  font-weight:900;
}

/* Categories like reference image */
.category-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:20px;
}
.category-card{
  position:relative;
  background:linear-gradient(145deg,#fff,#FBF8F3);
  border:1px solid rgba(67,49,71,.08);
  border-radius:8px;
  min-height:108px;
  padding:15px 10px 13px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  box-shadow:0 10px 24px rgba(75,46,79,.06);
  text-align:center;
}
.category-card svg{
  width:48px;
  height:48px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.05;
  stroke-linecap:round;
  stroke-linejoin:round;
  border-radius:0;
  filter:drop-shadow(0 3px 5px rgba(75,46,79,.10));
}
.category-card .icon-bg,
.category-card .icon-fill{
  fill:currentColor;
  stroke:none;
}
.category-card .icon-bg{opacity:.13}
.category-card .icon-fill{opacity:.22}
.category-card span{font-size:13px;font-weight:900;color:var(--text)}
.category-card:nth-child(3n+1){color:var(--purple);background:linear-gradient(145deg,#fff,#F5EFF5)}
.category-card:nth-child(3n+2){color:var(--clay-dark);background:linear-gradient(145deg,#fff,#F8EEE9)}
.category-card:nth-child(3n){color:var(--sage-dark);background:linear-gradient(145deg,#fff,#EEF3EA)}

.merchant-cta-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.merchant-cta-card{
  background:#fff;
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
  padding:22px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.merchant-cta-card h2{
  margin-bottom:0;
}
.merchant-cta-card p{
  color:var(--muted);
  margin-bottom:6px;
}
.merchant-cta-card .btn{
  margin-top:auto;
}

/* Featured stores */
.featured-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:20px;
}
.feature-card{
  background:#fff;
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.feature-photo{
  aspect-ratio:1;
  background:#fff;
  border:1px solid rgba(31,21,33,.06);
  border-radius:16px;
  overflow:hidden;
  padding:6px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}
.feature-logo{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:transparent;border:0;box-shadow:none;transform:none}
.feature-content{padding:11px 12px 12px}
.feature-title{font-size:14px;font-weight:900;line-height:1.35;margin-bottom:4px}
.feature-meta{font-size:12px;color:#8B846D;margin-bottom:4px;font-weight:800}
.feature-tag-row{display:flex;gap:6px;flex-wrap:wrap}
.feature-tag{
  display:inline-flex;
  align-items:center;
  padding:3px 7px;
  border-radius:6px;
  background:#F4EEE8;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.feature-offer{margin-top:6px;color:var(--clay-dark);font-size:12px;font-weight:900}

/* Service blocks */
.service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:20px;
}
.service-card{
  border-radius:8px;
  overflow:hidden;
  min-height:156px;
  color:#fff;
  box-shadow:var(--shadow);
}
.service-card.purple{background:linear-gradient(135deg,var(--purple),#604962)}
.service-card.sage{background:linear-gradient(135deg,var(--sage),#92A186)}
.service-card.clay{background:linear-gradient(135deg,var(--clay),#D49A87)}
.service-inner{padding:18px 18px 16px;height:100%;display:flex;flex-direction:column}
.service-icon svg{width:34px;height:34px;stroke:rgba(255,255,255,.94);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.service-title{font-size:21px;font-weight:900;line-height:1.2;margin-top:8px}
.service-sub{margin-top:4px;color:rgba(255,255,255,.78);font-size:13px}
.service-actions{margin-top:auto;padding-top:14px}
.service-actions .btn{
  min-height:33px;
  padding:7px 14px;
  background:#fff;
  color:var(--ink);
  border:0;
  font-size:12px;
  border-radius:6px;
}
.partner-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:20px;
}
.partner-card{
  background:#fff;
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
  padding:20px;
  text-align:center;
}
.partner-logo{
  width:104px;
  height:104px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(67,49,71,.12);
  border-radius:16px;
  background:#FAF7F2;
  color:var(--purple);
  font-weight:900;
}
.partner-logo img{max-width:82px;max-height:82px;object-fit:contain}
.partner-card p{margin-bottom:0;color:var(--muted);font-weight:800}

/* Inner pages */
.page-hero{padding:34px 0 12px}
.page-hero-card{
  background:var(--surface);
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  overflow:hidden;
}
.page-hero-copy{padding:32px}
.page-hero-side{padding:24px;background:linear-gradient(135deg,var(--purple),#634868);color:#fff}
.page-hero h1{margin:14px 0 10px;font-size:clamp(34px,4.7vw,50px);line-height:1.08;letter-spacing:-.05em}
.eyebrow{
  display:inline-flex;align-items:center;
  padding:7px 12px;
  border-radius:6px;
  background:#F3ECE5;
  color:var(--clay-dark);
  font-size:13px;
  font-weight:900;
}
.page-hero p,.card p,.panel p{color:var(--muted)}
.dark-panel,.gradient-panel,.panel.dark{color:#fff}
.dark-panel h2,.dark-panel h3,.gradient-panel h2,.gradient-panel h3,.panel.dark h2,.panel.dark h3{color:#fff}
.dark-panel p,.gradient-panel p,.panel.dark p,.dark-panel li,.gradient-panel li,.panel.dark li{color:#f6eef7;opacity:1}
.dark-panel .list-item,.gradient-panel .list-item,.panel.dark .list-item{color:#f6eef7;opacity:1}
.dark-panel .list-item span:first-child,.gradient-panel .list-item span:first-child,.panel.dark .list-item span:first-child{color:#d9a07f;opacity:1}
.page-hero-side p{color:#f6eef7;opacity:1}
.light-card,.process-card,.info-card{color:#2d2430}
.light-card p,.process-card p,.info-card p{color:#5f5364}

.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.card,.panel,.news-card,.faq details,.directory,.step{
  background:#fff;
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
}
.card,.panel,.directory,.step,.news-card{padding:22px}
.panel.dark{background:linear-gradient(135deg,var(--purple),#604562);color:#fff}
.panel.dark p,.panel.dark li,.panel.dark .list-item{color:rgba(255,255,255,.82)}
.card-icon{
  width:46px;
  height:46px;
  border-radius:6px;
  display:grid;
  place-items:center;
  background:#F5EFE9;
  color:var(--purple);
  margin-bottom:14px;
}
.card-icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feature-icon,
.process-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  background:#F2EADF;
  color:var(--purple);
}
.feature-icon svg,
.process-icon svg{
  width:24px;
  height:24px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.process-flow{margin-top:18px}
.info-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.card-title-row,
.info-card-head,
.feature-card-head,
.cta-card-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.card-title-row h2,
.card-title-row h3,
.info-card-head h2,
.info-card-head h3,
.feature-card-head h3,
.cta-card-head h3{
  margin:0;
}
.card-title-row .feature-icon,
.info-card-head .feature-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  margin-bottom:0;
}
.merchant-cta-card .card-title-row{
  margin-bottom:2px;
}
.info-card p{
  margin-bottom:0;
}
.card-steps-grid{align-items:stretch}
.step-card{
  display:flex;
  flex-direction:column;
  min-height:220px;
  padding:24px;
}
.step-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.step-card .step-number,
.step-card .step-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
}
.step-card .step-number{
  background:#F2EADF;
  color:var(--purple);
  font-weight:900;
}
.step-card .step-icon{
  background:#EFE6F0;
  color:var(--purple);
}
.step-card .step-icon svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.step-card h3{
  margin:0 0 12px;
  color:var(--ink);
}
.step-card p{
  margin:0;
  color:#5F5364;
  line-height:1.75;
}
.card-video-section{padding-top:24px}
.card-video-panel{
  padding:32px;
  border-radius:22px;
  background:linear-gradient(135deg,#FFF8F1 0%,#FFFFFF 55%,#F4ECF5 100%);
  box-shadow:0 18px 45px rgba(37,24,40,.08);
  border:1px solid rgba(75,46,79,.10);
}
.card-video-panel .section-heading{
  text-align:center;
  max-width:720px;
  margin:0 auto 24px;
}
.card-video-panel .eyebrow{
  display:inline-flex;
  margin-bottom:8px;
  padding:5px 12px;
  border-radius:6px;
  background:rgba(75,46,79,.10);
  color:var(--purple);
  font-weight:900;
  font-size:14px;
}
.card-video-panel h2{margin:0 0 8px}
.card-video-panel p{color:var(--muted)}
.card-video-grid{
  display:grid;
  grid-template-columns:minmax(300px,380px) minmax(0,1fr);
  gap:32px;
  align-items:stretch;
  max-width:980px;
  margin:0 auto;
}
.card-video-frame{
  width:100%;
  max-width:360px;
  margin:0 auto;
  aspect-ratio:9 / 16;
  border-radius:18px;
  overflow:hidden;
  background:#111;
  box-shadow:0 18px 38px rgba(0,0,0,.18);
}
.card-video-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.card-video-steps{
  display:grid;
  grid-template-rows:repeat(3,1fr);
  gap:16px;
  align-self:stretch;
}
.video-step-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  min-height:0;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(75,46,79,.08);
  box-shadow:0 8px 22px rgba(37,24,40,.06);
}
.video-step-card .step-number{
  flex:0 0 auto;
  width:32px;
  height:32px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(75,46,79,.10);
  color:var(--purple);
  font-weight:900;
}
.video-step-card h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
}
.video-step-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.value-grid{margin-top:18px}
.value-card{
  background:#FAF7F2;
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  padding:18px;
}
.value-card h3{
  margin:0 0 8px;
  color:var(--purple);
}
.value-card p{
  margin:0;
  color:var(--text);
}
.process-section > p{
  max-width:760px;
}
.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.process-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  color:var(--ink);
}
.panel.dark .process-card h3,
.gradient-panel .process-card h3{
  color:var(--ink);
}
.panel.dark .process-card p,
.gradient-panel .process-card p{
  color:#5f5364;
}
.process-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.process-card-top .process-icon{
  margin-bottom:0;
}
.step-number{
  width:34px;
  height:34px;
  border-radius:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--purple);
  color:#fff;
  font-weight:900;
  line-height:1;
}
.process-card:nth-child(2) .step-number{background:var(--sage)}
.process-card:nth-child(3) .step-number{background:var(--clay)}
.process-card:nth-child(4) .step-number{background:var(--stone);color:var(--purple)}
.flow-panel{background:#fff}
.flow-line{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:16px;
}
.flow-line span{
  position:relative;
  min-height:64px;
  display:grid;
  place-items:center;
  padding:10px;
  text-align:center;
  border-radius:8px;
  background:#FAF7F2;
  border:1px solid rgba(67,49,71,.10);
  color:var(--purple);
  font-weight:900;
}
.flow-line span:not(:last-child)::after{
  content:"";
  position:absolute;
  right:-9px;
  top:50%;
  width:8px;
  height:8px;
  border-top:2px solid var(--stone);
  border-right:2px solid var(--stone);
  transform:translateY(-50%) rotate(45deg);
}
.list{display:grid;gap:10px;margin-top:12px}
.list-item{display:flex;gap:10px;color:var(--text);font-weight:800}
.list-item span:first-child{color:var(--clay-dark);font-weight:900}

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.step-no{
  width:34px;
  height:34px;
  border-radius:6px;
  display:grid;
  place-items:center;
  background:var(--purple);
  color:#fff;
  font-weight:900;
  margin-bottom:12px;
}
.step:nth-child(2) .step-no{background:var(--sage)}
.step:nth-child(3) .step-no{background:var(--clay)}
.step:nth-child(4) .step-no{background:var(--stone);color:var(--purple)}
.step h3{font-size:18px;margin-bottom:6px}
.step p{margin-bottom:0;color:var(--muted);font-size:14px}

/* Directory */
.filters{
  display:grid;
  grid-template-columns:minmax(240px,1.35fr) minmax(150px,.7fr) minmax(150px,.7fr) auto;
  gap:12px;
  margin-bottom:14px;
}
input,select,textarea{
  width:100%;
  min-height:46px;
  padding:11px 13px;
  border:1px solid rgba(67,49,71,.16);
  border-radius:6px;
  outline:0;
  background:#FFFDFA;
  color:var(--ink);
}
textarea{min-height:112px;resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color:rgba(125,143,114,.72);
  box-shadow:0 0 0 4px rgba(125,143,114,.10);
}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}
.chip{
  padding:8px 12px;
  border-radius:6px;
  border:1px solid rgba(67,49,71,.12);
  background:#fff;
  color:var(--text);
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}
.chip.active{background:#EEF2EB;color:var(--sage-dark);border-color:rgba(125,143,114,.25)}
.shop-data-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 18px;
  padding:10px 12px;
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  background:rgba(250,247,242,.78);
}
.shop-data-status{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}
.shop-data-sync{
  flex:0 0 auto;
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(67,49,71,.14);
  border-radius:6px;
  background:#fff;
  color:var(--purple);
  font-weight:900;
  cursor:pointer;
}
.shop-data-sync:disabled{
  cursor:not-allowed;
  opacity:.62;
}

.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px}
.shop-card{
  background:#fff;
  border:1px solid rgba(67,49,71,.10);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  grid-template-areas:
    "logo content"
    "actions actions";
  gap:12px 14px;
  align-items:start;
  padding:16px;
  min-height:100%;
}
.shop-photo{aspect-ratio:4/3;background:center/cover no-repeat;border-radius:0}
.shop-card:nth-child(4n+1) .shop-photo{background-image:url('pics/photo-coffee.svg')}
.shop-card:nth-child(4n+2) .shop-photo{background-image:url('pics/photo-shop.svg')}
.shop-card:nth-child(4n+3) .shop-photo{background-image:url('pics/photo-travel.svg')}
.shop-card:nth-child(4n+4) .shop-photo{background-image:url('pics/photo-bike.svg')}
.shop-logo-box{
  grid-area:logo;
  width:120px;
  height:120px;
  flex:0 0 120px;
  padding:6px;
  box-sizing:border-box;
  border:1px solid rgba(31,21,33,.06);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}
.shop-logo{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:transparent;border:0;box-shadow:none;transform:none}
.shop-content{grid-area:content;display:flex;flex-direction:column;min-width:0;min-height:100%}
.shop-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:6px}
.shop-head h3{
  font-size:20px;
  line-height:1.32;
  margin-bottom:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.tag{
  display:inline-flex;
  padding:3px 7px;
  border-radius:6px;
  background:#F4EEE8;
  color:var(--purple);
  font-size:11px;
  font-weight:900;
}
.tag.area{background:#EEF2EB;color:var(--sage-dark)}
.offer{
  background:#FBF1ED;
  color:var(--clay-dark);
  padding:10px;
  border-radius:6px;
  border-left:4px solid var(--clay);
  line-height:1.55;
  font-size:13px;
  font-weight:900;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.shop-actions{grid-area:actions;margin-top:2px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.mini-btn{
  width:100%;
  min-width:0;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:12px;
  border:1px solid rgba(67,49,71,.12);
  background:#fff;
  color:var(--text);
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.mini-btn.primary{background:var(--purple);border-color:var(--purple);color:#fff}
.empty{
  display:none;
  padding:32px 18px;
  text-align:center;
  border:1px dashed rgba(67,49,71,.22);
  border-radius:8px;
  color:var(--muted);
  background:rgba(255,255,255,.52);
}

/* Footer / modal */
.faq{display:grid;gap:12px}
.faq details{padding:18px}
.faq summary{cursor:pointer;font-weight:900}
.faq p{margin:12px 0 0;color:var(--muted)}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.news-date{color:var(--clay-dark);font-size:13px;font-weight:900;margin-bottom:8px}
.footer{
  margin-top:24px;
  padding:40px 0;
  background:linear-gradient(135deg,var(--purple),var(--purple-dark));
  color:#fff;
}
.footer-grid{display:grid;grid-template-columns:1.3fr .7fr .7fr;gap:20px}
.footer p,.footer a{color:rgba(255,255,255,.72)}
.footer a:hover{color:#fff}
.footer-links{display:grid;gap:7px}
.backtop{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:20;
  width:42px;
  height:42px;
  border:0;
  border-radius:6px;
  background:rgba(75,46,79,.88);
  color:#fff;
  font-size:0;
  font-weight:900;
  box-shadow:0 10px 22px rgba(75,46,79,.22);
  cursor:pointer;
}
.backtop::before{
  content:"↑";
  display:block;
  font-size:24px;
  line-height:42px;
}
.modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(31,21,33,.56);
}
.modal.open{display:grid}
.modal-card{
  width:min(720px,100%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:8px;
  box-shadow:0 30px 80px rgba(0,0,0,.24);
}
.modal-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px 14px;
  border-bottom:1px solid rgba(67,49,71,.10);
}
.modal-head p{margin:0;color:var(--muted)}
.modal-body{padding:20px 22px 24px}
.modal-shop-summary{display:grid;grid-template-columns:144px minmax(0,1fr);gap:16px;align-items:start;margin-bottom:14px}
.modal-body .offer{
  display:block;
  -webkit-line-clamp:unset;
  -webkit-box-orient:initial;
  overflow:visible;
  white-space:normal;
}
.modal-body .shop-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.modal-body .shop-actions .btn{
  width:auto;
  min-width:118px;
  flex:0 0 auto;
  padding:9px 14px;
}
.modal-logo-box{
  width:144px;
  height:144px;
  padding:6px;
  box-sizing:border-box;
  border:1px solid rgba(31,21,33,.06);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}
.modal-logo{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:transparent;border:0;box-shadow:none;transform:none}
.close{
  width:38px;
  height:38px;
  border-radius:6px;
  border:1px solid rgba(67,49,71,.12);
  background:#fff;
  cursor:pointer;
}
.notice{
  margin-top:14px;
  padding:12px 14px;
  background:#EEF2EB;
  border:1px solid rgba(125,143,114,.18);
  color:var(--sage-dark);
  font-size:14px;
  font-weight:800;
  border-radius:6px;
}

/* Redeem confirmation */
.redeem-hero .page-hero-card{grid-template-columns:1.25fr .75fr}
.redeem-panel{max-width:900px;margin:0 auto}
.redeem-loading{
  padding:36px 20px;
  text-align:center;
  color:var(--muted);
  background:#fff;
  border:1px solid rgba(67,49,71,.10);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
}
.redeem-card{
  background:#fff;
  border:1px solid rgba(67,49,71,.10);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:24px;
}
.redeem-shop{
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding-bottom:18px;
  border-bottom:1px solid rgba(67,49,71,.10);
}
.redeem-logo{
  width:128px;
  height:128px;
  padding:6px;
  border-radius:16px;
  border:1px solid rgba(31,21,33,.06);
  background:#fff;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.redeem-logo img{width:100%;height:100%;object-fit:contain}
.redeem-shop h2{margin:8px 0;font-size:clamp(26px,4vw,38px)}
.redeem-shop p{margin:0;color:var(--muted);line-height:1.7}
.redeem-offer{
  margin:18px 0;
  padding:18px;
  border-left:5px solid var(--clay);
  background:#FBF1ED;
  color:var(--clay-dark);
  border-radius:8px;
}
.redeem-offer span{display:block;margin-bottom:6px;color:#8C6C61;font-size:14px;font-weight:900}
.redeem-offer strong{display:block;font-size:clamp(22px,4vw,32px);line-height:1.45}
.redeem-time{
  margin:-4px 0 14px;
  color:var(--muted);
  font-size:14px;
  font-weight:800;
}
.redeem-confirm-box{
  position:relative;
  display:grid;
  gap:12px;
  padding:18px;
  overflow:hidden;
  background:linear-gradient(135deg,var(--purple) 0%,#5B3A60 58%,var(--sage-dark) 100%);
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  color:#fff;
  box-shadow:0 18px 36px rgba(75,46,79,.20);
}
.redeem-confirm-box::before{
  content:"頭竹苗福利卡";
  display:block;
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:6px;
  color:rgba(255,255,255,.88);
  font-size:13px;
  font-weight:900;
  letter-spacing:.04em;
}
.redeem-confirm-box::after{
  content:"";
  position:absolute;
  right:-42px;
  top:-42px;
  width:128px;
  height:128px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
  pointer-events:none;
}
.redeem-confirm-box p{
  position:relative;
  margin:0;
  color:rgba(255,255,255,.92);
  font-weight:800;
  line-height:1.7;
}
.redeem-confirm-box .btn{
  position:relative;
  width:100%;
  justify-content:center;
}
.redeem-confirm-box .btn-primary{
  background:#fff;
  border-color:#fff;
  color:var(--purple);
  box-shadow:0 10px 24px rgba(36,31,38,.20);
}
.redeem-confirm-box .btn-outline{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.34);
  color:#fff;
}
.redeem-confirm-box[hidden],
.redeem-result[hidden]{
  display:none !important;
}
.redeem-confirm-box .btn[disabled]{
  cursor:wait;
  opacity:1;
  transform:none;
  background:#B7B2A7;
  border-color:#B7B2A7;
  color:#fff;
  box-shadow:none;
}
.redeem-confirm-box .btn.is-sending{
  background:#B7B2A7;
  border-color:#B7B2A7;
}
.redeem-submit-status{
  margin-top:2px;
  color:rgba(255,255,255,.82);
  font-weight:800;
  line-height:1.6;
}
.redeem-submit-status.is-warning{
  color:#FFE0D5;
}
.redeem-result{
  display:grid;
  gap:10px;
  padding:18px;
  background:#F4F7F1;
  border:1px solid rgba(125,143,114,.22);
  border-radius:8px;
  color:#5C6954;
}
.redeem-result strong{color:var(--sage-dark);font-size:22px}
.redeem-result span{font-weight:800}
.redeem-result .btn{width:max-content}
.redeem-note{margin:14px 0 0;color:var(--muted);line-height:1.7;font-size:14px}
.redeem-empty{display:grid;gap:14px}

/* Hard guard: no pill UI */
.btn,
.nav-links a,
.more-link,
.mini-btn,
.chip,
.service-actions .btn,
button,
input,
select,
textarea,
.tag,
.feature-tag,
.offer,
.notice,
.eyebrow,
.hero-kicker{
  border-radius:6px !important;
}
.brand-mark,.card,.panel,.news-card,.faq details,.directory,.step,.feature-card,.category-card,.service-card,.page-hero-card,.modal-card,.empty{
  border-radius:8px !important;
}
.step-no,.step-number,.card-icon,.backtop,.close{
  border-radius:6px !important;
}
.step-card .step-number,.step-card .step-icon{border-radius:12px !important}
.hero-media{border-radius:0 !important}
.shop-card{border-radius:18px !important}
.shop-logo-box,.modal-logo-box,.feature-photo{border-radius:16px !important}
.shop-actions .mini-btn{border-radius:12px !important}
.video-step-card .step-number{
  width:32px;
  height:32px;
  border-radius:10px !important;
  background:rgba(75,46,79,.10);
  color:var(--purple);
}

@media (min-width:1100px){
  .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:960px){
  .hero{grid-template-columns:1fr}
  .hero-copy{padding:32px 24px}
  .hero-media{min-height:250px}
  .hero-video-card{min-height:0;padding:22px}
  .card-video-panel{padding:24px 18px}
  .card-video-grid{grid-template-columns:1fr;gap:22px}
  .card-video-frame{max-width:min(100%,340px);justify-self:center}
  .card-video-steps{grid-template-rows:none}
  .page-hero-card,.grid-3,.grid-2,.news-grid,.footer-grid{grid-template-columns:1fr}
  .partner-grid{grid-template-columns:1fr}
  .flow-line{grid-template-columns:1fr}
  .flow-line span:not(:last-child)::after{display:none}
  .steps,.process-grid{grid-template-columns:repeat(2,1fr)}
  .shop-grid,.featured-grid{grid-template-columns:repeat(2,1fr)}
  .category-grid{grid-template-columns:repeat(3,1fr)}
  .merchant-cta-grid{grid-template-columns:1fr}
  .filters{grid-template-columns:1fr 1fr}
  .shop-data-tools{align-items:flex-start;flex-direction:column}
  .shop-data-sync{width:100%}
  .nav-links{
    display:none;
    position:absolute;
    left:18px;
    right:18px;
    top:74px;
    flex-direction:column;
    align-items:stretch;
    background:rgba(75,46,79,.98);
    border:1px solid rgba(255,255,255,.12);
    border-radius:8px;
    box-shadow:var(--shadow);
    padding:14px;
  }
  .nav-links.open{display:flex}
  .nav-links a,.nav-links .btn{width:100%}
  .menu-btn{display:inline-flex}
}
@media (max-width:620px){
  .container{width:min(calc(100% - 14px),var(--container))}
  .page-shell{padding-top:14px}
  .hero-wrap{border-radius:8px}
  .hero-copy{padding:24px 18px}
  .hero h1{font-size:36px}
  .hero p{font-size:16px}
  .shorts-frame{max-width:230px;max-height:390px}
  .hero-actions{display:grid}
  .btn{width:100%}
  .section{padding:32px 0}
  .card-video-section{padding-top:18px}
  .card-video-panel{padding:20px 12px;border-radius:16px}
  .card-video-panel .section-heading{margin-bottom:18px}
  .card-video-frame{max-width:min(100%,320px);border-radius:16px}
  .video-step-card{padding:16px;border-radius:14px}
  .category-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .featured-grid{grid-template-columns:repeat(2,1fr)}
  .service-grid{grid-template-columns:1fr}
  .shop-grid{grid-template-columns:1fr}
  .directory{padding:12px}
  .shop-card{grid-template-columns:104px minmax(0,1fr);gap:10px;padding:10px}
  .shop-logo-box{width:104px;height:104px;padding:5px}
  .shop-head h3{font-size:18px}
  .tags{gap:5px;margin-bottom:6px}
  .tag{font-size:11px;padding:2px 6px}
  .offer{padding:8px;font-size:13px;line-height:1.45;margin-bottom:0;-webkit-line-clamp:3}
  .shop-actions{gap:7px;margin-top:0}
  .shop-card .shop-actions{grid-template-columns:repeat(2,1fr)}
  .shop-actions .mini-btn{min-height:40px;font-size:14px;padding:0 6px}
  .modal-shop-summary{grid-template-columns:118px minmax(0,1fr);gap:12px}
  .modal-logo-box{width:118px;height:118px;padding:5px}
  .modal-body .shop-actions{display:flex;gap:8px}
  .modal-body .shop-actions .btn{width:auto;min-width:104px;flex:0 1 auto;font-size:14px;padding:8px 12px}
  .filters,.steps,.process-grid{grid-template-columns:1fr}
  .redeem-hero .page-hero-card{grid-template-columns:1fr}
  .redeem-card{padding:16px}
  .redeem-shop{grid-template-columns:92px minmax(0,1fr);gap:12px}
  .redeem-logo{width:92px;height:92px;padding:5px}
  .redeem-confirm-box .btn{width:100%}
}
