/* Tribun Family Card — front website */
:root {
  --blue-900: #062b57;
  --blue-800: #083c78;
  --blue-700: #0b4f9c;
  --blue-600: #1363c4;
  --blue-100: #e3edfa;
  --blue-50: #f2f7fd;
  --gold: #f5b301;
  --gold-600: #d99a00;
  --ink: #0f1d2e;
  --ink-2: #3c4a5c;
  --muted: #6b7889;
  --line: #e4e9f0;
  --bg: #f4f6fa;
  --white: #fff;
  --green: #0f9d58;
  --green-50: #e6f6ee;
  --orange: #e8710a;
  --orange-50: #fdf0e3;
  --red: #d93025;
  --red-50: #fdecea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 46, .06), 0 1px 3px rgba(15, 29, 46, .05);
  --shadow: 0 8px 24px -12px rgba(15, 29, 46, .25);
  --shadow-lg: 0 24px 48px -16px rgba(6, 43, 87, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; vertical-align: middle; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 560px; }
.main { flex: 1 0 auto; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.upper { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: .15s ease;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-800); color: #fff; }
.btn-gold { background: var(--gold); color: var(--blue-900); }
.btn-gold:hover, .btn-gold.active { background: #ffc629; color: var(--blue-900); }
.btn-white { background: #fff; color: var(--blue-800); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost-dark:hover { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue-700); }
.link { background: none; border: 0; padding: 0; color: var(--blue-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(100deg, var(--blue-900), var(--blue-700) 60%, var(--blue-600));
  color: #fff; box-shadow: 0 2px 12px rgba(6, 43, 87, .25);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 14px; background: none; border: 0;
}
.nav-link:hover, .nav-link.active, .dropdown.active > .nav-link { color: #fff; background: rgba(255, 255, 255, .14); }
.nav-icon { display: none; }
.nav-epaper { margin-left: 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; padding: 6px;
  background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s ease; z-index: 60;
}
.dropdown-right .dropdown-menu { left: auto; right: 0; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px;
  color: var(--ink-2); font-size: 14px; font-weight: 500; background: none; border: 0; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown-menu form { margin: 0; }
.dropdown-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown-head strong { display: block; font-size: 14px; }
.dropdown-head small { color: var(--muted); }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 600; font-size: 14px;
}
.avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--blue-900); font-weight: 800; font-size: 14px;
}
.avatar-lg { width: 52px; height: 52px; font-size: 22px; }

/* ---------- Notice / alerts / toast ---------- */
.notice {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); color: var(--blue-800); font-size: 14px;
}
.notice a { font-weight: 700; }
.notice-close { margin-left: auto; background: none; border: 0; color: var(--muted); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert .icon { margin-top: 3px; }
.alert-danger { background: var(--red-50); color: #a52714; }
.alert-warning { background: var(--orange-50); color: #9a4a06; }
.alert-success { background: var(--green-50); color: #0b6b3c; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: toast 4s ease forwards;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(245, 179, 1, .18), transparent 60%),
              linear-gradient(120deg, var(--blue-900), var(--blue-700));
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 12px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 520px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-visual img { border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 1.6; object-fit: cover; object-position: 12% center; width: 100%; }

/* ---------- Layout ---------- */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.layout-2col > .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.home-gap, .layout-2col { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.stack { display: grid; gap: 20px; align-content: start; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0 20px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.layout-2col .page-head { padding-top: 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--blue-700); }
.container > .breadcrumb { padding-top: 24px; }
.result-info { margin: 0 0 16px; color: var(--ink-2); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--blue-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--blue-700); }
.card-text { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); }
.card-meta > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.clamp-3 { -webkit-line-clamp: 3; }

.card-sponsored { background: var(--ink); border-color: var(--ink); }
.card-sponsored .card-title a { color: #fff; }
.card-sponsored .card-text, .card-sponsored .card-meta { color: rgba(255, 255, 255, .65); }

.card-promo .card-media { aspect-ratio: 4 / 5; }
.card-zoom {
  position: absolute; inset: auto 12px 12px auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: 999px; background: rgba(6, 43, 87, .8); color: #fff; font-size: 12.5px; font-weight: 600; opacity: 0; transition: .2s;
}
.card-promo:hover .card-zoom { opacity: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--blue-50); color: var(--blue-700); white-space: nowrap;
}
.badge-city { background: var(--blue-50); color: var(--blue-700); text-transform: uppercase; }
.badge-section { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--blue-800); }
.badge-promo { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--blue-900); }
.badge-free { background: var(--green-50); color: var(--green); }
.badge-discount { background: var(--orange-50); color: var(--orange); }
.badge-muted { background: #eef0f3; color: var(--muted); }

.load-more { display: flex; justify-content: center; margin-top: 28px; }
.load-more .spinner { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.load-more .is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.empty p { margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span, .field-inline > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=password], input[type=search], input[type=date], select {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: inherit; font-size: 14.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(19, 99, 196, .15); }
.field.has-error input { border-color: var(--red); }
.error { color: var(--red); font-size: 12.5px; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7889' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.search, .select { position: relative; display: flex; align-items: center; }
.search > .icon, .select > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; border-radius: 999px; min-width: 260px; }
.select > .icon + select { padding-left: 36px; }
.select select { border-radius: 999px; min-width: 190px; }
.filters { display: flex; gap: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filter-bar .search { flex: 1 1 260px; }
.filter-bar .search input { min-width: 0; }
.filter-bar .select { flex: 0 1 200px; }
.filter-bar .select select { min-width: 0; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; }
.field-inline input { width: auto; height: 36px; }

/* ---------- Select2 (select panjang) ---------- */
.select2-container { font-size: 14.5px; }
.select2-container--default .select2-selection--single {
  height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  display: flex; align-items: center; transition: border-color .15s, box-shadow .15s;
}
.select .select2-container--default .select2-selection--single,
.filter-bar .select2-container--default .select2-selection--single { border-radius: 999px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 14px; padding-right: 36px; color: var(--ink); line-height: 42px; }
.select .icon + select + .select2-container .select2-selection__rendered { padding-left: 36px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 10px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--muted) transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--muted); }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(19, 99, 196, .15); }
.select2-dropdown { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 95; }
.select2-container--open .select2-dropdown--below { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 12px; }
.select2-container--open .select2-dropdown--above { margin-top: -6px; border-bottom: 1px solid var(--line); border-radius: 12px; }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { outline: none; border-color: var(--blue-600); }
.select2-results__option { padding: 9px 14px; font-size: 14px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--blue-50); color: var(--blue-700); }
.select2-container--default .select2-results__option--selected { background: var(--blue-700); color: #fff; }
.select2-container--default .select2-results > .select2-results__options { max-height: 280px; }
.filter-bar .select { min-width: 0; }
.filter-bar .select .select2-container { min-width: 0; }

/* ---------- Panels / sidebar ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.stack > .panel + .panel { margin-top: 0; }
.panel-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--gold); }
.panel-more { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.sidebar { display: grid; gap: 20px; }
.sidebar .panel + .panel { margin-top: 0; }

.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: .15s; }
.socials a:hover { background: var(--gold); color: var(--blue-900); }
.socials-color a { color: #fff; }
.socials-color .social-facebook { background: #1877f2; }
.socials-color .social-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.socials-color .social-x { background: #000; }
.socials-color .social-youtube { background: #ff0000; }
.socials-color a:hover { opacity: .85; color: #fff; }

.merchant-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.merchant-mini { display: grid; justify-items: center; gap: 4px; text-align: center; }
.merchant-mini img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue-100); background: var(--blue-50); }
.merchant-mini span { font-size: 10.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.product-list li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.product-list img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--blue-50); }
.product-list a { font-weight: 700; font-size: 14px; color: var(--ink); display: block; line-height: 1.3; }
.product-list small { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.chip:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

/* ---------- Article ---------- */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); }
.article .breadcrumb { margin-bottom: 18px; }
.article-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.01em; margin: 12px 0 10px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13.5px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-figure { margin: 22px 0 0; }
.article-figure img { width: 100%; border-radius: 12px; }
.article-figure figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.share-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink-2); }
.share-btn:hover { color: #fff; background: var(--blue-700); }
.share-facebook:hover { background: #1877f2; }
.share-x:hover { background: #000; }
.share-whatsapp:hover { background: #25d366; }
.share-telegram:hover { background: #229ed9; }
.prose { font-size: 17px; line-height: 1.8; color: #1d2a3a; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose img { max-width: 100% !important; height: auto !important; border-radius: 10px; margin: 1em auto; }
.prose iframe { max-width: 100%; }
.prose table { max-width: 100%; display: block; overflow-x: auto; }
.prose a { text-decoration: underline; }
.article-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); display: flex; gap: 24px; }
.article + .panel { margin-top: 20px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border: 0; }
.link-list a { font-weight: 600; color: var(--ink); }
.link-list a:hover { color: var(--blue-700); }
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.popular-item { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.popular-item img { aspect-ratio: 16 / 11; object-fit: cover; border-radius: 10px; width: 100%; }

/* ---------- Video ---------- */
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: .3s; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); transition: .2s; }
.video-thumb:hover img { opacity: .75; transform: scale(1.03); }
.video-thumb:hover .play { color: var(--gold); }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Merchant ---------- */
.grid-merchant { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.merchant-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: .2s;
}
.merchant-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.merchant-thumb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--blue-50); color: var(--blue-700); }
.merchant-thumb img { width: 100%; height: 100%; object-fit: cover; }
.merchant-info { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.merchant-info strong { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.merchant-info small { color: var(--muted); font-size: 12px; display: flex; gap: 4px; align-items: flex-start; line-height: 1.35; }
.merchant-info small .icon { margin-top: 1px; }

.merchant-hero { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
/* Cover tanpa foto: gradasi biru + cahaya emas, garis diagonal, titik & lingkaran (bukan blok polos) */
.merchant-cover { position: relative; height: 180px; overflow: hidden; border-bottom: 3px solid var(--gold); background:
    radial-gradient(circle at 86% 12%, rgba(245, 179, 1, .38), transparent 32%),
    radial-gradient(circle at 6% 115%, rgba(56, 160, 255, .5), transparent 46%),
    linear-gradient(120deg, var(--blue-900), var(--blue-700) 55%, var(--blue-600)); }
.merchant-cover::before { content: ""; position: absolute; inset: 0; background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .1) 50%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); }
.merchant-cover::after { content: ""; position: absolute; inset: 0; background:
    radial-gradient(circle at 92% 40%, transparent 70px, rgba(255, 255, 255, .12) 71px 72px, transparent 73px 110px, rgba(255, 255, 255, .08) 111px 112px, transparent 113px 150px, rgba(255, 255, 255, .05) 151px 152px, transparent 153px),
    radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.6px) 0 0 / 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 75%); mask-image: linear-gradient(100deg, transparent 15%, #000 75%); }
.merchant-cover.has-photo { border-bottom: 0; background: linear-gradient(180deg, rgba(6, 43, 87, .1), rgba(6, 43, 87, .7)), var(--cover) center / cover; }
.merchant-cover.has-photo::before, .merchant-cover.has-photo::after { display: none; }
.merchant-cover-logo { position: absolute; z-index: 1; top: 22px; right: 26px; width: 144px; height: auto; opacity: .95; filter: drop-shadow(0 2px 6px rgba(6, 43, 87, .45)); }
.merchant-id { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 0 24px 20px; margin-top: -48px; }
.merchant-logo { display: grid; place-items: center; width: 104px; height: 104px; flex-shrink: 0; border-radius: 20px; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow); overflow: hidden; color: var(--blue-700); }
.merchant-logo img { width: 100%; height: 100%; object-fit: cover; }
.merchant-id h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
/* Logo menumpang di cover, teks tetap di bawah garis cover */
.merchant-id > div { padding-top: 58px; min-width: 0; }
.merchant-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.layout-detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.info-list { margin: 0 0 16px; display: grid; gap: 12px; }
.info-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: 14px; }
.info-list dt { color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.info-list dt .icon { margin-top: 3px; }
.info-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facility { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facility:last-child { border: 0; padding-bottom: 0; }
.facility:first-of-type { padding-top: 0; }
.facility .badge { justify-self: start; }
.facility strong { display: block; }
.facility small { color: var(--blue-700); font-weight: 600; }
.facility p { margin: 4px 0 0; font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; width: 100%; }
.map-embed iframe { width: 100% !important; min-height: 320px; border: 0; border-radius: 10px; }

/* ---------- Static pages ---------- */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-sm); }
.benefit h2 { font-size: 20px; }
.benefit p { margin: 0; color: var(--ink-2); }
.benefit-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue-700); }
.benefit-icon.gold { background: #fff6dc; color: var(--gold-600); }
.rounded-img { border-radius: var(--radius); width: 100%; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }
.grid-contact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.contact-card h3 { font-size: 15.5px; display: flex; align-items: center; gap: 6px; color: var(--blue-800); margin-bottom: 10px; }
.contact-phones { display: flex; flex-wrap: wrap; gap: 6px; }
.phone-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green-50); color: var(--green); font-size: 13.5px; font-weight: 700; }
.phone-pill:hover { background: var(--green); color: #fff; }

.result { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 28px; margin-top: 40px; display: grid; justify-items: center; gap: 12px; }
.result h1 { font-size: 24px; }
.result p { margin: 0; color: var(--ink-2); }
.result-success > .icon { color: var(--green); }
.result-warning > .icon { color: var(--orange); }
.result-code { font-size: 64px; font-weight: 800; color: var(--blue-100); line-height: 1; }

/* ---------- Halaman aplikasi ---------- */
.app-hero {
  display: flex; gap: 28px; align-items: center; padding: 28px; border-radius: 20px; color: #fff;
  background: radial-gradient(600px 220px at 90% -20%, rgba(245, 179, 1, .25), transparent 60%), linear-gradient(120deg, var(--blue-900), var(--blue-600));
  box-shadow: var(--shadow-lg);
}
.app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); flex-shrink: 0; background: #fff; }
.app-hero h2 { font-size: 26px; font-weight: 800; }
.app-hero .muted { color: rgba(255, 255, 255, .7); margin: 2px 0 0; }
.app-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 20px; }
.app-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .65); }
.app-facts dd { margin: 0; font-weight: 800; font-size: 16px; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.app-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 22px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); flex-shrink: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; font-size: 14.5px; color: var(--ink-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--gold); color: var(--blue-900); font-weight: 800; font-size: 13px;
}
.steps-help { margin: 16px 0 0; }

/* ---------- Account / transactions ---------- */
.layout-account { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.account-top { display: flex; gap: 12px; align-items: center; padding: 20px; color: #fff; background: linear-gradient(120deg, var(--blue-900), var(--blue-600)); }
.account-top strong { display: block; font-size: 16px; }
.account-top small { color: rgba(255, 255, 255, .75); }
.account-card .info-list { padding: 18px 20px 4px; }
.account-card .info-list > div { grid-template-columns: 1fr auto; }
.account-card .info-list dd { text-align: right; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .filter-bar { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 14px 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stats > div { padding: 14px 18px; display: grid; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats small { color: var(--muted); font-size: 12px; }
.stats strong { font-size: 18px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); padding: 10px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.table tbody tr:hover { background: var(--blue-50); }
.empty-row { text-align: center; color: var(--muted); padding: 40px 14px !important; }
.table-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.pagination { display: flex; gap: 4px; flex-wrap: wrap; }
.page { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; }
.page.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.page.disabled { color: #b7c0cc; }
a.page:hover { border-color: var(--blue-700); color: var(--blue-700); }

/* ---------- ePaper ---------- */
.date-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 14px; scrollbar-width: thin; }
.date-tab {
  flex: 0 0 auto; display: grid; justify-items: center; min-width: 72px; padding: 8px 10px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); line-height: 1.2; transition: .15s;
}
.date-tab strong { font-size: 22px; font-weight: 800; color: var(--ink); }
.date-tab small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.date-tab:hover { border-color: var(--blue-600); color: var(--blue-700); }
.date-tab.active { background: var(--blue-700); border-color: var(--blue-700); }
.date-tab.active strong, .date-tab.active small { color: #fff; }
.grid-epaper { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.paper {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.paper:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.paper-mine { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 179, 1, .18); }
.paper-cover {
  position: relative; display: block; flex-shrink: 0; width: 100%; height: auto; min-height: 0; padding: 0; aspect-ratio: 5 / 8; border: 0; border-radius: 6px;
  background: #fff; cursor: pointer; overflow: visible;
  /* efek tumpukan kertas */
  box-shadow: 0 1px 0 #fff, 3px 3px 0 -1px #eef2f7, 3px 3px 0 0 #dde4ee, 6px 6px 0 -1px #eef2f7, 6px 6px 0 0 #d3dbe6, 0 10px 22px -12px rgba(15, 29, 46, .45);
}
span.paper-cover { cursor: default; }
/* Gambar diposisikan absolut agar ukuran sampul tidak bergantung pada proporsi file */
.paper-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid #e6ebf2; }
.paper-flag {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px;
  background: var(--gold); color: var(--blue-900); font-size: 11px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.paper-hover {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(6, 43, 87, .25), rgba(6, 43, 87, .82)); color: #fff; font-weight: 700; font-size: 14px;
  opacity: 0; transition: opacity .2s ease;
}
.paper:hover .paper-hover, .paper-cover:focus-visible .paper-hover { opacity: 1; }
span.paper-cover .paper-hover { display: none; }
.paper-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 2px 2px; }
.paper-body h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.paper-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.paper-meta span { display: inline-flex; align-items: center; gap: 4px; }
.paper-body .btn { margin-top: auto; }
.paper-meta { margin-bottom: 4px; }
.paper-pending {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 26px; padding: 14px 16px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px;
}
.paper-pending > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-right: 4px; }
.paper-pending .chip { background: var(--bg); }
.paper-pending .chip:hover { background: var(--bg); border-color: var(--line); color: var(--ink-2); }
.reader-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0 18px; }
.reader-head h1 { font-size: 26px; font-weight: 800; }
.reader-head p { margin: 0; }
.reader-toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 18px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.is-app .reader-toolbar { top: 8px; }
.page-jump { display: flex; gap: 4px; flex-wrap: wrap; }
.page-jump .page { min-width: 30px; height: 30px; font-size: 12.5px; }
.reader { display: grid; gap: 24px; justify-items: center; }
.reader-page { margin: 0; width: 100%; max-width: 900px; scroll-margin-top: calc(var(--header-h) + 80px); }
.reader-page img { width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: var(--shadow); cursor: zoom-in; }
.reader-page figcaption { text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.lightbox.zoomed { place-items: start; overflow: auto; }
.lightbox.zoomed img { max-width: none; max-height: none; width: 180%; cursor: zoom-out; border-radius: 0; }
.lightbox img.zoomable { cursor: zoom-in; }
@media (min-width: 1200px) { .lightbox.zoomed img { width: 120%; } }

/* ---------- Loading gambar ---------- */
.img-skeleton {
  background: linear-gradient(100deg, #e9eef5 30%, #f6f8fb 50%, #e9eef5 70%) !important;
  background-size: 300% 100% !important;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
img.img-loading { opacity: 0; }
img.img-loaded { animation: img-in .45s ease both; }
@keyframes img-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.reader-page a { display: block; border-radius: 6px; }
.reader-page picture, .paper-cover picture { display: contents; }
.lightbox.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite;
}
.lightbox.is-loading img { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .img-skeleton { animation: none; }
  img.img-loaded { animation: none; }
}

/* ---------- Modal & lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(6, 20, 40, .55); backdrop-filter: blur(3px); animation: fade .15s ease; }
.modal-card { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg); border: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal-head { text-align: center; margin-bottom: 20px; }
.modal-head h3 { font-size: 20px; margin: 12px 0 6px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 14px; }
.modal-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-50); color: var(--blue-700); }
.modal-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
body.modal-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 16px; max-width: 360px; }
.app-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; margin: 0 0 20px; padding: 12px;
  border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff !important; transition: background .15s, border-color .15s, transform .15s;
}
.app-cta:hover { background: rgba(255, 255, 255, .12); border-color: rgba(245, 179, 1, .6); transform: translateY(-2px); }
.app-cta img { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.app-cta-text { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.app-cta-text strong { font-size: 15px; color: #fff; }
.app-cta-label { font-size: 10.5px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold) !important; }
.app-cta-text small { font-size: 12px; color: rgba(255, 255, 255, .65); }
.app-cta-btn {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--gold); color: var(--blue-900); font-weight: 700; font-size: 13px;
}
.app-cta:hover .app-cta-btn { background: #ffc629; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .footer-grid > div:not(.footer-brand) a { display: block; color: rgba(255, 255, 255, .7); padding: 4px 0; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- App (WebView Android) ---------- */
.is-app .main { padding-top: 16px; }
.is-app .filter-bar { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .grid-merchant { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-2col { grid-template-columns: minmax(0, 1fr) 280px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px; background: var(--blue-900); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav-link { padding: 12px 14px; font-size: 15.5px; border-radius: 10px; }
  .nav-icon { display: inline-block; }
  .nav .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255, 255, 255, .06); display: none; margin: 4px 0 0 14px; }
  .nav .dropdown.open .dropdown-menu { display: block; }
  .nav .dropdown-menu a { color: rgba(255, 255, 255, .85); }
  .nav .dropdown-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .nav .dropdown > .nav-link { width: 100%; }
  .nav-epaper { margin: 10px 0 0; height: 46px; }
  .user-name { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 36px; }
  .hero-visual { order: -1; }
  .layout-2col, .layout-detail, .layout-account, .app-grid { grid-template-columns: minmax(0, 1fr); }
  .layout-2col > .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .hide-sm { display: none; }
  .header-actions .btn-sm { padding: 0 10px; }
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-4.grid-promo, #promo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-merchant { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 24px; }
  .search input { min-width: 0; }
  .page-head .search, .page-head .filters, .page-head .select, .page-head select { width: 100%; }
  .filter-bar .select { flex: 1 1 calc(50% - 5px); }
  .article { padding: 20px 16px; border-radius: 0; margin: 0 -14px; border-left: 0; border-right: 0; }
  .prose { font-size: 16px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .merchant-id { flex-direction: column; align-items: flex-start; padding: 0 16px 16px; }
  .merchant-id h1 { font-size: 22px; }
  .merchant-id > div { padding-top: 0; }
  .merchant-cover-logo { top: 16px; right: 16px; width: 116px; }
  .facility { grid-template-columns: 1fr; gap: 6px; }
  .info-list > div { grid-template-columns: 110px 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
      .card-promo .card-body { padding: 10px 12px 12px; }
  .card-promo .card-title { font-size: 14px; }
  .card-promo .card-meta .badge { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .app-cta { max-width: none; }
  .app-hero { flex-direction: column; text-align: center; padding: 24px 18px; }
  .app-facts, .app-actions { justify-content: center; }
  .grid-epaper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .paper { padding: 8px; border-radius: 12px; }
  .paper-body h3 { font-size: 14px; }
  .paper-meta { flex-direction: column; gap: 2px; }
  .paper-hover { display: none; }
  .reader-head h1 { font-size: 21px; }
  .reader-toolbar > .muted { display: none; }
  .notice-cta { flex-wrap: wrap; }
  .notice-cta .btn { margin-left: 0; }
}
