/* Flux public — inspired by PBX shell + signature requests */

.flux-site {
  --flux-surface: #ffffff;
  --flux-muted: #f1f5f9;
  --flux-ink: #334155;
  --flux-ink-soft: #64748b;
  --flux-line: rgba(148, 163, 184, 0.28);
  --flux-teal: #0d9488;
  --flux-teal-dim: #0f766e;
  --flux-teal-soft: rgba(13, 148, 136, 0.12);
  --flux-teal-glow: rgba(13, 148, 136, 0.22);
  --flux-lcd-from: #18212f;
  --flux-lcd-to: #2a3648;
  --flux-radius: 16px;
  --flux-radius-sm: 11px;
  --flux-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 14px rgba(13, 148, 136, 0.06);
  --flux-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(13, 148, 136, 0.08);
  --flux-wrap: min(1460px, calc(100% - 1.5rem));
  --flux-wrap-wide: min(1540px, calc(100% - 1rem));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 55% at 12% -8%, rgba(13, 148, 136, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 4%, rgba(37, 99, 235, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(13, 148, 136, 0.05), transparent 60%),
    linear-gradient(168deg, #f6f8fb 0%, #eef2f7 52%, #f9fafb 100%);
  color: var(--flux-ink);
}

.flux-topbar {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--flux-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 18px rgba(15, 23, 42, 0.04);
}

.flux-topbar-inner {
  width: var(--flux-wrap);
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.flux-topbar .flux-brand {
  color: inherit;
}

.flux-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--flux-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.flux-nav a,
.flux-nav button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.72rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--flux-ink-soft);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.flux-nav a:hover,
.flux-nav button:hover {
  color: var(--flux-ink);
  background: rgba(255, 255, 255, 0.9);
}

.flux-nav a.flux-nav-active,
.flux-nav a.flux-nav-cta {
  background: var(--flux-surface);
  color: var(--flux-teal);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.flux-nav a.flux-nav-cta {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.32);
}

.flux-nav a.flux-nav-cta:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.38);
  transform: translateY(-1px);
}

.flux-dev-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.38rem 1rem;
  background: linear-gradient(90deg, #b45309, #d97706);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.flux-main {
  flex: 1;
  width: var(--flux-wrap);
  margin: 0 auto;
  padding: 1.35rem 0 2.5rem;
}

.flux-main--wide {
  width: var(--flux-wrap-wide);
}

.flux-page-head {
  margin-bottom: 1.15rem;
}

.flux-page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--flux-ink);
}

.flux-page-head .page-subtitle {
  margin: 0;
  color: var(--flux-ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Shell — like pbx-phone-shell */
.flux-shell {
  position: relative;
  border: 1px solid var(--flux-line);
  border-radius: var(--flux-radius);
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 48%, #f9fafb 100%);
  box-shadow: var(--flux-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.flux-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(13, 148, 136, 0.12), rgba(148, 163, 184, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.flux-shell--lift {
  box-shadow: var(--flux-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.flux-shell-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.flux-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  gap: 0;
  margin-bottom: 1.35rem;
}

.flux-lcd {
  position: relative;
  background: linear-gradient(165deg, var(--flux-lcd-from) 0%, #1e293b 45%, var(--flux-lcd-to) 100%);
  color: #e2e8f0;
  padding: 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.flux-lcd::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(94, 234, 212, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(59, 130, 246, 0.08), transparent 50%);
  pointer-events: none;
}

.flux-lcd::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #5eead4, #0d9488, transparent);
  opacity: 0.85;
}

.flux-lcd > * {
  position: relative;
  z-index: 1;
}

.flux-lcd-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.65rem;
}

.flux-lcd-title {
  margin: 0 0 0.55rem;
}

.flux-lcd-title .flux-brand--xl {
  font-size: 2.15rem;
}

.flux-lcd-sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.92);
}

.flux-lcd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.flux-lcd-stat {
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s;
}

.flux-lcd-stat:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

.flux-lcd-stat strong {
  display: block;
  font-size: 0.95rem;
  color: #f1f5f9;
  margin-bottom: 0.1rem;
}

.flux-lcd-stat span {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.95);
}

.flux-hero-content {
  padding: 1.65rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.flux-hero-content h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--flux-ink);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.flux-hero-content p {
  margin: 0;
  color: var(--flux-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 38rem;
}

.flux-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.flux-site .btn-primary,
.flux-site .btn-secondary,
.flux-site a.btn-primary,
.flux-site a.btn-secondary {
  margin-bottom: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flux-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--flux-line);
}

.flux-section-head::before {
  content: '';
  position: absolute;
  /* handled inline on title */
}

.flux-section-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--flux-ink);
  letter-spacing: -0.02em;
  padding-inline-start: 0.65rem;
  border-inline-start: 3px solid var(--flux-teal);
}

.flux-section-desc {
  margin: 0;
  color: var(--flux-ink-soft);
  font-size: 0.88rem;
}

.flux-section {
  margin-bottom: 1.35rem;
}

.flux-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.flux-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  padding: 1.1rem 1.15rem;
  border-radius: var(--flux-radius-sm);
  border: 1px solid var(--flux-line);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  min-height: 156px;
  overflow: hidden;
}

.flux-tile::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--flux-teal), #5eead4);
  opacity: 0;
  transition: opacity 0.22s;
}

.flux-tile:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.flux-tile:hover::before {
  opacity: 1;
}

.flux-tile-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.18) 0%, rgba(94, 234, 212, 0.08) 100%);
  color: var(--flux-teal);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  border: 1px solid rgba(13, 148, 136, 0.22);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.22s, box-shadow 0.22s;
}

.flux-tile:hover .flux-tile-icon {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.flux-tile-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.flux-tile-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--flux-ink);
}

.flux-tile-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--flux-ink-soft);
  flex: 1;
}

.flux-tile-arrow {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--flux-teal);
}

.flux-tile-disabled {
  opacity: 0.55;
  pointer-events: auto;
}

/* Contact panel */
.flux-contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.flux-contact-info-panel,
.flux-contact-form-panel {
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: var(--flux-radius-sm);
  border: 1px solid var(--flux-line);
  background: #fff;
}

.flux-contact-info-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
}

.flux-contact-grid h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--flux-ink);
}

.flux-contact-list {
  display: grid;
  gap: 0.5rem;
}

.flux-contact-list a,
.flux-contact-list span {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--flux-line);
  background: #fff;
  color: var(--flux-ink);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
}

.flux-form {
  display: grid;
  gap: 0.85rem;
}

.flux-form label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--flux-ink-soft);
}

.flux-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.flux-form .input-elegant,
.flux-form textarea.input-elegant {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--flux-line);
  border-radius: 9px;
  background: #fff;
  font-size: 0.92rem;
  color: var(--flux-ink);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.flux-form .input-elegant:focus,
.flux-form textarea.input-elegant:focus {
  outline: none;
  border-color: var(--flux-brand-blue, #4a9fe8);
  box-shadow: 0 0 0 3px rgba(74, 159, 232, 0.14);
}

.flux-form textarea.input-elegant {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.5;
}

.flux-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
}

.flux-site .flux-form .btn-primary,
.flux-site .flux-form .btn-elegant.btn-primary {
  margin: 0;
  padding: 0.58rem 1.35rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--flux-brand-blue, #4a9fe8);
  box-shadow: 0 2px 8px rgba(74, 159, 232, 0.28);
}

.flux-site .flux-form .btn-primary:hover {
  background: #3d8fd6;
}

.flux-form-actions .flux-status {
  margin: 0;
  flex: 1;
  min-width: 8rem;
}

.flux-status {
  min-height: 1.2rem;
  font-size: 0.88rem;
}

.flux-status.success { color: var(--success); }
.flux-status.error { color: var(--error); }

.flux-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--flux-line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--flux-ink-soft);
  font-size: 0.82rem;
}

.flux-footer-inner {
  width: var(--flux-wrap);
  margin: 0 auto;
  padding: 0.9rem 0 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Policy compare */
.flux-compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.flux-compare-picker {
  display: grid;
  gap: 0.35rem;
  min-width: min(280px, 100%);
  font-size: 0.85rem;
  font-weight: 600;
}

.flux-compare-picker .input-elegant {
  max-width: none;
  width: 100%;
}

.flux-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.65rem;
}

.flux-company-tile {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 0.85rem 0.6rem;
  min-height: 128px;
  border-radius: 11px;
  border: 1px solid var(--flux-line);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.flux-company-tile:hover {
  border-color: rgba(13, 148, 136, 0.4);
  background: #fff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.flux-company-tile.selected {
  border-color: rgba(13, 148, 136, 0.55);
  background: linear-gradient(165deg, rgba(13, 148, 136, 0.12) 0%, rgba(94, 234, 212, 0.06) 100%);
  box-shadow: 0 4px 16px var(--flux-teal-glow), inset 0 0 0 1px rgba(13, 148, 136, 0.15);
  transform: translateY(-1px);
}

.flux-company-logo {
  width: 64px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flux-company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.flux-company-fallback {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--flux-teal-soft);
  color: var(--flux-teal);
  font-weight: 700;
}

.flux-company-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--flux-ink);
}

.flux-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--flux-line);
  background: var(--flux-surface);
  margin-top: 0.5rem;
}

.flux-compare-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.flux-compare-table th,
.flux-compare-table td {
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding: 0.5rem 0.6rem;
  text-align: right;
  vertical-align: top;
}

.flux-compare-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg-hover) 100%);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.flux-compare-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.88);
}

.flux-compare-table tbody tr:hover td {
  background: color-mix(in srgb, var(--bg-hover) 92%, transparent);
}

/* Client portal */
.flux-portal-login {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.flux-portal-login .flux-shell {
  width: min(420px, 100%);
}

.flux-portal-login-lcd {
  position: relative;
  padding: 1.25rem 1.2rem;
  background: linear-gradient(165deg, var(--flux-lcd-from) 0%, #1e293b 45%, var(--flux-lcd-to) 100%);
  color: #e2e8f0;
  text-align: center;
  overflow: hidden;
}

.flux-portal-login-lcd::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(94, 234, 212, 0.14), transparent 60%);
  pointer-events: none;
}

.flux-portal-login-lcd::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #5eead4, #0d9488, transparent);
}

.flux-portal-login-lcd .flux-brand,
.flux-portal-login-lcd p {
  position: relative;
  z-index: 1;
}

.flux-portal-login-lcd .flux-brand {
  margin-bottom: 0.35rem;
  justify-content: center;
}

.flux-portal-otp-wrap {
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 159, 232, 0.28);
  background: rgba(74, 159, 232, 0.06);
}

.flux-portal-otp-message {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--flux-ink);
}

.client-portal-secure-field {
  -webkit-text-security: none;
}

.flux-portal-login-lcd p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.9);
}

.flux-portal-login .flux-shell-body form label {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.flux-portal-login .flux-shell-body .input-elegant {
  max-width: none;
  width: 100%;
}

.flux-portal-login .flux-shell-body .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

.flux-portal-app .client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--flux-line);
  background: rgba(255, 255, 255, 0.72);
}

.flux-portal-app .client-tab {
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--flux-ink-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flux-portal-app .client-tab:hover:not(:disabled) {
  color: var(--flux-ink);
  background: rgba(255, 255, 255, 0.85);
}

.flux-portal-app .client-tab.active {
  color: var(--flux-teal-dim);
  background: #fff;
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.1);
}

.flux-portal-app .client-portal-tab-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.flux-portal-app .flux-tab-panels {
  position: relative;
  min-height: 4rem;
}

.flux-portal-app .flux-tab-panel {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.flux-portal-app .flux-tab-panel[hidden] {
  display: none !important;
}

.flux-portal-app .flux-tab-panel--active {
  opacity: 1;
  transform: translateY(0);
}

.flux-portal-app .flux-tab-panel--enter {
  opacity: 0;
  transform: translateY(6px);
}

.flux-portal-app .flux-tab-panel--leave {
  opacity: 0;
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .flux-portal-app .flux-tab-panel,
  .flux-portal-app .client-tab {
    transition: none !important;
  }
}

.flux-policy-card {
  margin-bottom: 0.65rem;
  border: 1px solid var(--flux-line);
  border-radius: var(--flux-radius-sm);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  border-inline-start: 3px solid rgba(13, 148, 136, 0.45);
}

.flux-policy-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-bottom: 1px solid var(--flux-line);
}

.flux-policy-head h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.flux-policy-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--flux-ink-soft);
}

.flux-policy-body {
  padding: 0.85rem 1rem 1rem;
}

.flux-policy-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.flux-policy-detail-grid span {
  display: block;
  font-size: 0.75rem;
  color: var(--flux-ink-soft);
}

.flux-coverages-tables {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}

.flux-cov-group-block {
  display: grid;
  gap: 0.35rem;
}

.flux-cov-group-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--flux-ink);
}

.flux-cov-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--flux-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.flux-cov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.flux-cov-table th,
.flux-cov-table td {
  padding: 0.5rem 0.65rem;
  text-align: right;
  border-bottom: 1px solid var(--flux-line);
  vertical-align: top;
}

.flux-cov-table thead th {
  background: var(--flux-muted);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--flux-ink-soft);
  white-space: nowrap;
}

.flux-cov-table tbody tr:last-child td {
  border-bottom: none;
}

.flux-cov-table tbody tr:nth-child(even) {
  background: rgba(74, 159, 232, 0.04);
}

.flux-cov-name {
  font-weight: 600;
  min-width: 9rem;
}

.flux-cov-num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.flux-cov-notes {
  color: var(--flux-ink-soft);
  font-size: 0.82rem;
  min-width: 7rem;
}

.flux-coverages {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: grid;
  gap: 0.4rem;
}

.flux-coverages li {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--flux-line);
  background: var(--flux-muted);
  font-size: 0.85rem;
}

.flux-signature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--flux-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.5rem;
}

.flux-signature-row strong {
  display: block;
  font-size: 0.92rem;
}

.flux-signature-row span {
  font-size: 0.8rem;
  color: var(--flux-ink-soft);
}

.flux-service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.flux-service-actions .flux-action-btn {
  flex: 0 0 auto;
  min-height: 2.35rem;
  font-weight: 600;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.flux-policy-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.5rem;
}

.flux-policy-service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin: 0.85rem 0 0.7rem;
}

.flux-policy-coverages-title {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.92rem;
  text-align: center;
}

.flux-portal-service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.62rem 1.45rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--flux-teal), #14b8a6);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--flux-teal-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flux-portal-service-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--flux-teal-glow);
}

.flux-portal-young-driver-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--flux-line, #dbe3ec);
  background: #fff;
  color: var(--flux-ink, #1e293b);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.flux-portal-young-driver-btn:hover {
  border-color: var(--flux-teal);
  color: var(--flux-teal-dim);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

.client-portal-contact-wrap {
  position: relative;
}

.client-portal-email-suffixes {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.25rem);
  z-index: 30;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--flux-line, #dbe3ec);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  max-height: 12rem;
  overflow: auto;
}

.client-portal-email-suffixes.hidden {
  display: none;
}

.client-portal-email-suffix-btn {
  display: block;
  width: 100%;
  text-align: start;
  border: none;
  background: transparent;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font: inherit;
  color: var(--flux-ink, #1e293b);
}

.client-portal-email-suffix-btn:hover,
.client-portal-email-suffix-btn:focus {
  background: var(--flux-teal-soft);
  color: var(--flux-teal-dim);
}

.flux-accident-questionnaire {
  margin: 0.75rem 0 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--flux-surface-soft, #f6f8fb);
  border: 1px solid var(--flux-line, #e4e9f0);
}

.flux-action-btn.selected {
  border-color: var(--flux-teal);
  background: var(--flux-teal-soft);
  color: var(--flux-teal-dim);
}

.flux-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1rem;
}

.flux-modal-actions .btn-primary,
.flux-modal-actions .btn-secondary {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .flux-hero {
    grid-template-columns: 1fr;
  }

  .flux-lcd {
    border-inline-end: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: auto;
  }

  .flux-contact-grid,
  .flux-form-row {
    grid-template-columns: 1fr;
  }

  .flux-topbar-inner,
  .flux-main,
  .flux-footer-inner {
    width: calc(100% - 1.5rem);
  }

  .flux-lcd-stats {
    grid-template-columns: 1fr;
  }
}
