/* ==========================================================================
   Direct Lead LLC - Corporate Pay-Per-Call Publisher Network CSS
   Theme: High-Trust Corporate Navy / Slate / Cyan
   ========================================================================== */

:root {
  --primary: #0B2545;
  --primary-light: #134074;
  --primary-dark: #07192F;
  --accent: #00A896;
  --accent-hover: #028090;
  --accent-light: #E0F2F1;
  --blue-accent: #0284C7;
  
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  
  --border-color: #E2E8F0;
  --border-focus: #134074;
  
  --status-approved: #059669;
  --status-approved-bg: #ECFDF5;
  --status-approved-border: #A7F3D0;
  
  --status-pending: #D97706;
  --status-pending-bg: #FFFBEB;
  --status-pending-border: #FDE68A;
  
  --status-rejected: #DC2626;
  --status-rejected-bg: #FEF2F2;
  --status-rejected-border: #FECACA;
  
  --status-suspended: #7C3AED;
  --status-suspended-bg: #F5F3FF;
  --status-suspended-border: #DDD6FE;
  
  --status-blocked: #0F172A;
  --status-blocked-bg: #F1F5F9;
  --status-blocked-border: #CBD5E1;
  
  --status-paused: #EA580C;
  --status-paused-bg: #FFF7ED;
  --status-paused-border: #FFEDD5;
  
  --status-removed: #475569;
  --status-removed-bg: #F8FAFC;
  --status-removed-border: #E2E8F0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: #334155;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.container-wide {
  max-width: 1400px;
}

.main-content {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.25;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-light);
  color: #FFFFFF;
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--primary);
}

.btn-danger {
  background-color: #DC2626;
  color: #FFFFFF;
}
.btn-danger:hover {
  background-color: #B91C1C;
}

.btn-warning {
  background-color: #D97706;
  color: #FFFFFF;
}
.btn-warning:hover {
  background-color: #B45309;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  line-height: 1;
}

.badge-approved, .badge-active {
  color: var(--status-approved);
  background-color: var(--status-approved-bg);
  border-color: var(--status-approved-border);
}

.badge-pending {
  color: var(--status-pending);
  background-color: var(--status-pending-bg);
  border-color: var(--status-pending-border);
}

.badge-rejected {
  color: var(--status-rejected);
  background-color: var(--status-rejected-bg);
  border-color: var(--status-rejected-border);
}

.badge-suspended {
  color: var(--status-suspended);
  background-color: var(--status-suspended-bg);
  border-color: var(--status-suspended-border);
}

.badge-blocked {
  color: var(--status-blocked);
  background-color: var(--status-blocked-bg);
  border-color: var(--status-blocked-border);
}

.badge-paused {
  color: var(--status-paused);
  background-color: var(--status-paused-bg);
  border-color: var(--status-paused-border);
}

.badge-removed, .badge-inactive {
  color: var(--status-removed);
  background-color: var(--status-removed-bg);
  border-color: var(--status-removed-border);
}

.badge-default {
  color: #475569;
  background-color: #F1F5F9;
  border-color: #CBD5E1;
}

/* Header & Public Navigation
   LOGIN PAGE / PUBLIC NAVBAR — keep all other site CSS unchanged */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title-text {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #07192F;
  white-space: nowrap;
  font-size: 1.3rem;
  line-height: 1.1;
}

.brand-tagline-sub {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  padding: 0.5rem 0.15rem;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: #0B2545;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #00A896;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-header-login,
.btn-header-publisher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-header-login {
  background: #FFFFFF;
  color: #07192F;
  border: 1px solid #07192F;
}

.btn-header-login:hover {
  background: #F8FAFC;
  color: #07192F;
}

.btn-header-publisher {
  background: #00A896;
  color: #FFFFFF;
  border: 1px solid #00A896;
}

.btn-header-publisher:hover {
  background: #008F80;
  border-color: #008F80;
  color: #FFFFFF;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #07192F;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #FFFFFF;
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(circle at center, rgba(0, 168, 150, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  color: #FFFFFF;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: #E2E8F0;
  font-size: 1.2rem;
  max-width: 680px;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #CBD5E1;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-badge-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: #DC2626;
  margin-left: 2px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.15);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.checkbox-group, .radio-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary);
}

.form-section-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.table th {
  background-color: var(--bg-alt);
  color: #475569;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: #1E293B;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: #F8FAFC;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.alert-icon {
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

.alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-warning {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.alert-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* Portal & Admin Sidebar Layout */
.portal-layout {
  display: flex;
  min-height: calc(100vh - 72px);
}

.portal-sidebar {
  width: 260px;
  transition: width 0.22s ease, transform 0.22s ease;
  background-color: var(--primary-dark);
  color: #FFFFFF;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.portal-sidebar-nav {
  padding: 1.5rem 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #CBD5E1;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.portal-sidebar-link:hover, .portal-sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.portal-sidebar-link.active {
  background-color: var(--primary-light);
  font-weight: 600;
}

.portal-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748B;
  gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 2.3rem; }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-layout { flex-direction: column; }
  .portal-sidebar { width: 100%; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: block; }
  .header-container { height: 64px; }
  .hero-title { font-size: 1.95rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .grid-cols-2 { grid-template-columns: 1fr; }
  .grid-cols-3 { grid-template-columns: 1fr; }
  .grid-cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-container { height: 64px; }
  .portal-main { padding: 1.25rem 1rem; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-badges-row { flex-direction: column; gap: 1rem; }
}

/* ==========================================================================\n   Portal UX Enhancements: Collapsible Sidebar, Notifications, Search\n   ========================================================================== */
.portal-menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}
.portal-menu-toggle:hover { background: rgba(255,255,255,0.12); }
.portal-menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.portal-layout.sidebar-collapsed .portal-sidebar { width: 78px; }
.portal-layout.sidebar-collapsed .portal-sidebar-link { justify-content: center !important; padding-left: 0.75rem; padding-right: 0.75rem; }
.portal-layout.sidebar-collapsed .portal-sidebar-link > span,
.portal-layout.sidebar-collapsed .portal-sidebar-link > div > span,
.portal-layout.sidebar-collapsed .portal-sidebar-nav > li:not(:has(.portal-sidebar-link)) { display: none; }
.portal-layout.sidebar-collapsed .portal-sidebar-link > div { justify-content: center; }
.portal-layout.sidebar-collapsed .portal-sidebar-link > div > svg { margin: 0; }
.portal-layout.sidebar-collapsed .portal-sidebar-badge { position: absolute; margin-left: 25px; margin-top: -18px; }
.portal-layout.sidebar-collapsed .portal-sidebar-nav > li { position: relative; }

.portal-sidebar-badge {
  min-width: 20px;
  text-align: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
  padding: 0.12rem 0.42rem;
  border-radius: 9999px;
}
.portal-sidebar-badge-alert { background: #DC2626; }
.portal-sidebar-badge-muted { background: #475569; }

.portal-notification-wrap { position: relative; }
.portal-notification-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.portal-notification-btn:hover { background: rgba(255,255,255,0.12); }
.portal-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.68rem;
  line-height: 19px;
  font-weight: 800;
  text-align: center;
  border: 2px solid #0B2545;
}
.portal-notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 2rem));
  background: #fff;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 20px 35px rgba(15,23,42,0.18);
  overflow: hidden;
  z-index: 1100;
}
.portal-notification-menu[hidden] { display: none; }
.portal-notification-menu-head {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
}
.portal-notification-menu-head button {
  border: 0;
  background: none;
  color: #0284C7;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.portal-notification-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  text-decoration: none;
}
.portal-notification-item:hover { background: #F8FAFC; }
.portal-notification-item > span:last-child { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.portal-notification-item strong { color: #0B2545; font-size: 0.84rem; }
.portal-notification-item small { color: #475569; font-size: 0.78rem; line-height: 1.35; }
.portal-notification-item em { color: #94A3B8; font-size: 0.68rem; font-style: normal; }
.portal-notification-dot { width: 8px; height: 8px; border-radius: 50%; background: #DC2626; margin-top: 0.35rem; flex-shrink: 0; }
.portal-notification-empty { padding: 1.2rem; text-align: center; color: #94A3B8; font-size: 0.82rem; }
.portal-notification-pulse .portal-notification-btn { animation: portalBellPulse 0.8s ease; }
@keyframes portalBellPulse {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(5deg); }
}

.portal-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.7rem;
}
.portal-search-field {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #94A3B8;
  padding: 0 0.35rem;
}
.portal-search-field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #0F172A;
  background: transparent;
}
.portal-search-field input::placeholder {
  color: #64748B;
  opacity: 1;
}
.portal-search-count { color: #64748B; font-size: 0.78rem; white-space: nowrap; margin: 0 0.35rem; }

@media (max-width: 992px) {
  .portal-layout { position: relative; flex-direction: row; min-height: calc(100vh - 64px); }
  .portal-sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 260px;
    z-index: 1050;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease, width 0.22s ease;
    box-shadow: 10px 0 30px rgba(15,23,42,0.18);
  }
  .portal-layout.sidebar-open .portal-sidebar { transform: translateX(0); }
  .portal-main { width: 100%; }
  .portal-layout::after {
    content: '';
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(15,23,42,0.42);
    z-index: 1040;
  }
  .portal-layout.sidebar-open::after { display: block; }
  .portal-layout.sidebar-collapsed .portal-sidebar { width: 260px; }
  .portal-layout.sidebar-collapsed .portal-sidebar-link { justify-content: space-between !important; }
  .portal-layout.sidebar-collapsed .portal-sidebar-link > span,
  .portal-layout.sidebar-collapsed .portal-sidebar-link > div > span,
  .portal-layout.sidebar-collapsed .portal-sidebar-nav > li:not(:has(.portal-sidebar-link)) { display: block; }
  .portal-layout.sidebar-collapsed .portal-sidebar-link > div { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .portal-notification-menu { right: -52px; }
  .portal-search-bar { flex-wrap: wrap; }
  .portal-search-field { flex-basis: 100%; }
  .portal-search-count { margin-left: 0; }
}


/* Sidebar toggle state + responsive drawer hardening */
.portal-layout.sidebar-collapsed .portal-sidebar {
  overflow-x: hidden;
}

.portal-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.portal-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.portal-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.portal-menu-toggle span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 993px) {
  .portal-layout {
    overflow-x: hidden;
  }
  .portal-sidebar {
    overflow-x: hidden;
  }
  .portal-layout.sidebar-collapsed .portal-sidebar {
    width: 78px;
  }
}

@media (max-width: 992px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .portal-layout {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .portal-sidebar {
    width: 260px;
    max-width: 86vw;
    overflow-x: hidden;
    transform: translate3d(-105%, 0, 0);
    will-change: transform;
  }
  .portal-layout.sidebar-open .portal-sidebar {
    transform: translate3d(0, 0, 0);
  }
  .portal-layout::after {
    pointer-events: none;
  }
  .portal-layout.sidebar-open::after {
    pointer-events: auto;
  }
  .portal-main {
    min-width: 0;
    max-width: 100%;
  }
}

/* Campaign category organization + larger portal search controls */
.portal-search-button {
  min-width: 112px;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.portal-category-select {
  min-width: 190px;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
}
.campaign-category-row td {
  padding: 0 !important;
  background: transparent;
  border: 0;
}
.campaign-category-row .admin-category-heading {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1rem !important;
  padding: 1.15rem 1.35rem;
  min-height: 86px;
}
.campaign-category-row .admin-category-heading h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}
.campaign-category-row .admin-category-heading .offer-category-count {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}
.offer-category-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid #D8E2EC;
  border-left: 4px solid #00A896;
  border-radius: 10px;
  background: linear-gradient(90deg, #F8FAFC, #FFFFFF);
}
.offer-category-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: #00A896;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offer-category-heading h2 {
  margin: 0;
  color: #0B2545;
  font-size: 1.25rem;
}
.offer-category-count {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: #E0F2F1;
  color: #007F73;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 600px) {
  .portal-search-bar {
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
  }
  .portal-search-field {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0 0.45rem;
  }
  .portal-search-field input {
    min-width: 0;
    width: 100%;
  }
  .portal-category-select,
  .portal-search-button { width: 100%; }
  .offer-category-heading { align-items: flex-start; }
}

/* Admin portal sidebar toggle - explicit visibility hardening */
.admin-sidebar-menu-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.10) !important;
  color: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 200 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.admin-sidebar-menu-toggle span {
  display: block !important;
  width: 20px !important;
  height: 2px !important;
  margin: 2px 0 !important;
  background: #fff !important;
  border-radius: 2px !important;
}
.admin-sidebar-menu-toggle:hover { background: rgba(255,255,255,.18) !important; }

/* Independent portal scrolling: sidebar and main content scroll separately */
@media (min-width: 993px) {
  html:has(.portal-layout),
  body:has(.portal-layout) {
    height: 100%;
    overflow: hidden;
  }

  .portal-layout {
    height: calc(100vh - 64px);
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
  }

  .portal-sidebar {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .portal-main {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (max-width: 992px) {
  .portal-sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .portal-main {
    min-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* Sidebar icon normalization: consistent visual weight in Admin + Publisher */
.portal-sidebar-link > svg,
.portal-sidebar-link > div > svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  display: block !important;
}

.portal-sidebar-link > svg *,
.portal-sidebar-link > div > svg * {
  stroke-width: 2.35 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.portal-sidebar-link > svg,
.portal-sidebar-link > div > svg {
  overflow: visible;
}

/* Give very minimal glyphs enough visual presence without changing their meaning. */
.portal-sidebar-link > svg:first-child,
.portal-sidebar-link > div > svg:first-child {
  color: #CBD5E1;
}
.portal-sidebar-link:hover > svg,
.portal-sidebar-link:hover > div > svg,
.portal-sidebar-link.active > svg,
.portal-sidebar-link.active > div > svg {
  color: #FFFFFF;
}

/* Keep collapsed and expanded icon geometry identical. */
.portal-layout.sidebar-collapsed .portal-sidebar-link > svg,
.portal-layout.sidebar-collapsed .portal-sidebar-link > div > svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  flex-basis: 22px !important;
}


/* Publisher portal only: allow normal page touch scrolling on mobile.
   Do not alter the Admin portal scrolling rules. */
@media (max-width: 992px) {
  html:has(body.publisher-portal-page),
  body.publisher-portal-page {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.publisher-portal-page .portal-layout {
    display: block !important;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.publisher-portal-page .portal-main {
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: auto;
  }
}

/* Publisher mobile scrolling ONLY: do not alter desktop or header/layout styling. */
@media (max-width: 992px) {
  html:has(body.publisher-portal-page),
  html:has(body.publisher-portal-page) body.publisher-portal-page {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
  }

  body.publisher-portal-page .portal-layout,
  body.publisher-portal-page .portal-main {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }

  body.publisher-portal-page .portal-layout {
    display: block !important;
  }
}

/* ==========================================================================
   Payout Details - Clean Administrative Presentation
   ========================================================================== */
.payout-detail-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.85rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.payout-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.payout-detail-item {
  min-width: 0;
  padding: 0.35rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.payout-detail-label {
  display: block;
  margin-bottom: 0.1rem;
  color: #0B2545;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
}

.payout-detail-label strong {
  font-weight: 800;
}

.payout-detail-value {
  display: block;
  color: #0F172A;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.payout-detail-value--technical {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.payout-method-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.payout-method-heading strong {
  color: #0B2545;
  font-size: 0.98rem;
  font-weight: 800;
}

.payout-method-type {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #E0F2FE;
  color: #0369A1;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.payout-page-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

@media (max-width: 760px) {
  .payout-detail-grid {
    grid-template-columns: 1fr;
  }
}
