/* =========================================================
   POLITICAL PRESS NETWORK - ULTRA-PREMIUM ADMIN & STUDIO
   Executive Editorial Hub & High-Tech Media Terminal
   ========================================================= */

:root {
  --admin-bg: #0b0f19;
  --admin-card: #111827;
  --admin-card-border: rgba(255, 255, 255, 0.08);
  --admin-text: #f9fafb;
  --admin-muted: #9ca3af;
  --admin-sub: #6b7280;
  --admin-border: #1f2937;
  
  --admin-primary: #ef4444;
  --admin-primary-hover: #dc2626;
  --admin-primary-glow: rgba(239, 68, 68, 0.35);
  
  --admin-accent-blue: #3b82f6;
  --admin-accent-green: #10b981;
  --admin-accent-purple: #8b5cf6;
  --admin-accent-amber: #f59e0b;

  --admin-sidebar-bg: #030712;
  --admin-sidebar-border: rgba(255, 255, 255, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-glow: 0 0 35px -5px rgba(239, 68, 68, 0.25);
  --shadow-elevated: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.admin-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.5;
  min-height: 100vh;
}

/* =========================================================
   ULTRA-PREMIUM LOGIN SCREEN (SPLIT LAYOUT)
   ========================================================= */
.login-page-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #030712;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #f9fafb;
  overflow-x: hidden;
  display: flex;
}

.login-split-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* Left Hero Showcase */
.login-brand-panel {
  position: relative;
  background: radial-gradient(circle at 10% 20%, #111827 0%, #030712 90%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  overflow: hidden;
}

.brand-panel-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.glow-red {
  top: -60px;
  left: -80px;
  background: #ef4444;
}

.glow-blue {
  bottom: -60px;
  right: -60px;
  background: #3b82f6;
}

.grid-mesh-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.brand-panel-content {
  position: relative;
  z-index: 10;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.network-status-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #34d399;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.logo-emblem {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.5);
  margin-bottom: 20px;
}

.hero-brand-heading {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #f87171 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-brand-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: #9ca3af;
}

/* Live Activity Card Box */
.live-activity-feed {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
}

.feed-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-header i {
  color: #60a5fa;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 10px;
}

.feed-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.feed-info {
  flex-grow: 1;
}

.feed-info strong {
  font-size: 13px;
  color: #f3f4f6;
  display: block;
}

.feed-info small {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}

.feed-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
}

.brand-panel-footer {
  margin-top: 8px;
}

.security-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.security-chip i {
  color: #10b981;
}

/* Right Side: Form Terminal */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  background: #090d16;
  position: relative;
}

.login-card-glass {
  width: 100%;
  max-width: 460px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  position: relative;
}

.card-header-clean {
  margin-bottom: 28px;
}

.brand-icon-square {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ef4444;
  margin-bottom: 16px;
}

.terminal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.terminal-subtitle {
  font-size: 13.5px;
  color: #9ca3af;
  margin-top: 4px;
}

.alert-error-glass {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-block label {
  font-size: 12.5px;
  font-weight: 700;
  color: #d1d5db;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > i {
  position: absolute;
  left: 16px;
  color: #6b7280;
  font-size: 14px;
  transition: color 0.2s;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #f9fafb;
  font-family: inherit;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-with-icon input:focus {
  border-color: #ef4444;
  background: rgba(3, 7, 18, 0.85);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.input-with-icon input:focus + i,
.input-with-icon:focus-within > i {
  color: #ef4444;
}

.btn-toggle-pwd {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

.btn-toggle-pwd:hover {
  color: #d1d5db;
}

.btn-master-signin {
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: all 0.25s ease;
}

.btn-master-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.55);
}

.btn-master-signin:active {
  transform: translateY(0);
}

/* Unified DSJerome SSO Notice Badge */
.auth-sso-notice {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.sso-badge-icon {
  width: 36px;
  height: 36px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sso-badge-content strong {
  display: block;
  font-size: 12.5px;
  color: #f9fafb;
  font-weight: 700;
}

.sso-badge-content small {
  display: block;
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 2px;
}

.login-card-foot {
  text-align: center;
  margin-top: 24px;
}

.return-home-link {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.return-home-link:hover {
  color: #f9fafb;
}

/* =========================================================
   ADMIN DASHBOARD LAYOUT & INTERIOR STYLES
   ========================================================= */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.admin-sidebar {
  width: 270px;
  background-color: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-sidebar-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.brand-title {
  color: #f8fafc;
  font-weight: 800;
  font-size: 15.5px;
  display: block;
  letter-spacing: -0.01em;
}

.brand-sub {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  display: block;
}

/* User Card in Sidebar */
.sidebar-user-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--admin-sidebar-border);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #374151;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  color: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 3px;
  width: fit-content;
}

.role-badge.role-admin {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.role-badge.role-writer {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Sidebar Nav */
.sidebar-nav {
  padding: 20px 14px;
  flex-grow: 1;
}

.nav-section-title {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #4b5563;
  letter-spacing: 0.08em;
  padding: 0 12px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #9ca3af;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.sidebar-nav li a i {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f9fafb;
}

.sidebar-nav li a.active {
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.sidebar-nav li a.nav-external {
  color: #38bdf8;
}

.sidebar-nav li a.nav-logout {
  color: #f87171;
}

/* Main Topbar */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--admin-bg);
}

.admin-topbar {
  background: #0f172a;
  height: 72px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.page-title {
  font-size: 20px;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-top-write {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  transition: all 0.2s;
}

.btn-top-write:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

.btn-top-view {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-top-view:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-content-inner {
  padding: 36px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* =========================================================
   STAT CARDS
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--admin-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--admin-card-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon-blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.stat-icon-green { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.stat-icon-purple { background: rgba(139, 92, 246, 0.12); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.25); }
.stat-icon-amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #f9fafb;
  line-height: 1.1;
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--admin-muted);
  font-weight: 600;
  margin-top: 3px;
  display: block;
}

/* Dashboard Banner */
.dashboard-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 50%, #0f172a 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.banner-content h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #38bdf8;
}

.banner-content p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 820px;
}

.btn-banner-action {
  background: #ef4444;
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: all 0.2s;
}

.btn-banner-action:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* Dashboard Columns */
.dashboard-columns {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 28px;
}

/* =========================================================
   PANELS & TABLES
   ========================================================= */
.admin-panel {
  background: var(--admin-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-card-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  margin-bottom: 28px;
  overflow: hidden;
}

.panel-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
}

.panel-header-flex {
  padding: 22px 28px;
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.015);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title i {
  color: #ef4444;
  font-size: 18px;
}

.panel-title h3, .panel-title-text {
  font-size: 16px;
  font-weight: 800;
  color: #f9fafb;
}

.panel-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 2px;
}

.panel-link {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-body-padded {
  padding: 26px;
}

/* Admin Tables */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 22px;
  border-bottom: 1px solid var(--admin-card-border);
}

.admin-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--admin-card-border);
  vertical-align: middle;
  color: #e5e7eb;
}

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

.admin-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.col-title {
  max-width: 320px;
}

.article-tbl-title {
  color: #f9fafb;
  font-size: 14px;
  display: block;
  line-height: 1.35;
}

.article-tbl-title-link {
  color: #f9fafb;
  text-decoration: none;
}
.article-tbl-title-link:hover {
  color: #ef4444;
}

.tbl-subinfo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 5px;
}

.badge-mini-breaking {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-mini-video {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fb923c;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.tbl-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tbl-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #374151;
}

.tbl-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #374151;
}

.tbl-category {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.domain-count-badge {
  font-size: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.col-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-push-all {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.btn-push-all:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-push-all-mini {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-push-all-mini:hover {
  background: #059669;
}

.btn-tbl-edit, .btn-tbl-view, .btn-tbl-delete {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-tbl-edit:hover { color: #60a5fa; border-color: #60a5fa; background: rgba(59, 130, 246, 0.1); }
.btn-tbl-view:hover { color: #34d399; border-color: #34d399; background: rgba(16, 185, 129, 0.1); }
.btn-tbl-delete:hover { color: #f87171; border-color: #f87171; background: rgba(239, 68, 68, 0.1); }

/* =========================================================
   10-DOMAINS MINI LIST IN DASHBOARD & DIVISIONS
   ========================================================= */
.domains-mini-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-division-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.division-pro-block {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.division-pro-block:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 20px -5px rgba(16, 185, 129, 0.12);
}

.division-attack-block {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.division-attack-block:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 20px -5px rgba(239, 68, 68, 0.12);
}

.division-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.division-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.division-title-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.division-title-badge.badge-pro {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.division-title-badge.badge-attack {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.division-range-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

.division-banner-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.division-stat {
  font-size: 11px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.division-stat.stat-views {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.division-items-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.domain-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.domain-mini-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.item-pro-border {
  border-left: 3px solid rgba(16, 185, 129, 0.6);
}

.item-pro-border:hover {
  border-left-color: #10b981;
}

.item-attack-border {
  border-left: 3px solid rgba(239, 68, 68, 0.6);
}

.item-attack-border:hover {
  border-left-color: #ef4444;
}

.domain-seq-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  flex-shrink: 0;
}

.domain-seq-pill.pill-pro {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.domain-seq-pill.pill-attack {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.domain-name-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-group-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.mini-group-tag.tag-pro {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mini-group-tag.tag-attack {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.domain-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-color-pill {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.domain-mini-info strong {
  font-size: 13.5px;
  color: #f9fafb;
  display: block;
}

.host-sub {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}

.domain-mini-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-pill {
  font-size: 11px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.views-pill {
  font-size: 11px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.domain-link-btn {
  color: #9ca3af;
  font-size: 12px;
  padding: 4px;
}
.domain-link-btn:hover {
  color: #ef4444;
}

/* =========================================================
   WRITE STUDIO QUICK DOMAIN SELECTOR & CHECKLIST DIVISIONS
   ========================================================= */
.domain-quick-selector-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.btn-quick-domain {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 6px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-quick-domain:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-quick-pro {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
}

.btn-quick-pro:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #34d399;
  color: #6ee7b7;
}

.btn-quick-attack {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
}

.btn-quick-attack:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #f87171;
  color: #fca5a5;
}

.btn-quick-clear {
  color: #9ca3af;
}

.btn-quick-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.checklist-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.group-heading-pro {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
}

.group-heading-attack {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  margin-top: 14px;
}

.checklist-group-heading .heading-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-group-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-group-badge.badge-pro {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.mini-group-badge.badge-attack {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
}

.checklist-group-heading .heading-sub {
  font-size: 11px;
  color: #9ca3af;
}

.checklist-group-heading .heading-count {
  font-size: 10.5px;
  color: #9ca3af;
  font-weight: 600;
}

.item-pro-check {
  border-left: 2px solid rgba(16, 185, 129, 0.35) !important;
}

.item-attack-check {
  border-left: 2px solid rgba(239, 68, 68, 0.35) !important;
}

/* =========================================================
   DOMAINS NETWORK MANAGEMENT CHIPS
   ========================================================= */
.domain-num-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-division-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.domain-division-chip.chip-pro {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.domain-division-chip.chip-attack {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.domain-num-tag.num-pro {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.domain-num-tag.num-attack {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Matrix Groups and Divider */
.matrix-group-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.matrix-group-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

/* =========================================================
   10-DOMAIN PRESENCE MATRIX IN ARTICLES LIST
   ========================================================= */
.matrix-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.matrix-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  border: 1px solid transparent;
  cursor: help;
  transition: transform 0.2s;
}

.matrix-dot:hover {
  transform: scale(1.25);
}

.matrix-dot.dot-inactive {
  background-color: #374151;
  color: #9ca3af;
  border-color: #4b5563;
}

.matrix-count-sub {
  font-size: 11px;
  color: #9ca3af;
  display: block;
  margin-top: 4px;
}

.status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.status-badge.status-published { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.status-draft { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* =========================================================
   WRITE-UP STUDIO & RICH EDITOR
   ========================================================= */
.write-editor-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.editor-paper {
  padding: 32px;
}

.editor-title-wrap input {
  width: 100%;
  border: none;
  font-size: 28px;
  font-weight: 800;
  color: #f9fafb;
  outline: none;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--admin-card-border);
  margin-bottom: 22px;
  background: transparent;
  font-family: inherit;
}

.editor-title-wrap input:focus {
  border-color: #ef4444;
}

.form-group-subhead {
  margin-bottom: 22px;
}

.form-group-subhead label {
  font-size: 12.5px;
  font-weight: 700;
  color: #9ca3af;
  display: block;
  margin-bottom: 8px;
}

.form-group-subhead textarea {
  width: 100%;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #f9fafb;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.form-group-subhead textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Rich Toolbar */
.rich-toolbar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  gap: 4px;
  border-right: 1px solid var(--admin-card-border);
  padding-right: 12px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: #d1d5db;
  transition: all 0.15s;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.toolbar-right-stats {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 700;
}

/* Rich Content Editable Area */
.rich-content-editable {
  min-height: 480px;
  border: 1px solid var(--admin-card-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 28px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: #e5e7eb;
  outline: none;
  background: rgba(3, 7, 18, 0.4);
}

.rich-content-editable:focus {
  box-shadow: inset 0 0 0 1px #ef4444;
}

.rich-content-editable p {
  margin-bottom: 18px;
}

.rich-content-editable h2, .rich-content-editable h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  margin-top: 26px;
  margin-bottom: 12px;
  font-weight: 800;
  color: #f9fafb;
}

.rich-content-editable blockquote {
  border-left: 4px solid #ef4444;
  padding: 14px 20px;
  background: rgba(239, 68, 68, 0.06);
  margin: 20px 0;
  font-style: italic;
  color: #fca5a5;
}

/* =========================================================
   DOMAIN PUSH ALL PANEL (SIDEBAR)
   ========================================================= */
.domain-push-panel {
  border: 2px solid #10b981;
}

.panel-header-accent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-selection-body {
  padding: 20px;
}

.domain-selection-tip {
  font-size: 12.5px;
  color: #9ca3af;
  margin-bottom: 14px;
}

/* Master PUSH ALL 10 Domains Box */
.push-all-toggle-card {
  background: rgba(16, 185, 129, 0.12);
  border: 2px dashed #10b981;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.push-all-toggle-card:hover {
  background: rgba(16, 185, 129, 0.18);
}

.push-all-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.push-all-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #10b981;
  cursor: pointer;
}

.push-all-text strong {
  display: block;
  font-size: 13.5px;
  color: #34d399;
}

.push-all-text small {
  display: block;
  font-size: 11px;
  color: #6ee7b7;
}

/* 10 Domains Checklist */
.domains-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.domain-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.domain-check-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.domain-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ef4444;
  cursor: pointer;
}

.domain-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.domain-check-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f9fafb;
  margin-right: 4px;
}

.domain-check-host {
  font-size: 11px;
  color: #9ca3af;
}

/* Publish Controls */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #f9fafb;
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group-checkbox {
  margin-bottom: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.form-group-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #fca5a5;
}

.form-group-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #ef4444;
}

.field-help {
  font-size: 11.5px;
  color: #9ca3af;
  display: block;
  margin-top: 5px;
}

.text-danger { color: #ef4444; }

/* Image Upload Widget */
.image-input-wrap {
  display: flex;
  gap: 8px;
}

.btn-upload-file {
  background: #374151;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.image-preview-box {
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.image-preview-box.has-image img {
  display: block;
}

.preview-placeholder.hidden {
  display: none;
}

.btn-publish-master {
  width: 100%;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: all 0.2s;
}

.btn-publish-master:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.55);
}

/* =========================================================
   DOMAINS NETWORK MANAGEMENT GRID
   ========================================================= */
.domains-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  padding: 24px;
}

.domain-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.domain-card-header {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-card-border);
  background: rgba(255, 255, 255, 0.02);
}

.domain-header-left {
  display: flex;
  gap: 10px;
}

.domain-num-tag {
  font-size: 11px;
  font-weight: 800;
  background: #374151;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  height: fit-content;
}

.domain-title-block h4 {
  font-size: 15px;
  font-weight: 800;
  color: #f9fafb;
}

.domain-host-label {
  font-size: 12px;
  color: #9ca3af;
}

.badge-status {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-status.badge-active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-status.badge-disabled { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.domain-card-body {
  padding: 18px;
  flex-grow: 1;
}

.domain-site-title {
  font-size: 13.5px;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.domain-tagline-text {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.45;
  margin-bottom: 16px;
}

.domain-stats-mini-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--admin-card-border);
}

.stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-mini-val {
  font-size: 13px;
  font-weight: 800;
  color: #f9fafb;
}

.stat-mini-lbl {
  font-size: 10.5px;
  color: #9ca3af;
}

.theme-color-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px currentColor;
}

.domain-card-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--admin-card-border);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.btn-domain-preview, .btn-domain-edit {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-domain-preview {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-domain-preview:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-domain-edit {
  background: #374151;
  color: #fff;
  border: none;
}

.btn-domain-edit:hover {
  background: #4b5563;
}

/* =========================================================
   MODALS & TOAST NOTIFICATIONS
   ========================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--admin-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: #f9fafb;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 26px;
  max-height: 75vh;
  overflow-y: auto;
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-6 { flex: 1; }

.color-picker-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.form-control-color {
  width: 44px;
  height: 42px;
  padding: 2px;
  background: #1f2937;
  border: 1px solid var(--admin-card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.modal-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--admin-card-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-save {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s ease-out;
  min-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }

@keyframes toastIn {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   1-CLICK BUILT-IN SMART VIRAL SEO OPTIMIZER (0 AI COST)
   ========================================================= */
.smart-seo-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.smart-seo-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-smart-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.smart-seo-banner-desc {
  font-size: 12.5px;
  color: #cbd5e1;
}

.btn-smart-auto-fill {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-smart-auto-fill:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-smart-auto-fill:active {
  transform: translateY(0);
}

.btn-mini-magic {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-mini-magic:hover {
  background: #ffffff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVENESS
   ========================================================= */
/* =========================================================
   LIVE READER GEOLOCATION & VISITOR INTELLIGENCE
   ========================================================= */
.geo-tracker-panel {
  margin-top: 32px;
  background: var(--admin-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-card-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.geo-tracker-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.geo-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.geo-header-title i {
  color: #38bdf8;
  font-size: 1.25rem;
}

.geo-header-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f9fafb;
}

.geo-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Date Filter Controls */
.geo-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 12px;
}

.geo-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.geo-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s ease;
}

.geo-date-pill:hover {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.geo-date-pill.active {
  color: #ffffff;
  background: #2563eb;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.geo-custom-date-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.geo-date-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  color: #f9fafb;
  outline: none;
}

.geo-date-input:focus {
  border-color: #3b82f6;
}

.btn-geo-filter {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-geo-filter:hover {
  background: #2563eb;
  color: #ffffff;
}
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.geo-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.geo-overview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.geo-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.geo-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.geo-pill-item strong {
  color: #38bdf8;
  font-weight: 700;
}

.geo-pill-item.country-pill strong {
  color: #f59e0b;
}

.geo-pill-item.device-pill strong {
  color: #a78bfa;
}

.geo-live-table-wrap {
  overflow-x: auto;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.geo-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-muted);
  font-weight: 600;
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.geo-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  vertical-align: middle;
}

.geo-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.geo-loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #f3f4f6;
}

.geo-loc-badge i {
  color: #ef4444;
  font-size: 0.85rem;
}

.geo-ip-code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #9ca3af;
}

.geo-device-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.geo-device-mobile {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.geo-device-desktop {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.geo-device-tablet {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (max-width: 1080px) {
  .login-split-container {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    display: none;
  }
  .login-form-panel {
    padding: 30px 20px;
    background: radial-gradient(circle at 50% 20%, #111827 0%, #030712 100%);
  }
}

@media (max-width: 900px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .write-editor-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}
