:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0f172a;
  --success: #047857;
  --danger: #b91c1c;
  --warning: #b45309;
  --radius: 20px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand, .admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 1.2rem;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  font-weight: 900;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  font-weight: 800;
  color: #334155;
}
.site-nav a {
  font-size: 0.96rem;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.site-nav a:hover { color: var(--primary); }
.nav-pill {
  color: #fff !important;
  background: var(--primary);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}
.nav-pill:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.mobile-menu-button { display: none; border: 0; background: var(--accent); color: #fff; border-radius: 12px; padding: 10px 13px; font-size: 1.2rem; }

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 30%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 34px; align-items: center; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); font-size: 0.75rem; font-weight: 900; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1; margin: 0 0 20px; letter-spacing: -0.055em; }
.hero p { color: #475569; font-size: 1.12rem; max-width: 680px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat-card strong { display: block; font-size: 1.8rem; }
.stat-card span { color: var(--muted); font-weight: 700; font-size: 0.9rem; }

.search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
.search-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr auto; gap: 12px; }
.form-control, .form-select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 14px;
  min-height: 48px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.form-control:focus, .form-select:focus, textarea:focus { outline: 3px solid rgba(37, 99, 235, 0.15); border-color: var(--primary); }
.form-label { display: block; font-weight: 800; margin-bottom: 7px; color: #334155; }
.form-help { color: var(--muted); font-size: 0.88rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.required { color: var(--danger); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  min-height: 48px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--accent); color: #fff; }
.btn-light { background: #e2e8f0; color: #0f172a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 11px; min-height: 36px; border-radius: 10px; font-size: 0.85rem; }

.section { padding: 54px 0; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.section-title-row h2, .page-title h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.035em; }
.section-title-row p, .page-title p { color: var(--muted); margin: 8px 0 0; }
.page-title { padding: 42px 0 22px; }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.job-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  min-height: 265px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}
.job-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); }
.company-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; }
.company-logo { width: 42px; height: 42px; border-radius: 14px; background: #dbeafe; color: var(--primary); display: grid; place-items: center; font-weight: 900; overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; background: #fff; }
.job-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 0.78rem; font-weight: 900; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-dark { background: #e2e8f0; color: #0f172a; }

.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04); }
.card h2, .card h3 { margin-top: 0; }
.job-description { font-size: 1rem; color: #334155; }
.job-description ul { padding-left: 22px; }
.sidebar-card { position: sticky; top: 98px; }
.detail-list { display: grid; gap: 12px; }
.detail-list div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }
.detail-list dd { margin: 2px 0 0; font-weight: 800; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: #475569; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pagination a, .pagination span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

.site-footer { margin-top: 54px; padding: 44px 0; background: #0f172a; color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h3, .site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { display: block; margin: 8px 0; color: #cbd5e1; }

.admin-body { background: #eef2f7; }
.admin-shell { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0f172a; color: #cbd5e1; padding: 22px; position: sticky; top: 0; height: 100vh; }
.admin-brand { color: #fff; margin-bottom: 26px; }
.admin-menu { display: grid; gap: 8px; }
.admin-menu a { display: block; padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.admin-menu a:hover, .admin-menu a.active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.admin-main { padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.admin-topbar h1 { margin: 0; letter-spacing: -0.04em; font-size: 2rem; }
.admin-user-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 900; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05); }
.metric-card span { color: var(--muted); font-weight: 900; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.metric-card strong { display: block; font-size: 2rem; margin-top: 8px; }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; font-weight: 800; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top, rgba(37, 99, 235, 0.15), transparent 35%), #eef2f7; }
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px; }
.auth-card h1 { margin: 16px 0 8px; letter-spacing: -0.04em; }
.auth-card p { color: var(--muted); }
.empty-state { padding: 34px; border: 1px dashed #cbd5e1; background: #fff; border-radius: 24px; text-align: center; color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .job-grid, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-card { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-menu { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .mobile-menu-button { display: inline-flex; margin-left: auto; }
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 18px;
    margin-left: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; white-space: normal; }
  .nav-pill { text-align: center; padding: 12px 18px !important; }
  .hero { padding: 46px 0 34px; }
  .stats-grid, .job-grid, .search-grid, .form-grid, .form-grid-3, .footer-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .section-title-row, .admin-topbar { align-items: stretch; flex-direction: column; }
  .admin-main { padding: 18px; }
  .admin-menu { grid-template-columns: 1fr; }
  .table-wrap { border-radius: 14px; }
}


.muted-text { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); }
input[type="file"].form-control { padding-top: 11px; }

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); }
.generated-document {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  line-height: 1.7;
}
.small-link { color: var(--primary); font-weight: 900; }

@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
}

/* Phase 6 branding + Jooble import UI */
.brand-logo {
  display: block;
  width: auto !important;
  object-fit: contain;
  object-position: left center;
}
.brand-logo-header {
  height: 60px !important;
  max-height: 60px !important;
  max-width: 230px !important;
}
.brand-logo-sidebar {
  height: 50px !important;
  max-height: 50px !important;
  max-width: 220px !important;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.16));
}
.workspace-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
}
.import-layout.content-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.import-card-title {
  align-items: flex-start;
}
.jooble-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}
.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mini-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

@media (max-width: 980px) {
  .import-layout.content-grid { grid-template-columns: 1fr; }
  .brand-logo-sidebar { max-width: 210px !important; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 76px; gap: 14px; }
  .brand-logo-header { height: 46px !important; max-height: 46px !important; max-width: 178px !important; }
  .brand-logo-sidebar { height: 40px !important; max-height: 40px !important; max-width: 172px !important; }
  .jooble-usage-grid { grid-template-columns: 1fr; }
}
.admin-job-filter .search-grid { grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .75fr) minmax(150px, .75fr) auto auto; }
@media (max-width: 980px) { .admin-job-filter .search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .admin-job-filter .search-grid { grid-template-columns: 1fr; } }
.brand-lockup { display: inline-flex; align-items: center; gap: 0; min-width: 0; }
.brand-wordmark { color: #0f172a; font-weight: 950; letter-spacing: -0.035em; font-size: 1.28rem; line-height: 1; white-space: nowrap; }
.admin-brand .brand-wordmark { color: #fff; }
.brand-logo-header, .brand-logo-sidebar { border-radius: 0; }

/* NextJobAI job detail polish + Nigeria-focused imported jobs display */
.job-detail-hero {
  padding: 42px 0 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(124, 58, 237, 0.12), transparent 30%);
}
.job-detail-hero-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}
.job-detail-company-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.company-logo-large {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  font-size: 1.2rem;
  flex: 0 0 auto;
}
.company-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.job-detail-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}
.job-detail-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 800;
}
.job-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.badge-source {
  background: #eff6ff;
  color: #1d4ed8;
}
.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.job-detail-section {
  padding-top: 22px;
}
.job-detail-layout.content-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.job-detail-content {
  padding: clamp(22px, 4vw, 34px);
}
.job-detail-block + .job-detail-block {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.job-detail-block h2 {
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}
.job-description-body {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.78;
}
.job-description-body p {
  margin: 0 0 16px;
}
.job-description-body p:last-child,
.job-description-body ul:last-child {
  margin-bottom: 0;
}
.job-description-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-left: 24px;
}
.job-summary-card h3 {
  margin-bottom: 16px;
}
.source-note {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 700;
}

@media (max-width: 980px) {
  .job-detail-layout.content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .job-detail-hero { padding-top: 28px; }
  .job-detail-company-row { flex-direction: column; }
  .job-detail-actions .btn { width: 100%; }
  .company-logo-large { width: 58px; height: 58px; }
}

/* Phase 7: Google Ads / AdSense monetization */
.ad-section { padding-top: 0; padding-bottom: 0; }
.ad-placement {
  width: 100%;
  margin: 18px 0;
  overflow: hidden;
}
.ad-block-wide { display: block; }
.ad-block-sidebar { margin-top: 18px; }
.job-grid-ad { grid-column: 1 / -1; }
.ad-label {
  display: block;
  padding: 8px 12px 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ad-placeholder {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06)),
    #fff;
  text-align: center;
  color: #334155;
}
.ad-placeholder strong { display: block; font-size: 1rem; }
.ad-placeholder small { display: block; color: var(--muted); max-width: 560px; font-weight: 700; }
.ad-placement ins.adsbygoogle { width: 100%; }
.admin-main code {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
}
@media (max-width: 720px) {
  .ad-placement { margin: 14px 0; }
  .ad-placeholder { border-radius: 16px; padding: 14px; }
}

/* Admin/workspace mobile hamburger menu fix */
.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.admin-sidebar-head .admin-brand { margin-bottom: 0; }
.admin-menu-toggle,
.admin-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}
.admin-menu-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}
.admin-sidebar-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.45rem;
}
.admin-mobile-overlay { display: none; }
.admin-topbar-title { min-width: 0; }

@media (max-width: 980px) {
  body.admin-menu-open { overflow: hidden; }
  .admin-shell {
    display: block;
    min-height: 100vh;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 330px);
    height: 100vh;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: 24px 0 60px rgba(15, 23, 42, 0.34);
  }
  .admin-body.admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.54);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }
  .admin-body.admin-menu-open .admin-mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .admin-menu-toggle,
  .admin-sidebar-close { display: inline-flex; }
  .admin-menu { grid-template-columns: 1fr; }
  .admin-main {
    padding: 18px;
    min-height: 100vh;
  }
  .admin-topbar {
    position: sticky;
    top: 10px;
    z-index: 80;
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }
  .admin-topbar .eyebrow { margin-bottom: 2px; }
  .admin-topbar h1 {
    font-size: 1.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-user-pill {
    margin-left: auto;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .admin-main { padding: 12px; }
  .admin-topbar { top: 8px; border-radius: 18px; }
  .admin-topbar h1 { font-size: 1.25rem; }
  .admin-user-pill { display: none; }
  .admin-sidebar { width: min(88vw, 320px); padding: 18px; }
}


/* About, contact and company-logo admin updates */
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 22px; align-items: start; }
.about-main-card h2, .contact-grid h2 { letter-spacing: -0.03em; }
.about-points { display: grid; gap: 16px; }
.about-points div { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.about-points div:last-child { padding-bottom: 0; border-bottom: 0; }
.about-points strong { color: var(--text); }
.about-points span { color: var(--muted); }
.about-cta-section { padding-top: 0; }
.about-cta { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.about-cta h2 { margin-bottom: 8px; }
.about-cta p { margin-bottom: 0; color: var(--muted); }
.contact-form { margin-top: 18px; }
.contact-side-card { position: sticky; top: 112px; }
.contact-email-box { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--surface-soft); }
.contact-email-box span { display: block; color: var(--muted); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.contact-email-box a { display: inline-block; margin-top: 4px; color: var(--primary); font-weight: 900; word-break: break-word; }
.contact-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
.company-logo-edit-preview { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.company-logo-edit-preview img { width: 58px; height: 58px; object-fit: contain; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.company-logo-edit-preview span { color: var(--muted); font-size: .86rem; }

@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-side-card { position: static; }
}

@media (max-width: 720px) {
  .about-cta { align-items: stretch; flex-direction: column; }
}
