/* ==========================================================================
   CHARTERED BUDDY - Next-Gen Autonomous CA Firm Operating System
   Design System & Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Tokens */
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-surface: #131c2e;
  --bg-surface-elevated: #1a253c;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.25);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-accent: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-border: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #020617;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.5);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.3);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.3);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --sidebar-width: 270px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(99, 102, 241, 0.08), transparent);
  background-attachment: fixed;
}

/* Typography utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #38bdf8;
}

code,
.code-pill {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: #38bdf8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Glowing Border effect */
.glow-card {
  position: relative;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(99, 102, 241, 0.2), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  color: #ffffff;
}

.btn-emerald {
  background: var(--grad-emerald);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

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

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-portal {
  font-size: 0.72rem;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-portal.gst {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.btn-portal.gst:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--accent-emerald);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.btn-portal.pan {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.btn-portal.pan:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.btn-portal.tan {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.btn-portal.tan:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}


.btn-portal.pf {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.btn-portal.pf:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-amber);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.btn-portal.esic {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.btn-portal.esic:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: var(--accent-rose);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

.btn-portal.edit {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}

.btn-portal.edit:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Pulse status dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

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

.pulse-dot.online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  background: rgba(15, 23, 42, 0.95);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
}

/* Search input with icon */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  padding-left: 42px;
  padding-right: 80px;
}

.search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.custom-table th {
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
}

.custom-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: background var(--transition-fast);
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Layout: Dashboard Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform var(--transition-smooth);
}

.sidebar-brand {
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.sidebar-brand:hover {
  background: rgba(255, 255, 255, 0.02);
}

.brand-logo {
  height: auto;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

img.brand-logo {
  height: 46px;
  width: auto;
  max-width: 240px;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.sidebar-brand:hover .brand-logo,
.brand-logo:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px -2px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

img.brand-logo:hover {
  box-shadow: none;
  filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.35));
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
}

.brand-name>span:first-child {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-title-text {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.brand-text-chartered {
  color: #ffffff;
  font-weight: 800;
}

.brand-text-buddy {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.brand-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.63rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.brand-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  box-sizing: border-box;
  text-decoration: none !important;
  user-select: none;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-decoration: none !important;
}

.nav-link.active {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.15);
  text-decoration: none !important;
}

.nav-link svg {
  flex-shrink: 0;
  transition: stroke var(--transition-fast);
}

.nav-link.active svg {
  stroke: var(--accent-cyan);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 15, 25, 0.6);
}

.ca-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Main Content Area */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Top Header */
.app-header {
  height: var(--header-height);
  background: rgba(13, 18, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-left {
  flex: 1;
  max-width: 480px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* Main Page Container */
.page-container {
  padding: 18px 22px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Hero / Metrics Banner */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Action Tiles */
.quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.action-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.action-tile:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.action-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.action-tile-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Top Menu Bar */
.top-menu-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 18, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.top-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.top-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateY(-1px);
}

.top-menu-item.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

/* Tab Panels */
.tab-navigation {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 650px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--transition-fast);
}

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

.modal-card > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(10, 15, 25, 0.95);
  flex-shrink: 0;
}

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

.toast {
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: #062b1f;
}

.toast.info {
  border-color: rgba(6, 182, 212, 0.4);
  background: #082836;
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: #332007;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Portal Launcher Box inside Modal */
.portal-launcher-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
}

.portal-credential-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Top Menu Bar Navigation */
.top-menu-bar-container {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 70px;
  z-index: 30;
  padding: 8px 32px 0 32px;
}

.top-menu-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.top-menu-bar::-webkit-scrollbar {
  display: none;
}

.top-menu-item {
  padding: 10px 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  user-select: none;
  text-decoration: none;
}

.top-menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(6, 182, 212, 0.4);
}

.top-menu-item.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.02) 100%);
  border-bottom-color: var(--accent-cyan);
  box-shadow: inset 0 -2px 0 var(--accent-cyan);
}

.top-menu-item.active svg {
  color: var(--accent-cyan);
}

.top-menu-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-weight: 700;
}

.top-menu-item.active .top-menu-badge {
  background: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.top-menu-badge.alert {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.top-menu-badge.pulse {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

/* Sidebar Toggle Hamburger Button in Header */
.sidebar-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 12px;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.mobile-open {
    transform: translateX(0);
  }

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

  .sidebar-toggle-btn {
    display: inline-flex;
  }

  .top-menu-bar-container {
    padding: 6px 16px 0 16px;
    top: 64px;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 18px;
  }

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

  .header-actions .btn span {
    display: none;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.portal-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 3px;
}

/* ==========================================================================
   SaaS Pricing & Subscription System
   ========================================================================== */
.pricing-section {
  padding: 80px 24px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.pricing-card-wrapper {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.pricing-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(13, 18, 31, 0.98) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 25px 60px -12px rgba(6, 182, 212, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #10b981);
}

.pricing-badge-popular {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 8px 0;
}

.pricing-currency {
  font-size: 2.2rem;
  font-weight: 700;
  color: #38bdf8;
}

.pricing-amount {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}

.pricing-period {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-original-strike {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 12px;
}

.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px 24px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.pricing-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.pricing-admin-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.pricing-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CA Firm Dashboard Side Dedicated To-Do Column (Zero-Overlap Layout)
   ========================================================================== */
.dashboard-split-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.dashboard-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.25s ease;
}

.dashboard-side-col {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.dashboard-side-col.collapsed {
  display: none !important;
}

.todo-reopen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-full);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.todo-reopen-btn:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--accent-cyan);
  color: #fff;
}

.todo-side-dock {
  width: 100%;
  background: rgba(13, 18, 31, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 15px rgba(6, 182, 212, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 105px);
}

.todo-side-dock.minimized .todo-side-form,
.todo-side-dock.minimized .todo-side-filters,
.todo-side-dock.minimized .todo-side-body {
  display: none !important;
}

@media (max-width: 1100px) {
  .dashboard-split-layout {
    flex-direction: column;
  }

  .dashboard-side-col {
    width: 100%;
    position: static;
    max-height: none;
  }
}

.todo-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.08));
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.todo-side-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-side-title {
  font-size: 0.925rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.todo-side-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.todo-mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.todo-mini-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #fff;
  border-color: var(--accent-cyan);
}

.todo-side-form {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.todo-side-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.todo-side-input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.todo-side-input:focus {
  border-color: var(--accent-cyan);
}

.todo-side-select {
  flex-shrink: 0;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  color: #94a3b8;
  font-size: 0.725rem;
  outline: none;
  cursor: pointer;
}

.todo-side-add-btn {
  background: var(--accent-cyan);
  border: none;
  color: #07090e;
  width: 32px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
  transition: all var(--transition-fast);
}

.todo-side-add-btn:hover {
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.todo-side-add-btn:active {
  transform: translateY(1px);
}

.todo-side-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 9px 12px;
  background: rgba(11, 15, 25, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.todo-side-filters::-webkit-scrollbar {
  height: 3px;
  display: block;
}

.todo-side-filters::-webkit-scrollbar-track {
  background: transparent;
}

.todo-side-filters::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.todo-side-filters::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.5);
}

.todo-side-filter-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s ease;
}

.todo-side-filter-pill:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.todo-side-filter-pill.active {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.5);
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.todo-side-body {
  max-height: 340px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.todo-side-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.todo-side-card:hover {
  background: rgba(26, 36, 56, 0.85);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateX(-2px);
}

.todo-side-card.deleting-anim {
  opacity: 0 !important;
  transform: scale(0.9) translateX(20px) !important;
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
}

.todo-side-card.deleting-anim .todo-side-card-title {
  text-decoration: line-through;
  color: #34d399;
}

.todo-side-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.todo-side-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(6, 182, 212, 0.6);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.todo-side-check:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
}

.todo-side-check.checked {
  background: #10b981;
  border-color: #10b981;
}

.todo-side-card-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
  word-break: break-word;
}

.todo-side-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.todo-side-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.todo-side-badge.urgent {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.todo-side-badge.medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.todo-side-badge.low {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.todo-side-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.todo-side-del-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
}

/* ==========================================================================
   Homepage Landing Section Grids & Responsive Polish
   ========================================================================== */
.home-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-nav-link:hover,
.home-nav-link.accent {
  color: var(--accent-cyan);
  font-weight: 600;
}

.home-hero-section {
  position: relative;
  padding: 76px 24px 56px;
  overflow: hidden;
  text-align: center;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 22px;
}

.home-hero-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-hero-title {
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.16;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.home-hero-gradient-text {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-lead {
  font-size: 1.12rem;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto 14px;
  line-height: 1.6;
  font-weight: 500;
}

.home-hero-sub {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-cta-primary {
  box-shadow: 0 8px 26px rgba(6, 182, 212, 0.35);
}

.hero-cta-secondary-row {
  display: contents;
}

.home-deadlines-strip {
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-deadlines-strip #due-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
}

.home-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

@media (max-width: 1200px) {
  .home-pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (min-width: 861px) {
  .home-features-grid > article:nth-child(5) {
    grid-column: span 2;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }
}

.home-feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-feature-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-bottom: 24px;
}

.home-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .home-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {

  .desktop-nav,
  .home-nav-links {
    display: none !important;
  }

  .home-features-grid,
  .home-comparison-grid,
  .home-onboarding-grid,
  .home-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-header-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  img.brand-logo {
    height: 26px;
    max-width: 120px;
    object-fit: contain;
  }

  .home-header-actions {
    display: flex;
    align-items: center;
    gap: 6px !important;
  }

  .home-header-actions .btn {
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
  }

  .home-header-actions .btn svg {
    display: none !important;
  }

  .hide-mobile,
  .desktop-text {
    display: none !important;
  }

  .home-hero-section {
    padding: 28px 16px 24px !important;
  }

  .home-hero-badge {
    padding: 5px 12px !important;
    margin-bottom: 14px !important;
    max-width: 100%;
  }

  .home-hero-badge-text {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    letter-spacing: 0.02em !important;
  }

  .home-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.22 !important;
    margin-bottom: 12px !important;
  }

  .home-hero-lead {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }

  .home-hero-sub {
    font-size: 0.84rem !important;
    line-height: 1.48 !important;
    margin-bottom: 22px !important;
  }

  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto 28px !important;
    gap: 10px !important;
  }

  .hero-cta-primary {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 18px !important;
    font-size: 0.96rem !important;
    border-radius: 10px !important;
  }

  .hero-cta-secondary-row {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-cta-secondary-row .hero-cta-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 11px 8px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
  }

  .home-pillars-grid,
  .home-feature-highlights {
    grid-template-columns: 1fr;
  }

  .home-feature-card {
    padding: 24px 20px;
  }

  .home-deadlines-strip {
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .home-deadlines-strip #due-date-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    width: 100% !important;
    font-size: 0.8rem !important;
  }

  .pricing-card {
    padding: 28px 20px !important;
  }

  .pricing-cta-btn {
    font-size: 0.88rem !important;
    padding: 12px 10px !important;
    white-space: normal !important;
  }
  .pricing-cta-btn span {
    white-space: normal !important;
    display: inline-block !important;
  }
}

.pricing-cta-btn {
  white-space: normal !important;
  text-align: center !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}

@media (max-width: 380px) {
  .home-deadlines-strip #due-date-list {
    grid-template-columns: 1fr !important;
  }

  .hero-cta-secondary-row .hero-cta-btn {
    font-size: 0.78rem !important;
    padding: 10px 6px !important;
  }
}