:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --ink: #0f172a;
    --highlight: #f59e0b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --font: 'Inter', Arial, sans-serif;
    --font-head: 'Poppins', Arial, sans-serif;
}
body { font-family: var(--font); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); }
a { text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 16px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.site-brand .mark { width: 34px; height: 34px; border-radius: 8px; background: var(--highlight); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--bs-primary); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; }

.section { padding: 56px 0; }
.section-title { font-size: 30px; margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 32px; font-size: 16px; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.package-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.package-card h2 { font-size: 20px; margin: 0; }
.package-price { font-size: 28px; font-weight: 700; color: var(--bs-primary); }
.package-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.package-features { list-style: none; padding: 0; margin: 0 0 12px; flex: 1; }
.package-features li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--text-muted); }
.package-features li:last-child { border-bottom: none; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 560px; margin: 0 auto; }
.form-card label { font-weight: 600; font-size: 13px; color: var(--ink); display: block; margin-bottom: 6px; }
.form-card .form-group { margin-bottom: 18px; }
.form-card .help-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.slug-preview { font-family: monospace; background: #f1f5f9; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 6px; }
.slug-status { font-size: 12px; margin-top: 4px; font-weight: 600; }
.slug-status.ok { color: #16a34a; }
.slug-status.error { color: #dc2626; }

.payment-panel { background: #f8fafc; border: 1px dashed var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; text-align: center; }
.payment-panel img { max-width: 220px; margin: 12px auto; display: block; }
.payment-panel .account-number { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: .03em; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 28px 0; margin-top: 48px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,.85); }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: #e6f6ec; color: #16a34a; border: 1px solid #b9e6c8; }
.alert-error { background: #fdecea; color: #dc2626; border: 1px solid #f6c3bf; }

/* Bootstrap doesn't provide these two button variants used across the site */
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.btn-highlight { background: var(--highlight); border-color: var(--highlight); color: var(--ink); font-weight: 600; }
.btn-highlight:hover { filter: brightness(1.08); color: var(--ink); }

.hero { padding: 80px 0; text-align: center; background: linear-gradient(180deg, #eef2ff, #fff); }
.hero h1 { font-size: 38px; max-width: 780px; margin: 0 auto 16px; }
.hero p { font-size: 17px; color: var(--text-muted); max-width: 620px; margin: 0 auto 28px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step-num { width: 34px; height: 34px; border-radius: 999px; background: var(--bs-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { font-size: 14px; margin: 0; }

.tenant-home-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tenant-home-head .section-title { margin: 0; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; color: inherit; transition: box-shadow .15s; }
.article-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.article-card-image { height: 160px; background: #eef2ff center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--bs-primary); }
.article-card-body { padding: 18px; }
.article-card-category { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-primary); margin-bottom: 6px; }
.article-card-body h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.35; }
.article-card-body p { font-size: 14px; margin: 0 0 10px; }
.article-card-date { font-size: 12px; color: var(--text-muted); }

.category-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.category-pills a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink); }
.category-pills a.active, .category-pills a:hover { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }

.pagination { display: flex; justify-content: space-between; margin-top: 28px; }

.article-detail h1 { font-size: 30px; margin: 10px 0 8px; }
.article-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.article-featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.article-body { font-size: 16px; line-height: 1.8; }

.edition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.edition-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; color: inherit; transition: box-shadow .15s; }
.edition-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.edition-card-image { aspect-ratio: 3/4; background: #f1f5f9; }
.edition-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edition-card-body { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.edition-card-body strong { font-size: 14px; }
.edition-card-body span { font-size: 12px; color: var(--text-muted); }
.help-text-light { color: var(--text-muted); }

.epaper-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.epaper-wrap { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.epaper-wrap img { display: block; max-width: 100%; height: auto; }
.hotspot-layer { position: absolute; inset: 0; }
.hotspot-box.reader { position: absolute; cursor: pointer; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.hotspot-box.reader:hover { background: rgba(37,99,235,.15); border-color: var(--bs-primary); }
.thumb-strip { display: flex; gap: 10px; overflow-x: auto; margin-top: 20px; padding-bottom: 8px; }
.thumb-strip a { flex-shrink: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; }
.thumb-strip a.active { border-color: var(--bs-primary); }
.thumb-strip img { display: block; width: 90px; height: auto; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-box { background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-box p, .modal-box div#modal-body { white-space: pre-wrap; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 12px 20px; gap: 4px; display: none; }
    .site-nav.open { display: flex; }
    .package-grid { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .hero { padding: 56px 0; }
    .hero h1 { font-size: 28px; }
    .tenant-home-head { flex-direction: column; align-items: flex-start; }
}
