/* ================================================================
   POSTBING — Jalaran Design System
   Dark navy + cyan accent · Manrope + Inter · Pill buttons · Soft shadows
   ================================================================ */

/* Fonts loaded via <link> in base.html for better performance */

/* ---- Design Tokens ---- */
:root {
  /* ---- Color Palette ---- */
  --navy: #032127;
  --navy-light: #0a3540;
  --navy-lighter: #134752;
  --navy-50: rgba(3,33,39,0.5);
  --white: #ffffff;
  --black: #000000;
  --cyan: #7ed6df;
  --cyan-light: #c8f2f2;
  --cyan-pale: #edfafa;
  --cyan-25: rgba(126,214,223,0.25);
  --cyan-15: rgba(126,214,223,0.15);
  --cyan-10: rgba(126,214,223,0.10);
  --blue-pale: #edf2fa;
  --mint: #bff0cb;
  --mint-pale: #e8f9ed;
  --orange: #ffa534;
  --orange-pale: #fff3e0;
  --red: #ef4444;
  --green: #22c55e;
  --gray: #666666;
  --gray-light: #f7f7f7;
  --gray-200: #eaeaea;
  --gray-border: #e5e5e5;

  /* ---- Gradient & Glass ---- */
  --hero-gradient: linear-gradient(180deg, #032127 0%, #0a3540 65%, #fff 100%);
  --glow-cyan: radial-gradient(ellipse at center, rgba(126,214,223,0.15) 0%, transparent 70%);
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(126,214,223,0.12);
  --overlay-dark: rgba(0,0,0,0.75);

  /* ---- Typography ---- */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* ---- Spacing ---- */
  --section-y: 100px;
  --section-x: max(5vw, 24px);
  --content-max: 1200px;
  --content-narrow: 800px;
  --content-xnarrow: 600px;
  --card-padding: 32px;
  --card-gap: 24px;
  --grid-gap: 24px;
  --bento-gap: 20px;

  /* ---- Radii ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.14);
  --card-hover-shadow: 0 16px 40px rgba(3,33,39,0.12);

  /* ---- Layout ---- */
  --sidebar-width: 260px;
  --sidebar-collapsed: 68px;
  --topbar-height: 64px;
  --navbar-height: 72px;

  /* ---- Bootstrap Overrides ---- */
  --bs-primary: #032127;
  --bs-primary-rgb: 3, 33, 39;
  --bs-body-font-family: 'Inter', sans-serif;
}

/* ---- Base Reset ---- */
*, *::before, *::after {
  border-color: var(--gray-border);
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--cyan);
}

/* Display classes — for heroes & sections */
.display-hero {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.display-section {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.display-subsection {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-lg { font-size: 18px; line-height: 1.6; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-xs { font-size: 12px; line-height: 1.4; }

code, .font-mono, .stat-number {
  font-family: var(--font-mono);
}

::selection {
  background: var(--cyan-light);
  color: var(--navy);
}

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-size: 15px;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  letter-spacing: -0.01em;
}

.btn-primary,
.btn-neo-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover,
.btn-neo-primary:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--cyan-pale);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active,
.btn-neo-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary,
.btn-neo-secondary {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-secondary:hover,
.btn-neo-secondary:hover {
  background-color: var(--gray-light);
  border-color: var(--gray-200);
  color: var(--navy);
}

.btn-accent {
  background-color: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}
.btn-accent:hover {
  background-color: var(--cyan-light);
  border-color: var(--cyan-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger,
.btn-neo-danger {
  background-color: #e74c3c;
  color: var(--white);
  border-color: #e74c3c;
}
.btn-danger:hover,
.btn-neo-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  color: var(--white);
}

.btn-dark {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  border-radius: var(--radius-pill);
}
.btn-dark:hover {
  background-color: var(--navy-light);
  color: var(--cyan-pale);
  border-color: var(--navy-light);
}

.btn-outline-dark,
.btn-outline-secondary {
  background: transparent;
  border-color: var(--gray-200);
  color: var(--navy);
  border-radius: var(--radius-pill);
}
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

/* ---- Cards ---- */
.card {
  background-color: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 24px;
  font-weight: 600;
  background: transparent;
}

.card-body {
  padding: 24px;
}

.card-footer {
  border-top: 1px solid var(--gray-border);
  padding: 16px 24px;
  background: transparent;
}

/* Glass card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* Card hover lift */
.card-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

/* Metric tile (dashboard stats) */
.metric-tile {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-tile .metric-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.metric-tile .metric-label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.metric-tile .metric-trend { font-size: 13px; font-weight: 500; }
.metric-trend.up { color: var(--green); }
.metric-trend.down { color: var(--red); }

/* Bento card */
.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  transition: all 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--cyan-25);
}
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bento-gap);
}
.bento-grid .bento-wide { grid-column: span 2; }

/* Featured card (pricing, highlighted) */
.card-featured {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 24px var(--cyan-15), var(--shadow-lg);
  position: relative;
}

/* Glow orb */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--glow-cyan);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Border glow */
.border-glow {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px var(--cyan-25), inset 0 0 20px var(--cyan-15);
}

/* ---- Badges ---- */
.badge,
.badge-neo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: none;
  letter-spacing: 0.01em;
}

.badge-neo {
  background-color: var(--cyan-pale);
  color: var(--navy);
}

.badge.bg-success,
.badge-neo.bg-success {
  background-color: var(--mint) !important;
  color: #1a5c2a;
}

.badge.bg-danger {
  background-color: #fde8e8 !important;
  color: #c0392b;
}

.badge.bg-warning {
  background-color: #fff3cd !important;
  color: #856404;
}

.badge.bg-dark {
  background-color: var(--navy) !important;
  color: var(--white);
}

.badge.bg-secondary {
  background-color: var(--gray-light) !important;
  color: var(--gray);
}

.badge.bg-info {
  background-color: var(--cyan-pale) !important;
  color: var(--navy);
}

/* ---- Alerts ---- */
.alert,
.alert-neo {
  border-radius: var(--radius-sm);
  border: none;
  padding: 14px 20px;
  font-size: 14px;
}

.alert-success,
.alert-neo.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.alert-danger,
.alert-neo.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.alert-warning,
.alert-neo.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--orange);
}

.alert-info {
  background-color: var(--cyan-pale);
  color: var(--navy);
  border-left: 4px solid var(--cyan);
}

/* ---- Forms ---- */
.form-control,
.form-control-neo,
.form-select,
.form-select-neo {
  font-family: var(--font-body);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--navy);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-control-neo:focus,
.form-select:focus,
.form-select-neo:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-15);
  outline: none;
}

.form-control-lg,
.form-select-lg {
  padding: 12px 16px;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.form-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-check-input {
  border-radius: 4px;
  border: 1.5px solid var(--gray-200);
}
.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px var(--cyan-15);
}

.input-group .form-control {
  border-radius: 0;
}
.input-group > :first-child {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}
.input-group > :last-child {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

/* ---- Tables ---- */
.table,
.table-refined {
  font-family: var(--font-body);
  font-size: 14px;
}

.table thead th,
.table-refined thead th {
  background-color: var(--gray-light);
  color: var(--gray);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-border);
  white-space: nowrap;
}

.table tbody td,
.table-refined tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-border);
  vertical-align: middle;
  color: var(--navy);
}

.table tbody tr:hover,
.table-refined tbody tr:hover {
  background-color: var(--cyan-pale);
}

.table-hover > tbody > tr:hover > * {
  background-color: transparent;
  --bs-table-bg-state: var(--cyan-pale);
}

.table-dark thead {
  background-color: var(--navy);
  color: var(--white);
}
.table-dark thead th {
  background-color: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Modals ---- */
.modal-content,
.modal-content-neo {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  background-color: var(--white);
}

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

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid var(--gray-border);
  padding: 16px 24px;
}

.modal-backdrop {
  background-color: rgba(3, 33, 39, 0.6);
  backdrop-filter: blur(4px);
}

.btn-close:focus {
  box-shadow: 0 0 0 3px var(--cyan-15);
}

/* ---- Accordions ---- */
.accordion-item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 18px 24px;
  background-color: var(--white);
  color: var(--navy);
  border-radius: var(--radius-sm) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--cyan-pale);
  color: var(--navy);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px var(--cyan-15);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23032127'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--navy-lighter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Full logo (white) shown in expanded sidebar */
.sidebar-logo-full {
  height: 30px;
}

/* Icon emblem shown only in collapsed sidebar */
.sidebar-logo-icon {
  height: 26px;
  display: none;
  filter: brightness(0) invert(1);
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.sidebar-collapse-btn:hover {
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  position: relative;
}

.sidebar-link:hover {
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.sidebar-link.active {
  background-color: rgba(126,214,223,0.12);
  color: var(--cyan);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background-color: var(--cyan);
}

.sidebar-link i {
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-section {
  padding: 8px 12px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--navy-lighter);
  margin: 8px 12px;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--navy-lighter);
  flex-shrink: 0;
}

.sidebar-plan-widget {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--navy-lighter);
  border-radius: 10px;
  padding: 12px;
}

.sidebar-plan-widget .plan-name {
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
  color: var(--white);
}

.sidebar-plan-widget .plan-usage {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.sidebar-plan-widget .progress {
  height: 4px;
  border-radius: 2px;
  background-color: var(--navy-light);
  margin-top: 8px;
  overflow: hidden;
}

.sidebar-plan-widget .progress-bar {
  background-color: var(--cyan);
  border-radius: 2px;
}

.sidebar-upgrade-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}
.sidebar-upgrade-link:hover {
  color: var(--cyan-light);
  text-decoration: underline;
}

/* Sidebar user profile */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.sidebar-user:hover {
  background-color: rgba(255,255,255,0.05);
}
.sidebar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--cyan);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.sidebar-user-email {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-logout {
  color: rgba(255,255,255,0.3);
  font-size: 15px;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-user-logout:hover {
  color: var(--red);
  background-color: rgba(239,68,68,0.1);
}

/* Expand button — hidden by default, shown only when collapsed */
.sidebar-expand-btn {
  display: none;
  background: none;
  border: 1px solid var(--navy-lighter);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  transition: background 0.15s, color 0.15s;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-size: 14px;
}
.sidebar-expand-btn:hover {
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

/* ---- Mobile Header (shown only on small screens) ---- */
.mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1020;
  flex-shrink: 0;
}
.mobile-header-logo {
  display: flex;
  align-items: center;
}
.mobile-header-logo img {
  height: 24px;
}

/* ---- Layouts ---- */
.layout-authenticated {
  display: flex;
  min-height: 100vh;
}

.layout-authenticated .content-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
  background-color: #f5f5f7;
}

.layout-authenticated .content-main {
  flex: 1;
  padding: 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Sidebar collapsed */
.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}
.sidebar-collapsed .sidebar .sidebar-link span,
.sidebar-collapsed .sidebar .sidebar-section,
.sidebar-collapsed .sidebar .sidebar-plan-widget,
.sidebar-collapsed .sidebar .sidebar-upgrade-link,
.sidebar-collapsed .sidebar .sidebar-user-info,
.sidebar-collapsed .sidebar .sidebar-user-logout {
  display: none;
}
.sidebar-collapsed .sidebar .sidebar-header {
  justify-content: center;
  padding: 12px 8px;
}
.sidebar-collapsed .sidebar .sidebar-logo {
  justify-content: center;
}
.sidebar-collapsed .sidebar .sidebar-logo-full {
  display: none;
}
.sidebar-collapsed .sidebar .sidebar-logo-icon {
  display: block;
}
.sidebar-collapsed .sidebar .sidebar-collapse-btn {
  display: none;
}
.sidebar-collapsed .sidebar .sidebar-expand-btn {
  display: flex;
}
.sidebar-collapsed .sidebar .sidebar-link {
  justify-content: center;
  padding: 10px;
}
.sidebar-collapsed .sidebar .sidebar-link.active::before {
  display: none;
}
.sidebar-collapsed .sidebar .sidebar-link i {
  font-size: 19px;
}
.sidebar-collapsed .sidebar .sidebar-nav {
  padding: 8px;
  align-items: center;
}
.sidebar-collapsed .sidebar .sidebar-divider {
  width: 32px;
  margin: 8px auto;
}
.sidebar-collapsed .sidebar .sidebar-footer {
  padding: 8px;
}
.sidebar-collapsed .sidebar .sidebar-user {
  justify-content: center;
  padding: 8px;
  margin-top: 0;
}
.sidebar-collapsed .content-area {
  margin-left: var(--sidebar-collapsed);
}

/* Public layout */
.layout-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.layout-public .content-main {
  flex: 1;
}

/* ---- Public Navbar ---- */
.navbar-public {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  background-color: rgba(255,255,255,0.95);
}

.navbar-public .nav-link {
  font-weight: 500;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  transition: all 0.15s ease;
}
.navbar-public .nav-link:hover {
  background-color: var(--gray-light);
  color: var(--navy);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy) !important;
  text-decoration: none;
}

/* Navbar hero — transparent, floating over dark hero */
.navbar-hero {
  position: fixed;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}
.navbar-hero .nav-link {
  color: rgba(255,255,255,0.7);
}
.navbar-hero .nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.navbar-hero .navbar-brand {
  color: var(--white) !important;
}
.navbar-hero .navbar-brand img {
  filter: brightness(0) invert(1);
}
.navbar-hero .btn-secondary {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  background: transparent;
}
.navbar-hero .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}
.navbar-hero .btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}
.navbar-hero.scrolled {
  background: rgba(3,33,39,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.06);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .mobile-header {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  }
  .sidebar-collapse-btn {
    display: none;
  }
  .layout-authenticated .content-area {
    margin-left: 0;
  }
  /* Reset sidebar-collapsed for mobile — always show full sidebar when toggled */
  .sidebar-collapsed .content-area {
    margin-left: 0;
  }
  .sidebar-collapsed .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }
  .sidebar-collapsed .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-collapsed .sidebar .sidebar-link span,
  .sidebar-collapsed .sidebar .sidebar-section,
  .sidebar-collapsed .sidebar .sidebar-plan-widget,
  .sidebar-collapsed .sidebar .sidebar-upgrade-link,
  .sidebar-collapsed .sidebar .sidebar-user-info,
  .sidebar-collapsed .sidebar .sidebar-user-logout {
    display: revert;
  }
  .sidebar-collapsed .sidebar .sidebar-link {
    justify-content: flex-start;
    padding: 9px 12px;
  }
  .sidebar-collapsed .sidebar .sidebar-link.active::before {
    display: block;
  }
  .sidebar-collapsed .sidebar .sidebar-header {
    justify-content: flex-start;
    padding: 12px 16px;
  }
  .sidebar-collapsed .sidebar .sidebar-nav {
    padding: 12px;
    align-items: stretch;
  }
  .sidebar-collapsed .sidebar .sidebar-footer {
    padding: 12px;
  }
  .sidebar-collapsed .sidebar .sidebar-user {
    justify-content: flex-start;
    padding: 10px;
  }
  .sidebar-collapsed .sidebar .sidebar-logo-full {
    display: block;
  }
  .sidebar-collapsed .sidebar .sidebar-logo-icon {
    display: none;
  }
  .sidebar-collapsed .sidebar .sidebar-expand-btn {
    display: none;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 33, 39, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1035;
    display: none;
  }
  .sidebar-backdrop.show {
    display: block;
  }
  .layout-authenticated .content-main {
    padding: 24px 16px;
  }
}

@media (max-width: 767.98px) {
  .layout-authenticated .content-main {
    padding: 20px 16px;
  }
}

.sidebar-hamburger {
  background: none;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-hamburger:hover {
  background-color: var(--gray-light);
}

/* ---- Homepage ---- */

/* Hero — Full-viewport dark aurora */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px var(--section-x) 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(126,214,223,0.2), transparent),
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(126,214,223,0.07), transparent),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(34,197,94,0.04), transparent),
    linear-gradient(180deg, #011418 0%, #032127 40%, #0a3540 100%);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(126,214,223,0.06);
  border: 1px solid rgba(126,214,223,0.18);
  border-radius: var(--radius-pill);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.6s ease both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2s ease-in-out infinite;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7.5vw, 84px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-section h1 .text-accent {
  background: linear-gradient(135deg, var(--cyan) 0%, #a8edea 50%, #e0f7fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 580px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-section .btn-accent {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 32px rgba(126,214,223,0.3);
}
.hero-section .btn-accent:hover {
  background: var(--cyan-light);
  border-color: var(--cyan-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(126,214,223,0.4);
}
.hero-section .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}
.hero-section .btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* Trust bar — pill with avatars */
.trust-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  margin-bottom: 64px;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.avatar-stack { display: flex; }
.avatar-stack .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(3,33,39,0.9);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--navy);
}
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar:nth-child(1) { background: var(--cyan); }
.avatar-stack .avatar:nth-child(2) { background: var(--mint); }
.avatar-stack .avatar:nth-child(3) { background: var(--cyan-light); }
.avatar-stack .avatar:nth-child(4) { background: var(--orange); color: var(--white); }
.trust-bar .trust-text {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.3;
}
.trust-bar .trust-text strong { color: rgba(255,255,255,0.85); }

/* Hero Dashboard Mockup — perspective tilt + ambient glow */
.hero-mockup-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  perspective: 1200px;
  animation: fadeInUp 0.9s ease 0.5s both;
}
.hero-mockup-wrapper .glow-orb {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  opacity: 0.45;
  animation: pulseGlow 6s ease-in-out infinite;
  background: radial-gradient(ellipse, rgba(126,214,223,0.3) 0%, transparent 70%);
}

.hero-mockup {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(126,214,223,0.04),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
  transform: rotateX(2deg);
  transform-origin: center bottom;
}

.mockup-chrome {
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-url {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  margin-left: 8px;
}

.mockup-body {
  padding: 24px;
  background: rgba(3, 33, 39, 0.6);
  backdrop-filter: blur(8px);
}
.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.mockup-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  animation: floatUp 4s ease-in-out infinite;
}
.mockup-metric:nth-child(2) { animation-delay: 0.7s; }
.mockup-metric:nth-child(3) { animation-delay: 1.4s; }
.mockup-metric-label {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}
.mockup-metric-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.mockup-metric-trend { font-size: 12px; font-weight: 600; margin-top: 4px; }
.mockup-metric-trend.up { color: #22c55e; }
.mockup-metric-trend.down { color: #ef4444; }

.mockup-chart {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.mockup-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(126,214,223,0.15), rgba(126,214,223,0.45));
  animation: growBar 2s ease both;
}
.mockup-bar:nth-child(1)  { height: 45%; animation-delay: 0.6s; }
.mockup-bar:nth-child(2)  { height: 60%; animation-delay: 0.7s; }
.mockup-bar:nth-child(3)  { height: 35%; animation-delay: 0.8s; }
.mockup-bar:nth-child(4)  { height: 70%; animation-delay: 0.9s; }
.mockup-bar:nth-child(5)  { height: 55%; animation-delay: 1.0s; }
.mockup-bar:nth-child(6)  { height: 80%; animation-delay: 1.1s; }
.mockup-bar:nth-child(7)  { height: 65%; animation-delay: 1.2s; }
.mockup-bar:nth-child(8)  { height: 90%; animation-delay: 1.3s; }
.mockup-bar:nth-child(9)  { height: 75%; animation-delay: 1.4s; }
.mockup-bar:nth-child(10) { height: 95%; animation-delay: 1.5s; background: linear-gradient(to top, var(--cyan), rgba(126,214,223,0.7)); }

.mockup-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.mockup-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.22);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mockup-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.025);
}
.mockup-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-mono);
}
.mockup-rank-badge.top3 { background: rgba(34,197,94,0.15); color: #22c55e; }
.mockup-rank-badge.top10 { background: rgba(126,214,223,0.15); color: var(--cyan); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes growBar {
  from { height: 0; opacity: 0; }
  to { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero responsive */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 120px var(--section-x) 60px;
  }
  .hero-mockup { transform: none; }
  .hero-mockup-wrapper { max-width: 100%; }
  .mockup-metrics { gap: 10px; }
  .mockup-metric-value { font-size: 20px; }
}
@media (max-width: 767.98px) {
  .hero-section { padding: 100px 16px 40px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .mockup-chart { height: 80px; }
  .mockup-table { display: none; }
  .mockup-metric { padding: 12px; }
  .mockup-metric-value { font-size: 16px; }
  .mockup-metric-label { font-size: 9px; }
  .trust-bar { padding: 8px 16px; gap: 10px; }
}

/* ---- Sections ---- */
.section { padding: var(--section-y) var(--section-x); }
.section-sm { padding: 60px var(--section-x); }
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-header p {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.6;
}

/* Dark section variant */
.section-dark {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header h2 .text-accent {
  background: linear-gradient(135deg, var(--cyan), #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-dark .section-header p { color: rgba(255,255,255,0.5); }

/* Dark bento cards */
.section-dark .bento-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: var(--white);
  transition: all 0.3s ease;
}
.section-dark .bento-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(126,214,223,0.25);
  box-shadow: 0 0 40px rgba(126,214,223,0.06);
  transform: translateY(-4px);
}
.section-dark .bento-card h4 { color: var(--white); }
.section-dark .bento-card p { color: rgba(255,255,255,0.45) !important; }
.section-dark .bento-icon {
  background: rgba(126,214,223,0.08) !important;
  color: var(--cyan) !important;
}

/* Feature Splits */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-split-text { max-width: 480px; }
.feature-split-text .feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.feature-split-text h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.feature-split-text p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--navy);
}
.feature-list li i {
  color: var(--cyan);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.feature-split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-border);
  background: var(--gray-light);
}
.feature-split-visual img,
.feature-split-visual video {
  width: 100%;
  display: block;
}
@media (max-width: 991.98px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .feature-split.reverse { direction: ltr; }
  .feature-split-text { max-width: 100%; margin: 0 auto; }
  .feature-list { display: inline-block; text-align: left; }
}

/* Stats Section — glass cards on dark gradient */
.stats-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(126,214,223,0.06), transparent),
    var(--navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
.stat-glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.stat-glass:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(126,214,223,0.2);
  transform: translateY(-4px);
}
.stat-glass .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  display: block;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-glass .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* Testimonials — featured layout (large + stack) */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.testimonial-featured {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.testimonial-featured::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(126,214,223,0.15), transparent 70%);
  pointer-events: none;
}
.testimonial-featured .testimonial-quote {
  font-size: 22px;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.testimonial-featured .testimonial-quote::before {
  content: '\201C';
  font-size: 72px;
  font-family: Georgia, serif;
  color: var(--cyan);
  opacity: 0.25;
  position: absolute;
  top: -20px;
  left: -8px;
  line-height: 1;
}
.testimonial-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  color: var(--orange);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-card .testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 20px;
  flex: 1;
}
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  flex-shrink: 0;
}
.testimonial-info .testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.testimonial-info .testimonial-role {
  font-size: 13px;
  color: var(--gray);
}
@media (max-width: 767.98px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-featured { padding: 32px; }
  .testimonial-featured .testimonial-quote { font-size: 18px; }
}

/* CTA Section — aurora gradient */
.cta-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(126,214,223,0.12), transparent),
    var(--navy);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
.cta-section h2 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.cta-section p {
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.cta-section .btn-accent {
  position: relative;
  z-index: 1;
}
.cta-section .cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* Auth pages — split layout */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-brand {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  text-align: center;
}
.auth-brand h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.auth-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  max-width: 320px;
  line-height: 1.6;
}
.auth-brand .brand-features {
  margin-top: 40px;
  text-align: left;
}
.auth-brand .brand-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 6px 0;
}
.auth-brand .brand-features li i {
  color: var(--cyan);
  font-size: 16px;
}

.auth-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--white);
}
.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 991.98px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-area { min-height: 100vh; }
}

/* ---- Dropdowns ---- */
.dropdown-menu {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  background-color: var(--white);
}
.dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--navy);
}
.dropdown-item:hover {
  background-color: var(--cyan-pale);
  color: var(--navy);
}
.dropdown-divider {
  border-color: var(--gray-border);
}

/* ---- Progress Bars ---- */
.progress {
  height: 6px;
  border-radius: 3px;
  background-color: var(--gray-light);
  overflow: hidden;
}
.progress-bar {
  background-color: var(--cyan);
  border-radius: 3px;
}

/* ---- Quick Access Grid ---- */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.quick-tile {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: var(--navy);
}
.quick-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--cyan-25);
  color: var(--navy);
}
.quick-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.quick-tile h4 { font-size: 15px; font-weight: 600; margin-bottom: 0; }
.quick-tile p { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.4; }

/* ---- Project Grid ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.project-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.project-card-add {
  border: 2px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  cursor: pointer;
  color: var(--gray);
  text-align: center;
}
.project-card-add:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background-color: var(--cyan-10);
}

/* ---- Pricing Grid ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  max-width: 800px;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: auto;
}
.footer h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
}
.footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 4px 0;
}
.footer a:hover {
  color: var(--cyan);
}
.footer-bottom {
  border-top: 1px solid var(--navy-lighter);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---- Pricing Cards ---- */
.pricing-card {
  background-color: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.pricing-card.pricing-featured {
  border-color: var(--cyan);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--cyan);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-card .pricing-price {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
}
.pricing-card .pricing-period {
  font-size: 15px;
  color: var(--gray);
}
.pricing-card .pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.pricing-card .pricing-features li {
  padding: 6px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}
.pricing-card .pricing-features li i {
  color: var(--cyan);
  font-size: 16px;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 60px 32px;
  color: var(--gray);
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: var(--gray-200);
}
.empty-state p {
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--gray);
}

/* ---- Enhanced Empty State Card ---- */
.empty-state-card {
  text-align: center;
  padding: 80px 32px;
  background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
}
.empty-state-card .empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}
.empty-state-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-state-card p {
  font-size: 15px;
  color: var(--gray);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ---- Card Accent Top ---- */
.card-accent-top {
  border-top: 3px solid var(--cyan);
}

/* ---- Badge Default (no bg-* class) ---- */
.badge:not([class*="bg-"]) {
  background-color: var(--navy);
  color: var(--white);
}

/* ---- Progress Bar Refinement ---- */
.progress {
  height: 6px;
  border-radius: 3px;
  background-color: var(--gray-200);
}
.progress-bar {
  background-color: var(--cyan);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ---- Subtle entrance for content ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.content-main > *:first-child {
  animation: fadeIn 0.3s ease both;
}

/* ---- Utility Overrides ---- */
.text-primary { color: var(--navy) !important; }
.bg-primary { background-color: var(--navy) !important; }
.border-primary { border-color: var(--navy) !important; }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: var(--orange) !important; }
.text-info { color: var(--cyan) !important; }
.text-muted { color: var(--gray) !important; }
.bg-light { background-color: var(--gray-light) !important; }
.bg-transparent { background-color: transparent !important; }
.border-2 { border-width: 1px !important; }
.border-dark { border-color: var(--gray-border) !important; }
.fw-bolder, .fw-black { font-weight: 700 !important; }
.rounded-3 { border-radius: var(--radius-sm) !important; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; margin-bottom: 0; }
.breadcrumb-item a { color: var(--gray); text-decoration: none; }
.breadcrumb-item.active { color: var(--navy); }

/* Nav tabs */
.nav-tabs { border-bottom: 1px solid var(--gray-border); }
.nav-tabs .nav-link {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 500;
  color: var(--gray);
  font-size: 14px;
}
.nav-tabs .nav-link.active {
  color: var(--navy);
  border-color: var(--gray-border) var(--gray-border) var(--white);
  font-weight: 600;
}

/* Code blocks */
.bg-dark.text-light.p-3 {
  border-radius: var(--radius-sm) !important;
  background-color: var(--navy) !important;
}

/* Pagination */
.pagination .page-link,
.pagination .btn {
  border-radius: var(--radius-pill);
}

/* Spinner */
.spinner-border { color: var(--cyan); }

.tooltip-inner {
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  background-color: var(--navy);
}

/* ---- New Component Responsive ---- */
@media (max-width: 1199.98px) {
  .display-hero { font-size: 52px; }
  .display-section { font-size: 40px; }
  :root { --section-y: 80px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid .bento-wide { grid-column: span 2; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .display-hero { font-size: 38px; }
  .display-section { font-size: 32px; }
  .display-subsection { font-size: 28px; }
  :root { --section-y: 60px; --card-padding: 20px; --grid-gap: 16px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid .bento-wide { grid-column: span 1; }
  .project-grid { grid-template-columns: 1fr; }
  .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .display-hero { font-size: 32px; }
  .quick-access-grid { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ---- Public Page Header (subpages: tools, blog, pricing, legal) ---- */
.page-header {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(126,214,223,0.08), transparent),
    var(--gray-light);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--gray-border);
}
.page-header .container-xl {
  max-width: 1200px;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}
.page-header .page-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Auth pages — hide public chrome when auth-split is used */
.layout-public:has(.auth-split) .navbar-public,
.layout-public:has(.auth-split) .footer {
  display: none;
}
.layout-public:has(.auth-split) .content-main {
  display: flex;
  flex: 1;
}
.layout-public:has(.auth-split) {
  min-height: 100vh;
}

/* ---- Public Page Content Section ---- */
.page-content {
  padding: 48px 0 64px;
}
.page-content .container-xl {
  max-width: 1200px;
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 40px 0 32px;
  }
  .page-content {
    padding: 32px 0 48px;
  }
}
