/* =========================================================================
   Nectapharma Creator Portal
   Palette follows pi-dashboard so the two tools feel like one family.
   ========================================================================= */

:root {
  --navy: #111111;
  --navy-2: #2a2a2a;
  --blue: #111111;
  --blue-600: #000000;
  --blue-50: #f3f3f3;
  --green: #12a150;
  --green-50: #e6f6ec;
  --amber: #c26a00;
  --amber-50: #fff3e0;
  --red: #dc3545;
  --red-50: #fdecee;
  --purple: #3a3a3a;
  --purple-50: #f3f3f3;
  --cyan: #555555;
  --text: #111111;
  --text-2: #3a3a3a;
  --muted: #6e6e6e;
  --line: #e6e6e6;
  --line-2: #efefef;
  --bg: #f7f7f7;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(17, 17, 17, 0.18);
  --brand-grad: linear-gradient(135deg, #3a3a3a 0%, #111111 100%);
  --hero-grad: radial-gradient(1200px 400px at 90% -10%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(0, 0, 0, 0.5), transparent 60%),
    linear-gradient(160deg, #111111 0%, #2a2a2a 100%);
  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.4em; color: var(--text); }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 0.8em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.container.narrow { max-width: 640px; }
.page { padding-block: 24px 96px; }

/* ---- Top bar ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.brand-mark img { width: 88%; height: 88%; object-fit: contain; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1; margin-top: 2px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font: inherit; color: var(--text);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
}
.menu-pop a, .menu-pop button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none;
  font: inherit; color: var(--text); cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); text-decoration: none; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: #fff; --btn-fg: var(--text); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.btn-primary:hover { background: var(--blue-600); }
.btn-grad { --btn-fg: #fff; --btn-bd: transparent; background: var(--brand-grad); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.btn-grad:hover { background: var(--brand-grad); filter: brightness(1.06); }
.btn-green { --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: var(--green); }
.btn-green:hover { background: #0e8a44; }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--red); --btn-bd: #f3c2c7; }
.btn-danger:hover { background: var(--red-50); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-light { --btn-bg: rgba(255, 255, 255, 0.12); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.25); }
.btn-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.btn-xs { min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 50px; font-size: 16px; border-radius: 14px; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Cards -------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.pad-lg { padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ---- Badges ------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--bg); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge.plain::before { display: none; }
.badge.blue { background: var(--blue-50); color: var(--blue); border-color: #e3e3e3; }
.badge.green { background: var(--green-50); color: var(--green); border-color: #bfe6cf; }
.badge.amber { background: var(--amber-50); color: var(--amber); border-color: #fbd9a8; }
.badge.red { background: var(--red-50); color: var(--red); border-color: #f6c5cb; }
.badge.purple { background: var(--purple-50); color: var(--purple); border-color: #e3e3e3; }
.badge.gray { background: #f2f2f2; color: var(--muted); border-color: var(--line); }

/* ---- Alerts ------------------------------------------------------------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14.5px; }
.alert .icon { flex: none; font-size: 18px; line-height: 1.3; }
.alert strong { display: block; }
.alert.info { background: var(--blue-50); border-color: #e3e3e3; color: #0b3a9e; }
.alert.success { background: var(--green-50); border-color: #bfe6cf; color: #0b6b36; }
.alert.warn { background: var(--amber-50); border-color: #fbd9a8; color: #7a4300; }
.alert.error { background: var(--red-50); border-color: #f6c5cb; color: #9b1c2a; }

/* ---- Forms -------------------------------------------------------------- */
.form-section { padding-block: 4px 8px; }
.form-section + .form-section { border-top: 1px solid var(--line-2); padding-top: 20px; margin-top: 12px; }
.form-section-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; }
.step-no { width: 26px; height: 26px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.field { display: block; margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text-2); }
.field .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #d6dbe4; border-radius: 12px;
  background: #fff; font: inherit; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12); }
.input::placeholder, .textarea::placeholder { color: #9aa4b2; }
.input.sm, .select.sm { min-height: 36px; padding: 6px 10px; border-radius: 10px; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--red); margin-top: 6px; display: none; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1); }
.field.invalid .field-error { display: block; }
.field.invalid .choice, .field.invalid .check { border-color: var(--red); }
.input-group { position: relative; }
.input-group .input { padding-right: 48px; }
.input-group .addon {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 16px;
}
.input-group .addon:hover { background: var(--bg); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-prefix .input { padding-left: 32px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.choice, .field > label.choice { position: relative; display: block; border: 2px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; background: #fff; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-title { font-weight: 700; font-size: 16px; display: block; }
.choice .choice-sub { font-size: 13px; color: var(--muted); }
.choice .tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: 12px; }
.choice .swatch { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.choice:has(input:checked) { border-color: var(--blue); background: #f7faff; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1); }
.choice:has(input:checked) .tick { background: var(--blue); border-color: var(--blue); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.25); }
.choice.disabled { opacity: 0.5; cursor: not-allowed; }

.check, .field > label.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; cursor: pointer; }
.check + .check { margin-top: 10px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check span { font-size: 14px; color: var(--text-2); }
.check:has(input:checked) { border-color: #bcd3ff; background: #f4f8ff; }

.pw-meter { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 0.2s, background 0.2s; }

/* ---- Auth pages --------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 32px 16px 64px; background: var(--hero-grad); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---- Hero --------------------------------------------------------------- */
.hero { background: var(--hero-grad); color: #fff; padding-block: 44px 56px; position: relative; overflow: hidden; }
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; margin-bottom: 14px; }
.hero p.lead { color: rgba(255, 255, 255, 0.82); font-size: 16px; max-width: 620px; }
.hero .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 28px; }
.hero-stat { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 14px 16px; }
.hero-stat b { display: block; font-size: 20px; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.hero.compact { padding-block: 28px 64px; }
.overlap { margin-top: -44px; position: relative; }

/* ---- Campaign cards ----------------------------------------------------- */
.campaign-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.campaign-card .cover { height: 76px; background: var(--hero-grad); position: relative; background-size: cover; background-position: center; }
/* Artwork arrives in whatever shape the design team used — often a 1:1 poster.
   A 16:9 band with the same image blurred behind it shows the whole picture
   without cropping anything important, whatever ratio comes in. */
.campaign-card .cover.has-image { height: auto; aspect-ratio: 1.91 / 1; overflow: hidden; background-color: var(--navy); }
.campaign-card .cover.has-image::before,
.campaign-card .cover.has-image::after { content: ""; position: absolute; inset: 0; background-image: inherit; }
.campaign-card .cover.has-image::before { background-size: cover; background-position: center; filter: blur(22px) brightness(0.72); transform: scale(1.15); }
.campaign-card .cover.has-image::after { background-size: contain; background-position: center; background-repeat: no-repeat; }
.campaign-card .cover .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.campaign-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.campaign-card h3 { margin: 0; font-size: 1.1rem; }
.meta-list { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.meta-list div { display: flex; gap: 8px; }
.meta-list .k { color: var(--muted); min-width: 92px; }
.reward-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.reward-pill { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.reward-pill b { color: var(--blue); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { display: flex; gap: 14px; }
.step .n { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---- Timeline ----------------------------------------------------------- */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); background: #fff; margin-top: 2px; }
.tl-item.done .tl-dot { background: var(--green); border-color: var(--green-50); }
.tl-item.now .tl-dot { background: var(--blue); border-color: #e3e3e3; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15); }
.tl-item b { display: block; }

/* ---- Reward ladder ------------------------------------------------------ */
.ladder { display: grid; gap: 8px; }
.ladder-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ladder-row .lv { font-size: 12px; color: var(--muted); }
.ladder-row .gmv { font-weight: 700; }
.ladder-row .reward { font-weight: 800; color: var(--green); font-size: 17px; }
.ladder-row.reached { border-color: #bfe6cf; background: var(--green-50); }
.ladder-row.next { border-color: #e3e3e3; background: var(--blue-50); }

/* ---- Progress ring / bar ----------------------------------------------- */
.ring-wrap { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--line-2); }
.ring .value { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
.ring .label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .label b { font-size: 26px; display: block; }
.ring .label span { font-size: 12px; color: var(--muted); }

.gmv-track { position: relative; height: 14px; background: var(--line-2); border-radius: 99px; margin: 34px 0 40px; }
.gmv-fill { position: absolute; inset: 0 auto 0 0; background: var(--brand-grad); border-radius: 99px; transition: width 0.8s ease; }
.gmv-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.gmv-mark i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #d4d4d4; }
.gmv-mark.hit i { border-color: var(--green); background: var(--green); }
.gmv-mark .t { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; }
.gmv-mark .t.top { bottom: 22px; color: var(--muted); font-weight: 600; }
.gmv-mark .t.bottom { top: 22px; color: var(--green); font-weight: 700; }
.gmv-mark:first-of-type .t { left: 0; transform: none; }
.gmv-mark:last-of-type .t { left: auto; right: 0; transform: none; }

.stat { padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; }
.stat .d { font-size: 13px; color: var(--muted); }
.stat.accent { border-left: 4px solid var(--blue); }

.progress-mini { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress-mini i { display: block; height: 100%; background: var(--brand-grad); border-radius: 99px; }

/* ---- Tabs --------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 9px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; white-space: nowrap; font-size: 14px; }
.tabs a:hover { text-decoration: none; background: var(--bg); }
.tabs a.active { background: var(--navy); color: #fff; }
.bottom-nav { display: none; }

@media (max-width: 720px) {
  .tabs.desktop-only { display: none; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; font-size: 12px; color: var(--muted); border-radius: 10px; }
  .bottom-nav a .ic { font-size: 20px; line-height: 1; }
  .bottom-nav a.active { color: var(--blue); font-weight: 700; }
  .bottom-nav a:hover { text-decoration: none; }
}

/* ---- Lists ---------------------------------------------------------------- */
.clip-list { display: grid; gap: 10px; }
.clip-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.clip-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 20px; }
.clip-item .url { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.clip-item .main { min-width: 0; }
.clip-item .note { font-size: 13px; color: var(--red); margin-top: 2px; }
.quota-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.quota-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.quota-dots i.on { background: var(--blue); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .ic { font-size: 36px; margin-bottom: 6px; }

.prose { color: var(--text-2); font-size: 14.5px; }
.prose h2 { font-size: 1.05rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 0.8em; }
.prose li { margin-bottom: 4px; }

details.fold { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
details.fold > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "▾"; color: var(--muted); transition: transform 0.2s; }
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold > .fold-body { padding: 0 18px 18px; max-height: 60vh; overflow: auto; }

.sticky-cta { position: sticky; bottom: 0; z-index: 30; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(246, 248, 252, 0)); }

/* ---- Toast & dialog ------------------------------------------------------ */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14.5px; animation: toast-in 0.2s ease; }
.toast.success { background: #0b6b36; }
.toast.error { background: #9b1c2a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(94vw, 560px); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal.wide { width: min(96vw, 880px); }
dialog.modal::backdrop { background: rgba(17, 17, 17, 0.45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 20px 22px; max-height: 70vh; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fafafa; flex-wrap: wrap; }
.icon-btn { border: 0; background: none; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 18px; color: var(--muted); }
.icon-btn:hover { background: var(--bg); }

.skeleton { background: linear-gradient(90deg, #efefef 25%, #f6f8fb 50%, #efefef 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.site-foot { padding: 28px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* =========================================================================
   Admin
   ========================================================================= */
.admin-body { background: #f3f5fa; }
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #111111 0%, #000000 100%); color: #d4d4d4; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.sidebar .brand { color: #fff; padding: 4px 8px 18px; }
.sidebar .brand small { color: #9a9a9a; }
.sidebar a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #d4d4d4; font-weight: 500; font-size: 14.5px; }
.sidebar a.nav .ic { width: 20px; text-align: center; }
.sidebar a.nav:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; color: #fff; }
.sidebar a.nav.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.sidebar .nav-count { margin-left: auto; background: #f97316; color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar .foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 12px; font-size: 13px; }
.sidebar .foot a { color: #9a9a9a; }
.admin-main { min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 30; background: rgba(243, 245, 250, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-top .inner { display: flex; align-items: center; gap: 12px; padding: 12px 24px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.2rem; margin: 0; }
.admin-content { padding: 24px; }
.menu-toggle { display: none; }
.campaign-picker { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.campaign-picker .select { min-width: 240px; min-height: 38px; padding: 6px 12px; border-radius: 10px; }

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform 0.2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-toggle { display: inline-flex; }
  .admin-content { padding: 16px; }
  .admin-top .inner { padding: 10px 16px; }
  .campaign-picker { margin-left: 0; width: 100%; }
  .campaign-picker .select { min-width: 0; flex: 1; }
}

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { min-height: 38px; padding: 6px 12px; border-radius: 10px; width: auto; }
.toolbar .search { min-width: 220px; flex: 1; max-width: 360px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13.5px; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-weight: 500; }
.seg button.active { background: var(--navy); color: #fff; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; text-transform: none; background: #fafafa; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafafa; }
table.data tr.clickable { cursor: pointer; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td .sub { display: block; font-size: 12.5px; color: var(--muted); }
table.data input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
table.data .input.sm { min-width: 0; width: 100px; text-align: right; }
table.data td, table.data th { padding-inline: 10px; }
.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

.bulkbar { position: sticky; bottom: 16px; margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); }

.hbar { display: grid; grid-template-columns: 110px 1fr 48px; gap: 10px; align-items: center; font-size: 13.5px; margin-bottom: 8px; }
.hbar .track { height: 12px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--brand-grad); border-radius: 99px; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.repeater { display: grid; gap: 8px; }
.repeater .rep-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }

.review-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.review-reasons button { border: 1px solid var(--line); background: #fff; border-radius: 99px; font: inherit; font-size: 12.5px; padding: 3px 10px; cursor: pointer; }
.review-reasons button:hover { border-color: var(--blue); color: var(--blue); }

.temp-pass { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; letter-spacing: 0.08em; background: var(--bg); border: 1px dashed #d4d4d4; border-radius: 12px; padding: 14px; text-align: center; user-select: all; }
code.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* A disabled CTA floating over content must stay opaque, or the page shows through it. */
.sticky-cta .btn:disabled { opacity: 1; background: #e9edf3; color: var(--muted); border-color: #dde3ec; }

/* On phones the text links collapse into the user menu to keep the bar on one line. */
@media (max-width: 560px) { .topbar .nav-link { display: none; } }

/* ---- Clip status ----------------------------------------------------------- */
.stat-filter { cursor: pointer; text-align: left; font: inherit; color: inherit; border: 2px solid transparent; }
.stat-filter.active { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1); }
.stat-filter .v { font-size: 28px; }
.status-card { padding: 16px 18px; }
.status-card + .status-card { margin-top: 12px; }
.status-card.rejected { border-left: 4px solid var(--red); }
.status-card.approved { border-left: 4px solid var(--green); }
.status-card.pending { border-left: 4px solid #f59e0b; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 10px; }
.stepper .s { position: relative; padding-top: 16px; font-size: 12.5px; color: var(--muted); }
.stepper .s::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--line-2); }
.stepper .s.done::before { background: var(--green); }
.stepper .s.now::before { background: #f59e0b; }
.stepper .s.fail::before { background: var(--red); }
.stepper .s b { display: block; color: var(--text); font-size: 13px; }
.fix-box { background: var(--red-50); border: 1px solid #f6c5cb; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.fix-box .reason { color: #9b1c2a; font-weight: 700; }
.fix-box ul { margin: 6px 0 0; padding-left: 1.2em; color: var(--text-2); font-size: 14px; }
.gmv-chip { display: inline-flex; gap: 6px; align-items: baseline; background: var(--green-50); color: #0b6b36; border-radius: 10px; padding: 6px 12px; font-size: 13.5px; margin-top: 8px; }
.gmv-chip b { font-size: 16px; }
.clip-link { font-size: 13px; color: var(--muted); word-break: break-all; }
@media (max-width: 960px) { .admin-content .grid[style*="2.2fr"] { grid-template-columns: 1fr !important; } }

/* ---- Searchable select ------------------------------------------------------ */
.ss { position: relative; }
.ss .ss-input { padding-right: 40px; }
.ss-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); cursor: pointer; font-size: 13px; }
.ss-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.ss-opt { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--text); }
.ss-opt:hover, .ss-opt.active { background: var(--blue-50); color: var(--blue); }
.ss-opt.selected { font-weight: 700; }
.ss-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.input:disabled { background: #f1f4f8; color: #8a94a3; cursor: not-allowed; }

/* ---- Clip accordion --------------------------------------------------------- */
.clip-acc-list { display: grid; gap: 8px; }
.clip-acc { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.clip-acc.rejected { border-color: #f3c2c7; }
.clip-acc > summary {
  display: grid; grid-template-columns: 10px 1fr auto 14px; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer; list-style: none;
}
.clip-acc > summary::-webkit-details-marker { display: none; }
.clip-acc > summary:hover { background: #fafafa; }
.clip-acc summary .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.clip-acc summary .dot.green { background: var(--green); }
.clip-acc summary .dot.red { background: var(--red); }
.clip-acc summary .dot.amber { background: #f59e0b; }
.clip-acc summary .main { min-width: 0; }
.clip-acc summary .main b { display: block; font-size: 14.5px; }
.clip-acc summary .sub { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-acc.rejected summary .sub { color: var(--red); }
.clip-acc summary .chev { color: var(--muted); transition: transform 0.15s; justify-self: end; }
.clip-acc[open] summary .chev { transform: rotate(90deg); }
.clip-acc[open] summary { border-bottom: 1px solid var(--line-2); }
.acc-body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.acc-meta { line-height: 1.5; }

/* Compact clip row (non-expanding, links to the status page) */
.clip-row {
  display: grid; grid-template-columns: 10px 1fr auto 14px; align-items: center; gap: 10px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: inherit;
}
.clip-row:hover { text-decoration: none; background: #fafafa; }
.clip-row.rejected { border-color: #f3c2c7; }
.clip-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.clip-row .dot.green { background: var(--green); }
.clip-row .dot.red { background: var(--red); }
.clip-row .dot.amber { background: #f59e0b; }
.clip-row .main { min-width: 0; }
.clip-row .main b { display: block; font-size: 14.5px; }
.clip-row .sub { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-row.rejected .sub { color: var(--red); }
.clip-row .chev { color: var(--muted); justify-self: end; }

/* Smaller stat tiles on the creator pages */
.stat-filter { padding: 12px 14px; }
.stat-filter .v { font-size: 24px; }
.stat-filter .d { font-size: 12px; }

/* ---- Count chips that double as filters ------------------------------------ */
.filter-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filter-strip .chip {
  flex: 1; min-width: 78px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.filter-strip .chip b { font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }
.filter-strip .chip.active { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.filter-strip .chip.active b { color: var(--blue); }
.filter-strip .chip.approved.active { border-color: var(--green); background: var(--green-50); color: var(--green); }
.filter-strip .chip.approved.active b { color: var(--green); }
.filter-strip .chip.rejected.active { border-color: var(--red); background: var(--red-50); color: var(--red); }
.filter-strip .chip.rejected.active b { color: var(--red); }
.filter-strip .chip.pending.active { border-color: #f6c56b; background: var(--amber-50); color: var(--amber); }
.filter-strip .chip.pending.active b { color: var(--amber); }

/* Collapsible rules card on the send-clip page */
details.fold > .prose { padding: 0 18px 16px; }

/* ---- ตรวจคลิปในหน้าเว็บ (Review Theater) --------------------------------- */
dialog.modal.theater-modal { width: min(96vw, 1040px); }
.theater { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 24px; align-items: start; }
.theater-stage {
  position: relative; aspect-ratio: 9 / 16; max-height: 60vh; width: 100%;
  border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line);
}
.theater-stage .clip-player { position: absolute; inset: 0; width: 100%; margin: 0; border-radius: 0; }
.theater-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.theater-side .h3-link { font-size: 20px; font-weight: 800; color: var(--text); }
.theater-meta { display: grid; gap: 10px; }
.theater-meta > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-2); padding-bottom: 8px; }
.theater-meta .k { color: var(--muted); font-size: 13px; }
.theater-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.theater-reject { display: grid; gap: 10px; }
.theater-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line-2); }
.kbd-hint { margin-left: auto; }
@media (max-width: 880px) {
  .theater { grid-template-columns: 1fr; gap: 16px; }
  .theater-stage { max-width: 300px; margin: 0 auto; max-height: 52vh; }
  .kbd-hint { display: none; }
}

/* คลิปเล่นในเว็บได้เลย (ทั้งหน้าสถานะของ Creator และหน้าตรวจของ Admin) */
.clip-player {
  position: relative; width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 0 auto 12px;
  border-radius: 12px; overflow: hidden; background: #000;
}
.clip-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.clip-player-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center; color: #e2e8f0; font-size: 14px;
}

/* การ์ดรางวัลที่ย้ายขึ้นบนสุดของหน้าภาพรวม */
.reward-card { border: 1px solid #bfe6cf; background: linear-gradient(180deg, #f3fbf6 0%, #fff 60%); }
.reward-total { font-size: 38px; font-weight: 800; color: var(--green); line-height: 1.05; }

/* ที่มาของยอดขายสะสม: คลิปที่ผ่าน + Live (นับเข้า Tier) และ VIDEO ทั้งบัญชี (ไม่นับ) */
.gmv-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.gmv-part { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.gmv-part.counts { border-color: #bfe6cf; background: var(--green-50); }
.gmv-part .k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.gmv-part .k .tick { color: var(--green); font-weight: 700; }
.gmv-part .v { font-size: 20px; font-weight: 800; margin-top: 2px; }
.gmv-part .d { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* การ์ดสถิติฝั่ง Admin: ไฮไลต์ยอดรวม และบอกว่าตัวไหนนับเข้า Tier */
.card.stat.accent { border-color: #e3e3e3; background: var(--blue-50); }
.card.stat.accent .v { color: var(--blue); }
.card.stat.counts { border-color: #bfe6cf; background: var(--green-50); }
.reward-card.locked { border-color: #fbd9a8; background: linear-gradient(180deg, #fff8ec 0%, #fff 60%); }
.reward-card.locked .reward-total { color: var(--text); }

/* ตัวอย่างรูปปกในฟอร์มแคมเปญ */
.cover-preview:empty { display: none; }
.cover-preview-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -6px; }
.cover-preview-box img { width: 220px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.cover-preview-box img[src=""] { display: none; }
.cover-preview-box .ok { color: var(--green); font-weight: 600; }

/* รูปปกเป็นพื้นหลังของหัวหน้าแคมเปญ (ทับด้วยฝ้ามืดให้ตัวหนังสือขาวอ่านออก) */
.hero.has-cover { background-size: cover; background-position: center; }
.hero.has-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.88) 100%);
}
.hero.has-cover > .container { position: relative; z-index: 1; }

/* โน้ตสเปกรูปปกในฟอร์มแคมเปญ */
.cover-spec {
  border: 1px solid #e3e3e3; background: var(--blue-50); border-radius: 12px;
  padding: 12px 16px; font-size: 13.5px; color: var(--text-2); margin-top: 4px;
}
.cover-spec ul { margin: 6px 0; padding-left: 20px; }
.cover-spec li { margin: 2px 0; }

/* ---- ฟอร์มสมัครแบบทีละขั้น (Wizard) ------------------------------------- */
.stepper { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 20px; }
.stepper-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.stepper-item::before {
  content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line);
}
.stepper-item:first-child::before { display: none; }
.stepper-item.active::before, .stepper-item.done::before { background: var(--blue); }
.stepper-item .dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px;
}
.stepper-item.active .dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.14); }
.stepper-item.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper-item .t { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.3; }
.stepper-item.active .t { color: var(--blue); font-weight: 600; }

.wizard-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: 16px; }
.wizard-icon { font-size: 20px; }
.wizard-body[hidden] { display: none; }
.wizard-nav { display: flex; gap: 10px; margin-top: 20px; }
.wizard-nav .btn { flex: 1; }
.field > label .fi { margin-right: 6px; }

/* สรุปข้อมูลก่อนส่ง */
.review-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg); }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.review-row { display: flex; gap: 12px; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.review-row .k { color: var(--muted); flex: none; }
.review-row .v { text-align: right; word-break: break-word; }

/* หน้าสมัครสำเร็จ */
.success-card { padding-block: 34px; }
.success-mark {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 44px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(18, 161, 80, 0.35); animation: pop 0.35s ease-out;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.meta-list .k i, .reward-pill i { font-style: normal; margin-right: 6px; }
.meta-list .k { display: inline-flex; align-items: center; }

/* ---- หน้าแรกสไตล์แอป ------------------------------------------------------ */
.hero.has-cover { background-size: cover; background-position: center; }
.hero.has-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.78) 0%, rgba(17, 17, 17, 0.94) 100%);
}
.hero.has-cover > .container { position: relative; z-index: 1; }
.hero-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.92); font-size: 15px; }
.hero-points .ck {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); font-size: 12px; color: #fff;
}
.hero .actions { margin-top: 24px; }

/* ---- หัวหน้าย่อย (ลูกศรย้อนกลับ) ----------------------------------------- */
.sub-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sub-head .t { flex: 1; text-align: center; font-weight: 700; }
.sub-head .icon-btn { border: 1px solid var(--line); background: #fff; text-decoration: none; }
.sub-head .icon-btn.ghost { border-color: transparent; background: none; pointer-events: none; }

/* ---- รายละเอียดแคมเปญ ----------------------------------------------------- */
.detail-cover {
  position: relative; aspect-ratio: 1.91 / 1; border-radius: 16px; overflow: hidden;
  background: var(--hero-grad); background-color: var(--navy); margin-bottom: 16px;
}
.detail-cover.has-image::before, .detail-cover.has-image::after { content: ""; position: absolute; inset: 0; background-image: inherit; }
.detail-cover.has-image::before { background-size: cover; background-position: center; filter: blur(22px) brightness(0.72); transform: scale(1.15); }
.detail-cover.has-image::after { background-size: contain; background-position: center; background-repeat: no-repeat; }
.detail-cover .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.detail-body > * + * { margin-top: 16px; }
.detail-meta { display: grid; gap: 10px; }
.detail-meta-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.detail-meta-row .ic { width: 22px; text-align: center; }
.detail-meta-row .k { color: var(--muted); min-width: 84px; }
.detail-meta-row .v { font-weight: 600; }
.reward-panel { background: var(--blue-50); border: 1px solid #e3e3e3; border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.reward-row { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.reward-row .ic { width: 22px; text-align: center; }
.reward-row .t { flex: 1; }
.reward-row b { color: var(--blue); }

/* ---- แถบเมนูล่างระดับแอป -------------------------------------------------- */
.bottom-nav .acct {
  border: 0; background: none; font: inherit; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; padding: 6px 0;
}
.bottom-nav .acct .ic { font-size: 18px; }

/* ---- ลิ้นชักบัญชี --------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(17, 17, 17, 0.45); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer-panel {
  width: min(86vw, 340px); background: #fff; height: 100%; display: flex; flex-direction: column;
  padding: 16px; box-shadow: var(--shadow-lg); animation: slideIn 0.18s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line-2); }
.avatar.lg { width: 48px; height: 48px; font-size: 20px; }
.drawer-nav { display: grid; gap: 2px; padding-top: 10px; }
.drawer-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; border: 0;
  background: none; font: inherit; color: var(--text); text-align: left; width: 100%; cursor: pointer;
}
.drawer-row:hover { background: var(--bg); text-decoration: none; }
.drawer-row .ic { width: 24px; text-align: center; font-size: 17px; }
.drawer-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); text-align: center; }
@media (max-width: 560px) { .hide-sm { display: none; } }
@media (max-width: 720px) {
  /* Keep the fixed bar from covering the last rows of the page. */
  body.has-bottom-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .sticky-cta { bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ---- แบนเนอร์แคมเปญที่ค้างอยู่ทุกหน้าในแคมเปญ ---------------------------- */
.campaign-banner {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  height: 96px; border-radius: 14px; margin-bottom: 14px; text-decoration: none;
  background: var(--hero-grad); background-color: var(--navy);
}
.campaign-banner.has-image { background-size: cover; background-position: center; }
.campaign-banner .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17,.25), rgba(17, 17, 17,.85)); }
.campaign-banner .name {
  position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25;
  padding: 12px 14px; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.campaign-banner:hover { text-decoration: none; }

/* รายการแคมเปญเลื่อนทางขวาได้บนมือถือ */
@media (max-width: 720px) {
  .card-rail {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none;
  }
  .card-rail::-webkit-scrollbar { display: none; }
  .card-rail > * { flex: 0 0 82%; scroll-snap-align: center; }
}
.ladder-row .reward small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

/* การ์ดแคมเปญของฉัน: มีรูปปกแคมเปญด้านบน */
.mycard { padding: 0; overflow: hidden; }
.mycard > .row, .mycard > h3, .mycard > div:not(.mycard-cover) { padding-inline: 18px; }
.mycard > .row:first-of-type { padding-top: 16px; }
.mycard > div:last-child { padding-bottom: 18px; }
.mycard-cover { height: 8px; background: var(--brand-grad); }
.mycard-cover.has-image { height: 130px; background-size: cover; background-position: center; }

/* กระดาษโปรยรอบเครื่องหมายถูกในหน้าสมัครสำเร็จ */
.success-burst { position: relative; width: 190px; height: 150px; margin: 0 auto 18px; }
.success-burst .success-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
.success-burst i {
  position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0;
  animation: pop-in 0.5s ease-out forwards;
}
.success-burst i:nth-child(odd) { width: 8px; height: 8px; border-radius: 50%; }
.success-burst .c0 { background: #f59e0b; left: 6%;  top: 18%; transform: rotate(-24deg); animation-delay: .05s; }
.success-burst .c1 { background: #ec4899; left: 22%; top: 2%;  transform: rotate(18deg);  animation-delay: .10s; }
.success-burst .c2 { background: #111111; left: 48%; top: -4%; transform: rotate(-8deg);  animation-delay: .15s; }
.success-burst .c3 { background: #12a150; left: 74%; top: 4%;  transform: rotate(30deg);  animation-delay: .20s; }
.success-burst .c4 { background: #3a3a3a; left: 90%; top: 22%; transform: rotate(-16deg); animation-delay: .25s; }
.success-burst .c5 { background: #555555; left: 2%;  top: 60%; transform: rotate(22deg);  animation-delay: .30s; }
.success-burst .c6 { background: #f43f5e; left: 92%; top: 62%; transform: rotate(-30deg); animation-delay: .35s; }
.success-burst i:nth-child(n + 8) { top: auto; bottom: 4%; opacity: 0; animation-delay: .4s; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.4) translateY(10px); } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .success-burst i, .success-mark { animation: none; opacity: 1; }
}

/* ตารางเทียบข้อมูลเดิม → ใหม่ ในหน้าคำขอแก้ไข */
.diff { display: grid; gap: 4px; font-size: 13.5px; }
.diff-row { display: grid; grid-template-columns: 120px 1fr 16px 1fr; gap: 8px; align-items: baseline; }
.diff-row .k { color: var(--muted); }
.diff-row .was { color: var(--muted); text-decoration: line-through; word-break: break-word; }
.diff-row .arrow { color: var(--muted); text-align: center; }
.diff-row .now { color: var(--green); word-break: break-word; }
@media (max-width: 720px) { .diff-row { grid-template-columns: 1fr; } .diff-row .arrow { display: none; } }

/* ---- กระดิ่งแจ้งเตือน ------------------------------------------------------ */
.icon-btn.bell { position: relative; font-size: 17px; border: 1px solid var(--line); background: #fff; }
.bell-dot {
  position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
}
.notif-panel { width: min(92vw, 400px); }
.notif-list { overflow-y: auto; padding-top: 8px; }
.notif-empty { padding: 32px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.notif {
  display: flex; gap: 12px; padding: 12px 10px; border-radius: 12px; color: var(--text);
  border-bottom: 1px solid var(--line-2);
}
.notif:hover { background: var(--bg); text-decoration: none; }
.notif.unread { background: var(--blue-50); }
.notif .ic {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-size: 17px; background: var(--bg);
}
.notif .ic.approved { background: var(--green-50); }
.notif .ic.rejected { background: var(--red-50); }
.notif .body { display: grid; gap: 2px; min-width: 0; }
.notif .sub { font-size: 13px; color: var(--muted); }
.notif .when { font-size: 12px; color: var(--muted); }

/* ---- แถบแคมเปญบนหน้าภาพรวม ------------------------------------------------ */
.camp-strip {
  background: var(--hero-grad); background-color: var(--navy); color: #fff;
  border-radius: 16px; padding: 16px 18px; margin-bottom: 16px;
}
.camp-strip h2 { color: #fff; margin: 12px 0 8px; font-size: 1.2rem; }
.camp-strip .badge.green.plain { background: rgba(255,255,255,.14); color: #a7f3c4; border-color: rgba(255,255,255,.22); }
.camp-strip-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.camp-strip-meta i { font-style: normal; margin-right: 6px; }

/* ---- การ์ดตัวเลข 3 ช่อง --------------------------------------------------- */
.tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border-radius: 14px; padding: 14px; border: 1px solid var(--line-2); background: #fff; }
.tile .ic {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; flex: none;
}
.tile .k { font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.tile .v { font-size: 24px; font-weight: 800; margin-top: 10px; }
.tile .d { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tile.green { background: var(--green-50); border-color: #bfe6cf; }
.tile.green .ic { background: var(--green); color: #fff; }
.tile.blue { background: var(--blue-50); border-color: #e3e3e3; }
.tile.blue .ic { background: var(--blue); color: #fff; font-size: 10px; }
.tile.purple { background: var(--purple-50); border-color: #e3e3e3; }
.tile.purple .ic { background: var(--purple); color: #fff; }
/* บนมือถือยังคง 3 ช่องเหมือนแบบที่ออกแบบไว้ แค่ย่อขนาดตัวอักษร */
@media (max-width: 560px) {
  .tile { padding: 11px 10px; }
  .tile .v { font-size: 18px; margin-top: 8px; }
  .tile .k { font-size: 11px; }
  .tile .d { font-size: 10.5px; }
  .tile .ic { width: 24px; height: 24px; font-size: 11px; }
}

/* ---- เมนูด่วน ------------------------------------------------------------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick {
  display: grid; gap: 4px; padding: 14px; border-radius: 14px; text-align: center;
  border: 1px solid var(--line-2); background: #fff; color: var(--text);
}
.quick:hover { text-decoration: none; box-shadow: var(--shadow); }
.quick .ic { font-size: 20px; }
.quick b { font-size: 13.5px; }
.quick .sub { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.quick.blue { background: var(--blue-50); border-color: #e3e3e3; }
.quick.green { background: var(--green-50); border-color: #bfe6cf; }
.quick.amber { background: var(--amber-50); border-color: #fbd9a8; }
.quick.purple { background: var(--purple-50); border-color: #e3e3e3; }
@media (max-width: 560px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }

/* หมายเหตุจากทีมงาน (แก้ได้ที่ Admin > ตั้งค่าเว็บ) */
.notice-box {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  background: var(--amber-50); border: 1px solid #fbd9a8; border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; color: var(--text-2);
}
.notice-box .ic { font-size: 16px; line-height: 1.4; }
.notice-box b { display: block; color: var(--amber); margin-bottom: 2px; }

/* ---- หน้าภาพรวมตามแบบที่ออกแบบไว้ ----------------------------------------- */
.campaign-banner.tall { height: 170px; align-items: center; }
.campaign-banner .copy { position: relative; z-index: 1; padding: 16px 18px; color: #fff; }
.campaign-banner .copy b { display: block; font-size: 20px; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.campaign-banner .copy i { display: block; margin-top: 8px; font-size: 13px; font-style: italic; color: rgba(255,255,255,.88); }
.campaign-banner .shade { background: linear-gradient(90deg, rgba(17, 17, 17,.82) 0%, rgba(17, 17, 17,.45) 62%, rgba(17, 17, 17,.25) 100%); }

.sales-card { padding: 18px; }
.sales-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 12px 0 8px; }
.sales-total { font-size: 38px; font-weight: 800; color: var(--green); line-height: 1.05; }
.sales-total span { font-size: 18px; font-weight: 700; }
.next-tier {
  display: flex; align-items: center; gap: 10px; background: var(--blue-50); border: 1px solid #e3e3e3;
  border-radius: 14px; padding: 10px 14px; font-size: 13px; color: var(--text-2); max-width: 260px;
}
.next-tier b { display: block; color: var(--blue); font-size: 15px; }
.next-tier .ic { font-size: 20px; }
.next-tier.locked { background: var(--amber-50); border-color: #fbd9a8; }
.next-tier.locked b { color: var(--amber); }
.next-tier.done { background: var(--green-50); border-color: #bfe6cf; }
.next-tier.done b { color: var(--green); }

.gmv-mark .t.top { line-height: 1.15; }
.gmv-mark .t.bottom.pill {
  background: var(--green-50); color: var(--green); border: 1px solid #bfe6cf;
  border-radius: 999px; padding: 1px 8px; font-weight: 700;
}

.update-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--blue-50); border: 1px solid #e3e3e3; color: var(--text);
}
.update-row:hover { text-decoration: none; }
.update-row .ic { font-size: 20px; }
.update-row b { display: block; color: var(--blue); font-size: 14px; }
.update-row span { font-size: 13px; color: var(--text-2); }
.update-row .chev { margin-left: auto; color: var(--muted); font-size: 20px; }

/* เมนูด่วน 4 ช่องเรียงแถวเดียวเหมือนแบบ */
@media (max-width: 560px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick { padding: 10px 6px; }
  .quick b { font-size: 11.5px; }
  .quick .sub { font-size: 10px; }
  .quick .ic { font-size: 17px; }
}

/* สรุปสวิตช์ของแคมเปญในตาราง */
.flags { display: grid; gap: 3px; }
.flag { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; width: fit-content; }
.flag.on { background: var(--green-50); color: var(--green); border: 1px solid #bfe6cf; }
.flag.off { background: #f2f2f2; color: var(--muted); border: 1px solid var(--line); }

/* ---- ข้อความจัดรูปแบบ (ใช้ทั้งหน้า Creator และตัวอย่างในหน้า Admin) ---------- */
.rt-red { color: #dc3545; } .rt-orange { color: #f97316; } .rt-gold { color: #b8860b; }
.rt-green { color: #12a150; } .rt-blue { color: #0b5cff; } .rt-purple { color: #7c3aed; }
.rt-pink { color: #db2777; } .rt-gray { color: #64748b; }
.rt-sm { font-size: 0.82em; } .rt-lg { font-size: 1.25em; } .rt-xl { font-size: 1.55em; line-height: 1.2; }
/* บนพื้นกรมท่า ใช้สีที่สว่างขึ้นให้อ่านออก */
.hero .rt-red, .campaign-banner .rt-red, .rt-preview.dark .rt-red { color: #ff8a93; }
.hero .rt-orange, .campaign-banner .rt-orange, .rt-preview.dark .rt-orange { color: #ffb070; }
.hero .rt-gold, .campaign-banner .rt-gold, .rt-preview.dark .rt-gold { color: #ffd966; }
.hero .rt-green, .campaign-banner .rt-green, .rt-preview.dark .rt-green { color: #7ee2a8; }
.hero .rt-blue, .campaign-banner .rt-blue, .rt-preview.dark .rt-blue { color: #8fb6ff; }
.hero .rt-purple, .campaign-banner .rt-purple, .rt-preview.dark .rt-purple { color: #c4a7ff; }
.hero .rt-pink, .campaign-banner .rt-pink, .rt-preview.dark .rt-pink { color: #ff9ccb; }
.hero .rt-gray, .campaign-banner .rt-gray, .rt-preview.dark .rt-gray { color: #cbd5e1; }

.rt-editor { display: grid; gap: 6px; }
.rt-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.rt-btn {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 13px; cursor: pointer; color: var(--text);
}
.rt-btn:hover { border-color: var(--blue); }
.rt-btn.swatch { padding: 0; width: 30px; display: grid; place-items: center; }
.rt-btn.swatch i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.rt-btn.size-sm { font-size: 11px; } .rt-btn.size-lg { font-size: 14px; } .rt-btn.size-xl { font-size: 16px; font-weight: 700; }
.rt-btn.clear { margin-left: auto; color: var(--muted); }
.rt-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rt-preview-label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rt-preview {
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 40px; line-height: 1.5;
}
.rt-preview.dark { background: var(--hero-grad); background-color: var(--navy); color: #fff; border-color: transparent; }


/* =========================================================================
   Monochrome theme — ขาว เทา ดำ ตามเว็บไซต์หลัก nectapharma.com
   สีเขียว/เหลือง/แดงยังคงไว้เฉพาะที่มีความหมาย (ผ่าน · รอ · ไม่ผ่าน)
   ========================================================================= */
:root {
  --brand-grad: linear-gradient(135deg, #111111 0%, #2e2e2e 100%);
  --hero-grad: linear-gradient(160deg, #141414 0%, #262626 60%, #333333 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.16);
  --mint: #eef6f1;
}
body { background: #fafafa; }
.topbar { background: rgba(255, 255, 255, 0.96); }
.card { border-color: #ececec; }

/* ปุ่มหลักเป็นดำล้วน ปุ่มรองเป็นขาวขอบเทา แบบเว็บหลัก */
.btn-primary, .btn-grad { background: #111111; --btn-bg: #111111; --btn-bd: #111111; box-shadow: none; }
.btn-primary:hover, .btn-grad:hover { background: #000000; filter: none; }
.btn-light { --btn-bg: rgba(255, 255, 255, 0.1); --btn-bd: rgba(255, 255, 255, 0.3); }

/* ป้ายสถานะแคมเปญ/ลิงก์ ให้เป็นเทา */
.badge.blue, .badge.purple { background: #f3f3f3; color: #111111; border-color: #e3e3e3; }
a { color: #111111; text-decoration: underline; text-decoration-color: #cfcfcf; text-underline-offset: 3px; }
a.btn, .nav, .brand, .quick, .update-row, .notif, .drawer-row, .campaign-banner, .bottom-nav a,
.tabs a, .clip-row, .card.row, .mycard, .detail-meta-row a { text-decoration: none; }

/* แท็บที่เลือกอยู่ + เมนู Admin ที่เลือกอยู่ ใช้เขียวมิ้นต์อ่อนแบบเว็บหลัก */
.tabs a.active { background: #111111; color: #fff; }
.sidebar .nav.active { background: #2a2a2a; }
.bottom-nav a.active { color: #111111; }

/* การ์ดตัวเลข / เมนูด่วน / กล่องรางวัล เป็นโทนเทาทั้งหมด */
.tile.blue, .tile.purple, .quick.blue, .quick.purple, .quick.amber, .quick.green,
.reward-panel, .next-tier, .update-row, .cover-spec, .notif.unread { background: #f5f5f5; border-color: #e6e6e6; }
.tile.green { background: var(--mint); border-color: #d9ece0; }
.tile.blue .ic, .tile.purple .ic { background: #111111; }
.reward-row b, .next-tier b, .update-row b { color: #111111; }
.camp-strip { background: var(--hero-grad); }
.stepper-item.active .dot { background: #111111; border-color: #111111; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08); }
.stepper-item.active .t { color: #111111; }
.stepper-item.active::before, .stepper-item.done::before { background: #111111; }
.gmv-fill { background: #111111; }
.progress-mini i { background: #111111; }
.ring .value { stroke: #111111; }

/* Monochrome: money & reward surfaces in black/grey; green is kept only for status labels. */
.reward-card { border-color: var(--border); background: linear-gradient(180deg, #f5f5f5 0%, #fff 60%); }
.reward-total, .sales-total, .ladder-row .reward, .next-tier.done b { color: #111111; }
.gmv-part.counts, .card.stat.counts, .ladder-row.reached, .next-tier.done { background: #f5f5f5; border-color: #d4d4d4; }
.gmv-chip { background: #f0f0f0; color: #111111; }
.tile.green, .quick.green { background: #f5f5f5; border-color: #e5e5e5; }
.tile.green .ic { background: #111111; }
.gmv-mark.hit i { border-color: #111111; background: #111111; }
.gmv-mark .t.bottom { color: #111111; }
.tl-item.done .tl-dot, .stepper .s.done::before { background: #111111; }
.stepper-item.done .dot { background: #111111; border-color: #111111; }
.success-mark { background: #111111; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
