 /* ============================================================
       TRATAR PAGE — ESTILOS
       ============================================================ */

    /* HERO */
    .treat-hero {
      padding: 4.5rem 1.5rem 3rem;
      text-align: center;
      background: linear-gradient(135deg, #020f22 0%, #041e42 60%, #062a5c 100%);
      position: relative;
      overflow: hidden;
    }
    .treat-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 50% 70% at 50% 50%, rgba(0,212,255,0.08) 0%, transparent 70%);
      pointer-events: none;
    }
    .treat-hero-tag {
      display: inline-block;
      padding: 0.4rem 1rem;
      background: rgba(0,212,255,0.1);
      border: 1px solid rgba(0,212,255,0.25);
      border-radius: 50px;
      color: var(--cyan);
      font-family: var(--font-display);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }
    .treat-hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 900;
      color: var(--white);
      line-height: 1.1;
      margin-bottom: 1rem;
    }
    .treat-hero h1 span { color: var(--cyan); }
    .treat-hero p {
      color: var(--text-muted);
      font-size: 1rem;
      max-width: 500px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* Barra de progresso */
    .progress-bar-wrap {
      max-width: 600px;
      margin: 2.5rem auto 0;
      position: relative;
    }
    .progress-steps {
      display: flex;
      justify-content: space-between;
      position: relative;
      z-index: 1;
    }
    .progress-steps::before {
      content: '';
      position: absolute;
      top: 20px;
      left: 30px;
      right: 30px;
      height: 2px;
      background: rgba(255,255,255,0.1);
      z-index: 0;
    }
    .progress-line {
      position: absolute;
      top: 20px;
      left: 30px;
      height: 2px;
      background: var(--grad-cyan);
      transition: width 0.5s ease;
      z-index: 0;
    }
    .step-dot {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255,255,255,0.05);
      border: 2px solid rgba(255,255,255,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-muted);
      transition: var(--transition);
      position: relative;
      z-index: 2;
      flex-direction: column;
      gap: 0;
    }
    .step-dot span.label {
      font-size: 0.62rem;
      font-weight: 500;
      position: absolute;
      bottom: -1.4rem;
      white-space: nowrap;
      color: var(--text-muted);
    }
    .step-dot.active {
      background: rgba(0,212,255,0.2);
      border-color: var(--cyan);
      color: var(--cyan);
      box-shadow: 0 0 16px rgba(0,212,255,0.3);
    }
    .step-dot.done {
      background: var(--cyan);
      border-color: var(--cyan);
      color: var(--deep-blue);
      font-size: 1rem;
    }
    .step-dot.done span.label { color: var(--cyan); }
    .step-dot.active span.label { color: var(--cyan); }

    /* ============================================================
       ASSISTENTE MAIN
       ============================================================ */
    .treat-main {
      max-width: 800px;
      margin: 0 auto;
      padding: 4rem 1.5rem 6rem;
    }

    /* Etapas */
    .step-card {
      background: var(--glass-bg);
      backdrop-filter: var(--glass-blur);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-xl);
      padding: 2.5rem;
      margin-bottom: 1.5rem;
      display: none;
      animation: fade-in-up 0.5s ease;
      position: relative;
      overflow: hidden;
    }
    .step-card::before {
      content: '';
      position: absolute;
      top: -1px; left: 20%; right: 20%;
      height: 2px;
      background: var(--grad-cyan);
    }
    .step-card.visible { display: block; }

    .step-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.75rem;
    }
    .step-num {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(0,212,255,0.15);
      border: 1.5px solid rgba(0,212,255,0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 800;
      color: var(--cyan);
      flex-shrink: 0;
    }
    .step-title {
      font-family: var(--font-display);
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--white);
    }
    .step-subtitle {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* Inputs do step 1 */
    .input-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin-bottom: 1.25rem;
    }
    .input-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .input-group label {
      font-family: var(--font-display);
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.07em;
    }
    .input-group input {
      padding: 0.8rem 1rem;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(0,212,255,0.2);
      border-radius: var(--radius-sm);
      color: var(--white);
      font-size: 1rem;
      font-family: var(--font-body);
      font-weight: 500;
      transition: var(--transition);
      outline: none;
    }
    .input-group input:focus {
      border-color: var(--cyan);
      background: rgba(0,212,255,0.06);
      box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
    }
    .input-group input::placeholder { color: rgba(255,255,255,0.2); }

    .divider-or {
      text-align: center;
      color: var(--text-muted);
      font-size: 0.85rem;
      margin: 1rem 0;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .divider-or::before,
    .divider-or::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255,255,255,0.1);
    }

    .litragem-direct input {
      width: 100%;
      padding: 0.8rem 1rem;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(0,212,255,0.2);
      border-radius: var(--radius-sm);
      color: var(--white);
      font-size: 1rem;
      font-family: var(--font-body);
      font-weight: 500;
      transition: var(--transition);
      outline: none;
    }
    .litragem-direct input:focus {
      border-color: var(--cyan);
      background: rgba(0,212,255,0.06);
      box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
    }
    .litragem-direct input::placeholder { color: rgba(255,255,255,0.2); }
    .litragem-direct label {
      font-family: var(--font-display);
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      display: block;
      margin-bottom: 0.4rem;
    }

    /* Resultado litragem */
    .result-litragem {
      display: none;
      background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,150,255,0.05));
      border: 1px solid rgba(0,212,255,0.25);
      border-radius: var(--radius-md);
      padding: 1.5rem;
      margin: 1.25rem 0;
      text-align: center;
      animation: fade-in-up 0.4s ease;
    }
    .result-litragem.show { display: block; }
    .result-litragem .num {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 900;
      color: var(--cyan);
      display: block;
    }
    .result-litragem .lbl {
      font-size: 0.88rem;
      color: var(--text-muted);
    }

    /* Pool visual colorida */
    .pool-visual-wrap {
      display: flex;
      justify-content: center;
      margin: 1.5rem 0;
    }
    .pool-mini {
      width: 200px;
      height: 100px;
      border-radius: 12px;
      border: 2px solid rgba(255,255,255,0.15);
      position: relative;
      overflow: hidden;
      transition: background 0.6s ease;
      background: linear-gradient(160deg, #0066cc, #00d4ff);
      box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.2);
    }
    .pool-mini .wave-inner {
      position: absolute;
      bottom: 0; left: -50%;
      width: 200%; height: 50%;
      background: rgba(255,255,255,0.12);
      border-radius: 50% 50% 0 0;
      animation: wave-float 3s ease-in-out infinite;
    }
    .pool-mini .wave-inner2 {
      position: absolute;
      bottom: 0; left: -50%;
      width: 200%; height: 35%;
      background: rgba(255,255,255,0.07);
      border-radius: 50% 50% 0 0;
      animation: wave-float 4s ease-in-out infinite reverse;
    }

    /* Step 2 — problemas */
    .problems-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.75rem;
    }
    .problem-option {
      background: rgba(255,255,255,0.04);
      border: 1.5px solid rgba(255,255,255,0.1);
      border-radius: var(--radius-md);
      padding: 1rem 0.75rem;
      text-align: center;
      cursor: pointer;
      transition: var(--transition);
      user-select: none;
    }
    .problem-option:hover {
      background: rgba(0,212,255,0.08);
      border-color: rgba(0,212,255,0.3);
      transform: translateY(-2px);
    }
    .problem-option.selected {
      background: rgba(0,212,255,0.15);
      border-color: var(--cyan);
      box-shadow: 0 0 16px rgba(0,212,255,0.2);
    }
    .problem-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
    .problem-label {
      font-family: var(--font-display);
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
      transition: var(--transition);
    }
    .problem-option.selected .problem-label { color: var(--cyan); }

    /* Step 3 — parâmetros */
    .params-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      margin-bottom: 1.5rem;
    }

    .param-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: var(--radius-md);
      padding: 1.25rem;
    }

    .param-label {
      font-family: var(--font-display);
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-bottom: 0.5rem;
    }

    .param-range {
      font-size: 0.72rem;
      color: rgba(0,212,255,0.6);
      margin-bottom: 0.6rem;
    }

    .param-card input {
      width: 100%;
      padding: 0.7rem 0.85rem;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(0,212,255,0.2);
      border-radius: 8px;
      color: var(--white);
      font-size: 0.95rem;
      font-family: var(--font-body);
      font-weight: 500;
      outline: none;
      transition: var(--transition);
    }
    .param-card input:focus {
      border-color: var(--cyan);
      background: rgba(0,212,255,0.06);
      box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
    }
    .param-card input::placeholder { color: rgba(255,255,255,0.2); }

    /* Tutorial de teste */
    .test-tutorial {
      background: rgba(0,212,255,0.05);
      border: 1px solid rgba(0,212,255,0.15);
      border-radius: var(--radius-md);
      padding: 1.25rem 1.5rem;
      margin-top: 0.5rem;
    }
    .test-tutorial summary {
      cursor: pointer;
      font-family: var(--font-display);
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--cyan);
      list-style: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .test-tutorial summary::before { content: '▶'; font-size: 0.7rem; }
    details[open] .test-tutorial summary::before { content: '▼'; }
    .test-steps {
      margin-top: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }
    .test-step {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.5;
    }
    .test-step-num {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(0,212,255,0.15);
      border: 1px solid rgba(0,212,255,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--cyan);
      flex-shrink: 0;
    }
    .store-tip {
      margin-top: 1rem;
      padding: 0.85rem 1rem;
      background: rgba(0,212,255,0.08);
      border-radius: 8px;
      font-size: 0.83rem;
      color: var(--text-muted);
    }
    .store-tip a {
      color: var(--cyan);
      text-decoration: none;
      font-weight: 600;
    }

    .skip-note {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
      text-align: center;
    }

    /* ============================================================
       DIAGNÓSTICO
       ============================================================ */
    #diagnostico-card {
      display: none;
      animation: fade-in-up 0.6s ease;
    }
    #diagnostico-card.visible { display: block; }

    .diag-header {
      text-align: center;
      padding: 2rem 2.5rem 1.5rem;
      background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,100,200,0.08));
      border-radius: var(--radius-xl) var(--radius-xl) 0 0;
      border: 1px solid rgba(0,212,255,0.25);
      border-bottom: none;
    }
    .diag-icon { font-size: 3rem; display: block; margin-bottom: 0.75rem; animation: float-y 3s ease-in-out infinite; }
    .diag-header h2 {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--white);
      margin-bottom: 0.5rem;
    }
    .diag-header p {
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .diag-body {
      background: var(--glass-bg);
      backdrop-filter: var(--glass-blur);
      border: 1px solid rgba(0,212,255,0.25);
      border-top: none;
      border-radius: 0 0 var(--radius-xl) var(--radius-xl);
      padding: 2rem 2.5rem;
    }

    /* Passos */
    .steps-list { display: flex; flex-direction: column; gap: 1rem; }

    .treat-step {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: var(--radius-md);
      padding: 1.5rem;
      display: flex;
      gap: 1.25rem;
      align-items: flex-start;
      transition: var(--transition);
    }
    .treat-step:hover {
      border-color: rgba(0,212,255,0.2);
      background: rgba(0,212,255,0.03);
    }
    .treat-step-num {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--grad-cyan);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 0.9rem;
      font-weight: 800;
      color: var(--deep-blue);
      flex-shrink: 0;
    }
    .treat-step-content { flex: 1; }
    .treat-step-title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 0.4rem;
    }
    .treat-step-desc {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .treat-step-meta {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      margin-top: 0.75rem;
    }
    .meta-badge {
      padding: 0.28rem 0.75rem;
      border-radius: 50px;
      font-size: 0.75rem;
      font-weight: 600;
      font-family: var(--font-display);
    }
    .meta-badge.time  { background: rgba(255,200,0,0.12); border: 1px solid rgba(255,200,0,0.25); color: #ffc800; }
    .meta-badge.tip   { background: rgba(0,212,255,0.1);  border: 1px solid rgba(0,212,255,0.2);  color: var(--cyan); }
    .meta-badge.warn  { background: rgba(255,100,0,0.1);  border: 1px solid rgba(255,100,0,0.2);  color: #ff7030; }

    /* CTA final diagnóstico */
    .diag-footer {
      margin-top: 2rem;
      padding: 1.75rem;
      background: rgba(0,212,255,0.06);
      border: 1px solid rgba(0,212,255,0.15);
      border-radius: var(--radius-md);
      text-align: center;
    }
    .diag-footer h3 {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 0.5rem;
    }
    .diag-footer p {
      font-size: 0.88rem;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
    }
    .diag-footer-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

    .restart-btn {
      margin-top: 1.5rem;
      text-align: center;
    }
    .restart-btn button {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 0.85rem;
      cursor: pointer;
      text-decoration: underline;
      font-family: var(--font-body);
      transition: var(--transition);
    }
    .restart-btn button:hover { color: var(--cyan); }

    /* Responsividade */
    @media (max-width: 700px) {
      .step-card { padding: 1.75rem 1.25rem; }
      .input-row, .params-grid { grid-template-columns: 1fr; }
      .problems-grid { grid-template-columns: repeat(2, 1fr); }
      .diag-body { padding: 1.5rem 1.25rem; }
      .diag-header { padding: 1.75rem 1.25rem 1.25rem; }
      .progress-bar-wrap { display: none; }
    }