:root {
    --pk-accent: #b58b47;
    --pk-orange: #ff6b35;
    --pk-blue: #3157d5;
    --pk-green: #158f68;
    --pk-purple: #7a4fd3;
    --pk-ink: #171715;
    --pk-muted: #72726d;
    --pk-surface: #f7f6f2;
    --pk-card: #fff;
    --pk-border: rgba(30, 30, 25, .11);
    --pk-radius: 20px;
}

[data-bs-theme="dark"],
[data-theme="dark"] {
    --bg-primary: #1a1f2e;
    --bg-secondary: #252b3d;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --border-color: #3d4455;
    --card-bg: #252b3d;
    --navbar-bg: #2c3548;
    --footer-bg: #1a1f2e;
    --pk-ink: var(--text-primary);
    --pk-muted: var(--text-secondary);
    --pk-surface: var(--bg-primary);
    --pk-card: var(--card-bg);
    --pk-border: var(--border-color);
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-primary);
    color-scheme: dark;
}

html { scroll-behavior: smooth; }
body { background: var(--pk-surface); color: var(--pk-ink); font-family: "Noto Sans Thai", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.text-secondary { color: var(--pk-muted) !important; }
.site-header, .admin-topbar { background: color-mix(in srgb, var(--pk-surface) 88%, transparent); border-bottom: 1px solid var(--pk-border); backdrop-filter: blur(18px); }
[data-bs-theme="dark"] .site-header,
[data-bs-theme="dark"] .admin-topbar,
[data-theme="dark"] .site-header,
[data-theme="dark"] .admin-topbar { background: color-mix(in srgb, var(--navbar-bg) 92%, transparent); }
.navbar-brand { letter-spacing: -.03em; }
.navbar-brand span, .eyebrow { color: var(--pk-accent); }
.navbar-brand small { color: var(--pk-muted); font-size: .58rem; letter-spacing: .08em; }
.nav-link { color: var(--pk-muted); font-weight: 500; }
.nav-link:hover { color: var(--pk-ink); }
.btn-icon { align-items: center; background: transparent; border: 1px solid var(--pk-border); border-radius: 50%; color: var(--pk-ink); display: inline-flex; height: 44px; justify-content: center; padding: 0; width: 44px; }
.btn-icon:hover { background: var(--pk-card); }
.mobile-link { border-bottom: 1px solid var(--pk-border); font-size: 1.1rem; padding: 14px 4px; }

.portal-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 182, 72, .28), transparent 28%),
        radial-gradient(circle at 10% 85%, rgba(49, 87, 213, .15), transparent 25%),
        var(--pk-surface);
    border-bottom: 1px solid var(--pk-border);
}
.portal-alert {
    align-items: center;
    background: var(--pk-ink);
    border-radius: 14px;
    color: var(--pk-surface);
    display: flex;
    font-size: .84rem;
    gap: 20px;
    justify-content: space-between;
    padding: 10px 16px;
}
.portal-alert span:first-child { color: #ffd08a; font-weight: 700; }
.portal-alert a { font-weight: 700; white-space: nowrap; }
.hero-copy {
    background: var(--pk-card);
    border: 1px solid var(--pk-border);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(28px, 6vw, 62px);
    position: relative;
}
.hero-copy::after {
    background: var(--pk-orange);
    border-radius: 50%;
    content: "";
    filter: blur(1px);
    height: 160px;
    opacity: .08;
    position: absolute;
    right: -70px;
    top: -70px;
    width: 160px;
}
.portal-kicker {
    color: var(--pk-orange);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
}
.hero-copy h1 {
    font-size: clamp(2.7rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1.04;
    margin: 18px 0;
}
.hero-copy h1 span { color: var(--pk-blue); }
.hero-copy > p { color: var(--pk-muted); font-size: 1.08rem; line-height: 1.75; max-width: 620px; }
.portal-search {
    align-items: center;
    background: var(--pk-surface);
    border: 2px solid transparent;
    border-radius: 18px;
    display: flex;
    margin-top: 18px;
    max-width: 650px;
    padding: 7px 7px 7px 18px;
    transition: border-color .2s, box-shadow .2s;
}
.portal-search:focus-within { border-color: var(--pk-blue); box-shadow: 0 8px 30px rgba(49, 87, 213, .12); }
.portal-search > i { color: var(--pk-blue); font-size: 1.2rem; }
.portal-search input { background: transparent; border: 0; color: var(--pk-ink); min-width: 0; outline: 0; padding: 12px; width: 100%; }
.portal-search button { background: var(--pk-blue); border: 0; border-radius: 13px; color: #fff; font-weight: 700; min-height: 46px; padding: 0 25px; }
.quick-links { align-items: center; color: var(--pk-muted); display: flex; flex-wrap: wrap; font-size: .8rem; gap: 8px; margin-top: 16px; }
.quick-links a { background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 999px; color: var(--pk-ink); padding: 5px 10px; }
.hero-showcase {
    background: #18213c;
    border-radius: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 4vw, 36px);
}
.showcase-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.showcase-heading span { color: #aeb8d4; display: block; font-size: .75rem; }
.showcase-heading strong { display: block; font-size: 1.15rem; margin-top: 2px; }
.showcase-heading > i { color: #ff9f43; font-size: 1.7rem; }
.showcase-item {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: grid;
    gap: 14px;
    grid-template-columns: 58px 1fr auto;
    padding: 17px 0;
}
.showcase-item:hover .showcase-info strong { color: #ffc875; }
.showcase-icon { align-items: center; border-radius: 16px; display: flex; font-size: 1.35rem; height: 58px; justify-content: center; width: 58px; }
.showcase-icon.color-1 { background: #ff7547; }
.showcase-icon.color-2 { background: #4468df; }
.showcase-icon.color-3 { background: #25a77d; }
.showcase-icon.color-4 { background: #885bd7; }
.showcase-info { min-width: 0; }
.showcase-info small { color: #aeb8d4; display: block; font-size: .7rem; }
.showcase-info strong { display: block; font-size: .9rem; margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showcase-info b { color: #ffc875; font-size: .9rem; }
.showcase-all { color: #cbd3e8; font-size: .85rem; font-weight: 600; margin-top: auto; padding-top: 20px; text-align: right; }
.category-zone { background: var(--pk-card); border-bottom: 1px solid var(--pk-border); }
.portal-section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 24px; }
.portal-section-heading > div > span { color: var(--pk-orange); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.portal-section-heading h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.045em; margin: 5px 0 0; }
.portal-section-heading p { color: var(--pk-muted); margin: 5px 0 0; }
.portal-section-heading > a { color: var(--pk-blue); font-size: .88rem; font-weight: 700; }
.category-grid { display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); }
.category-tile {
    border: 1px solid var(--pk-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.category-tile:hover { box-shadow: 0 14px 34px rgba(0,0,0,.09); transform: translateY(-4px); }
.category-icon { align-items: center; background: rgba(255,255,255,.72); border-radius: 16px; display: flex; font-size: 1.5rem; height: 52px; justify-content: center; margin-bottom: auto; width: 52px; }
.category-tile strong { font-size: .95rem; margin-top: 20px; }
.category-tile small { opacity: .72; }
.category-arrow { position: absolute; right: 18px; top: 18px; }
.category-color-1 { background: #ffe3d7; color: #7a2d12; }
.category-color-2 { background: #dce5ff; color: #17317e; }
.category-color-3 { background: #d8f3e9; color: #0e5e45; }
.category-color-4 { background: #eee2ff; color: #54268e; }
.category-color-5 { background: #ffefc7; color: #72520b; }
.all-category-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.all-category-card { align-items: center; background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: 18px; display: grid; gap: 14px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px; transition: transform .2s, box-shadow .2s; }
.all-category-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.all-category-card .category-icon { margin: 0; }
.all-category-card strong, .all-category-card small, .all-category-card b { display: block; }
.all-category-card small { color: var(--pk-muted); font-size: .75rem; margin: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-category-card b { color: var(--pk-blue); font-size: .72rem; }
.listing-search { background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 18px; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) 210px auto; max-width: 820px; padding: 7px; }
.listing-search > div { align-items: center; display: flex; min-width: 0; padding-left: 12px; }
.listing-search input, .listing-search select { background: transparent; border: 0; color: var(--pk-ink); min-width: 0; outline: 0; padding: 11px; width: 100%; }
.listing-search select { border-left: 1px solid var(--pk-border); }
.listing-search button { background: var(--pk-ink); border: 0; border-radius: 12px; color: var(--pk-surface); font-weight: 700; padding: 0 22px; }
.listing-card {
    background: var(--pk-card);
    border: 1px solid var(--pk-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.listing-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.09); transform: translateY(-4px); }
.listing-cover {
    align-items: center;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, color-mix(in srgb, var(--pk-blue) 15%, var(--pk-surface)), var(--pk-card));
    display: flex;
    justify-content: center;
    position: relative;
}
.listing-cover > img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.listing-cover > img.is-placeholder-image,
.gallery-main > img.is-placeholder-image,
.gallery-placeholder > img,
.gallery-thumb img.is-placeholder-image,
.listing-image-item img.is-placeholder-image {
    background: #fff;
    object-fit: contain;
}
.listing-card:hover .listing-cover > img { transform: scale(1.035); }
.listing-card:hover .listing-cover > img.is-placeholder-image { transform: none; }
.listing-cover-icon { color: color-mix(in srgb, var(--pk-blue) 68%, var(--pk-ink)); font-size: clamp(2.5rem, 6vw, 4.3rem); }
.featured-badge, .listing-location { border-radius: 999px; font-size: .68rem; font-weight: 700; position: absolute; top: 12px; }
.featured-badge { background: #ffcf5a; color: #4f3900; left: 12px; padding: 6px 9px; }
.listing-location { background: color-mix(in srgb, var(--pk-card) 88%, transparent); color: var(--pk-ink); max-width: 65%; overflow: hidden; padding: 6px 9px; right: 12px; text-overflow: ellipsis; white-space: nowrap; }
.listing-body { padding: 17px; }
.listing-body > small { color: var(--pk-orange); font-size: .7rem; font-weight: 700; }
.listing-body h3 { font-size: .98rem; font-weight: 600; line-height: 1.5; margin: 7px 0 15px; min-height: 3em; }
.listing-body h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.listing-bottom { align-items: center; border-top: 1px solid var(--pk-border); display: flex; justify-content: space-between; padding-top: 13px; }
.listing-bottom strong { font-size: 1rem; }
.listing-bottom a { align-items: center; background: var(--pk-ink); border-radius: 50%; color: var(--pk-surface); display: flex; height: 34px; justify-content: center; width: 34px; }
.favorite-form { position: absolute; right: 12px; top: 58px; z-index: 3; }
.favorite-button { align-items: center; background: color-mix(in srgb, var(--pk-card) 90%, transparent); border: 1px solid var(--pk-border); border-radius: 50%; color: var(--pk-ink); display: flex; height: 38px; justify-content: center; width: 38px; }
.favorite-button.active { color: #dc3545; }
.favorite-form-detail { float: right; }
.contact-actions small { font-size: .68rem; font-weight: 400; opacity: .72; }
.listing-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-tags a { background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 999px; color: var(--pk-blue); font-size: .78rem; padding: 6px 10px; }
.post-cta {
    align-items: center;
    background: linear-gradient(120deg, #3157d5, #6b3fc4);
    border-radius: 28px;
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: auto 1fr auto;
    padding: clamp(26px, 5vw, 48px);
}
.post-cta-icon { align-items: center; background: rgba(255,255,255,.14); border-radius: 20px; display: flex; font-size: 2rem; height: 74px; justify-content: center; width: 74px; }
.post-cta span { color: #d9ddff; font-size: .8rem; font-weight: 600; }
.post-cta h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; margin: 5px 0; }
.post-cta p { color: #d9ddff; margin: 0; }
.listing-breadcrumb { align-items: center; color: var(--pk-muted); display: flex; flex-wrap: wrap; font-size: .78rem; gap: 7px; }
.listing-detail-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .65fr); }
.listing-gallery, .listing-summary { min-width: 0; }
.gallery-main { aspect-ratio: 4/3; background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: 24px; overflow: hidden; position: relative; }
.gallery-main > img { height: 100%; object-fit: cover; width: 100%; }
.gallery-featured, .gallery-count { background: rgba(20,20,20,.78); border-radius: 999px; color: #fff; font-size: .75rem; font-weight: 700; padding: 7px 11px; position: absolute; top: 14px; }
.gallery-featured { background: #ffcf5a; color: #4f3900; left: 14px; }
.gallery-count { right: 14px; }
.gallery-thumbs { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.gallery-thumb { aspect-ratio: 4/3; background: var(--pk-card); border: 2px solid transparent; border-radius: 14px; overflow: hidden; padding: 0; }
.gallery-thumb.active { border-color: var(--pk-blue); }
.gallery-thumb img { height: 100%; object-fit: cover; width: 100%; }
.gallery-empty { align-items: center; aspect-ratio: 4/3; background: var(--pk-card); border-radius: 24px; color: var(--pk-muted); display: flex; font-size: 4rem; justify-content: center; }
.listing-summary { align-self: start; background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: 24px; padding: 28px; position: sticky; top: 100px; }
.listing-summary h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; margin: 10px 0 15px; }
.detail-price { color: var(--pk-blue); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; }
.detail-facts { border-block: 1px solid var(--pk-border); display: grid; gap: 14px; margin: 22px 0; padding: 20px 0; }
.detail-facts span { align-items: center; color: var(--pk-muted); display: grid; font-size: .85rem; gap: 8px; grid-template-columns: 20px 80px 1fr; }
.detail-facts i { color: var(--pk-blue); }
.detail-facts b { color: var(--pk-ink); font-weight: 600; }
.seller-card { align-items: center; display: flex; gap: 12px; margin-bottom: 18px; }
.seller-avatar { align-items: center; background: var(--pk-accent); border-radius: 50%; color: #fff; display: flex; flex: 0 0 48px; font-size: 1.2rem; font-weight: 700; height: 48px; justify-content: center; }
.seller-card small, .seller-card strong, .seller-card span { display: block; }
.seller-card small, .seller-card span { color: var(--pk-muted); font-size: .72rem; }
.contact-warning { color: var(--pk-muted); font-size: .72rem; line-height: 1.6; margin: 15px 0 0; }
.listing-description { line-height: 1.9; }
.listing-description h2 { font-size: 1.55rem; font-weight: 700; margin: 0 0 14px; }
.listing-description h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; }
.listing-description ul { background: var(--pk-surface); border-radius: 14px; padding: 16px 20px 16px 38px; }
.listing-description li { margin-bottom: 6px; }
.listing-meta-list { margin: 0; }
.listing-meta-list div { align-items: center; border-bottom: 1px solid var(--pk-border); display: flex; justify-content: space-between; padding: 13px 0; }
.listing-meta-list div:last-child { border: 0; }
.listing-meta-list dt { color: var(--pk-muted); font-weight: 500; }
.listing-meta-list dd { margin: 0; text-align: right; }
.hero-section { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--pk-accent) 18%, transparent), transparent 34%); border-bottom: 1px solid var(--pk-border); min-height: 68vh; display: grid; align-items: center; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; }
.display-title { font-size: clamp(2.65rem, 8vw, 5.6rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.06; }
.display-title span { color: var(--pk-muted); }
.lead { font-size: clamp(1rem, 2.2vw, 1.28rem); max-width: 650px; line-height: 1.8; }
.btn-dark { --bs-btn-bg: var(--pk-ink); --bs-btn-border-color: var(--pk-ink); --bs-btn-color: var(--pk-surface); }
.section-heading h2, .page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; }
.story-card { background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: var(--pk-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.story-card:hover { box-shadow: 0 18px 50px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.story-cover { align-items: center; aspect-ratio: 16/10; background: linear-gradient(135deg, color-mix(in srgb, var(--pk-accent) 25%, var(--pk-card)), var(--pk-card)); display: flex; justify-content: center; overflow: hidden; }
.story-cover span { color: color-mix(in srgb, var(--pk-accent) 60%, transparent); font-size: 6rem; font-weight: 700; }
.story-meta { color: var(--pk-muted); font-size: .76rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.story-meta span { background: var(--pk-accent); border-radius: 50%; display: inline-block; height: 4px; margin: 2px 8px; width: 4px; }
.story-card h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.45; }
.story-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.7; overflow: hidden; }
.read-more { font-size: .9rem; font-weight: 600; }
.page-hero, .article-header { background: var(--pk-card); border-bottom: 1px solid var(--pk-border); }
.search-form { align-items: center; background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 999px; display: flex; max-width: 560px; padding: 6px 6px 6px 18px; }
.search-form input { background: transparent; border: 0; color: var(--pk-ink); min-width: 0; outline: 0; padding: 10px; width: 100%; }
.search-form button { background: var(--pk-ink); border: 0; border-radius: 999px; color: var(--pk-surface); padding: 10px 20px; }
.article-narrow, .article-content { margin-inline: auto; max-width: 780px; }
.article-header h1 { font-size: clamp(2.35rem, 7vw, 4.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.18; }
.article-lead { font-size: 1.14rem; line-height: 1.8; }
.article-byline, .user-chip { align-items: center; display: flex; gap: 12px; justify-content: center; }
.article-byline > span, .user-chip > span { align-items: center; background: var(--pk-accent); border-radius: 50%; color: #fff; display: flex; flex: 0 0 42px; height: 42px; justify-content: center; }
.article-byline small, .user-chip small { color: var(--pk-muted); display: block; font-size: .75rem; }
.article-content { font-size: 1.08rem; line-height: 2; }
.article-content h2, .article-content h3 { font-weight: 600; letter-spacing: -.02em; margin: 2.3em 0 .7em; }
.article-content blockquote { border-left: 3px solid var(--pk-accent); color: var(--pk-muted); font-size: 1.2rem; margin: 2rem 0; padding-left: 1.5rem; }
.site-footer { background: var(--pk-card); border-top: 1px solid var(--pk-border); }
[data-bs-theme="dark"] .site-footer,
[data-theme="dark"] .site-footer { background: var(--footer-bg); }
.footer-brand-logo {
    align-items: center;
    display: inline-flex;
    margin-bottom: .35rem;
}
.footer-brand-logo img {
    display: block;
    height: 54px;
    object-fit: contain;
    width: auto;
}
.footer-trust-badge {
    align-items: center;
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    margin: 0 8px 8px 0;
    min-height: 48px;
    padding: 8px 10px;
    text-decoration: none;
    vertical-align: middle;
}
.footer-trust-badge img {
    display: block;
    height: auto;
    object-fit: contain;
    width: auto;
}
.dbd-register-badge img { max-height: 46px; max-width: 230px; }
.truemoney-badge img { max-height: 42px; max-width: 170px; }
.empty-state, .error-page { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 45vh; padding: 4rem 1rem; }
.empty-state i { color: var(--pk-accent); font-size: 3rem; }
.error-page span { color: var(--pk-accent); font-size: clamp(5rem, 20vw, 10rem); font-weight: 700; line-height: 1; opacity: .25; }

.admin-body { background: var(--pk-surface); }
.admin-shell { display: grid; min-height: calc(100vh - 77px); }
.admin-sidebar { background: var(--pk-card); border-right: 1px solid var(--pk-border); padding: 24px 16px; }
.admin-menu a { border-radius: 12px; color: var(--pk-muted); font-weight: 500; padding: 12px 14px; }
.admin-menu a:hover { background: var(--pk-surface); color: var(--pk-ink); }
.admin-menu i { margin-right: 9px; }
.admin-menu-label { color: var(--pk-muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; margin: 18px 14px 6px; text-transform: uppercase; }
.category-admin-icon { align-items: center; background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 12px; color: var(--pk-blue); display: inline-flex; flex: 0 0 42px; font-size: 1.1rem; height: 42px; justify-content: center; }
.user-chip { justify-content: flex-start; }
.user-chip strong { display: block; font-size: .88rem; }
.panel-card, .stat-card, .auth-card { background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: var(--pk-radius); }
.stat-card { display: flex; flex-direction: column; min-height: 150px; padding: 20px; }
.stat-card i { color: var(--pk-accent); font-size: 1.35rem; }
.stat-card strong { font-size: 2rem; margin-top: auto; }
.stat-card span { color: var(--pk-muted); font-size: .85rem; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--pk-ink); }
.table th { color: var(--pk-muted); font-size: .74rem; font-weight: 600; padding: 16px 20px; text-transform: uppercase; white-space: nowrap; }
.table td { border-color: var(--pk-border); padding: 16px 20px; }
.status { border-radius: 999px; display: inline-block; font-size: .72rem; font-weight: 600; padding: 5px 10px; }
.status-published { background: rgba(25, 135, 84, .13); color: #168052; }
.status-draft { background: rgba(108, 117, 125, .14); color: var(--pk-muted); }
.status-scheduled { background: rgba(181, 139, 71, .16); color: var(--pk-accent); }
.status-archived { background: rgba(220, 53, 69, .12); color: #c43d4b; }
.form-control, .form-select, .input-group-text { background-color: var(--pk-surface); border-color: var(--pk-border); color: var(--pk-ink); min-height: 46px; }
.form-control:focus, .form-select:focus { background-color: var(--pk-surface); border-color: var(--pk-accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--pk-accent) 18%, transparent); color: var(--pk-ink); }
.content-editor { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; line-height: 1.7; }
.form-sidebar { top: 100px; }
.auth-page { align-items: center; background: radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--pk-accent) 18%, transparent), transparent 38%); display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card { max-width: 460px; padding: clamp(28px, 6vw, 48px); width: 100%; }
.auth-alert { left: 50%; max-width: 460px; position: fixed; top: 20px; transform: translateX(-50%); width: calc(100% - 48px); z-index: 2; }
.package-card { position: relative; transition: transform .2s, box-shadow .2s; }
.package-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.09); transform: translateY(-4px); }
.package-icon, .settings-icon { align-items: center; background: color-mix(in srgb, var(--pk-accent) 15%, var(--pk-surface)); border-radius: 14px; color: var(--pk-accent); display: flex; font-size: 1.3rem; height: 48px; justify-content: center; width: 48px; }
.package-price { color: var(--pk-blue); font-size: 2.2rem; font-weight: 700; }
.package-price small { color: var(--pk-muted); font-size: .85rem; font-weight: 500; }
.package-recommend { background: #ffcf5a; border-radius: 999px; color: #4f3900; font-size: .7rem; font-weight: 700; padding: 5px 9px; position: absolute; right: 16px; top: 16px; }
.package-facts li { margin: 8px 0; }
.package-facts i { color: var(--pk-green); margin-right: 7px; }
.payment-methods { display: grid; gap: 12px; }
.payment-option { align-items: center; border: 1px solid var(--pk-border); border-radius: 16px; cursor: pointer; display: grid; gap: 14px; grid-template-columns: auto auto 1fr; padding: 16px; }
.payment-option:has(input:checked) { background: color-mix(in srgb, var(--pk-blue) 8%, var(--pk-card)); border-color: var(--pk-blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pk-blue) 12%, transparent); }
.payment-option.disabled { cursor: not-allowed; opacity: .48; }
.payment-option-icon { align-items: center; background: var(--pk-surface); border-radius: 12px; color: var(--pk-blue); display: flex; font-size: 1.25rem; height: 46px; justify-content: center; width: 46px; }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { color: var(--pk-muted); line-height: 1.5; margin-top: 3px; }
.manual-payment-box { background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 16px; padding: 20px; }
.payment-qr { display: block; height: auto; max-width: 220px; width: 100%; }
.payment-settings-qr-preview {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 10px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    padding: 8px;
    width: min(100%, 220px);
}
.payment-settings-empty {
    align-items: center;
    background: var(--pk-surface);
    border: 1px dashed var(--pk-border);
    border-radius: 10px;
    color: var(--pk-muted);
    display: flex;
    min-height: 112px;
    padding: 14px;
}
.order-status { border-radius: 999px; display: inline-block; font-size: .72rem; font-weight: 700; padding: 6px 10px; white-space: nowrap; }
.status-pending { background: rgba(108,117,125,.13); color: var(--pk-muted); }
.status-awaiting_review { background: rgba(255,193,7,.18); color: #9b7000; }
.status-paid { background: rgba(25,135,84,.14); color: #168052; }
.status-rejected, .status-failed, .status-cancelled { background: rgba(220,53,69,.12); color: #c43d4b; }
.payment-detail-list { margin: 0; }
.payment-detail-list div { border-bottom: 1px solid var(--pk-border); display: grid; gap: 14px; grid-template-columns: 130px 1fr; padding: 13px 0; }
.payment-detail-list dt { color: var(--pk-muted); font-weight: 500; }
.payment-detail-list dd { margin: 0; }
.payment-slip { border: 1px solid var(--pk-border); border-radius: 14px; height: auto; max-height: 620px; object-fit: contain; width: 100%; }
.empty-slip { align-items: center; background: var(--pk-surface); border-radius: 14px; color: var(--pk-muted); display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 260px; }
.empty-slip i { font-size: 2rem; }
.settings-heading { align-items: center; display: flex; gap: 14px; }
.settings-heading p { font-size: .82rem; }
.settings-heading code { overflow-wrap: anywhere; }
.language-group-toggle { align-items: center; background: transparent; border: 0; color: var(--pk-ink); display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; }
.language-group-toggle span:first-child { display: grid; gap: 2px; }
.language-group-toggle small { color: var(--pk-muted); font-size: .78rem; font-weight: 600; }
.language-group-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.language-group-toggle .bi-chevron-down { transition: transform .18s ease; }
.language-textarea { min-height: 64px; resize: vertical; }
.social-google { color: #4285f4; }.social-facebook { color: #1877f2; }.social-line { color: #06c755; }
.social-login-grid { display: grid; gap: 9px; grid-template-columns: repeat(3, 1fr); }
.social-login-button { align-items: center; border: 1px solid var(--pk-border); border-radius: 12px; display: flex; flex-direction: column; font-size: .78rem; gap: 5px; justify-content: center; min-height: 66px; padding: 8px; }
.social-login-button:hover { background: var(--pk-surface); border-color: var(--pk-accent); }
.social-login-button.unavailable { opacity: .55; }
.social-login-button i { font-size: 1.2rem; }
.auth-divider { align-items: center; color: var(--pk-muted); display: flex; font-size: .75rem; gap: 12px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { background: var(--pk-border); content: ""; flex: 1; height: 1px; }
.ck.ck-editor { color: #202124; }
.ck.ck-editor__main > .ck-editor__editable { min-height: 340px; }
.listing-image-manager { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-image-item { border: 1px solid var(--pk-border); border-radius: 14px; overflow: hidden; }
.listing-image-item img { aspect-ratio: 4/3; height: auto; object-fit: cover; width: 100%; }
.listing-upload-section { display: grid; gap: 10px; }
.listing-upload-dropzone { align-items: center; background: color-mix(in srgb, var(--pk-accent) 5%, var(--pk-surface)); border: 2px dashed color-mix(in srgb, var(--pk-accent) 55%, var(--pk-border)); border-radius: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; justify-content: center; min-height: 190px; min-width: 0; overflow: hidden; padding: 24px 18px; text-align: center; transition: border-color .2s, background-color .2s, transform .2s; width: 100%; }
.listing-upload-dropzone:hover, .listing-upload-dropzone:focus-visible, .listing-upload-dropzone.is-dragging { background: color-mix(in srgb, var(--pk-accent) 11%, var(--pk-surface)); border-color: var(--pk-accent); outline: 0; transform: translateY(-1px); }
.listing-upload-dropzone strong { font-size: 1.05rem; }
.listing-upload-dropzone span, .listing-upload-dropzone small, .listing-upload-status { color: var(--pk-muted); overflow-wrap: anywhere; }
.listing-upload-icon { align-items: center; background: var(--pk-accent); border-radius: 50%; color: #fff !important; display: flex; font-size: 1.45rem; height: 52px; justify-content: center; margin-bottom: 5px; width: 52px; }
.listing-upload-status { font-size: .82rem; }
.listing-upload-errors { font-size: .82rem; padding: 10px 12px; }
.listing-upload-preview { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.listing-upload-preview-item { background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 14px; overflow: hidden; position: relative; }
.listing-upload-preview-item img { aspect-ratio: 4/3; height: auto; object-fit: cover; width: 100%; }
.listing-upload-preview-item button { align-items: center; background: rgba(20,20,20,.78); border: 0; border-radius: 50%; color: #fff; display: flex; height: 30px; justify-content: center; position: absolute; right: 7px; top: 7px; width: 30px; }
.listing-upload-preview-meta { font-size: .72rem; overflow: hidden; padding: 7px 9px; text-overflow: ellipsis; white-space: nowrap; }
.contact-country { max-width: 105px; }
.permission-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.permission-card { align-items: flex-start; border: 1px solid var(--pk-border); border-radius: 14px; cursor: pointer; display: flex; gap: 12px; padding: 15px; }
.permission-card:has(input:checked) { background: color-mix(in srgb,var(--pk-blue) 8%,var(--pk-card)); border-color: var(--pk-blue); }
.permission-card strong,.permission-card small { display: block; }.permission-card small { color: var(--pk-muted); margin-top: 3px; }
.profile-editor { align-items: center; display: flex; gap: 20px; }.profile-avatar { align-items: center; background: var(--pk-accent); border-radius: 50%; color: #fff; display: flex; flex: 0 0 92px; font-size: 2rem; height: 92px; justify-content: center; overflow: hidden; }.profile-avatar img { height:100%;object-fit:cover;width:100%; }
[data-bs-theme="dark"] .ck.ck-editor__main > .ck-editor__editable { background: #fff; }

@media (min-width: 992px) {
    .admin-shell { grid-template-columns: 250px 1fr; }
}

@media (max-width: 575.98px) {
    .site-header .navbar { padding-inline: 14px; }
    .portal-hero .container { padding-inline: 12px; }
    .hero-section { min-height: 72vh; }
    .btn-lg { font-size: .95rem; min-height: 48px; }
    .story-card h3 { font-size: 1.18rem; }
    .table th, .table td { padding: 13px 14px; }
    .portal-alert { gap: 8px; }
    .portal-alert a { font-size: .75rem; }
    .hero-copy { border-radius: 22px; padding: 26px 22px; }
    .hero-copy h1 { font-size: clamp(2.3rem, 12vw, 2.85rem); letter-spacing: -.055em; }
    .hero-copy > p { font-size: .98rem; line-height: 1.75; }
    .portal-search { border-radius: 15px; padding: 6px; }
    .portal-search > i { display: none; }
    .portal-search input { font-size: .88rem; padding: 10px; }
    .portal-search button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; }
    .quick-links span { width: 100%; }
    .hero-showcase { border-radius: 22px; }
    .showcase-item { gap: 10px; grid-template-columns: 58px minmax(0, 1fr) auto; }
    .showcase-info strong { font-size: .84rem; }
    .category-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; overflow: visible; padding: 0; }
    .category-tile { min-height: 150px; padding: 16px; }
    .category-tile:last-child { grid-column: 1 / -1; min-height: 125px; }
    .category-icon { height: 46px; width: 46px; }
    .category-tile strong { font-size: .86rem; margin-top: 16px; overflow-wrap: anywhere; }
    .portal-section-heading { align-items: flex-start; }
    .portal-section-heading h2 { font-size: 1.75rem; }
    .portal-section-heading > a { margin-top: 5px; white-space: nowrap; }
    .portal-section-heading p { display: none; }
    .listing-body { padding: 16px; }
    .listing-body h3 { font-size: 1rem; min-height: auto; }
    .listing-bottom strong { font-size: 1rem; }
    .listing-location { display: none; }
    .post-cta { grid-template-columns: 1fr; text-align: center; }
    .post-cta-icon { margin-inline: auto; }
    .post-cta .btn { width: 100%; }
    .all-category-grid { grid-template-columns: 1fr; }
    .all-category-card { padding: 15px; }
    .listing-search { grid-template-columns: 1fr; padding: 8px; }
    .listing-search select { border-left: 0; border-top: 1px solid var(--pk-border); }
    .listing-search button { min-height: 46px; }
    .listing-detail-grid { grid-template-columns: 1fr; }
    .gallery-main { border-radius: 18px; }
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .listing-summary { border-radius: 18px; padding: 22px; position: static; }
    .detail-facts span { grid-template-columns: 18px 72px 1fr; }
    .payment-option { grid-template-columns: auto auto 1fr; padding: 13px; }
    .payment-option-icon { height: 42px; width: 42px; }
    .payment-detail-list div { grid-template-columns: 1fr; gap: 4px; }
    .settings-heading { align-items: flex-start; flex-wrap: wrap; }
    .settings-heading .form-check { margin-left: 0 !important; }
    .listing-image-manager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listing-upload-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(100vw - 66px); }
    .listing-upload-dropzone { max-width: calc(100vw - 66px); min-height: 180px; padding-inline: 14px; }
    .listing-upload-dropzone span, .listing-upload-dropzone small { font-size: .78rem; line-height: 1.55; max-width: 100%; }
    .permission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 374.98px) {
    .portal-alert { padding-inline: 12px; }
    .portal-alert span:first-child { font-size: .75rem; }
    .hero-copy { padding-inline: 18px; }
    .hero-copy h1 { font-size: 2.15rem; }
    .portal-search input { font-size: .8rem; }
    .portal-search button { padding-inline: 14px; }
    .quick-links { gap: 6px; }
    .quick-links a { padding-inline: 8px; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .post-cta { grid-template-columns: auto 1fr; }
    .post-cta .btn { grid-column: 1 / -1; }
    .all-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listing-detail-grid { grid-template-columns: 1fr; }
    .listing-summary { position: static; }
}

/* Compact interface */
html { font-size: 14px; }
body { font-size: .92rem; }
.container { --bs-gutter-x: 1.5rem; }
.site-header .navbar { padding-block: .65rem !important; }
.navbar-brand { font-size: 1rem; }
.nav-link { font-size: .82rem; }
.btn { font-size: .82rem; padding: .48rem .8rem; }
.btn-lg { font-size: .9rem; min-height: 42px; padding: .55rem .9rem; }
.btn-icon { height: 36px; width: 36px; }
.portal-alert { border-radius: 10px; font-size: .76rem; padding: 8px 12px; }
.hero-copy { border-radius: 18px; padding: clamp(22px,4vw,40px); }
.hero-copy h1 { font-size: clamp(2.1rem,5vw,4rem); margin: 12px 0; }
.hero-copy > p { font-size: .92rem; line-height: 1.65; }
.portal-search { border-radius: 13px; margin-top: 12px; padding: 4px 4px 4px 12px; }
.portal-search input { font-size: .84rem; padding: 9px; }
.portal-search button { border-radius: 10px; min-height: 38px; padding-inline: 18px; }
.hero-showcase { border-radius: 18px; padding: 22px; }
.showcase-item { gap: 10px; grid-template-columns: 44px 1fr auto; padding: 11px 0; }
.showcase-icon { border-radius: 11px; font-size: 1rem; height: 44px; width: 44px; }
.showcase-heading strong { font-size: 1rem; }
.portal-section-heading { margin-bottom: 16px; }
.portal-section-heading h2 { font-size: clamp(1.4rem,3vw,2rem); }
.portal-section-heading p { font-size: .82rem; }
.category-grid { gap: 10px; }
.category-tile { border-radius: 14px; min-height: 138px; padding: 14px; }
.category-icon { border-radius: 11px; font-size: 1.15rem; height: 40px; width: 40px; }
.category-tile strong { font-size: .82rem; margin-top: 13px; }
.category-tile small { font-size: .7rem; }
.listing-card { border-radius: 14px; }
.listing-body { padding: 12px; }
.listing-body h3 { font-size: .86rem; margin: 5px 0 10px; min-height: 2.8em; }
.listing-bottom { padding-top: 9px; }
.listing-bottom strong { font-size: .88rem; }
.listing-bottom a { height: 28px; width: 28px; }
.featured-badge,.listing-location { font-size: .6rem; padding: 4px 7px; top: 8px; }
.featured-badge { left: 8px; }.listing-location { right: 8px; }
.favorite-form { right: 8px; top: 40px; }
.favorite-button { height: 30px; width: 30px; }
.page-hero .container { padding-block: 2rem !important; }
.section-heading h2,.page-hero h1 { font-size: clamp(1.6rem,4vw,2.35rem); }
.listing-search { border-radius: 13px; max-width: 720px; padding: 5px; }
.listing-detail-grid { gap: 18px; }
.gallery-main,.listing-summary { border-radius: 16px; }
.listing-summary { padding: 20px; }
.listing-summary h1 { font-size: clamp(1.35rem,2.4vw,1.9rem); }
.detail-price { font-size: clamp(1.45rem,3vw,2rem); }
.detail-facts { gap: 10px; margin: 15px 0; padding: 14px 0; }
.listing-description { font-size: .9rem; line-height: 1.75; }
.panel-card,.stat-card,.auth-card { border-radius: 14px; }
.form-control,.form-select,.input-group-text { font-size: .84rem; min-height: 40px; padding: .48rem .7rem; }
.form-label { font-size: .8rem; margin-bottom: .35rem; }
.form-text { font-size: .7rem; }
.table { font-size: .8rem; }
.table th,.table td { padding: 10px 12px; }
.admin-topbar .container-fluid { padding-block: .65rem !important; }
.admin-shell { min-height: calc(100vh - 58px); }
.admin-sidebar { padding: 16px; }
.admin-menu a { border-radius: 9px; font-size: .8rem; gap: 8px; padding: 8px 10px; }
.admin-menu-label { font-size: .64rem; margin: 12px 8px 4px; }
.admin-main > .container-fluid { padding: 16px !important; }
.page-title h1 { font-size: 1.45rem; }
.page-title p { font-size: .8rem; }
.ck.ck-editor__main > .ck-editor__editable { min-height: 260px; }
.listing-upload-dropzone { border-radius: 13px; min-height: 145px; padding: 16px; }
.listing-upload-icon { font-size: 1.1rem; height: 42px; width: 42px; }
.package-card { padding: 18px !important; }
.package-price { font-size: 1.7rem; }
.required-mark { color: #dc3545; font-weight: 700; }
.iti { width: 100%; }
.iti__country-list { color: #222; font-size: .78rem; max-width: min(360px,90vw); }
.advertisement-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); margin-bottom: 18px; }
.advertisement-card { align-items: center; background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: 13px; display: grid; gap: 12px; grid-template-columns: 74px 1fr auto; min-height: 76px; overflow: hidden; padding: 8px 12px 8px 8px; }
.advertisement-card img { border-radius: 9px; height: 58px; object-fit: cover; width: 74px; }
.advertisement-card small,.advertisement-card strong,.advertisement-card b { display: block; }
.advertisement-card small { color: var(--pk-orange); font-size: .6rem; font-weight: 700; text-transform: uppercase; }
.advertisement-card strong { font-size: .85rem; }
.advertisement-card b { color: var(--pk-muted); font-size: .7rem; font-weight: 400; }
.legal-content { line-height: 1.75; max-width: 820px; }
.legal-content h2 { font-size: 1.1rem; margin: 1.5rem 0 .45rem; }
.legal-note { background: var(--pk-surface); border-radius: 10px; color: var(--pk-muted); font-size: .75rem; padding: 12px; }
.contact-feature { align-items: center; border-top: 1px solid var(--pk-border); display: flex; gap: 9px; padding: 10px 0; }
.checkout-step { align-items: center; display: flex; gap: 12px; }.checkout-step i { color: var(--pk-green); font-size: 1.4rem; }.checkout-step small { color: var(--pk-muted); display: block; }
.checkout-package { align-items: center; background: var(--pk-surface); border-radius: 13px; display: grid; gap: 12px; grid-template-columns: auto 1fr auto; padding: 16px; }
.checkout-package h2 { font-size: 1.1rem; margin: 2px 0; }.checkout-package p { color: var(--pk-muted); font-size: .75rem; margin: 0; }
.checkout-method-group-label { color: var(--pk-muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .6rem; text-transform: uppercase; }
.pricing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}
.pricing-card {
    background: var(--pk-card);
    border: 1px solid var(--pk-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.1rem;
    position: relative;
}
.pricing-card.recommended {
    border-color: color-mix(in srgb, var(--pk-blue) 55%, var(--pk-border));
    box-shadow: 0 14px 34px rgba(13, 110, 253, .12);
}
.package-recommend {
    align-self: flex-start;
    background: rgba(255, 193, 7, .18);
    border-radius: 999px;
    color: #9a6700;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .55rem;
}
.package-icon {
    align-items: center;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 12px;
    color: var(--pk-blue);
    display: inline-flex;
    font-size: 1.25rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}
.pricing-card h2 { font-size: 1.1rem; margin: 0; }
.pricing-card p { color: var(--pk-muted); margin: 0; }
.package-price { font-size: 2rem; font-weight: 700; line-height: 1; }
.package-price small { color: var(--pk-muted); font-size: .9rem; font-weight: 500; }
.package-facts { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.package-facts li { align-items: center; color: var(--pk-muted); display: flex; gap: .45rem; }
.package-facts i { color: var(--pk-green); }
.promo-popup .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}
.promo-popup-close {
    background-color: var(--pk-card);
    border-radius: 999px;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
}
.promo-popup-media {
    background: var(--pk-surface);
    max-height: 54vh;
    object-fit: cover;
    width: 100%;
}
.promo-popup-body { padding: 1.1rem; }
.promo-popup-body h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.promo-popup-body p { color: var(--pk-muted); margin-bottom: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; font-size: .75rem; }

@media (max-width: 575.98px) {
    html { font-size: 13px; }
    .hero-copy h1 { font-size: 2rem; }
    .hero-copy { padding: 20px 16px; }
    .portal-hero .row { --bs-gutter-y: .75rem; }
    .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .category-tile { min-height: 112px; padding: 11px; }
    .category-tile:last-child { grid-column: auto; min-height: 112px; }
    .category-icon { height: 34px; width: 34px; }
    .listing-body { padding: 8px; }
    .listing-body > small { font-size: .58rem; }
    .listing-body h3 { font-size: .74rem; line-height: 1.4; min-height: 2.8em; }
    .listing-bottom strong { font-size: .75rem; }
    .listing-bottom a { display: none; }
    .listing-location { display: none; }
    .featured-badge { max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .favorite-form { top: 8px; }
    .advertisement-card { grid-template-columns: 58px 1fr auto; }
    .advertisement-card img { height: 48px; width: 58px; }
    .footer-links { justify-content: flex-start; }
    .checkout-package { align-items: start; grid-template-columns: auto 1fr; }
    .checkout-package > strong { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Readable interface and scalable data views */
html { font-size: 16px; }
body { font-size: 1rem; line-height: 1.6; }
.nav-link,.btn,.admin-menu a,.table,.form-control,.form-select,.input-group-text { font-size: .95rem; }
.btn-lg { font-size: 1rem; }
.form-control,.form-select,.input-group-text { min-height: 44px; padding: .58rem .78rem; }
.form-label { font-size: .95rem; }
.form-text,.page-title p,.portal-section-heading p,.settings-heading p { font-size: .875rem; }
.table th { font-size: .82rem; }
.table td { font-size: .94rem; }
.admin-menu-label,.eyebrow { font-size: .74rem; }
.admin-menu a { padding: 10px 12px; }
.listing-body > small,.category-tile small,.advertisement-card b,.legal-note { font-size: .8rem; }
.listing-body h3 { font-size: 1rem; }
.listing-bottom strong,.category-tile strong,.advertisement-card strong { font-size: .95rem; }
.listing-cover { aspect-ratio: 4 / 5; }
.listing-cover > img { aspect-ratio: 4 / 5; }
.file-picker { align-items: center; border: 1px solid var(--pk-border); border-radius: 10px; display: flex; gap: 12px; min-height: 46px; overflow: hidden; padding: 5px; }
.file-picker .btn { flex: 0 0 auto; }
.file-picker-name { color: var(--pk-muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pagination-wrap { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 24px; }
.page-link-button { align-items: center; background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: 9px; color: var(--pk-ink); display: inline-flex; font-weight: 600; height: 40px; justify-content: center; min-width: 40px; padding: 0 10px; }
.page-link-button.active { background: var(--pk-ink); border-color: var(--pk-ink); color: var(--pk-card); }
.page-link-button.disabled { opacity: .4; pointer-events: none; }
.pagination-summary { color: var(--pk-muted); font-size: .875rem; margin-left: 6px; }
.admin-filter { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filter .form-control { min-width: min(280px, 70vw); }
.status-icon-group { display: flex; flex-wrap: wrap; gap: 5px; }
.status-icon-button { align-items: center; background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: 8px; color: var(--pk-muted); display: inline-flex; height: 36px; justify-content: center; transition: .2s ease; width: 36px; }
.status-icon-button:hover,.status-icon-button.active { border-color: var(--pk-blue); color: var(--pk-blue); transform: translateY(-1px); }
.status-icon-button.status-active { background: rgba(25,135,84,.12); border-color: #198754; color: #198754; }
.status-icon-button.status-suspended { background: rgba(220,53,69,.1); border-color: #dc3545; color: #dc3545; }
.status-icon-button.status-sold { background: rgba(13,110,253,.1); border-color: #0d6efd; color: #0d6efd; }
.social-guide { background: var(--pk-surface); border: 1px solid var(--pk-border); border-radius: 12px; padding: 14px; }
.social-guide p,.social-guide small { color: var(--pk-muted); }
.recaptcha-field { margin: 12px 0; max-width: 100%; overflow: hidden; }
.ts-wrapper .ts-control { background: var(--pk-card); border-color: var(--pk-border); color: var(--pk-ink); font-size: .95rem; min-height: 44px; padding: .58rem .78rem; }
.ts-dropdown { background: var(--pk-card); border-color: var(--pk-border); color: var(--pk-ink); font-size: .95rem; }
.tagify { --tags-border-color: var(--pk-border); --tags-hover-border-color: var(--pk-blue); background: var(--pk-card); border-radius: .375rem; min-height: 44px; width: 100%; }
.tagify__input { font-size: .95rem; }
.related-listings .listing-card { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; margin-top: 3rem; }
.language-flag { align-items: center; border: 1px solid var(--pk-border); border-radius: 8px; display: inline-flex; height: 38px; justify-content: center; width: 42px; }
.language-flag img { border-radius: 2px; object-fit: cover; }
.bootstrap-table .fixed-table-toolbar .search { margin: 0 0 12px; }
.bootstrap-table .fixed-table-toolbar .search-input { min-width: min(300px, 75vw); }
.bootstrap-table .pagination-detail { font-size: .875rem; }
.bootstrap-table .page-link { color: var(--pk-ink); }
.mail-template-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mail-template-card { border: 1px solid var(--pk-border); border-radius: 10px; padding: 14px; }
.mail-template-body { min-height: 132px; }

.site-actions { column-gap: .65rem !important; }
.site-post-button { align-items: center; gap: .25rem; margin-right: .35rem; min-height: 40px; white-space: nowrap; }
.site-post-button i,.dashboard-post-button i { font-size: 1rem; }
.dashboard-post-button { align-items: center; border-radius: 999px; display: inline-flex; gap: .5rem; justify-content: center; padding-inline: 1rem; }
.dashboard-chart-wrap { min-height: 260px; position: relative; }
.dashboard-insights-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
}
.dashboard-interest-panel {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    padding: 1rem;
}
.dashboard-interest-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}
.dashboard-interest-heading h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: .2rem 0 0;
}
.dashboard-interest-heading > strong {
    color: var(--pk-blue);
    font-size: 1.15rem;
    line-height: 1.1;
}
.dashboard-interest-list {
    display: grid;
    gap: .65rem;
}
.dashboard-interest-item {
    align-items: center;
    color: inherit;
    display: grid;
    gap: .65rem;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    text-decoration: none;
}
.dashboard-interest-item:hover strong {
    color: var(--pk-blue);
}
.interest-rank {
    align-items: center;
    background: var(--pk-card);
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    color: var(--pk-muted);
    display: inline-flex;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}
.interest-info {
    display: grid;
    gap: .18rem;
    min-width: 0;
}
.interest-info strong {
    font-size: .92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.interest-info small {
    color: var(--pk-muted);
    font-size: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.interest-info b {
    background: linear-gradient(90deg, #3157d5, #1aa06d);
    border-radius: 999px;
    display: block;
    height: 4px;
    margin-top: .2rem;
    max-width: 100%;
}
.interest-count {
    color: var(--pk-ink);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.interest-count small {
    color: var(--pk-muted);
    display: block;
    font-size: .68rem;
    font-weight: 500;
}
.dashboard-interest-empty {
    align-items: center;
    color: var(--pk-muted);
    display: grid;
    gap: .5rem;
    justify-items: center;
    min-height: 180px;
    text-align: center;
}
.dashboard-interest-empty i {
    font-size: 1.8rem;
}

.social-login-button.unavailable {
    cursor: not-allowed;
    pointer-events: none;
}
.social-login-button.unavailable small {
    color: var(--pk-muted);
    font-size: .68rem;
    line-height: 1;
}
.social-login-button.connected {
    background: color-mix(in srgb, #198754 10%, var(--pk-card));
    border-color: color-mix(in srgb, #198754 45%, var(--pk-border));
    color: #198754;
}
.profile-social-grid .social-login-button small {
    display: block;
    font-size: .68rem;
}
.smtp-oauth-box {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 10px;
    padding: 1rem;
}
.smtp-callback-uri {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .55rem .7rem;
}
.smtp-oauth-status {
    align-items: center;
    align-self: flex-start;
    border: 1px solid var(--pk-border);
    border-radius: 12px;
    display: inline-flex;
    gap: .6rem;
    padding: .55rem .7rem;
    white-space: nowrap;
}
.smtp-oauth-status i {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
}
.smtp-oauth-status strong,
.smtp-oauth-status small {
    display: block;
    line-height: 1.15;
}
.smtp-oauth-status small {
    color: var(--pk-muted);
    font-size: .72rem;
    margin-top: .15rem;
}
.smtp-oauth-status.connected {
    background: color-mix(in srgb, #198754 11%, var(--pk-card));
    border-color: color-mix(in srgb, #198754 38%, var(--pk-border));
}
.smtp-oauth-status.connected i {
    background: #198754;
    color: #fff;
}
.smtp-oauth-status.pending {
    background: color-mix(in srgb, #ffc107 12%, var(--pk-card));
    border-color: color-mix(in srgb, #ffc107 38%, var(--pk-border));
}
.smtp-oauth-status.pending i {
    background: #ffc107;
    color: #171715;
}
.mail-task-list {
    display: grid;
    gap: .6rem;
}
.mail-task-item {
    align-items: center;
    border: 1px solid var(--pk-border);
    border-radius: 10px;
    display: grid;
    gap: .8rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: .85rem;
}
.mail-task-main strong,
.mail-task-main small {
    display: block;
}
.mail-task-main small {
    color: var(--pk-muted);
    margin-top: .15rem;
}
.mail-task-item .btn {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    white-space: nowrap;
}
.cookie-preview {
    align-items: center;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 12px;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem;
}
.cookie-preview-icon,
.cookie-consent-icon {
    align-items: center;
    background: color-mix(in srgb, var(--pk-blue) 12%, var(--pk-card));
    border-radius: 50%;
    color: var(--pk-blue);
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.cookie-preview p {
    color: var(--pk-muted);
    margin: .15rem 0 0;
}
.cookie-consent {
    align-items: center;
    background: var(--pk-card);
    border: 1px solid var(--pk-border);
    border-radius: 14px;
    bottom: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
    display: grid;
    gap: .9rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    left: 50%;
    max-width: min(960px, calc(100% - 24px));
    padding: .9rem;
    position: fixed;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1080;
}
.cookie-consent[hidden] {
    display: none !important;
}
.cookie-consent-copy strong,
.cookie-consent-copy p {
    display: block;
}
.cookie-consent-copy p {
    color: var(--pk-muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: .1rem 0 0;
}
.cookie-consent-actions {
    align-items: center;
    display: inline-flex;
    gap: .75rem;
    white-space: nowrap;
}
.cookie-consent-actions a {
    color: var(--pk-blue);
    font-size: .9rem;
    font-weight: 600;
}
.script-slot-list {
    display: grid;
    gap: 1rem;
}
.script-slot {
    border: 1px solid var(--pk-border);
    border-radius: 12px;
    display: grid;
    gap: .85rem;
    padding: 1rem;
}
.script-slot-heading {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
}
.script-slot-heading > span {
    align-items: center;
    background: color-mix(in srgb, var(--pk-blue) 12%, var(--pk-card));
    border-radius: 10px;
    color: var(--pk-blue);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}
.script-slot-heading p {
    color: var(--pk-muted);
    font-size: .86rem;
    line-height: 1.55;
    margin: 0;
}
.code-textarea {
    direction: ltr;
    font-family: Consolas, "Courier New", monospace;
    font-size: .88rem;
    line-height: 1.5;
    min-height: 180px;
    resize: vertical;
    white-space: pre;
}

.status-sold {
    background: rgba(13, 110, 253, .12);
    color: #0b62d1;
}
.status-featured {
    background: rgba(255, 193, 7, .18);
    color: #9a6700;
}
.listing-status-control {
    align-items: flex-start;
    display: grid;
    gap: .5rem;
    min-width: 240px;
}
.listing-status-control form {
    align-items: center;
    display: flex;
    gap: .4rem;
}
.listing-status-control .form-select {
    max-width: 145px;
}
.listing-status-control .btn {
    align-items: center;
    display: inline-flex;
    gap: .25rem;
    white-space: nowrap;
}

.ad-metrics {
    display: flex;
    gap: .5rem;
    min-width: 210px;
}
.ad-metrics span {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    display: grid;
    min-width: 62px;
    padding: .45rem .55rem;
}
.ad-metrics b { font-size: .95rem; line-height: 1.1; }
.ad-metrics small { color: var(--pk-muted); font-size: .7rem; }

.advertisement-listing-card .listing-cover {
    aspect-ratio: 4 / 5;
    background: var(--pk-surface);
}
.advertisement-listing-card .listing-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.advertisement-card-placeholder .listing-cover {
    align-items: center;
    display: flex;
    justify-content: center;
}
.advertisement-card-placeholder .listing-cover-icon {
    align-items: center;
    background: rgba(13,110,253,.1);
    border-radius: 999px;
    color: #0d6efd;
    display: inline-flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.ck.ck-editor__editable_inline { min-height: 180px; }

@media (max-width: 991.98px) {
    .site-actions { margin-left: auto; }
    .dashboard-insights-grid { grid-template-columns: 1fr; }
    .listing-status-control { min-width: 0; }
    .ad-metrics { min-width: 0; }
}

@media (max-width: 575.98px) {
    .dashboard-post-button { width: 100%; }
    .listing-status-control form { align-items: stretch; flex-direction: column; }
    .listing-status-control .form-select { max-width: none; }
    .listing-status-control .btn { justify-content: center; }
    .ad-metrics { flex-wrap: wrap; }
}
.smtp-test-row { max-width: 680px; }
.ad-form-preview { border: 1px solid var(--pk-border); border-radius: 10px; height: auto; max-height: 180px; object-fit: contain; width: min(100%, 280px); }
.advertisement-strip { margin-bottom: 18px; }
.advertisement-strip.ad-size-square_4_5 { grid-template-columns: repeat(auto-fit, minmax(190px, 260px)); }
.advertisement-strip.ad-size-wide_banner { grid-template-columns: 1fr; }
.advertisement-strip.ad-size-wide_banner .advertisement-card,
.advertisement-strip.ad-size-wide_banner .advertisement-placeholder { min-height: 88px; }
.advertisement-strip.ad-size-square_4_5 .advertisement-card,
.advertisement-strip.ad-size-square_4_5 .advertisement-placeholder { align-items: stretch; display: grid; grid-template-columns: 1fr; max-width: 260px; padding: 0; }
.advertisement-strip.ad-size-square_4_5 .advertisement-card img { aspect-ratio: 4 / 5; border-radius: 13px 13px 0 0; height: auto; width: 100%; }
.advertisement-strip.ad-size-square_4_5 .advertisement-card span,
.advertisement-strip.ad-size-square_4_5 .advertisement-placeholder span { padding: 12px; }
.advertisement-strip.ad-size-square_4_5 .advertisement-card > i { position: absolute; right: 12px; top: 12px; }
.advertisement-placeholder { align-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pk-blue) 8%, var(--pk-card)) 0 12px, var(--pk-card) 12px 24px); border: 1px dashed color-mix(in srgb, var(--pk-blue) 45%, var(--pk-border)); border-radius: 13px; color: var(--pk-muted); display: grid; gap: 12px; grid-template-columns: 52px 1fr; min-height: 88px; padding: 12px; }
.advertisement-placeholder i { align-items: center; background: var(--pk-card); border: 1px solid var(--pk-border); border-radius: 10px; color: var(--pk-blue); display: flex; font-size: 1.4rem; height: 52px; justify-content: center; width: 52px; }
.advertisement-placeholder small,.advertisement-placeholder strong,.advertisement-placeholder b { display: block; }
.advertisement-placeholder small { color: var(--pk-orange); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.advertisement-placeholder strong { color: var(--pk-ink); font-size: .95rem; }
.advertisement-placeholder b { font-size: .78rem; font-weight: 500; }
.advertisement-script { overflow: hidden; width: 100%; }
.listing-description + * { margin-top: 1rem; }
.listing-detail-ad {
    margin-top: 1.15rem;
}
.listing-detail-ad.advertisement-strip.ad-size-square_4_5 {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 0;
}
.listing-detail-ad.advertisement-strip.ad-size-square_4_5 .advertisement-card,
.listing-detail-ad.advertisement-strip.ad-size-square_4_5 .advertisement-placeholder {
    max-width: min(100%, 300px);
    width: 100%;
}

@media (max-width: 575.98px) {
    html { font-size: 16px; }
    body { font-size: 1rem; }
    .listing-body { padding: 10px; }
    .listing-body > small { font-size: .75rem; }
    .listing-body h3 { font-size: .9rem; line-height: 1.45; }
    .listing-bottom strong { font-size: .9rem; }
    .category-tile strong { font-size: .88rem; }
    .admin-filter { width: 100%; }
    .admin-filter .form-control { flex: 1 1 100%; min-width: 0; }
    .admin-filter .form-select { flex: 1 1 auto; width: auto; }
    .pagination-summary { flex-basis: 100%; margin: 4px 0 0; text-align: center; }
    .mail-template-grid { grid-template-columns: 1fr; }
    .smtp-test-row { display: grid; gap: 8px; }
    .smtp-test-row .btn { width: 100%; }
    .advertisement-strip.ad-size-square_4_5 { grid-template-columns: minmax(0, 1fr); }
    .advertisement-strip.ad-size-square_4_5 .advertisement-card,
    .advertisement-strip.ad-size-square_4_5 .advertisement-placeholder { max-width: none; }
}

/* Admin workspace refinements */
.admin-body { font-size: .95rem; line-height: 1.55; }
.admin-body .admin-topbar .container-fluid { padding-block: .6rem !important; }
.admin-body .navbar-brand { font-size: .98rem; }
.admin-body .admin-shell { min-height: calc(100vh - 58px); }
.admin-body .admin-main > .container-fluid { max-width: 1560px; padding: 18px !important; }
.admin-body .page-title { margin-bottom: 1rem !important; }
.admin-body .page-title h1,
.admin-body .h2 { font-size: clamp(1.25rem, 1.8vw, 1.65rem); letter-spacing: -.02em; }
.admin-body .h3 { font-size: 1.25rem; }
.admin-body .h4 { font-size: 1.12rem; }
.admin-body .h5 { font-size: 1rem; }
.admin-body .eyebrow { font-size: .7rem; letter-spacing: .11em; }
.admin-body .panel-card,
.admin-body .stat-card,
.admin-body .auth-card { border-radius: 10px; }
.admin-body .panel-card.p-4,
.admin-body .stat-card.p-4,
.admin-body section.p-4 { padding: 1rem !important; }
.admin-body .row { --bs-gutter-x: .9rem; --bs-gutter-y: .9rem; }
.admin-body .btn { border-radius: 8px; font-size: .9rem; line-height: 1.25; padding: .45rem .75rem; }
.admin-body .btn-sm { border-radius: 7px; font-size: .82rem; padding: .32rem .55rem; }
.admin-body .btn-lg { border-radius: 9px; font-size: .95rem; min-height: 42px; padding: .55rem .9rem; }
.admin-body .btn-icon { border-radius: 9px; height: 34px; width: 34px; }
.admin-body .form-control,
.admin-body .form-select,
.admin-body .input-group-text { border-radius: 8px; font-size: .92rem; min-height: 40px; padding: .45rem .65rem; }
.admin-body textarea.form-control { min-height: 88px; }
.admin-body .form-label { font-size: .88rem; font-weight: 600; }
.admin-body .form-text { font-size: .76rem; }

.admin-sidebar { overflow-y: auto; }
.admin-menu { padding-bottom: .5rem; }
.admin-menu-label { margin: 12px 8px 4px; }
.admin-menu-group { border: 1px solid var(--pk-border); border-radius: 10px; overflow: hidden; }
.admin-menu-toggle {
    align-items: center;
    background: color-mix(in srgb, var(--pk-card) 88%, var(--pk-surface));
    border: 0;
    color: var(--pk-ink);
    display: flex;
    font-size: .88rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 10px 11px;
    text-align: left;
    width: 100%;
}
.admin-menu-toggle span { align-items: center; display: inline-flex; gap: 9px; min-width: 0; }
.admin-menu-toggle .bi-chevron-down { color: var(--pk-muted); font-size: .78rem; transition: transform .18s ease; }
.admin-menu-toggle:not(.collapsed) .bi-chevron-down { transform: rotate(180deg); }
.admin-submenu { display: grid; gap: 3px; padding: 6px; }
.admin-menu a {
    align-items: center;
    border-radius: 8px;
    color: var(--pk-muted);
    display: flex;
    font-size: .88rem;
    gap: 9px;
    line-height: 1.25;
    padding: 8px 9px;
}
.admin-menu a i { flex: 0 0 18px; margin: 0; text-align: center; }
.admin-menu a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-menu a:hover,
.admin-menu a.active { background: color-mix(in srgb, var(--pk-blue) 9%, var(--pk-card)); color: var(--pk-blue); }
.admin-body .user-chip { border: 1px solid var(--pk-border); border-radius: 10px; padding: 8px; }
.admin-body .user-chip > span { flex-basis: 34px; height: 34px; }

.admin-body .admin-filter {
    background: var(--pk-card);
    border: 1px solid var(--pk-border);
    border-radius: 10px;
    padding: 6px;
}
.admin-body .admin-filter .form-control,
.admin-body .admin-filter .form-select {
    background-color: var(--pk-surface);
    border-color: transparent;
}
.admin-body .table-responsive { border-radius: 10px; }
.admin-body .table { --bs-table-bg: transparent; margin-bottom: 0; }
.admin-body .table th {
    background: color-mix(in srgb, var(--pk-surface) 82%, var(--pk-card));
    border-bottom-color: var(--pk-border);
    color: var(--pk-muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .7rem .75rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-body .table td {
    border-color: var(--pk-border);
    font-size: .9rem;
    padding: .7rem .75rem;
    vertical-align: middle;
}
.admin-body .table small { font-size: .76rem; }
.admin-body .bootstrap-table { border-radius: 10px; overflow: hidden; }
.admin-body .bootstrap-table .fixed-table-toolbar {
    align-items: center;
    background: var(--pk-card);
    border-bottom: 1px solid var(--pk-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 10px;
}
.admin-body .bootstrap-table .fixed-table-toolbar::after,
.admin-body .bootstrap-table .fixed-table-toolbar::before { display: none; }
.admin-body .bootstrap-table .fixed-table-toolbar .search {
    float: none !important;
    margin: 0;
    min-width: min(360px, 100%);
}
.admin-body .bootstrap-table .fixed-table-toolbar .search-input {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 9px;
    font-size: .9rem;
    min-height: 38px;
    min-width: min(360px, 76vw);
}
.admin-body .bootstrap-table .columns,
.admin-body .bootstrap-table .bs-bars { float: none !important; margin: 0; }
.admin-body .bootstrap-table .fixed-table-container { border: 0; }
.admin-body .bootstrap-table .fixed-table-pagination {
    align-items: center;
    background: var(--pk-card);
    border-top: 1px solid var(--pk-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 10px;
}
.admin-body .bootstrap-table .pagination-detail,
.admin-body .bootstrap-table .pagination { float: none !important; margin: 0; }
.admin-body .bootstrap-table .page-link {
    background: var(--pk-card);
    border-color: var(--pk-border);
    border-radius: 7px;
    color: var(--pk-ink);
    font-size: .84rem;
    margin-inline: 2px;
    min-width: 34px;
    text-align: center;
}
.admin-body .bootstrap-table .page-item.active .page-link {
    background: var(--pk-ink);
    border-color: var(--pk-ink);
    color: var(--pk-card);
}
.admin-body .bootstrap-table .card-view { border-bottom: 1px solid var(--pk-border); padding: .45rem .25rem; }
.admin-body .bootstrap-table .card-view-title { color: var(--pk-muted); font-size: .75rem; font-weight: 700; min-width: 34%; text-transform: uppercase; }
.admin-body .bootstrap-table .card-view-value { font-size: .9rem; }
.admin-listings-table .admin-listing-title {
    display: block;
    max-width: 28rem;
}
.admin-listing-date {
    white-space: nowrap;
}
.admin-status-stack {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 92px;
}
.admin-status-stack .status {
    align-items: center;
    display: inline-flex;
    font-size: .72rem;
    gap: .25rem;
    line-height: 1.1;
    padding: .26rem .5rem;
    white-space: nowrap;
}
.admin-listing-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-width: 360px;
}
.admin-listing-tools-compact {
    justify-content: flex-end;
    min-width: 128px;
}
.admin-listing-tools-compact .btn {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    white-space: nowrap;
}
.admin-inline-form {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    margin: 0;
}
.admin-status-form .form-select {
    width: 116px;
}
.admin-expiry-form .form-control {
    width: 164px;
}
.admin-package-form .form-select {
    width: 150px;
}
.admin-inline-form .btn {
    align-items: center;
    display: inline-flex;
    gap: .28rem;
    justify-content: center;
    white-space: nowrap;
}
.admin-listing-modal .modal-content {
    border: 0;
    border-radius: 14px;
}
.admin-listing-modal .modal-header {
    align-items: flex-start;
    border-bottom-color: var(--pk-border);
    gap: 1rem;
}
.admin-listing-modal .modal-title {
    line-height: 1.25;
}
.admin-listing-modal-summary {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .9rem;
    margin-bottom: .9rem;
    padding: .75rem;
}
.admin-listing-modal-summary span {
    align-items: center;
    color: var(--pk-muted);
    display: inline-flex;
    font-size: .86rem;
    gap: .38rem;
    min-width: 0;
}
.admin-listing-modal-summary i {
    color: var(--pk-blue);
}
.admin-listing-modal-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-modal-action {
    border: 1px solid var(--pk-border);
    border-radius: 10px;
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: .9rem;
}
.admin-modal-action-wide {
    grid-column: 1 / -1;
}
.admin-modal-action h3 {
    align-items: center;
    display: flex;
    font-size: 1rem;
    gap: .45rem;
    line-height: 1.25;
    margin: 0 0 .25rem;
}
.admin-modal-action h3 i {
    color: var(--pk-blue);
}
.admin-modal-action p {
    color: var(--pk-muted);
    font-size: .84rem;
    line-height: 1.45;
    margin: 0;
}
.admin-modal-form-row {
    align-items: center;
    display: flex;
    gap: .5rem;
}
.admin-modal-form-row .form-control,
.admin-modal-form-row .form-select {
    min-width: 0;
}
.admin-modal-form-row .btn {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: .32rem;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .admin-shell { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-width: 991.98px) {
    .admin-body .admin-main > .container-fluid { padding: 14px !important; }
    .admin-menu-group { border-radius: 9px; }
    .admin-menu-toggle { padding: 11px; }
    .admin-listing-tools { min-width: 0; }
    .admin-listing-modal-grid { grid-template-columns: 1fr; }
    .admin-modal-action-wide { grid-column: auto; }
    .cookie-consent {
        align-items: stretch;
        grid-template-columns: auto minmax(0, 1fr);
    }
    .cookie-consent-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    .admin-body { font-size: .95rem; }
    .admin-body .admin-main > .container-fluid { padding: 10px !important; }
    .admin-body .page-title h1,
    .admin-body .h2 { font-size: 1.22rem; }
    .admin-body .d-flex.justify-content-between.align-items-end,
    .admin-body .page-title.d-flex { align-items: stretch !important; flex-direction: column; }
    .admin-body .admin-filter { width: 100%; }
    .admin-body .admin-filter .form-control,
    .admin-body .admin-filter .form-select,
    .admin-body .admin-filter .btn { width: 100%; }
    .admin-body .bootstrap-table .fixed-table-toolbar { align-items: stretch; flex-direction: column; }
    .admin-body .bootstrap-table .fixed-table-toolbar .search,
    .admin-body .bootstrap-table .fixed-table-toolbar .search-input { min-width: 100%; width: 100%; }
    .admin-body .bootstrap-table .fixed-table-pagination { align-items: stretch; flex-direction: column; }
    .admin-body .bootstrap-table .pagination { justify-content: center; }
    .admin-listing-tools-compact { justify-content: flex-start; }
    .admin-listing-modal .modal-dialog { margin: .75rem; }
    .admin-listing-modal-summary { display: grid; }
    .mail-task-item {
        align-items: stretch;
        grid-template-columns: auto minmax(0, 1fr);
    }
    .mail-task-item .btn {
        grid-column: 1 / -1;
        justify-content: center;
    }
    .admin-modal-form-row {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-modal-form-row .btn {
        justify-content: center;
        width: 100%;
    }
    .cookie-preview {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
    .cookie-preview .btn {
        width: 100%;
    }
    .cookie-consent {
        bottom: 10px;
        grid-template-columns: 1fr;
        max-width: calc(100% - 20px);
    }
    .cookie-consent-icon {
        display: none;
    }
    .cookie-consent-actions {
        align-items: stretch;
        flex-direction: column;
        gap: .55rem;
    }
    .cookie-consent-actions .btn {
        width: 100%;
    }
}
