/* Affordable PR — portal styles (v2, compact professional) */
:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --text: #1a2233;
    --muted: #6b7484;
    --border: #e4e7ec;
    --navy: #0d1424;
    --navy-2: #131c33;
    --accent: #2b45ff;
    --accent-dark: #1e34d6;
    --accent-soft: #eef1ff;
    --green-bg: #e5f6ec;
    --green-fg: #157347;
    --red-bg: #fdeaea;
    --red-fg: #c0392b;
    --amber-bg: #fdf3e0;
    --amber-fg: #a86407;
    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(13, 20, 36, .06);
    --shadow-md: 0 12px 32px rgba(13, 20, 36, .14);
    --topbar-h: 58px;
}

* { box-sizing: border-box; }
[v-cloak] { display: none; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}
body { overflow-y: auto; }

h1, h2, h3 { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: #f0f2f5; }
.topbar .btn-ghost { border-color: rgba(255, 255, 255, .25); color: #e7eaf3; }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 18px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
a.btn:hover { text-decoration: none; }

.link-btn {
    background: none; border: none; padding: 2px 4px;
    color: var(--accent); font: inherit; font-weight: 600; font-size: 12.5px;
    cursor: pointer; border-radius: 6px;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red-fg); }

/* ---------- Top bar ---------- */
.topbar {
    height: var(--topbar-h);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px;
    background: linear-gradient(90deg, var(--navy), var(--navy-2));
    color: #fff;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 40px; height: 40px;
    border-radius: 9px;
    object-fit: contain;
    display: block;
    padding: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .2px; }
.brand-tag { font-size: 11.5px; color: #9aa4bd; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-email { color: #9aa4bd; font-size: 12.5px; }

/* ---------- Promo banner (scrolling marquee) ---------- */
.promo-banner {
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #d21f2e;
    color: #fff;
}
.promo-track {
    display: inline-flex;
    white-space: nowrap;
    animation: promo-scroll 22s linear infinite;
    will-change: transform;
}
.promo-track:hover { animation-play-state: paused; }
.promo-item {
    display: inline-block;
    padding: 0 6vw;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
}
a.promo-item { text-decoration: underline; text-underline-offset: 2px; }
a.promo-item:hover { opacity: .9; }
@keyframes promo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.promo-placeholder {
    padding: 0 16px;
    font-size: 12.5px;
    font-weight: 600;
    opacity: .85;
}
.promo-edit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    cursor: pointer;
}
.promo-edit:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Layout ---------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar, .promo-banner { flex: none; }
.layout {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 14px;
    padding: 14px 16px;
    flex: 1;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    align-items: stretch;
    min-height: 0;
}

/* All tabs scroll as a normal document */
.packages-view { overflow: visible; }
.layout-full { grid-template-columns: 1fr; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ---------- Sidebar (fills available height, scrolls inside) ---------- */
.sidebar { min-height: 0; }
.sidebar-panel {
    display: flex; flex-direction: column;
    width: 100%;
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 28px);
    padding: 14px 0 0;
}
.panel-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 16px 10px;
    border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 14px; font-weight: 700; }
.sidebar-scroll {
    overflow-y: auto;
    padding: 12px 16px 16px;
    flex: 1;
    min-height: 0;
}
.sidebar-scroll::-webkit-scrollbar { width: 8px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #d4d9e2; border-radius: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb:hover { background: #bbc2cf; }

.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h3 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); margin-bottom: 7px;
}
.filter-group .hint { font-weight: 500; text-transform: none; letter-spacing: 0; }

input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], select {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 13.5px;
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 69, 255, .12);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-toggle {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font: inherit; font-size: 12px; font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all .12s ease;
}
.chip-toggle:hover { border-color: #c3cad6; }
.chip-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Content ---------- */
.content { min-height: 0; min-width: 0; display: flex; }
.content-panel {
    display: flex; flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 12px 16px 0;
}
.content-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; flex-wrap: wrap;
    padding-bottom: 12px;
}
.content-head-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.content-head-left h2 { font-size: 14.5px; font-weight: 700; }
.content-head-right { display: flex; gap: 8px; }

.section-switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.section-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 64px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.section-tab span {
    font-size: 14.5px;
    font-weight: 800;
}
.section-tab small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
.section-tab:hover { border-color: #c3cad6; background: #fff; }
.section-tab.active {
    border-color: #bac4ff;
    background: #fff;
    box-shadow: 0 8px 20px rgba(43, 69, 255, .10);
}
.section-tab.active span { color: var(--accent-dark); }

/* ---------- Table (scrolls inside, sticky header, infinite scroll) ---------- */
.table-wrap.no-hscroll { overflow: visible; }
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    margin: 0 -1px;
    position: relative;
}
.table-wrap.can-scroll-right::after {
    content: "Scroll right >";
    position: sticky;
    right: 12px;
    bottom: 14px;
    z-index: 5;
    float: right;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    margin-top: -34px;
    margin-right: 10px;
    border: 1px solid #cfd6e3;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(13, 20, 36, .14);
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}
.table-wrap.can-scroll-right::before {
    content: "";
    position: sticky;
    right: 0;
    z-index: 4;
    float: right;
    width: 64px;
    height: 100%;
    min-height: 220px;
    margin-left: -64px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(245,246,248,.94));
    pointer-events: none;
}
.pub-table {
    width: max-content;
    min-width: 1500px;
    border-collapse: separate;
    border-spacing: 0;
}
.pub-table thead { position: relative; z-index: 3; will-change: transform; }
.pub-table th {
    position: relative; z-index: 2;
    text-align: left;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted);
    background: #fafbfc;
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.pub-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #eef0f3;
    vertical-align: middle;
    font-size: 13px;
}
.pub-table tbody tr:hover td { background: #f7f9ff; }
.table-empty { text-align: center; padding: 48px 12px !important; color: var(--muted); }
.table-loading-more { text-align: center; padding: 14px !important; color: var(--muted); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.pub-name { font-weight: 600; max-width: 240px; }
.pub-name a::after { content: " ↗"; font-size: 11px; color: var(--muted); }
.metric { font-weight: 700; font-variant-numeric: tabular-nums; }
.row-actions { white-space: nowrap; }
.genres-cell { max-width: 260px; }
.bulk-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bulk-cell.wide { min-width: 210px; }
.bulk-cell.price-edit { min-width: 118px; }
.bulk-small,
.bulk-medium,
.bulk-select,
.bulk-genres,
.bulk-cell input {
    width: 100%;
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 12px;
}
.bulk-small { width: 62px; }
.bulk-medium { min-width: 108px; }
.bulk-select { min-width: 94px; }
.bulk-genres {
    min-width: 190px;
    height: 54px;
    resize: vertical;
    border: 1px solid var(--border);
    font: inherit;
}
.bulk-row-state {
    display: inline-block;
    min-width: 52px;
    font-size: 12px;
    font-weight: 700;
}

.col-logo { width: 46px; padding-right: 0 !important; }
.pub-logo {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
}
.pub-logo img {
    width: 100%; height: 100%;
    object-fit: contain;   /* never crop logos */
    padding: 2px;
    background: #fff;      /* solid white behind transparent logos */
}
.pub-logo-letter {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: var(--accent-soft); color: var(--accent);
    font-weight: 700; font-size: 14px;
}
.pub-logo.lg { width: 68px; height: 68px; border-radius: 10px; }
.pub-logo.lg .pub-logo-letter { font-size: 24px; }

/* ---------- Press release packages ---------- */
.packages-view {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 2px 2px 18px;
}
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}
.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(13, 20, 36, .14);
    border-color: #c8d0e0;
}
.package-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 14px 34px rgba(43, 69, 255, .18);
}
.package-flag {
    position: absolute;
    top: 12px;
    right: -34px;
    transform: rotate(38deg);
    background: linear-gradient(90deg, var(--accent), #7c3aed);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 4px 38px;
    box-shadow: 0 3px 8px rgba(43, 69, 255, .35);
    pointer-events: none;
    z-index: 2;
}
.package-card-head {
    padding: 20px 18px 14px;
    background: linear-gradient(180deg, #f6f8ff 0%, #fff 100%);
    border-bottom: 1px solid #edf0f7;
}
.package-tier {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.package-card.featured .package-tier {
    background: var(--accent);
    color: #fff;
}
.package-card h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}
.package-price {
    color: var(--text);
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.package-price-note {
    margin-left: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.package-cta { padding: 4px 14px 14px; }
.btn-sample {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid #ccd5ff;
    font-weight: 700;
}
.btn-sample:hover:not(:disabled) { background: #e2e8ff; }
.package-card.featured .btn-sample {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.package-card.featured .btn-sample:hover { background: var(--accent-dark); }
.sample-missing {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 11.5px;
    font-style: italic;
    padding: 6px 0;
}
.package-logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 12px;
}
.package-logo,
.individual-logo,
.individual-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
}
.package-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.package-logo img,
.individual-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    background: #fff;
}
.package-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 14px 18px 10px;
    list-style: none;
    flex: 1;
}
.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #2d3545;
    font-size: 12.5px;
    line-height: 1.35;
}
.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--green-bg);
    color: var(--green-fg);
    font-size: 11px;
    font-weight: 800;
}
.package-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: #fbfcfe;
}
.individual-section,
.package-faq {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
}
.section-headline h3,
.package-faq h3 {
    font-size: 14px;
}
.headline-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Media resource tabs ---------- */
.resource-search {
    width: 240px;
    max-width: 100%;
}
.resource-view .table-empty { padding: 40px 12px; text-align: center; color: var(--muted); }
.resource-table-wrap {
    max-height: none;
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.resource-table-wrap .pub-table { min-width: 860px; }

.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    padding-bottom: 18px;
}
.print-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.print-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.print-card h3 { font-size: 15px; font-weight: 800; }
.print-prices { display: flex; flex-direction: column; gap: 5px; }
.print-price-row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 13px; color: var(--muted);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 4px;
}
.print-price-row strong { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.print-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.print-notes { font-size: 12px; color: var(--muted); margin: 0; }

/* Social post cards */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    padding-bottom: 18px;
}
.social-card {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.social-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.social-avatar {
    flex: none;
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800; font-size: 17px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.social-avatar img {
    width: 100%; height: 100%;
    object-fit: contain;      /* never crop logos */
    background: #fff;
    padding: 3px;
}
.social-body { min-width: 0; flex: 1; }
.social-body h3 { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.social-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.social-price {
    flex: none;
    font-size: 16px; font-weight: 800;
    color: var(--accent-dark);
    font-variant-numeric: tabular-nums;
}

/* Resource editor modal */
.modal-wide { max-width: 1100px; }
.resource-edit-head,
.resource-edit-row {
    display: grid;
    grid-template-columns: repeat(var(--cols, 8), minmax(80px, 1fr)) 28px;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}
.resource-edit-head span {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resource-edit-row input { padding: 6px 8px; font-size: 12.5px; min-width: 0; }

/* ---------- Outlets / FAQs / banner editors ---------- */
.pair-row {
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 8px;
}
.pair-row input:first-child { flex: 1.2; }
.pair-row input:nth-child(2) { flex: 1; }
.faq-edit-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}
.faq-edit-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.faq-edit-head input { flex: 1; }
.faq-edit-row textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 13.5px;
    resize: vertical;
}
.guidelines-link {
    font-size: 12.5px;
    font-weight: 700;
}
.individual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    padding: 12px 14px 14px;
}
.individual-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #fbfcfe;
}
.individual-logo,
.individual-initial {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
}
.individual-initial {
    background: #eef6f3;
    color: #0f7b66;
    font-weight: 800;
}
.individual-card h4 {
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1.25;
}
.individual-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
}
.package-faq {
    padding: 13px 14px 14px;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.faq-grid article {
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #fbfcfe;
    padding: 12px;
}
.faq-grid h4 {
    margin: 0 0 6px;
    font-size: 13px;
}
.faq-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 12.8px;
    line-height: 1.45;
}

.chip {
    display: inline-block;
    background: var(--accent-soft); color: var(--accent-dark);
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    padding: 2px 8px;
    margin: 1px 3px 1px 0;
    white-space: nowrap;
}
.badge {
    display: inline-block;
    font-size: 11.5px; font-weight: 700;
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
}
.badge-green { background: var(--green-bg); color: var(--green-fg); }
.badge-red { background: var(--red-bg); color: var(--red-fg); }
.badge-amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge-blue { background: var(--accent-soft); color: var(--accent-dark); }
.badge-admin { background: rgba(43, 69, 255, .25); color: #b9c4ff; }

/* ---------- Admin: category/region removal ---------- */
.chip-x {
    display: inline-block;
    margin-left: 5px;
    font-weight: 700;
    opacity: .55;
}
.chip-x:hover { opacity: 1; color: var(--red-fg); }
.chip-toggle.active .chip-x:hover { color: #ffd7d2; }
.remove-region { display: block; margin-top: 6px; }

/* ---------- Manage columns modal ---------- */
.col-list { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 18px; }
.col-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 13px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.col-item:last-child { border-bottom: none; }
.col-meta { margin-left: 8px; font-size: 12px; }
.section-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.rule-row {
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 7px;
    font-size: 12.5px;
}
.rule-row select { width: auto; padding: 6px 8px; font-size: 12.5px; }
.rule-row input { flex: 1; min-width: 60px; padding: 6px 9px; font-size: 12.5px; }

/* ---------- Alerts ---------- */
.alert {
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 12px;
}
.alert-error { background: var(--red-bg); color: #8f2318; border: 1px solid #f6c9c4; }
.alert-success { background: var(--green-bg); color: var(--green-fg); border: 1px solid #bfe8d0; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(13, 20, 36, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal {
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    width: 100%; max-width: 720px;
    max-height: 90vh;
    display: flex; flex-direction: column;
}
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 16px; }
.modal-close {
    background: none; border: none; font-size: 24px; line-height: 1;
    color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 8px;
}
.modal-close:hover { background: #f1f3f6; color: var(--text); }
.modal-body { padding: 18px 22px 22px; overflow-y: auto; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 12.5px; font-weight: 600; }
.checkbox-field {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}
.checkbox-field input { width: auto; }
.feature-editor {
    width: 100%;
    min-height: 190px;
    resize: vertical;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 13.5px;
}
.span-2 { grid-column: 1 / -1; }
.img-upload { display: flex; align-items: center; gap: 14px; }
.img-upload input[type="file"] { border: none; padding: 0; font-size: 13px; }
.add-category { display: flex; gap: 8px; margin-top: 7px; }
.modal-actions {
    display: flex; justify-content: flex-end; gap: 10px;
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ---------- Auth pages ---------- */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--navy) 0%, #16203c 55%, #1b2a52 100%);
    display: flex; align-items: center; justify-content: center;
}
.auth-wrap { width: 100%; max-width: 420px; padding: 24px; }
.auth-card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 34px 32px;
}
.auth-logo {
    display: block;
    width: 84px; height: 84px;
    border-radius: 16px;
    object-fit: cover;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(13, 20, 36, .25);
}
.auth-card h1 { font-size: 21px; margin-bottom: 6px; text-align: center; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; text-align: center; }
.field { display: block; margin-bottom: 15px; }
.field span { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--muted); font-size: 12px;
    margin: 18px 0 14px;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}
.btn-signup {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid #ccd5ff;
}
.btn-signup:hover:not(:disabled) { background: #e2e8ff; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.auth-foot { text-align: center; color: #8d97b3; font-size: 12px; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    body { overflow: auto; }
    .layout {
        grid-template-columns: 1fr;
        height: auto;
        padding: 10px;
    }
    .section-switcher { grid-template-columns: 1fr; }
    .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar-panel { max-height: 60vh; }
    .topbar { padding: 0 12px; }
    .user-email { display: none; }
}

@media (max-width: 640px) {
    .packages-grid { grid-template-columns: 1fr; }
    .content-head-right { width: 100%; flex-wrap: wrap; }
    .content-head-right .btn { flex: 1 1 auto; }
}
