* { box-sizing: border-box; }
html, body { min-height: 100%; }

:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(15, 28, 48, .92);
  --panel-soft: rgba(23, 39, 63, .76);
  --text: #f7f9fc;
  --muted: #9aa9bd;
  --border: rgba(255,255,255,.10);
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-soft: rgba(225,29,72,.14);
  --success: #22c55e;
  --success-soft: rgba(34,197,94,.14);
  --danger: #fb7185;
  --danger-soft: rgba(251,113,133,.13);
  --warning: #f59e0b;
  --shadow: 0 16px 45px rgba(0,0,0,.28);
  --radius: 18px;
  --radius-sm: 12px;
}

html[data-theme="light"] {
  --bg: #eef2f7;
  --bg-soft: #f7f9fc;
  --panel: rgba(255,255,255,.96);
  --panel-soft: rgba(247,249,252,.94);
  --text: #172033;
  --muted: #657186;
  --border: rgba(15,23,42,.10);
  --primary-soft: rgba(225,29,72,.09);
  --success-soft: rgba(34,197,94,.10);
  --danger-soft: rgba(251,113,133,.10);
  --shadow: 0 14px 35px rgba(15,23,42,.09);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(225,29,72,.14), transparent 30rem),
    radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  line-height: 1.45;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.page { padding: 28px 0 48px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7,17,31,.82);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .topbar { background: rgba(247,249,252,.86); }
.topbar-inner {
  width: min(1320px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 28px rgba(225,29,72,.28);
}
.brand-text { display: grid; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.nav > a, .nav-menu-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 14px;
}
.nav > a:hover, .nav-menu-button:hover { color: var(--text); background: var(--panel-soft); }
.nav-menu { position: relative; }
.nav-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.nav-menu.open .nav-menu-panel { display: grid; }
.nav-menu-panel a { padding: 9px 10px; border-radius: 9px; text-decoration: none; font-size: 14px; }
.nav-menu-panel a:hover { background: var(--panel-soft); }
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin-bottom: 4px; font-size: 20px; }
h3 { margin-bottom: 5px; font-size: 18px; }
p { color: var(--muted); }
small, .muted { color: var(--muted); }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-heading p { margin-bottom: 0; max-width: 760px; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-header p { margin: 3px 0 0; font-size: 14px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric-card {
  min-height: 142px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin: 8px 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.metric-card small { font-size: 12px; }
.danger-card { border-color: rgba(251,113,133,.24); background: linear-gradient(145deg, var(--panel), var(--danger-soft)); }
.success-card { border-color: rgba(34,197,94,.24); background: linear-gradient(145deg, var(--panel), var(--success-soft)); }
.warning-card { border-color: rgba(245,158,11,.30); background: linear-gradient(145deg, var(--panel), rgba(245,158,11,.10)); }

.content-grid { display: grid; gap: 16px; margin-top: 16px; }
.content-grid.two-thirds { grid-template-columns: 1.35fr .85fr; }
.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.btn:hover { filter: brightness(1.07); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(145deg, var(--primary), var(--primary-dark)); }
.btn.ghost { background: transparent; }
.btn.success-button, .success-button { color: #fff; border-color: transparent; background: #15803d; }
.btn.danger-button, .danger-button { color: #fff; border-color: transparent; background: #be123c; }
.btn.whatsapp-button { color: #fff; border-color: transparent; background: #15803d; }
.btn.disabled-button { cursor: not-allowed; opacity: .58; color: var(--muted); background: var(--panel-soft); }
.small-btn { min-height: 36px; padding: 7px 11px; }
.inline-form { margin: 0; display: inline-flex; }
.text-link { color: var(--primary); text-decoration: none; font-weight: 800; font-size: 14px; }
.text-button { padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--text); }
.text-button.danger { color: var(--danger); }

label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-soft);
  padding: 11px 12px;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-stack { display: grid; gap: 13px; }
.form-stack.compact { margin-top: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: end; }
.client-create-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.details-form { margin-top: 18px; }
.span-2 { grid-column: span 2; }
.form-action { display: flex; align-items: flex-end; }
.filter-grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(135px, 1fr)) auto; gap: 12px; align-items: end; }
.filter-actions { display: flex; gap: 8px; align-items: end; }
.check-row { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
.check-row input { width: auto; }

.flash { margin-bottom: 16px; padding: 13px 15px; border: 1px solid rgba(34,197,94,.28); border-radius: 12px; background: var(--success-soft); color: var(--text); }
.flash.error { border-color: rgba(251,113,133,.28); background: var(--danger-soft); }

.responsive-table { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--panel-soft); }
.right { text-align: right !important; }
.archived-row, .cancelled-row { opacity: .58; }
.cancelled-row td { text-decoration-color: var(--muted); }

.client-cell, .client-identity { display: flex; align-items: center; gap: 12px; }
.client-cell > span:last-child { display: grid; }
.avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #334155, #111827);
  font-size: 13px;
  font-weight: 800;
}
.avatar.large { width: 64px; height: 64px; border-radius: 18px; font-size: 20px; background: linear-gradient(145deg, var(--primary), var(--primary-dark)); }
.count-badge, .status-badge, .movement-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.status-badge.active { color: #86efac; background: var(--success-soft); border-color: rgba(34,197,94,.24); }
.status-badge.closed { color: #fda4af; background: var(--danger-soft); border-color: rgba(251,113,133,.24); }
.status-badge.primary { color: #fff; background: var(--primary); border-color: transparent; }
.status-badge.neutral { color: var(--muted); background: var(--panel-soft); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.amount { font-weight: 900; white-space: nowrap; }
.balance-label { display: block; margin-top: 3px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.danger { color: var(--danger) !important; }
.success { color: var(--success) !important; }

.list-stack, .timeline { display: grid; }
.person-row, .timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.person-row:last-child, .timeline-row:last-child { border-bottom: 0; }
.person-row:hover, .timeline-row:hover { background: var(--panel-soft); }
.person-main, .timeline-row > span:nth-child(2) { flex: 1; display: grid; }
.movement-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.movement-icon.recharge { color: var(--danger); background: var(--danger-soft); }
.movement-icon.payment { color: var(--success); background: var(--success-soft); }

.client-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.client-hero h1 { margin: 8px 0 4px; font-size: clamp(28px, 4vw, 40px); }
.client-hero p { margin: 0; }
.hero-balance { min-width: 220px; text-align: right; display: grid; }
.hero-balance span { color: var(--muted); font-size: 13px; }
.hero-balance strong { margin: 4px 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.quick-actions { display: flex; gap: 9px; justify-content: space-between; margin: 12px 0 10px; }
.quick-action-group { display: flex; flex-wrap: wrap; gap: 9px; }
.reminder-status { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 24px; font-weight: 400; }
details[open] > summary::after { content: "−"; }
summary span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: auto; }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.account-card { border: 1px solid var(--border); border-radius: 15px; background: var(--panel-soft); padding: 16px; }
.account-card.inactive { opacity: .62; }
.account-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-top h3 { margin-top: 9px; }
.account-due { font-weight: 900; white-space: nowrap; }
.account-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 13px 0; }
.account-data div { min-width: 0; }
.account-data .wide { grid-column: 1 / -1; }
.account-data dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.account-data dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.account-edit { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; }
.account-edit summary { color: var(--primary); font-size: 13px; font-weight: 800; }
.add-account-panel { margin-top: 14px; border: 1px dashed var(--border); border-radius: 14px; padding: 14px; }

.movement-pill.recharge { color: #fda4af; background: var(--danger-soft); border-color: rgba(251,113,133,.24); }
.movement-pill.payment { color: #86efac; background: var(--success-soft); border-color: rgba(34,197,94,.24); }
.bookmaker-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.bookmaker-row:last-child { border-bottom: 0; }
.bookmaker-row > div { display: grid; gap: 5px; }

.empty-state { padding: 28px 18px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; background: var(--panel-soft); }
.auth-wrap { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); }
.auth-logo { margin-bottom: 18px; }
.auth-card p { margin-bottom: 22px; }

@media (max-width: 1050px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid.two-thirds, .content-grid.equal { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-field { grid-column: span 2; }
  .filter-actions { grid-column: span 3; }
  .client-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container, .topbar-inner { width: min(100% - 20px, 1240px); }
  .topbar-inner { padding: 10px 0; align-items: flex-start; }
  .brand-text small { display: none; }
  .nav { gap: 2px; }
  .nav > a { display: none; }
  .page { padding-top: 18px; }
  .page-heading, .client-hero { align-items: stretch; flex-direction: column; }
  .hero-balance { text-align: left; min-width: 0; }
  .metrics-grid { grid-template-columns: 1fr; }
  .form-grid, .client-create-form, .filter-grid { grid-template-columns: 1fr; }
  .span-2, .search-field, .filter-actions { grid-column: auto; }
  .filter-actions { flex-wrap: wrap; }
  .account-grid { grid-template-columns: 1fr; }
  .quick-actions { flex-wrap: wrap; }
  .card { padding: 16px; border-radius: 15px; }
  summary { align-items: flex-start; }
  summary span { display: none; }
}

/* =========================================================
   VERSIONE 2.0.6 — INTERFACCIA MOBILE
   ========================================================= */

.mobile-nav-toggle {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--panel-soft);
  font-weight: 800;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .topbar-inner {
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
    text-decoration: none !important;
  }

  .brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-text small {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--panel);
    box-shadow: var(--shadow);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav.open {
    display: grid;
  }

  .nav > a,
  .nav-menu-button,
  .nav .inline-form .btn,
  .theme-toggle {
    display: flex !important;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 9px 10px;
    color: var(--text);
    background: var(--panel-soft);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
  }

  .nav-menu {
    grid-column: 1 / -1;
  }

  .nav-menu-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 7px;
    padding: 7px;
    border-radius: 11px;
    box-shadow: none;
  }

  .nav-menu-panel a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 10px;
    line-height: 1.25;
  }

  .inline-form {
    width: 100%;
  }

  .container {
    width: calc(100% - 24px);
  }

  .page {
    padding: 16px 0 32px;
  }

  .page-heading {
    margin-bottom: 14px;
    gap: 12px;
  }

  .page-heading h1 {
    margin-bottom: 6px;
    font-size: 30px;
  }

  .page-heading p {
    font-size: 14px;
    line-height: 1.4;
  }

  .page-heading > .btn {
    width: 100%;
    min-height: 48px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .metric-card {
    min-height: 124px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: none;
  }

  .metric-card span {
    font-size: 12px;
    line-height: 1.25;
  }

  .metric-card strong {
    margin: 6px 0;
    font-size: 24px;
    line-height: 1.1;
  }

  .metric-card small {
    font-size: 11px;
    line-height: 1.3;
  }

  .content-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .card {
    padding: 16px;
    border-radius: 15px;
    box-shadow: none;
  }

  .section-header {
    margin-bottom: 13px;
    gap: 10px;
  }

  .section-header h2 {
    font-size: 21px;
  }

  .section-header p {
    font-size: 13px;
  }

  .person-row,
  .timeline-row {
    min-height: 58px;
    gap: 10px;
  }

  .person-row .amount,
  .timeline-row .amount {
    font-size: 14px;
  }

  .empty-state {
    padding: 20px 14px;
  }

  .client-hero {
    gap: 14px;
  }

  .client-identity {
    align-items: flex-start;
  }

  .avatar.large {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .quick-action-group,
  .quick-actions {
    width: 100%;
  }

  .quick-action-group .btn,
  .quick-actions > .btn {
    flex: 1 1 145px;
    min-height: 46px;
  }

  .responsive-table {
    border-radius: 12px;
  }

  .table th,
  .table td {
    padding: 11px 10px;
  }

  .form-action .btn,
  .filter-actions .btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 104px;
  }

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

  .nav-menu {
    grid-column: auto;
  }
}

/* =========================================================
   VERSIONE 2.0.8 — RICERCA RAPIDA NUOVA RICARICA
   ========================================================= */

.quick-client-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.quick-client-search .filter-actions {
  display: flex;
  gap: 8px;
}

.quick-client-search input {
  min-height: 50px;
  font-size: 17px;
}

.recharge-search-result {
  min-height: 76px;
}

.search-result-side {
  margin-left: auto;
  display: flex;
  min-width: 170px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.search-result-side small {
  color: var(--muted);
  white-space: nowrap;
}

.quick-search-help {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .compact-heading {
    display: block;
  }

  .compact-heading > .btn {
    margin-top: 12px;
  }

  .quick-client-search {
    grid-template-columns: 1fr;
  }

  .quick-client-search .filter-actions {
    width: 100%;
  }

  .quick-client-search .filter-actions .btn {
    flex: 1 1 0;
  }

  .recharge-search-result {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .search-result-side {
    width: 100%;
    min-width: 0;
    margin-left: 52px;
    justify-content: space-between;
    text-align: left;
  }

  .search-result-side .btn {
    width: auto;
  }
}

/* =========================================================
   VERSIONE 2.0.9 — RITORNO AUTOMATICO ALLA DASHBOARD
   ========================================================= */

.auto-dashboard-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .auto-dashboard-notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    text-align: center;
  }
}

/* =========================================================
   VERSIONE 2.0.10 — ELENCO CLIENTI DA INCASSARE
   ========================================================= */

.debtors-link {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .section-header .debtors-link {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--panel-soft);
    text-decoration: none;
  }
}

/* =========================================================
   VERSIONE 2.0.11 — CREA CLIENTE DALLA RICERCA RAPIDA
   ========================================================= */

.create-client-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
}

.create-client-cta strong,
.create-client-cta small {
  display: block;
}

.create-client-cta small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.important-note {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  color: var(--text);
  background: rgba(245, 158, 11, 0.08);
  font-size: 14px;
  line-height: 1.4;
}

.quick-client-create-card {
  max-width: 960px;
}

@media (max-width: 760px) {
  .create-client-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .create-client-cta .btn {
    width: 100%;
    min-height: 46px;
  }

  .quick-client-create-card {
    max-width: none;
  }
}
