/* Perfect Will Business Ads — same palette, fonts and gradients as perfectwill.bigmesoftwares.com */
:root {
  --bg: #f5f7ff;
  --ink: #13213c;
  --ink-soft: #4e5a76;
  --accent: #ff6a3d;
  --accent-2: #0fa3b1;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(19, 33, 60, 0.12);
  --shadow: 0 20px 50px rgba(19, 33, 60, 0.16);
  --good: #0d8c57;
  --warn: #b8860b;
  --bad: #b82525;
  --grad: linear-gradient(135deg, var(--accent) 0%, #ff8555 45%, var(--accent-2) 100%);
  --grad-dark: linear-gradient(155deg, #0f1f44 0%, #1d335f 58%, #0fa3b1 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, #dbe3ff 0%, transparent 35%),
    radial-gradient(circle at 85% 5%, #ffe3d7 0%, transparent 35%),
    linear-gradient(180deg, #f8faff 0%, #eef3ff 45%, #f8fbff 100%);
  min-height: 100vh;
  line-height: 1.5;
}
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
main.wrap.narrow { width: min(760px, 92vw); }
header { padding: 18px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.nav .links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand { font-size: 1rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent-2); }
.nav a:not(.brand) {
  text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.7); font-weight: 600; font-size: .93rem; transition: transform .2s ease, box-shadow .2s ease;
}
.nav a:not(.brand):hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15,163,177,.18); }
.nav a.cta { color: #fff; border: 0; background: var(--grad); box-shadow: 0 8px 18px rgba(255,106,61,.25); }

h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0 0 10px; letter-spacing: -0.02em; }
h3 { margin: 0 0 8px; font-size: 1.05rem; }
p { margin: 0 0 14px; }
.lead { color: var(--ink-soft); font-size: clamp(1rem, 2.6vw, 1.2rem); max-width: 58ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; color: var(--ink-soft); }
a { color: var(--accent-2); }

.cta, button.cta {
  display: inline-block; text-decoration: none; color: #fff; background: var(--grad); padding: 13px 22px; border-radius: 999px;
  font-weight: 700; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; box-shadow: 0 14px 28px rgba(255,106,61,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px) scale(1.01); }
.cta.small { padding: 9px 16px; font-size: .93rem; box-shadow: 0 8px 18px rgba(255,106,61,.25); }
.cta.teal { background: linear-gradient(135deg, var(--accent-2) 0%, #1bbfa0 55%, #3ddc84 100%); box-shadow: 0 14px 28px rgba(15,163,177,.3); }
.cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn, button.btn {
  display: inline-block; text-decoration: none; color: var(--ink); background: rgba(255,255,255,.8); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: .95rem;
}
.btn:hover { box-shadow: 0 10px 20px rgba(15,163,177,.18); }
.btn.good { color: #fff; background: var(--good); border-color: var(--good); }
.btn.bad { color: #fff; background: var(--bad); border-color: var(--bad); }
.btn.warn { color: #fff; background: var(--warn); border-color: var(--warn); }
.btn.small { padding: 7px 12px; font-size: .86rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card { border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); backdrop-filter: blur(8px); margin: 0 0 20px; }
.card.tight { padding: 16px 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.flash { padding: 12px 16px; border-radius: 16px; margin: 0 0 16px; font-weight: 600; border: 1px solid; }
.flash.ok { background: #e6f8ef; border-color: #9fdcbd; color: #0b6a43; }
.flash.bad { background: #fde8e8; border-color: #f3b3b3; color: #8b1c1c; }

label { display: block; font-weight: 700; font-size: .92rem; margin: 0 0 6px; }
label .opt { font-weight: 500; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(15,163,177,.18); }
textarea { min-height: 110px; resize: vertical; }
.field { margin: 0 0 16px; }
.hint { font-size: .86rem; color: var(--ink-soft); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent-2); }
.phones .phone-row { display: flex; gap: 8px; margin-bottom: 8px; }
.phones .phone-row input { flex: 1; }
.code-input { font-size: 2rem; letter-spacing: .35em; text-align: center; font-weight: 800; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: #e9edff; color: var(--ink); margin-right: 6px; vertical-align: middle; }
.badge.st-live { background: #d7f5e6; color: #0b6a43; }
.badge.st-ad_approved, .badge.st-payment_received, .badge.st-ad_uploaded { background: #d8f3f5; color: #0a6c74; }
.badge.st-awaiting_payment, .badge.st-under_review, .badge.st-submitted { background: #fff0d6; color: #8a5a00; }
.badge.st-rejected, .badge.st-cancelled, .badge.st-changes_needed { background: #fde3e3; color: #8b1c1c; }
.badge.st-expired, .badge.st-refunded { background: #e6e9f2; color: #4e5a76; }
.badge.warn { background: #ffe3d7; color: #9a3a1a; }
.badge.lv-small { background: #e3f6ff; color: #0a5b82; }
.badge.lv-medium { background: #eae3ff; color: #4b2a9e; }
.badge.lv-large { background: #ffe9c7; color: #8a4b00; }

/* ── Pricing ─────────────────────────────────────────────── */
.price-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; container-type: inline-size; min-width: 0; }
.price-card .lvl { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--accent-2); }
.price-card .amt { font-size: clamp(1.2rem, 12cqi, 2.4rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; line-height: 1.1; }
@supports not (font-size: 1cqi) { .price-card .amt { font-size: clamp(1.2rem, 2.6vw, 2.4rem); } }
.price-card .days { color: var(--ink-soft); font-weight: 600; }
.price-card.pick { cursor: pointer; border: 2px solid transparent; }
.price-card.pick:has(input:checked) { border-color: var(--accent-2); box-shadow: 0 0 0 5px rgba(15,163,177,.15), var(--shadow); }
.price-card.pick input { position: absolute; opacity: 0; pointer-events: none; }

.disclaimer { background: #fff6e8; border: 1px solid #ffd9a6; color: #5c3b00; padding: 14px 16px; border-radius: 16px; margin: 0 0 16px; }
.notice { background: #fde3e3; border: 2px solid #f0a0a0; color: #7a1414; padding: 14px 16px; border-radius: 16px; margin: 0 0 16px; font-weight: 600; }
.notice.calm { background: #e6f4f6; border-color: #a8dde3; color: #0a4e55; font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 36px; padding: 24px 0 44px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.hero-art { border-radius: 28px; background: var(--grad-dark); padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); }
.phone { width: min(230px, 60vw); margin: 0 auto; aspect-ratio: 9 / 19.5; border-radius: 34px; background: #0a0f1d; border: 6px solid #1b2440; box-shadow: 0 30px 60px rgba(0,0,0,.4); position: relative; overflow: hidden; }
.phone .screen { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.phone .screen img { width: 100%; height: 100%; object-fit: contain; display: block; }
.phone .count { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); }
.phone .open { position: absolute; left: 14px; right: 14px; bottom: 16px; background: #fff; color: #0a0f1d; font-weight: 800; font-size: .8rem; text-align: center; padding: 10px; border-radius: 999px; }
.phone .ad-mock { width: 100%; height: 100%; background: linear-gradient(160deg, #10303a, #0a1b22); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; padding: 20px; gap: 10px; }
.phone .ad-mock .big { font-size: 1.1rem; font-weight: 800; line-height: 1.1; }
.phone .ad-mock .tiny { font-size: .6rem; opacity: .8; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* ── Tracker ─────────────────────────────────────────────── */
.tracker { margin: 6px 0 18px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; position: relative; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6px 2px; opacity: 0; animation: stage-in .35s ease forwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes stage-in { to { opacity: 1; } }
.stage::before { content: ""; position: absolute; top: 24px; left: -50%; width: 100%; height: 4px; background: var(--line); z-index: 0; border-radius: 2px; }
.stage:first-child::before { display: none; }
.stage.done::before, .stage.current::before, .stage.side::before { background: var(--grad); }
.stage .dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--ink-soft); font-weight: 800; font-size: .85rem; transition: transform .3s ease; }
.stage .dot svg { width: 22px; height: 22px; position: absolute; display: none; }
.stage .dot .check { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.stage.done .dot { background: var(--grad); border-color: transparent; color: #fff; }
.stage.done .dot .num { display: none; }
.stage.done .dot svg { display: block; }
.stage.done .dot .check { animation: draw .55s ease forwards; animation-delay: calc(var(--i) * 120ms + 200ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stage.done.final .dot { background: linear-gradient(135deg, #0fa3b1, #3ddc84); }
.stage.current .dot { border-color: var(--accent); color: var(--accent); background: #fff; transform: scale(1.14); box-shadow: 0 0 0 0 rgba(255,106,61,.5); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,61,.55), 0 0 18px rgba(255,106,61,.35); } 50% { box-shadow: 0 0 0 10px rgba(255,106,61,0), 0 0 28px rgba(15,163,177,.55); } }
.stage.current .dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.9) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; mix-blend-mode: overlay; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.stage.side .dot { border-color: var(--bad); color: var(--bad); background: #fff; transform: scale(1.1); }
.stage .label { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; line-height: 1.25; }
.stage .label strong { font-size: .84rem; }
.stage.current .label strong { color: var(--accent); }
.stage .blurb { color: var(--ink-soft); font-size: .72rem; }
.stage.todo .blurb { display: none; }
.stage .when { font-size: .7rem; color: var(--accent-2); font-weight: 700; margin-top: 2px; }
.stage .side-mark { margin-top: 4px; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #fde3e3; color: #8b1c1c; }
.side-reason { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #fde3e3; color: #7a1414; }
.stage.just-reached .dot { animation: pop .7s cubic-bezier(.2,1.6,.4,1) 1; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1.14); } }
@media (max-width: 760px) {
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stage { flex-direction: row; text-align: left; align-items: flex-start; padding: 8px 0; gap: 14px; }
  .stage::before { top: -50%; left: 18px; width: 4px; height: 100%; }
  .stage .dot { flex: none; }
  .stage .label { padding-top: 6px; }
}

/* ── Copy rows & payment ─────────────────────────────────── */
.copy-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row .k { font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.copy-row .v { font-weight: 700; word-break: break-all; }
.copy-row .v small { display: block; font-weight: 500; color: var(--ink-soft); }
.copy-row .copy { font: inherit; font-size: .85rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--accent-2); min-width: 72px; }
.copy-row .copy.copied { background: var(--good); color: #fff; border-color: var(--good); }
@media (max-width: 560px) { .copy-row { grid-template-columns: 1fr auto; } .copy-row .k { grid-column: 1 / -1; padding-bottom: 0; } }
.countdown { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 1.3rem; }
.countdown.urgent { color: var(--bad); }
.hours { font-weight: 700; }
.ad-preview { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ad-preview > div { min-width: 0; flex: 1 1 200px; word-break: break-word; overflow-wrap: anywhere; }
.kv dd a, .ad-preview a { overflow-wrap: anywhere; }
.ad-preview img.thumb { width: 150px; aspect-ratio: 9/16; object-fit: contain; background: #0a0f1d; border-radius: 16px; border: 1px solid var(--line); }
.ad-list { display: grid; gap: 12px; }
.next-row { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.next-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: #fff6e8; border: 1px solid #ffd9a6; }
.ad-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.ad-item .thumb { width: 64px; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; background: #0a0f1d; display: grid; place-items: center; color: #fff; font-size: .7rem; }
.ad-item .id { font-weight: 800; color: var(--accent-2); font-size: .85rem; }
.ad-item .arrow { font-size: 1.4rem; color: var(--ink-soft); }
@media (max-width: 560px) { .ad-item { grid-template-columns: 52px 1fr; } .ad-item .arrow { display: none; } }

/* ── Fit tool ─────────────────────────────────────────────── */
.fit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .fit-wrap { grid-template-columns: 1fr; } }
.fit-stage { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 9/16; background: #0a0f1d; border-radius: 18px; overflow: hidden; touch-action: none; cursor: grab; border: 1px solid var(--line); }
.fit-stage canvas { width: 100%; height: 100%; display: block; }
.fit-stage.dragging { cursor: grabbing; }
.fit-stage .guide { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); border-radius: 18px; }
.fit-controls { display: grid; gap: 12px; }
.fit-controls input[type=range] { width: 100%; accent-color: var(--accent-2); }
.fit-mode { display: flex; gap: 8px; flex-wrap: wrap; }
.fit-mode .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.swatches { display: flex; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.swatch.on { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.preview-stage { margin-top: 14px; }
.preview-phone { width: min(260px, 70vw); margin: 0 auto; }
.hidden { display: none !important; }
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 24px; text-align: center; background: rgba(255,255,255,.6); }
.drop.over { border-color: var(--accent-2); background: #e6f6f8; }
.drop input { display: none; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); width: 0; transition: width .3s; }

/* ── Admin ─────────────────────────────────────────────── */
body.admin .brand span { color: var(--accent); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs a { text-decoration: none; color: var(--ink); background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: .88rem; font-weight: 600; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a .n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; text-align: center; margin-left: 6px; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
table.list tr:hover td { background: rgba(255,255,255,.6); }
table.list a.row-link { color: var(--ink); text-decoration: none; font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--ink-soft); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } }
.action-box { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 0 0 12px; background: rgba(255,255,255,.7); }
.action-box h3 { margin-bottom: 8px; }
.review-part { display: grid; grid-template-columns: 1fr; gap: 10px; }
.part-status { font-weight: 800; }
.part-status.approved { color: var(--good); }
.part-status.rejected { color: var(--bad); }
.part-status.pending { color: var(--warn); }
.history { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.history li { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 560px) { .history li { grid-template-columns: 1fr; } }
.takedown-code { font-size: 1.6rem; letter-spacing: .3em; font-weight: 800; text-align: center; padding: 10px; background: #fff; border-radius: 14px; border: 2px dashed var(--bad); color: var(--bad); margin: 10px 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 30px 0 40px; color: var(--ink-soft); font-size: .9rem; }
.foot .links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); opacity: 0; transition: all .35s ease; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.legal h2 { font-size: 1.15rem; color: var(--accent-2); margin: 22px 0 8px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .stage, .stage .dot, .stage .dot::after, .stage.done .dot .check { animation: none !important; opacity: 1; stroke-dashoffset: 0; } }
