/* Pantau Tender — light mode, gaya trybuzzer.com: putih bersih, aksen oranye,
   Plus Jakarta Sans tebal, kartu radius kecil dengan bayangan lembut. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;               /* paksa kontrol form terang meski OS dalam dark mode */
  --orange: #ff4500;
  --orange-soft: #ff8a3c;
  --orange-deep: #e03d00;
  --orange-text: #c2410c;
  --orange-tint: #fff4ec;
  --orange-line: #ffd9c2;
  --ink: #0a0a0a;
  --soft: #4b5563;
  --muted: #6b7280;
  --faint: #9ca3af;
  --bg: #fafbfd;
  --surface: #ffffff;
  --panel: #f6f8fb;
  --line: #e7edf4;
  --line2: #d6dee8;
  --hair: #eff3f7;

  --cat-ooh: #ff4500;
  --cat-video_podcast: #7c3aed;
  --cat-media_sosial: #059669;
  --cat-iklan: #e11d48;
  --cat-humas: #0891b2;
  --cat-publikasi: #d97706;
  --cat-digital_lain: #2563eb;

  --urg-mendesak: #dc2626;
  --urg-dekat: #d97706;
  --urg-aman: #16a34a;
  --urg-lewat: #9ca3af;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.04);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.05), 0 12px 28px rgba(16, 24, 40, 0.08);
  --glow: 0 10px 26px -10px rgba(255, 69, 0, 0.55);
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --container: 1180px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
main { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 72px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--container); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--orange-soft)); box-shadow: var(--glow); flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.topbar nav { display: flex; gap: 2px; flex: 1; }
.topbar nav a { text-decoration: none; padding: 7px 13px; border-radius: var(--pill); color: var(--soft); font-weight: 600; font-size: 14px; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.topbar nav a:hover { background: var(--panel); color: var(--ink); }
.topbar nav a[aria-current="page"] { background: var(--orange-tint); color: var(--orange-text); }

/* ---------- tombol & form ---------- */
button, .button {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: var(--radius-sm);
  height: 40px; padding: 0 16px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform 150ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}
button:hover, .button:hover { border-color: var(--faint); }
button:active, .button:active { transform: translateY(1px); }
.primary { background: var(--orange-deep) !important; border-color: var(--orange-deep) !important; color: #fff !important; box-shadow: var(--glow); }
.primary:hover { background: var(--orange) !important; }
button.link { border: 0; background: none; color: var(--muted); padding: 0 8px; font-weight: 600; }
button.link:hover { color: var(--ink); }
input, select {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background-color: var(--surface);
  border: 1px solid var(--line2); border-radius: var(--radius-sm); height: 40px; padding: 0 12px; width: 100%; min-width: 0;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder { color: var(--faint); font-weight: 500; }
input:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.14); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 36px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px; border-radius: var(--pill); background: var(--orange-tint); border: 1px solid var(--orange-line); color: var(--orange-text); font-size: 13px; font-weight: 700; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.16); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 69, 0, 0); } }
.hero h1 { margin: 0; font-size: clamp(30px, 22px + 2.2vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 .accent { color: var(--orange); font-variant-numeric: tabular-nums; }
.lead { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 54ch; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat dd small { font-size: 13px; color: var(--faint); font-weight: 700; letter-spacing: 0; }
.stat.is-hot dd { color: var(--orange); }

/* ---------- ticker ---------- */
.ticker { position: relative; overflow: hidden; margin: 0 0 24px; padding: 10px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 8px; width: max-content; padding: 0 8px; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 14px 5px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tick:hover { border-color: var(--orange-soft); background: var(--orange-tint); color: var(--ink); }
.tick b { color: var(--ink); font-weight: 700; }
.tick .val { color: var(--urg-aman); font-weight: 800; }
.tick-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--cat-color); color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- kategori ---------- */
.cat-ooh { --cat-color: var(--cat-ooh); }
.cat-video_podcast { --cat-color: var(--cat-video_podcast); }
.cat-media_sosial { --cat-color: var(--cat-media_sosial); }
.cat-iklan { --cat-color: var(--cat-iklan); }
.cat-humas { --cat-color: var(--cat-humas); }
.cat-publikasi { --cat-color: var(--cat-publikasi); }
.cat-digital_lain { --cat-color: var(--cat-digital_lain); }

.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cats a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px 12px 14px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
.cats a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--cat-color) 45%, white); }
.cats a[aria-current="true"] { border-color: var(--cat-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color) 16%, transparent); }
.cats .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat-color) 11%, white); color: var(--cat-color); flex: none; }
.cat-icon svg { width: 18px; height: 18px; }
.cats strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.cats .label { color: var(--soft); font-size: 12.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- rencana (RUP) ---------- */
.eyebrow-plan { background: #eef4ff; border-color: #c7d7fe; color: #1d4ed8; }
.eyebrow-plan .dot { background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16); }
.stat .stat-text { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; padding-top: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tabs a { text-decoration: none; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line2); background: var(--surface); color: var(--soft); font-size: 13px; font-weight: 700; transition: border-color 180ms var(--ease), color 180ms var(--ease); }
.tabs a:hover { border-color: var(--faint); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag-plan { background: #eef4ff; color: #1d4ed8; }
.due-plan { background: #eef4ff; color: #1d4ed8; }
.plan-note { margin: 6px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #eef4ff; border: 1px solid #c7d7fe; color: #1e3a8a; font-size: 14px; }
.filters-spacer { display: block; }

/* ---------- filter ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.result-meta { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.result-meta strong { color: var(--ink); font-size: 15px; }
.clear { color: var(--orange-text); text-decoration: none; font-weight: 700; }

/* ---------- kartu paket ---------- */
.packages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.package { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px 40px; gap: 20px; align-items: center; padding: 14px 16px 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
.package:hover { box-shadow: var(--shadow-lift); border-color: var(--line2); }
.cat-bar { position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cat-color, var(--line2)); }
.package-main { min-width: 0; }
.package h2 { margin: 6px 0 3px; font-size: 15.5px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.package h2 a { text-decoration: none; }
.package h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.package h2 a:hover { color: var(--orange-text); }
.package.is-unread h2 { font-weight: 800; }
.package .save-form { position: relative; z-index: 1; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; }
.chip { padding: 2px 8px; border-radius: 5px; color: var(--cat-color); background: color-mix(in srgb, var(--cat-color) 10%, white); }
.tag { padding: 2px 8px; border-radius: 5px; background: var(--hair); color: var(--soft); }
.badge-new { padding: 2px 8px; border-radius: 5px; background: var(--orange); color: #fff; letter-spacing: 0.03em; }
.sub { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.package-side { display: grid; gap: 6px; justify-items: end; text-align: right; }
.price { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: 11px; color: var(--faint); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.due { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; background: var(--hair); color: var(--soft); }
.due::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.due.urg-mendesak { background: #fef2f2; color: var(--urg-mendesak); }
.due.urg-dekat { background: #fffbeb; color: #b45309; }
.due.urg-aman { background: #f0fdf4; color: #15803d; }
.due.urg-lewat { color: var(--urg-lewat); text-decoration: line-through; }

.save-icon { width: 40px; padding: 0; color: var(--faint); font-size: 18px; }
.save-icon:hover { color: var(--orange); border-color: var(--orange-line); background: var(--orange-tint); }
.save-icon.is-saved, .save.is-saved { color: var(--orange); border-color: var(--orange-line); background: var(--orange-tint); }

/* ---------- detail ---------- */
.back { display: inline-flex; margin-top: 24px; color: var(--muted); font-weight: 700; text-decoration: none; font-size: 13px; }
.back:hover { color: var(--orange-text); }
.detail { max-width: 860px; }
.detail-meta { margin-top: 14px; }
.detail h1 { font-size: clamp(24px, 18px + 1.6vw, 34px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; margin: 12px 0 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.value-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 12px; padding: 18px 20px; background: linear-gradient(135deg, var(--orange-tint), var(--surface) 75%); border: 1px solid var(--orange-line); border-radius: var(--radius); }
.value-hero dt { font-size: 12px; color: var(--orange-text); font-weight: 700; }
.value-hero dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.value-hero .due { margin-top: 6px; font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
.facts dt { color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; }
.winner dd { color: var(--orange-text); font-weight: 800; }
.block { margin-top: 28px; }
.block h2 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.summary { white-space: pre-line; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); font-size: 14px; }
.longtext { white-space: pre-line; color: var(--soft); font-size: 14px; max-height: 340px; overflow: auto; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.note { color: var(--muted); font-size: 13px; font-weight: 500; }
.detail-foot { margin-top: 24px; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.events time { color: var(--faint); margin-right: 8px; font-weight: 700; }

.table-wrap { overflow-x: auto; }
table.jadwal { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.jadwal th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; background: var(--panel); border-bottom: 1px solid var(--line); padding: 9px 12px; white-space: nowrap; }
table.jadwal td { padding: 9px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.jadwal td.time { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.jadwal tr:last-child td { border-bottom: 0; }
.row-bad td { color: var(--urg-mendesak); }

/* ---------- status ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { padding: 10px 14px 10px 40px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.checklist li::before { position: absolute; left: 15px; font-weight: 800; }
.checklist li.ok::before { content: "✓"; color: var(--urg-aman); }
.checklist li.warn::before { content: "!"; color: var(--orange); }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 26px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.pager a { text-decoration: none; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 700; }
.pager a:hover { border-color: var(--orange); color: var(--orange-text); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line2); border-radius: var(--radius); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); max-width: none; background: radial-gradient(640px 320px at 50% -8%, rgba(255, 138, 60, 0.22), transparent 70%), var(--bg); }
.login { width: 100%; max-width: 380px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); }
.login .brand { margin-bottom: 22px; }
.login h1 { font-size: 26px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 4px; }
.login p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.login form { display: grid; gap: 14px; }
.login label { display: grid; gap: 6px; font-size: 13px; color: var(--soft); font-weight: 700; }
.login button { width: 100%; height: 44px; }
.alert { background: #fef2f2; color: var(--urg-mendesak); border: 1px solid #fecaca; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }

/* ---------- responsif ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .f-search { grid-column: 1 / -1; }
  .filters-spacer { display: none; }
  .value-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 14px; }
  .topbar-inner { flex-wrap: wrap; gap: 8px 16px; }
  .topbar nav { order: 3; flex-basis: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr; }
  .package { grid-template-columns: minmax(0, 1fr) 40px; gap: 10px 12px; }
  .package-side { grid-column: 1 / 2; grid-row: 2; justify-items: start; text-align: left; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .package .save-form { grid-column: 2; grid-row: 1; align-self: start; }
  .price small { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ticker { overflow-x: auto; }
}
