:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f1f2ed;
  --text: #17201b;
  --muted: #69736d;
  --line: rgba(23, 32, 27, .12);
  --accent: #425f50;
  --accent-strong: #2e4639;
  --accent-soft: #e5ece7;
  --danger: #a23f3f;
  --danger-soft: #f8e8e8;
  --shadow: 0 28px 80px rgba(30, 50, 40, .10);
  --radius: 24px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: radial-gradient(circle at 10% 0%, rgba(123,159,139,.18), transparent 30rem), linear-gradient(180deg,#fbfbf8,var(--bg)); }
button,input,textarea,select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.site-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 16px 0 64px; }
.topbar { position: sticky; top: 12px; z-index: 20; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.78); backdrop-filter: blur(18px); display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 14px 40px rgba(30,50,40,.05); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; }
.logo { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-strong); color: #fff; }
.nav-actions,.hero-actions,.details-actions,.modal-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.nav-link { color: var(--muted); font-size: .92rem; font-weight: 700; }
.btn { min-height: 44px; border: 0; border-radius: 13px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-weight: 850; transition: transform .16s ease, opacity .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { color: #fff; background: var(--accent-strong); box-shadow: 0 14px 28px rgba(46,70,57,.18); }
.btn.secondary,.google-btn { border: 1px solid var(--line); background: rgba(255,255,255,.82); }
.btn.danger { color: var(--danger); background: var(--danger-soft); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .84rem; }
.btn.large { min-height: 52px; padding: 0 21px; }
.btn.text-btn { background: transparent; color: var(--accent-strong); }
.google-btn svg { width: 19px; height: 19px; }
.hidden { display: none !important; }
.hero { min-height: calc(100vh - 110px); padding: 74px 0 54px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(34px, 7vw, 88px); }
.eyebrow { width: fit-content; margin-bottom: 14px; color: var(--accent); font-size: .76rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(3.25rem, 7.2vw, 7rem); line-height: .88; letter-spacing: -.082em; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 4.3rem); line-height: .98; letter-spacing: -.06em; }
h3 { margin-bottom: 8px; letter-spacing: -.035em; }
p { color: var(--muted); line-height: 1.65; }
.hero-text { max-width: 660px; font-size: clamp(1.06rem, 1.8vw, 1.28rem); }
.microcopy { margin: 12px 0 0; font-size: .85rem; }
.hero-demo { perspective: 1200px; }
.demo-window { overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background: rgba(255,255,255,.76); backdrop-filter: blur(18px); box-shadow: var(--shadow); transform: rotateY(-4deg) rotateX(2deg); }
.demo-bar { height: 50px; padding: 0 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; color: var(--muted); }
.demo-bar span { width: 9px; height: 9px; border-radius: 50%; background: #ced7d1; }
.demo-bar small { margin-left: auto; }
.demo-content { padding: clamp(28px,5vw,54px); }
.demo-content h2 { max-width: 450px; font-size: clamp(2.3rem,4vw,4rem); }
.demo-pill { display: inline-flex; padding: 7px 10px; margin-bottom: 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.demo-rewards { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 24px 0; padding: 18px; border-radius: 18px; background: var(--surface-soft); }
.demo-content button { min-height: 48px; width: 100%; border: 0; border-radius: 14px; background: var(--accent-strong); color: #fff; font-weight: 900; }
.section { padding: 90px 0; }
.section-intro { max-width: 780px; margin-bottom: 38px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.benefit-grid article { min-height: 240px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); box-shadow: 0 16px 50px rgba(30,50,40,.04); }
.benefit-grid article > span { display: block; margin-bottom: 54px; color: var(--accent); font-weight: 900; }
.how-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.steps li { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.steps li > b { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.steps p { margin-bottom: 0; }
.cta-section { margin-top: 30px; padding: clamp(28px,6vw,60px); border-radius: 30px; color: #fff; background: var(--accent-strong); display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.cta-section .eyebrow,.cta-section p { color: rgba(255,255,255,.72); }
.cta-section h2 { max-width: 800px; margin-bottom: 0; }
.cta-section .btn.primary { background: #fff; color: var(--accent-strong); box-shadow: none; white-space: nowrap; }
.dashboard { padding: 64px 0; }
.dashboard-head,.details-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.dashboard-head h1 { margin-bottom: 8px; font-size: clamp(3rem,6vw,5.4rem); }
.notice { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #e7d5a0; border-radius: 16px; background: #fff8df; color: #70571a; font-weight: 760; }
.empty,.details,.campaign-card,.panel-card,.stat,.progress-card { border: 1px solid var(--line); background: rgba(255,255,255,.82); box-shadow: 0 18px 50px rgba(30,50,40,.05); }
.empty { padding: 36px; border-radius: var(--radius); }
.campaign-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.campaign-card { padding: 20px; border-radius: var(--radius); }
.campaign-card.selected { border-color: var(--accent); box-shadow: 0 20px 60px rgba(66,95,80,.14); }
.card-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 16px; margin-bottom: 16px; background: var(--surface-soft); }
.badges,.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badges { margin-bottom: 14px; }
.badge { min-height: 28px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--accent-soft); color: var(--accent-strong); font-size: .73rem; font-weight: 900; }
.badge.amber { background: #fff0c9; color: #765a14; }
.badge.gray { background: #e9ecea; color: #59625d; }
.details { padding: 24px; border-radius: 28px; }
#detailsLink { max-width: 620px; font-size: .9rem; word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.stat { padding: 18px; border-radius: 20px; }
.stat span { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 750; }
.stat strong { font-size: 2rem; letter-spacing: -.06em; }
.progress-card { padding: 18px; border-radius: 20px; margin-bottom: 14px; }
.progress-top { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-weight: 800; }
.progress-track { height: 11px; border-radius: 999px; overflow: hidden; background: #e4e8e5; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.panel-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 14px; }
.panel-card { border-radius: 22px; overflow: hidden; }
.panel-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head span { color: var(--muted); font-size: .85rem; }
.reward-list { padding: 16px; display: grid; gap: 10px; }
.reward-item { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.reward-item strong { display: block; margin-bottom: 5px; }
.reward-item span { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th,td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; }
th { color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 18px; display: grid; place-items: center; background: rgba(19,28,23,.38); backdrop-filter: blur(10px); }
.modal { width: min(100%,620px); max-height: calc(100vh - 36px); overflow-y: auto; padding: 24px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.wide-modal { width: min(100%,860px); }
.confirm-modal { width: min(100%,500px); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.icon-btn { width: 42px; height: 42px; border: 0; border-radius: 13px; background: var(--surface-soft); font-size: 1.5rem; cursor: pointer; }
.form { display: grid; gap: 16px; }
.form-grid.two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
label { display: grid; gap: 8px; font-size: .9rem; font-weight: 820; }
input,textarea,select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); outline: none; }
input,select { height: 48px; padding: 0 13px; }
textarea { min-height: 110px; resize: vertical; padding: 13px; }
input:focus,textarea:focus,select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(66,95,80,.10); }
.slug-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.slug-field span { padding-left: 13px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.slug-field input { border: 0; box-shadow: none !important; }
.field-help { color: var(--muted); font-weight: 600; }
.field-help.ok { color: #287a4b; }
.field-help.error { color: var(--danger); }
.image-field,.reward-editor,.theme-field { padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-soft); }
.image-field p,.reward-editor p { margin: 4px 0 0; font-size: .86rem; }
.upload-box { width: fit-content; margin-top: 12px; position: relative; overflow: hidden; }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box span { pointer-events: none; }
.upload-box span { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; background: #fff; cursor: pointer; }
.image-preview-wrap { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.image-preview-wrap img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 13px; }
.theme-field { min-width: 0; }
.theme-field legend { padding: 0 6px; font-weight: 850; }
.theme-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.theme-option { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; }
.theme-option input { position: absolute; opacity: 0; }
.theme-option.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(66,95,80,.10); }
.theme-preview { height: 46px; margin-bottom: 9px; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr 1fr; overflow: hidden; }
.theme-option strong,.theme-option small { display: block; }
.theme-option small { margin-top: 3px; color: var(--muted); }
.reward-editor-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.reward-rows { display: grid; gap: 10px; }
.reward-row { display: grid; grid-template-columns: 76px 76px 1fr 1fr 42px; gap: 8px; align-items: center; }
.reward-row button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--danger-soft); color: var(--danger); cursor: pointer; }
.modal-actions { justify-content: flex-end; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translateX(-50%); max-width: min(520px,calc(100% - 28px)); padding: 13px 17px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 800; box-shadow: var(--shadow); }
@media (max-width: 960px) {
  .hero,.how-section { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-demo { max-width: 720px; }
  .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .campaign-grid,.stats,.panel-grid { grid-template-columns: 1fr; }
  .details-head,.dashboard-head,.cta-section { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .site-shell { width: min(100% - 20px,1180px); }
  .topbar { top: 8px; }
  .nav-link { display: none; }
  .google-btn { padding: 0 12px; }
  .google-btn svg { margin: 0; }
  .hero { min-height: auto; padding: 64px 0 36px; }
  h1 { font-size: clamp(3.25rem,17vw,5.2rem); }
  .section { padding: 60px 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: auto; }
  .benefit-grid article > span { margin-bottom: 28px; }
  .form-grid.two,.theme-options { grid-template-columns: 1fr; }
  .reward-row { grid-template-columns: 1fr 1fr 42px; }
  .reward-row input:nth-child(3),.reward-row input:nth-child(4) { grid-column: span 3; }
  .details-actions > * { flex: 1; }
  .modal { padding: 20px; }
}
