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

:root {
  --bg: #eef4fb;
  --card: #ffffff;
  --navy: #0f172a;
  --muted: #64748b;
  --line: #dbe3ef;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #10b981;
  --red: #ef4444;
  --soft: #f8fafc;
}

body {
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 25%),
    var(--bg);
  color: var(--navy);
  line-height: 1.5;
}

a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0f172a;
  color: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}

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

.logo {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand strong {
  display: block;
  font-size: 20px;
}

.brand span {
  color: #cbd5e1;
  font-size: 12px;
}

.side-nav {
  display: grid;
  gap: 9px;
}

.nav-link {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid transparent;
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.12);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

#userDisplay {
  font-size: 13px;
  color: #dbeafe;
  word-break: break-word;
}

.main {
  padding: 24px;
  max-width: 1280px;
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.topbar h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
}

.topbar p {
  color: var(--muted);
  margin-top: 4px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-pill {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

#appSection {
  display: grid;
}

.page-section {
  display: none;
}

.active-page {
  display: grid;
  gap: 22px;
}

.card,
.stat-card,
.hero-panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255,255,255,0.9) inset;
}

.card {
  padding: 24px;
}

.hero-panel {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.94));
  color: white;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-panel h2 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.hero-panel p {
  color: #dbeafe;
}

.hero-mini-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: inline-block;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.stat-card h3 {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.section-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.step {
  min-width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.card h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}

.section-heading p,
.split-header p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.split-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 15px;
  background: var(--soft);
  color: var(--navy);
}

textarea {
  min-height: 105px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 900;
  font-size: 14px;
}

button,
.google-search-btn {
  border: none;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
}

button:hover,
.google-search-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
}

.secondary-btn {
  background: #e2e8f0;
  color: var(--navy);
}

.dark-btn {
  background: var(--navy);
  color: white;
}

.logout-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.16);
}

.delete-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: white;
}

.linkedin-btn {
  background: linear-gradient(135deg, #0077b5, #005582);
  color: white;
}

.add-idea-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 9px 13px;
  font-size: 13px;
}

.google-search-btn {
  background: var(--navy);
  color: white;
  font-size: 13px;
}

.lead-ideas-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.lead-idea-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  padding: 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.lead-idea-info strong {
  display: block;
  margin-bottom: 3px;
}

.lead-idea-info p {
  font-size: 13px;
  color: var(--muted);
}

.lead-idea-actions {
  display: flex;
  gap: 8px;
}

.lead-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lead-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.lead-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.lead-card h3 {
  font-size: 20px;
  line-height: 1.2;
}

.status-badge,
.priority-badge,
.overdue-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge {
  background: #eff6ff;
  color: var(--blue);
}

.priority-badge {
  background: #f1f5f9;
  color: #334155;
}

.overdue-badge {
  background: #ef4444;
  color: white;
}

.lead-meta {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #334155;
}

.lead-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.lead-actions button {
  padding: 10px 11px;
  min-height: 39px;
  font-size: 13px;
}

.overdue-lead {
  border-color: #ef4444;
  background: linear-gradient(180deg, #fff, #fef2f2);
}

.mini-list,
.table-like,
.analytics-grid {
  display: grid;
  gap: 12px;
}

.mini-item,
.table-row,
.analytics-item,
.settings-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.mini-item strong,
.table-row strong,
.analytics-item strong {
  display: block;
  margin-bottom: 4px;
}

.mini-item span,
.table-row span,
.analytics-item span {
  color: var(--muted);
  font-size: 13px;
}

.settings-box {
  display: grid;
  gap: 10px;
}

#mobileMenuBtn {
  display: none;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -290px;
    width: 270px;
    z-index: 50;
    transition: 0.2s ease;
  }

  .sidebar.open {
    left: 0;
  }

  #mobileMenuBtn {
    display: inline-flex;
  }

  .hero-panel,
  .two-grid,
  .lead-list,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .main {
    padding: 18px;
  }

  .topbar,
  .split-header {
    flex-direction: column;
    align-items: stretch;
  }

  .input-grid,
  .dashboard,
  .lead-actions,
  .lead-idea-card {
    grid-template-columns: 1fr;
  }

  .lead-idea-actions {
    flex-direction: column;
  }

  button,
  .google-search-btn {
    width: 100%;
  }
}
.side-nav .nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 1050px) {
  .sidebar {
    left: -290px;
  }

  .sidebar.open {
    left: 0;
  }

  .brand {
    display: flex;
    align-items: center;
  }

  .brand strong,
  .brand span {
    display: block;
  }
}

@media (max-width: 700px) {
  .topbar {
    gap: 14px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  #mobileMenuBtn {
    width: 100%;
  }
}
/* ===== AUTOCLIENT BRANDING FIX ===== */

.logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

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

.brand-text strong {
  color: white;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.brand-text span {
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 6px;
}

.sidebar {
  background: #0f172a !important;
  min-height: 100vh;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-nav .nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ===== MOBILE FIX ===== */

.mobile-brand {
  display: none;
}

@media (max-width: 1050px) {

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0;
  }

  .main {
    width: 100%;
    margin-left: 0;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .mobile-brand strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-brand span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
  }

  .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    width: 100%;
  }

  #mobileMenuBtn {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {

  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero-panel h2 {
    font-size: 44px;
    line-height: 1.1;
  }

  .main {
    padding: 22px;
  }

  .card,
  .hero-panel {
    padding: 24px;
  }
}
.analytics-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.chart-card h3 {
  margin-bottom: 20px;
  color: #0f172a;
}

.chart-card canvas {
  width: 100% !important;
  max-height: 320px;
}

@media (max-width: 900px) {
  .analytics-charts {
    grid-template-columns: 1fr;
  }
}
/* ================================
   DARK MODE
================================ */

body.dark-mode {
  background: #020617;
  color: #e5e7eb;
}

body.dark-mode .main {
  background: radial-gradient(circle at top, #0f172a 0%, #020617 55%);
}

body.dark-mode .topbar,
body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .chart-card,
body.dark-mode .hero-mini-card,
body.dark-mode .mini-item,
body.dark-mode .lead-card,
body.dark-mode .lead-idea-card,
body.dark-mode .settings-box,
body.dark-mode .table-row {
  background: #0f172a;
  border-color: #1e293b;
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

body.dark-mode .hero-panel {
  background: linear-gradient(135deg, #1e3a8a, #020617);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode strong {
  color: #f8fafc;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode label {
  color: #cbd5e1;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #020617;
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #64748b;
}

body.dark-mode .sidebar {
  background: #020617;
  border-color: #1e293b;
}

body.dark-mode .nav-link {
  color: #cbd5e1;
}

body.dark-mode .nav-link.active,
body.dark-mode .nav-link:hover {
  background: #1d4ed8;
  color: #ffffff;
}

body.dark-mode .secondary-btn,
body.dark-mode .dark-btn {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

body.dark-mode .status-pill {
  background: #052e16;
  color: #86efac;
}

body.dark-mode .analytics-item {
  background: #020617;
  border-color: #1e293b;
}

body.dark-mode a {
  color: #60a5fa;
}
/* ================================
   TOAST NOTIFICATIONS
================================ */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.25);
  animation: slideInToast 0.3s ease, fadeOutToast 0.3s ease 2.8s forwards;
}

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}

.toast.info {
  background: #2563eb;
}

.toast.warning {
  background: #f59e0b;
  color: #111827;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutToast {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

@media (max-width: 600px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
  }
}
/* ========================================
   KANBAN CRM PIPELINE
======================================== */

.kanban-wrapper {
  margin-top: 40px;
}

.kanban-header {
  margin-bottom: 20px;
}

.kanban-header h2 {
  margin-bottom: 6px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kanban-column {
  background: rgba(255,255,255,0.7);
  border: 1px solid #dbe7f5;
  border-radius: 24px;
  padding: 16px;
  min-height: 500px;
  backdrop-filter: blur(12px);
}

.dark-mode .kanban-column {
  background: rgba(15,23,42,0.7);
  border-color: #1e293b;
}

.kanban-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
}

.new-title {
  background: #dbeafe;
  color: #1d4ed8;
}

.contacted-title {
  background: #cffafe;
  color: #0891b2;
}

.interested-title {
  background: #dbf4ff;
  color: #0ea5e9;
}

/* ================================
   ACTIVITY TIMELINE
================================ */

.activity-feed {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 16px;
  padding: 14px;
}

.activity-item strong {
  font-size: 14px;
}

.activity-item span {
  color: var(--muted);
  font-size: 13px;
}

.activity-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

body.dark-mode .activity-item {
  background: #020617;
  border-color: #1e293b;
  border-left-color: #2563eb;
}
/* ================================
   SMART SCORING UI POLISH
================================ */

.priority-badge {
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.lead-score-badge {
  margin-left: 8px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.score-hot {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.score-warm {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.score-cold {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

.status-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Dark mode badge visibility fixes */

body.dark-mode .priority-badge {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
}

body.dark-mode .status-badge {
  background: #172554;
  color: #bfdbfe;
  border: 1px solid #2563eb;
}

body.dark-mode .score-hot {
  background: #7f1d1d;
  color: #fee2e2;
  border: 1px solid #ef4444;
}

body.dark-mode .score-warm {
  background: #78350f;
  color: #fef3c7;
  border: 1px solid #f59e0b;
}

body.dark-mode .score-cold {
  background: #075985;
  color: #e0f2fe;
  border: 1px solid #38bdf8;
}

body.dark-mode .lead-meta {
  color: #cbd5e1;
}

body.dark-mode .lead-meta strong {
  color: #f8fafc;
}

body.dark-mode .lead-card select {
  background: #020617;
  color: #f8fafc;
  border-color: #334155;
}

body.dark-mode .kanban-priority {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
}

/* Better label naming feel */

.priority-badge::before {
  content: "Priority: ";
  font-weight: 900;
}

.lead-score-badge::before {
  content: "Score: ";
  font-weight: 900;
}
/* ================================
   SETTINGS PAGE POLISH
================================ */

.settings-hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: white;
  border-radius: 32px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}

.settings-hero h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: 12px 0;
}

.settings-hero p {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  line-height: 1.7;
}

.settings-hero-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 26px;
  padding: 24px;
  display: grid;
  gap: 8px;
}

.settings-hero-card span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
}

.settings-hero-card strong {
  font-size: 26px;
}

.settings-hero-card small {
  width: fit-content;
  background: rgba(34,197,94,0.18);
  border: 1px solid rgba(187,247,208,0.35);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
}

.settings-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.settings-profile-card,
.billing-card {
  align-content: start;
}

.upgraded-settings-box {
  background: rgba(248,250,252,0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

body.dark-mode .upgraded-settings-box {
  background: rgba(2,6,23,0.48);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row span {
  color: var(--muted);
  font-weight: 800;
}

.settings-row strong {
  text-align: right;
}

.billing-actions {
  display: grid;
  gap: 10px;
}

.billing-actions .primary-btn {
  width: fit-content;
}

.billing-actions p {
  color: var(--muted);
  font-weight: 700;
}

.pricing-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.pricing-section-header h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.pricing-section-header p {
  color: var(--muted);
  font-weight: 700;
}

.upgraded-pricing-grid {
  align-items: stretch;
}

.upgraded-pricing-card {
  position: relative;
  overflow: hidden;
  align-content: start;
  min-height: 430px;
}

.upgraded-pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), transparent 42%);
  opacity: 0;
  transition: var(--transition);
}

.upgraded-pricing-card:hover::before {
  opacity: 1;
}

.upgraded-pricing-card:hover {
  transform: translateY(-4px);
}

.plan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.plan-status-active,
.plan-status-muted {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-status-active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.plan-status-muted {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.upgraded-pricing-card h2,
.upgraded-pricing-card p,
.upgraded-pricing-card ul,
.upgraded-pricing-card button,
.upgraded-pricing-card .plan-card-top {
  position: relative;
  z-index: 1;
}

.upgraded-pricing-card h2 small {
  font-size: 16px;
  color: var(--muted);
}

.upgraded-pricing-card ul {
  list-style: none;
  padding-left: 0;
}

.upgraded-pricing-card li {
  position: relative;
  padding-left: 26px;
}

.upgraded-pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.upgraded-pricing-card button {
  margin-top: auto;
}

body.dark-mode .plan-status-muted {
  background: #1e293b;
  color: #cbd5e1;
  border-color: #334155;
}

@media (max-width: 980px) {
  .settings-hero,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-hero h2 {
    font-size: 32px;
  }

  .settings-row {
    flex-direction: column;
    gap: 6px;
  }

  .settings-row strong {
    text-align: left;
  }
}
/* ================================
   FINAL PRICING CARD POLISH
================================ */

.upgraded-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  align-items: stretch;
}

.upgraded-pricing-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
  min-height: 520px;
  backdrop-filter: blur(14px);
}

.upgraded-pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 24px 50px rgba(37,99,235,0.18);
}

.upgraded-pricing-card h2 {
  font-size: 42px;
  line-height: 1;
  margin: 0;
}

.upgraded-pricing-card h2 small {
  font-size: 18px;
  color: var(--muted);
}

.upgraded-pricing-card p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.upgraded-pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.upgraded-pricing-card li {
  position: relative;
  padding-left: 28px;
  color: #e2e8f0;
  font-weight: 700;
}

.upgraded-pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 900;
}

.upgraded-pricing-card button {
  margin-top: auto;
}

.featured-plan {
  border: 1px solid rgba(59,130,246,0.45);
  background: linear-gradient(
    180deg,
    rgba(37,99,235,0.22),
    rgba(15,23,42,0.82)
  );
  transform: scale(1.03);
}

.featured-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top,
      rgba(59,130,246,0.18),
      transparent 55%
    );
  pointer-events: none;
}

.pricing-section-header {
  margin-top: 44px;
}

.pricing-section-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.pricing-section-header p {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .upgraded-pricing-grid {
    grid-template-columns: 1fr;
  }

  .featured-plan {
    transform: none;
  }
}