*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #F7F6F2; --surface: #FFFFFF; --surface2: #F0EFE9;
    --text: #1A1916; --muted: #6B6860; --accent: #1B4FD8;
    --accent2: #1440B3; --gold: #92400E; --green: #047857;
    --green-light: #ECFDF5; --border: #E5E3DC;
  }
  html, body { background: transparent; }
  body { font-family: 'Inter', sans-serif; color: var(--text); padding: 1rem; max-width: 480px; margin: 0 auto; }
  .widget-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
  .widget-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
  @media (max-width: 360px) { .form-grid { grid-template-columns: 1fr; } }
  .field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.4rem; }
  .input-wrap { position: relative; }
  .input-wrap input, .input-wrap select { width: 100%; padding: 0.7rem 0.9rem 0.7rem 1.75rem; border: 1.5px solid var(--border); border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text); background: var(--bg); outline: none; }
  .input-wrap input:focus, .input-wrap select:focus { border-color: var(--accent); background: white; }
  .input-prefix { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); }
  .input-suffix { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
  .no-prefix input, .no-prefix select { padding-left: 0.9rem; }
  .calc-btn { width: 100%; padding: 0.85rem; background: var(--accent); color: white; border: none; border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 0.4rem; }
  .calc-btn:hover { background: var(--accent2); }
  .error-msg { display: none; color: #EF4444; font-size: 12px; margin-top: 0.6rem; text-align: center; }
  .error-msg.show { display: block; }
  .result-box { display: none; margin-top: 1.25rem; }
  .result-box.show { display: block; animation: fadeUp 0.3s ease; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .payment-hero { background: linear-gradient(135deg, var(--accent2), var(--accent)); border-radius: 14px; padding: 1.25rem; text-align: center; color: white; margin-bottom: 0.75rem; }
  .payment-label { font-size: 11px; opacity: 0.75; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
  .payment-amount { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; line-height: 1; }
  .summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .summary-card { background: var(--surface2); border-radius: 10px; padding: 0.65rem; text-align: center; }
  .summary-card .num { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; }
  .summary-card .lbl { font-size: 9.5px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
  .attribution { text-align: center; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
  .attribution a { color: var(--accent); font-weight: 600; text-decoration: none; }
  .attribution a:hover { text-decoration: underline; }
