:root {
  --brand-blue: #2d67f6;
  --brand-blue-deep: #1e3a8a;
  --brand-green: #1faa79;
  --brand-gold: #d29a18;
  --bg-soft: #f4f7fb;
  --panel: rgba(255,255,255,0.9);
  --panel-strong: rgba(255,255,255,0.96);
  --border-soft: rgba(148,163,184,0.2);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

body {
  background: linear-gradient(180deg, #f4f7fb 0%, #edf3ff 100%);
  color: #1d2434;
  font-family: Inter, "Segoe UI", sans-serif;
}

.hero-shell {
  padding: 2rem 0 1rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(93, 120, 255, 0.2), transparent 32%), linear-gradient(135deg, #101828 0%, #16254a 44%, #101827 100%);
  border-radius: 32px;
  padding: 1.8rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 30%, rgba(116, 219, 255, 0.12));
  pointer-events: none;
}

.hero-panel > .row {
  position: relative;
  z-index: 1;
}

.badge-hero {
  background: rgba(96, 165, 250, 0.2);
  color: #dfeeff;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-title {
  color: #f8fbff;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  max-width: 620px;
}

.hero-subtitle {
  max-width: 620px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 1.25rem;
}

.social-proof {
  color: rgba(224, 232, 240, 0.8);
  margin-top: 1.6rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-row span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.dashboard-preview {
  position: relative;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 1.2rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.35);
}

.preview-topbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.preview-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.24);
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #dbeafe;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.mini-card {
  background: linear-gradient(135deg, rgba(44, 92, 245, 0.22), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 16px;
  padding: 1rem;
  color: #f8fbff;
}

.mini-card.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(52, 211, 153, 0.08));
}

.mini-card strong {
  font-size: 1.5rem;
  display: block;
}

.mini-card small {
  color: rgba(255,255,255,0.75);
}

.preview-chart {
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.bars {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  height: 170px;
}

.bars span {
  flex: 1;
  background: linear-gradient(180deg, #6ea8fe, #3b82f6);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 18px rgba(59,130,246,0.22);
}

.preview-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.line-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
}

.trust-bar {
  margin: 1rem 0 2rem;
}

.trust-bar-inner {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.trust-bar-inner > span {
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.brand-row span {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  color: #334155;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
}

.country-flags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.country-flags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.country-flags span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.24rem 0.5rem 0.24rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(248,250,252,0.8));
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.country-flags span:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.country-flags .flag {
  font-size: 0.82rem;
  line-height: 1;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 4rem;
}

.stat-box {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #111827;
}

.stat-box span {
  color: #64748b;
  font-size: 0.9rem;
}

.feature-section,
.split-section,
.testimonials {
  padding: 1.5rem 0 4rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 0;
}

/* Longer headings need a smaller ceiling to stay on one line at common
   desktop widths instead of wrapping awkwardly. */
.section-heading h2.section-heading-tight {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}

.feature-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf0ff, #eafaf4);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--brand-blue);
  border: 1px solid rgba(45,103,246,0.1);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h4 {
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.feature-card p,
.quote-card,
.check-list {
  color: #475569;
  line-height: 1.7;
}

.feature-panel {
  padding: 2rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.compact-dashboard {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(242,247,255,0.85));
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.pill-positive {
  background: rgba(16,185,129,0.12);
  color: #067b59;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148,163,184,0.12);
}

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

.compact-row small {
  display: block;
  color: #64748b;
}

.compact-row strong {
  font-size: 1.35rem;
}

.delta {
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.delta.up {
  background: rgba(16,185,129,0.12);
  color: #0d7a59;
}

.delta.down {
  background: rgba(239,68,68,0.12);
  color: #b91c1c;
}

.legal-shell {
  padding: 1.5rem 0 4rem;
}

.legal-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(15,23,42,0.04);
}

.legal-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.legal-card p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.quote-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  margin: 0;
  min-height: 210px;
}

.quote-card footer {
  margin-top: 1.25rem;
  color: #0f172a;
  font-weight: 700;
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.quote-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfe9ff, #e0f7ef);
  color: var(--brand-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.cta-section {
  padding: 1rem 0 4rem;
}

.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #0f172a 100%);
  border-radius: 28px;
  padding: 2rem 2.2rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 25px 60px rgba(30, 58, 138, 0.25);
}

.membership-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,246,255,0.9));
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.membership-stat {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 18px;
  padding: 1rem;
}

.membership-wide {
  grid-column: span 2;
}

.membership-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(45,103,246,0.12);
  color: var(--brand-blue-deep);
  font-weight: 800;
  margin-top: 0.5rem;
}

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.module-tag {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(31,170,121,0.12);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: lowercase;
}

.plan-progress {
  width: 100%;
  height: 10px;
  background: rgba(148,163,184,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.plan-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
}

.cta-box h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pricing-hero,
.feature-page,
.faq-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.comparison-hero,
.enterprise-hero,
.compare-snippet {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.comparison-table-wrap {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.05);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(148,163,184,0.14);
  text-align: left;
}

.comparison-table thead th {
  background: #0f172a;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(248,250,252,0.8);
}

.highlight-cell {
  color: #0f172a;
  font-weight: 700;
  background: rgba(96,165,250,0.08);
}

.enterprise-title {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.enterprise-subtitle {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 620px;
}

.enterprise-card {
  background: linear-gradient(180deg, rgba(15,23,42,1), rgba(30,64,175,0.9));
  border-radius: 28px;
  padding: 1.2rem;
  box-shadow: 0 26px 45px rgba(30, 64, 175, 0.2);
  display: grid;
  gap: 1rem;
}

.mini-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  color: #fff;
}

.mini-panel span {
  display: block;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
}

.mini-panel strong {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.mini-panel.dark {
  background: rgba(15,23,42,0.32);
}

.mini-comparison-card {
  background: rgba(255,255,255,0.84);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148,163,184,0.15);
  height: 100%;
}

.mini-comparison-card h4 {
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.mini-comparison-card.danger {
  border-top: 4px solid #ef4444;
}

.mini-comparison-card.warn {
  border-top: 4px solid #f59e0b;
}

.mini-comparison-card.success {
  border-top: 4px solid #10b981;
}

.plan-option {
  display: block;
  height: 100%;
  padding: 1rem 1rem 0.75rem;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-option input {
  display: none;
}

.plan-option.selected,
.plan-option:hover {
  border-color: rgba(45,103,246,0.5);
  box-shadow: 0 12px 25px rgba(45,103,246,0.08);
  background: linear-gradient(180deg, rgba(239,246,255,0.9), rgba(255,255,255,0.96));
}

.plan-option-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.plan-option-name {
  font-weight: 800;
  color: #0f172a;
}

.plan-option-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-blue-deep);
}

.plan-option-meta {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.8rem;
}

.plan-option-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.82rem;
}

.plan-option-features li::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.5rem;
  color: #0f766e;
  font-weight: 700;
}

.pricing-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 26px;
  padding: 1.8rem 1.5rem;
  height: 100%;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card h3 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin: 1rem 0 0.8rem;
}

.pricing-card h3 span {
  font-size: 1rem;
  color: #64748b;
  font-weight: 600;
}

.pricing-card p {
  color: #475569;
  line-height: 1.7;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
  color: #0f172a;
}

.pricing-card li::before {
  content: "✓";
  color: #0ea5e9;
  font-weight: 800;
  margin-right: 0.65rem;
}

.plan-tag {
  display: inline-block;
  background: rgba(96,165,250,0.12);
  color: #1d4ed8;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.billing-note {
  display: inline-block;
  margin: 0.25rem 0 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-plan {
  background: linear-gradient(180deg, #0f172a 0%, #1d4ed8 100%);
  color: white;
  transform: translateY(-8px);
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 24px 48px rgba(30, 58, 138, 0.22);
}

.featured-plan .plan-tag,
.featured-plan p,
.featured-plan li,
.featured-plan h3 span,
.featured-plan .billing-note {
  color: rgba(255,255,255,0.85);
}

.featured-plan .plan-tag {
  background: rgba(255,255,255,0.12);
  color: white;
}

.premium-tier {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(226,236,255,0.8));
  border: 1px solid rgba(45,103,246,0.18);
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.12);
}

.premium-tier .plan-tag {
  background: rgba(45,103,246,0.12);
  color: var(--brand-blue-deep);
}

.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  max-width: fit-content;
  margin: 0 auto 2.5rem;
  padding: 0.3rem;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
}

.billing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.billing-toggle-btn.active {
  background: #fff;
  color: var(--brand-blue-deep);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.discount-pill {
  background: rgba(31, 170, 121, 0.14);
  color: #0d7d55;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.billing-note-placeholder {
  visibility: hidden;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.faq-item h4 {
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.country-pill {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.feature-box {
  min-height: 230px;
}

@media (max-width: 991px) {
  .hero-title {
    max-width: 100%;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 1.2rem;
  }

  .pricing-card {
    padding: 1.3rem 1rem;
  }
}

.card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.navbar {
  background: linear-gradient(135deg, #0b1220, #15233d) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.8) !important;
  white-space: nowrap;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255,255,255,0.06);
}

.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(96, 165, 250, 0.18);
}

.navbar-nav {
  gap: 0.1rem;
}

.navbar .dropdown-menu {
  background: #101b30;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
  padding: 0.4rem;
  margin-top: 0.4rem;
}

.navbar .dropdown-item {
  color: rgba(255,255,255,0.82);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: rgba(96, 165, 250, 0.16);
  color: #fff;
}

.footer-enhanced {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.7);
  padding: 1.8rem 0 1rem;
  margin-top: 2rem;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.7rem;
}

.footer-copy {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.footer-enhanced h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148,163,184,0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.88rem;
}

.dashboard-shell {
  transition: all 0.25s ease;
}

.dashboard-header-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-fullscreen-btn,
.dashboard-focus-btn {
  border-radius: 999px;
  font-weight: 700;
  min-width: 140px;
}

body.dashboard-focus-mode .navbar,
body.dashboard-focus-mode .footer-enhanced,
body:fullscreen .navbar,
body:fullscreen .footer-enhanced {
  display: none;
}

body.dashboard-focus-mode .container.py-4,
body:fullscreen .container.py-4 {
  max-width: 100%;
  padding-top: 0 !important;
}

body.dashboard-focus-mode .dashboard-shell,
body:fullscreen .dashboard-shell {
  padding: 0.5rem 0 0;
}

body.dashboard-focus-mode .section-card,
body.dashboard-focus-mode .stat-card,
body:fullscreen .section-card,
body:fullscreen .stat-card {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.dashboard-focus-mode .action-item,
body.dashboard-focus-mode .link-btn,
body.dashboard-focus-mode .company-pill {
  opacity: 0.85;
}

body.dashboard-focus-mode .row.g-4.mb-4 > .col-xl-4,
body.dashboard-focus-mode .row.g-4.mt-4 > .col-lg-4 {
  display: none;
}

body.dashboard-focus-mode .row.g-4.mb-4 > .col-xl-8,
body.dashboard-focus-mode .row.g-4.mt-4 > .col-lg-8 {
  flex: 0 0 100%;
  max-width: 100%;
}

.page-header {
  margin-top: 8px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5b7cff;
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.company-pill,
.muted-pill {
  background: rgba(79, 112, 255, 0.08);
  color: #2d4ec6;
  border: 1px solid rgba(79, 112, 255, 0.14);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.company-switcher {
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding-right: 2rem;
}

.company-switcher option {
  color: #0f172a;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.06);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: currentColor;
}

.stat-card-blue { color: #2d67f6; }
.stat-card-green { color: #1faa79; }
.stat-card-purple { color: #7a5af8; }
.stat-card-gold { color: #d29a18; }

.stat-label {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  font-weight: 800;
  color: #111827;
}

.stat-meta {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.82rem;
}

.section-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  padding: 1.25rem 1.3rem;
}

.section-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding-bottom: 0.9rem;
  margin-bottom: 0.25rem;
}

.section-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.link-btn {
  text-decoration: none;
  color: #2d67f6;
  font-weight: 600;
}

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

.modern-table {
  margin-bottom: 0;
  background: white;
}

.modern-table thead th {
  background: #f8fafe;
  color: #475569;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.modern-table tbody td {
  vertical-align: middle;
  padding: 0.9rem 0.75rem;
  border-color: rgba(148, 163, 184, 0.15);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-posted,
.status-paid {
  background: rgba(18, 175, 110, 0.12);
  color: #0d7d55;
}

.status-draft {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.quick-actions {
  display: grid;
  gap: 0.9rem;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  transition: 0.2s ease;
}

.action-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15,23,42,0.04);
  text-decoration: none;
  color: inherit;
}

.action-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #E0EBFF, #D8F5E7);
  color: var(--brand-blue);
  flex: none;
}

.action-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-item span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.action-item strong {
  font-size: 1.3rem;
  color: #0f172a;
}

.action-item small {
  color: #64748b;
}

.entity-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-badge {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  background: linear-gradient(135deg, #dfe9ff, #dff7ee);
  color: #1e3a8a;
}

.avatar-alt {
  background: linear-gradient(135deg, #fef3c7, #fee2e2);
  color: #92400e;
}

.btn-primary {
  background: linear-gradient(135deg, #2f6fec, #4c79ff);
  border-color: #2f6fec;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #245ee1, #3d6df1);
  border-color: #245ee1;
}

.alert-warning {
  color: #7a5200;
}

@media (max-width: 767.98px) {
  .section-card, .stat-card {
    border-radius: 16px;
  }
}

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-info-list strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.contact-info-list a {
  color: var(--brand-blue-deep);
  font-weight: 600;
  text-decoration: none;
}

.contact-info-list a:hover {
  text-decoration: underline;
}
