
:root {
  --black: #0b0b0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --blue: #1d4fb8;
  --blue-d: #163d8f;
  --blue-l: #e8effc;
  --green: #7ed957;
  --green-d: #16a34a;
  --green-l: #ecfdf3;
  --red: #dc2626;
  --red-l: #fef2f2;
  --amber: #b45309;
  --amber-l: #fffbeb;
  --purple: #6d28d9;
  --purple-l: #f3e8ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: Poppins, Inter, sans-serif; margin: 0 0 .5em; line-height: 1.2; }
a { color: var(--blue); }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* Header */
.topbar { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .in { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.topbar .logo { height: 54px; width: 54px; object-fit: cover; border-radius: 8px; }
.brand { font-family: Poppins, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .5px; }
.brand .f { color: #2f6bdc; } .brand .h { color: var(--green); }
.topbar .nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topbar .nav button, .topbar .nav a { background: transparent; color: #d1d5db; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; font: inherit; text-decoration: none; }
.topbar .nav button.active, .topbar .nav button:hover, .topbar .nav a:hover { background: #1f2937; color: #fff; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }
.narrow { max-width: 460px; margin: 0 auto; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line); }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 17px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--blue); color: #fff; padding: 11px 18px; border-radius: 10px; font: 600 15px Inter, sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:hover { background: var(--blue-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.green { background: var(--green-d); } .btn.green:hover { background: #12843b; }
.btn.red { background: var(--red); } .btn.red:hover { background: #b91c1c; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); } .btn.ghost:hover { background: #f9fafb; }
.btn.dark { background: var(--black); } .btn.dark:hover { background: #222; }
.btn.wa { background: #25d366; color: #fff; } .btn.wa:hover { background: #1ebe5b; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Forms */
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; color: #374151; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; font: 15px Inter, sans-serif; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 10px 0; }
.check input { width: auto; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.err { background: var(--red-l); color: var(--red); padding: 10px 12px; border-radius: 10px; margin-top: 12px; font-size: 14px; }
.ok { background: var(--green-l); color: #166534; padding: 10px 12px; border-radius: 10px; margin-top: 12px; font-size: 14px; }

/* Tabs */
.tabs { display: flex; background: #eef0f3; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font: 600 14px Inter, sans-serif; color: var(--muted); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-amber { background: var(--amber-l); color: var(--amber); }
.b-purple { background: var(--purple-l); color: var(--purple); }
.b-red { background: var(--red-l); color: var(--red); }
.b-blue { background: var(--blue-l); color: var(--blue); }
.b-green { background: var(--green-l); color: #15803d; }
.b-teal { background: #e6fffa; color: #0f766e; }
.b-dark { background: #111827; color: #fff; }
.b-grey { background: #f3f4f6; color: #4b5563; }

/* Hero */
.hero { background: var(--black); color: #fff; border-radius: 20px; padding: 34px 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; }
.hero h1 { font-size: 34px; }
.hero h1 .g { color: var(--green); } .hero h1 .b { color: #4f86ee; }
.hero p { color: #d1d5db; font-size: 16px; }
.hero .split { display: flex; gap: 10px; margin-top: 18px; }
.hero .pill { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 14px; padding: 14px 16px; flex: 1; }
.hero .pill b { font-family: Poppins; font-size: 26px; display: block; }
.hero .pill.you b { color: var(--green); } .hero .pill.us b { color: #4f86ee; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding: 26px 20px; } .hero h1 { font-size: 27px; } }

.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.steps4 .card { padding: 16px; }
.steps4 .num { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px; }
@media (max-width: 820px) { .steps4 { grid-template-columns: 1fr 1fr; } }

/* Item cards */
.items { display: grid; gap: 14px; }
.item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.item .thumb { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: #f3f4f6; border: 1px solid var(--line); }
.item h3 { margin: 0 0 4px; }
.item .meta { color: var(--muted); font-size: 13px; }
.item .prices { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0; font-size: 14px; }
.item .prices b { font-size: 15px; }
@media (max-width: 560px) { .item { grid-template-columns: 1fr; } .item .thumb { width: 100%; height: 200px; } }

.action-box { border: 2px solid var(--purple); background: #faf5ff; border-radius: 12px; padding: 14px; margin-top: 12px; }
.action-box h4 { margin: 0 0 6px; color: var(--purple); font-size: 15px; }

.splitbox { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 10px 0; background: #fff; }
.splitbox div { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.splitbox div:last-child { border-bottom: 0; background: var(--green-l); font-weight: 700; }
.splitbox div:last-child span:last-child { color: #15803d; font-size: 17px; }
.splitbox .fee { color: var(--muted); }

/* Progress */
.progress { display: flex; margin: 12px 0 4px; }
.progress .step { flex: 1; text-align: center; position: relative; font-size: 11px; color: #9ca3af; }
.progress .step::before { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 3px; background: #e5e7eb; z-index: 0; }
.progress .step:first-child::before { display: none; }
.progress .dot { width: 15px; height: 15px; border-radius: 50%; background: #e5e7eb; display: block; margin: 0 auto 4px; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; }
.progress .done .dot, .progress .done::before, .progress .current::before { background: var(--green-d); box-shadow: 0 0 0 1px var(--green-d); }
.progress .done::before, .progress .current::before { box-shadow: none; }
.progress .current .dot { background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.progress .done .lbl, .progress .current .lbl { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .progress .lbl { display: none; } .progress .current .lbl { display: block; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; } .progress { margin-bottom: 18px; } }

.timeline { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 12px 14px; position: relative; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.timeline .t { color: var(--muted); font-size: 12px; }

details summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; margin-top: 10px; }

.gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gallery img { width: 86px; height: 86px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.gallery .ph { position: relative; }
.gallery .ph button { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 13px; line-height: 1; }

.photo-pick { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; background: #fafafa; }
.photo-pick:hover { border-color: var(--blue); }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat .v { font-family: Poppins; font-size: 24px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 13px; }
.stat.hl { background: var(--black); color: #fff; } .stat.hl .v { color: var(--green); } .stat.hl .l { color: #9ca3af; }

table.t { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); background: #fafafa; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f9fafb; }
.tablewrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mini { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; background: #f3f4f6; display: block; }

.attn { border-left: 4px solid var(--purple); }
.attn-list .a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.attn-list .a:last-child { border-bottom: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { width: auto; flex: 1; min-width: 160px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 820px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal .mh { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 18px 18px 0 0; z-index: 2; }
.modal .mb { padding: 18px 20px 24px; }
.modal .x { margin-left: auto; background: #f3f4f6; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.panel h4 { margin: 0 0 6px; font-size: 15px; }
.panel.do { border: 2px solid var(--blue); background: #fbfcff; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }

.codebox { font-family: Poppins; font-size: 30px; letter-spacing: 6px; background: #f3f4f6; border-radius: 12px; padding: 10px; text-align: center; margin: 10px 0; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 10px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 100; transition: transform .25s; max-width: 92vw; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--red); }
#toast.success { background: var(--green-d); }

.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
.btn.ghost .spin { border-color: #ccc; border-top-color: #333; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { text-align: center; padding: 50px; color: var(--muted); }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { color: var(--ink); display: block; font-size: 16px; margin-bottom: 4px; }

footer.site { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

/* Mobile header */
@media (max-width: 640px) {
  .topbar .in { padding: 6px 10px; gap: 8px; }
  .topbar .logo { height: 42px; width: 42px; }
  .brand { font-size: 17px; }
  #navIn ~ .brand, .topbar .in:has(#navIn:not(.hidden)) .brand { display: none; }
  .topbar .nav { flex-wrap: nowrap; overflow-x: auto; gap: 2px; }
  .topbar .nav button, .topbar .nav a { padding: 7px 9px; font-size: 13.5px; white-space: nowrap; }
  .item .thumb { height: 170px; }
}
#attn { align-items: start; }
.hero .card p { color: var(--muted); }

/* Reviews */
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d1d5db; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.review p { margin: 8px 0; color: #374151; }
.star-pick { display: flex; gap: 6px; font-size: 38px; cursor: pointer; user-select: none; }
.star-pick span { color: #d1d5db; transition: transform .1s; }
.star-pick span.on { color: #f59e0b; }
.star-pick span:hover { transform: scale(1.12); }

/* WhatsApp group banner */
.group-banner { display: flex; align-items: center; gap: 14px; background: #ecfdf3; border: 1px solid #bbf7d0; border-radius: 16px; padding: 14px 16px; flex-wrap: wrap; }
.group-banner .gb-ic { font-size: 28px; }
.group-banner .gb-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.group-banner .gb-txt span { color: #4b5563; font-size: 13.5px; }
.wa-group { margin: 16px 0; }
.wa-group[data-style="compact"] { margin: 8px 0; }

.gallery .ph .star { left: -6px; right: auto; background: #f59e0b; }
.gallery .ph .cover-tag { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 6px; }
