:root {
      --bg: #0f172a;
      --bg-soft: #111827;
      --card: rgba(255,255,255,0.08);
      --card-strong: rgba(255,255,255,0.12);
      --border: rgba(255,255,255,0.12);
      --text: #e5e7eb;
      --muted: #94a3b8;
      --accent: #38bdf8;
      --accent-2: #22c55e;
      --danger: #fb7185;
      --warning: #f59e0b;
      --shadow: 0 20px 40px rgba(0,0,0,0.25);
      --radius: 18px;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: linear-gradient(180deg, #0b1020, #0f172a 35%, #111827); color: var(--text); }
    body { min-height: 100vh; }
    a { color: inherit; }

    .layout {
      display: grid;
      grid-template-columns: 300px 1fr;
      min-height: 100vh;
    }

    .sidebar {
      position: sticky;
      top: 0;
      align-self: start;
      height: 100vh;
      padding: 24px;
      border-right: 1px solid var(--border);
      background: rgba(15, 23, 42, 0.92);
      backdrop-filter: blur(16px);
    }

    .brand {
      margin-bottom: 24px;
    }

    .brand h1 {
      margin: 0 0 8px;
      font-size: 1.35rem;
      line-height: 1.2;
    }

    .brand p {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 20px;
    }

    .nav button {
      width: 100%;
      text-align: left;
      background: transparent;
      color: var(--text);
      border: 1px solid transparent;
      border-radius: 14px;
      padding: 12px 14px;
      cursor: pointer;
      transition: 0.2s ease;
      font-size: 0.96rem;
    }

    .nav button:hover,
    .nav button.active {
      background: var(--card);
      border-color: var(--border);
    }

    .sidebar-footer {
      margin-top: 28px;
      padding: 14px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--card);
      color: var(--muted);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .main {
      padding: 28px;
    }

    .hero {
      display: grid;
      grid-template-columns: 1.6fr 1fr;
      gap: 20px;
      margin-bottom: 24px;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
      padding: 22px;
    }

    .hero h2 {
      margin: 0 0 10px;
      font-size: 2rem;
      line-height: 1.1;
    }

    .hero p {
      margin: 0;
      color: var(--muted);
      line-height: 1.7;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }

    .stat {
      padding: 16px;
      border-radius: 16px;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
    }

    .stat strong {
      display: block;
      font-size: 1.4rem;
      margin-bottom: 6px;
    }

    .section {
      display: none;
      animation: fade 0.25s ease;
    }

    .section.active { display: block; }

    @keyframes fade {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: 16px;
      margin-bottom: 18px;
    }

    .section-head h3 {
      margin: 0 0 6px;
      font-size: 1.45rem;
    }

    .section-head p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
    }

    .toolbar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .btn {
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.05);
      color: var(--text);
      border-radius: 12px;
      padding: 10px 14px;
      cursor: pointer;
      font-size: 0.95rem;
      transition: 0.2s ease;
    }

    .btn:hover { background: rgba(255,255,255,0.1); }
    .btn.primary { background: rgba(56,189,248,0.16); border-color: rgba(56,189,248,0.35); }
    .btn.success { background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.35); }
    .btn.warn { background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.35); }

    .grid {
      display: grid;
      gap: 18px;
    }

    .col-12 { grid-column: span 12; }
    .col-8 { grid-column: span 8; }
    .col-6 { grid-column: span 6; }
    .col-4 { grid-column: span 4; }

    .field,
    .question {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 16px;
    }

    label {
      font-size: 0.96rem;
      font-weight: 600;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
      width: 100%;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.06);
      color: var(--bg);
      outline: none;
      font: inherit;
    }

    textarea { min-height: 110px; resize: vertical; }

    .hint { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
    .block-title { margin: 0 0 14px; font-size: 1.08rem; }

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

    .option {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
    }

    .scale {
      display: grid;
      grid-template-columns: repeat(5, minmax(40px, 1fr));
      gap: 8px;
      max-width: 360px;
    }

    .scale label,
    .mini-scale label {
      font-weight: 500;
      text-align: center;
      padding: 10px 0;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      cursor: pointer;
    }

    input[type="radio"], input[type="checkbox"] {
      accent-color: var(--accent);
      transform: scale(1.1);
    }

    .accordion {
      display: grid;
      gap: 14px;
    }

    details {
      border: 1px solid var(--border);
      border-radius: 16px;
      background: rgba(255,255,255,0.05);
      overflow: hidden;
    }

    summary {
      cursor: pointer;
      list-style: none;
      padding: 16px 18px;
      font-weight: 700;
    }

    details > div {
      padding: 0 18px 18px;
      color: var(--muted);
      line-height: 1.7;
    }

    .guide-list {
      display: grid;
      gap: 14px;
    }

    .guide-item {
      padding: 16px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
    }

    .guide-item h4 {
      margin: 0 0 8px;
      font-size: 1.02rem;
    }

    .guide-item p,
    .guide-item ul {
      margin: 0;
      color: var(--muted);
      line-height: 1.7;
    }

    ul { padding-left: 18px; }

    .summary-box {
      position: sticky;
      top: 24px;
    }

    .summary-box pre {
      white-space: pre-wrap;
      word-break: break-word;
      font: 0.9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      color: #d1fae5;
      background: rgba(2,6,23,0.55);
      border: 1px solid rgba(34,197,94,0.2);
      padding: 14px;
      border-radius: 14px;
      max-height: 520px;
      overflow: auto;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(56,189,248,0.12);
      border: 1px solid rgba(56,189,248,0.25);
      color: #bae6fd;
      font-size: 0.85rem;
      margin-right: 8px;
      margin-bottom: 8px;
    }

    .mini-scale {
      display: grid;
      grid-template-columns: repeat(5, minmax(32px, 1fr));
      gap: 6px;
      max-width: 320px;
    }

    .footer-note {
      margin-top: 20px;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.6;
    }
    
    .lead-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
    gap:20px;
    margin-top:20px;
}

.lead-card{
    background:rgb(2, 2, 2);
    border:1px solid #ddd;
    border-radius:10px;
    padding:18px;
    box-shadow:0 3px 8px rgba(0,0,0,0.05);
}

.lead-header{
    display:flex;
    justify-content:space-between;
    font-size:18px;
    margin-bottom:10px;
}

.lead-age{
    color:#666;
}

.lead-row{
    margin-bottom:6px;
    font-size:14px;
}

.lead-actions{
    margin-top:15px;
    display:flex;
    gap:10px;
}

.button.small{
    padding:6px 10px;
    font-size:13px;
}

    @media (max-width: 1100px) {
      .layout { grid-template-columns: 1fr; }
      .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
      .hero { grid-template-columns: 1fr; }
    }

    @media (max-width: 780px) {
      .main { padding: 18px; }
      .grid { grid-template-columns: 1fr; }
      .col-12, .col-8, .col-6, .col-4 { grid-column: span 1; }
      .section-head { flex-direction: column; }
      .stats { grid-template-columns: 1fr 1fr; }
    }