/* ===================== VIEWS ===================== */
  .view { display: none; animation: fadeUp 0.35s ease; }
  .view.active { display: block; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  /* ---- Stat tiles ---- */
  .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 34px; }
  .stat-tile {
    background: var(--paper-panel); border: 1px solid var(--line); border-top: 3px solid var(--gold);
    border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: var(--shadow-card);
  }
  .stat-tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .stat-tile-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); }
  .stat-tile-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--ink-navy-soft); color: var(--ink-navy); display: flex; align-items: center; justify-content: center; }
  .stat-tile-icon svg { width: 16px; height: 16px; stroke-width: 1.8; }
  .stat-tile-icon.rupee { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
  .stat-tile-value { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink-navy); }

  .panel-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
  .panel-heading h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink-navy); }
  .panel-heading .link-btn { font-size: 12.5px; font-weight: 600; color: var(--ink-navy); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

  .panel { background: var(--paper-panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }

  /* ---- Form ---- */
  .form-panel { background: var(--paper-panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 34px 36px 30px; max-width: 900px; }
  .form-section + .form-section { margin-top: 34px; padding-top: 30px; border-top: 1px dashed var(--line); }
  .section-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
  .section-eyebrow .num { background: var(--ink-navy); color: var(--gold-soft); width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
  .section-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink-navy); margin-bottom: 18px; }

  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  .field label { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
  .field label .req { color: var(--danger); margin-left: 2px; }
  .field input, .field select, .field textarea {
    border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--paper);
    font-size: 14px; color: var(--ink-text); width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--ink-navy); outline: none; box-shadow: 0 0 0 3px var(--gold-soft);
  }
  .field textarea { resize: vertical; min-height: 68px; }
  .field .hint { font-size: 11.5px; color: var(--ink-muted); }

  .status-preview { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper-alt); border-radius: 6px; margin-top: 4px; }
  .status-preview .label { font-size: 12.5px; color: var(--ink-muted); }

  .form-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }

  /* ---- Stamp badges (signature element) ---- */
  .stamp {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; letter-spacing: 1.4px;
    text-transform: uppercase; padding: 4px 10px; border-radius: 3px; border: 1.6px solid currentColor;
    transform: rotate(-2.5deg); white-space: nowrap;
  }
  .stamp--paid { color: var(--status-paid); background: var(--status-paid-bg); }
  .stamp--pending { color: var(--status-pending); background: var(--status-pending-bg); }
  .stamp--partial { color: var(--status-partial); background: var(--status-partial-bg); }
