/* ══════════════════════════════════════
   BÂTIDEVIS — APP CSS
══════════════════════════════════════ */
:root {
  --navy: #0F1E3D;
  --navy2: #1A2F5A;
  --orange: #F97316;
  --orange2: #EA6C0A;
  --concrete: #F2F1EF;
  --white: #FAFAF9;
  --green: #16A34A;
  --red: #DC2626;
  --text: #0F1E3D;
  --muted: #6B7280;
  --border: #E4E3E1;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 2px 12px rgba(15,30,61,.08);
  --shadow-md: 0 4px 24px rgba(15,30,61,.12);
  --font-d: 'Space Grotesk', sans-serif;
  --font-b: 'Inter', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font-b); background: var(--concrete); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: 72px; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; border: none; }
a { text-decoration: none; color: inherit; }

/* ── TOPBAR ── */
.app-topbar { background: var(--navy); color: white; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.app-brand { display: flex; align-items: center; gap: 8px; }
.app-brand-icon { font-size: 18px; }
.app-brand-name { font-family: var(--font-d); font-weight: 700; font-size: 16px; }
.timer-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.12); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.timer-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.app-topbar-right { display: flex; align-items: center; gap: 8px; }
.notif-btn { width: 32px; height: 32px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.app-avatar { width: 32px; height: 32px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: 12px; color: white; }
.btn-back-site { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); padding: 6px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }

/* ── BOTTOM NAV ── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--border); display: flex; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 6px; font-size: 10px; color: var(--muted); font-weight: 600; cursor: pointer; transition: color .18s; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--orange); }
.nav-center { position: relative; }
.nav-fab { width: 50px; height: 50px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: -20px; box-shadow: 0 4px 16px rgba(249,115,22,.4); transition: transform .18s; }
.nav-fab:hover { transform: scale(1.08); }

/* ── TAB CONTENT ── */
.tab-content { display: none; padding: 18px; animation: fadeUp .25s ease; }
.tab-content.active { display: block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* ── DASHBOARD ── */
.greeting { font-family: var(--font-d); font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.greeting-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.stat-card { background: white; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.stat-label { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.stat-value { font-family: var(--font-d); font-size: 22px; font-weight: 800; line-height: 1; }
.stat-value.green { color: var(--green); }
.stat-value.orange { color: var(--orange); }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title-sm { font-family: var(--font-d); font-weight: 700; font-size: 15px; }
.section-link { font-size: 12px; color: var(--orange); font-weight: 600; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.quick-btn { background: white; border-radius: var(--r); padding: 16px; text-align: center; box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent; transition: all .18s; }
.quick-btn:hover { border-color: var(--orange); }
.qi { font-size: 26px; margin-bottom: 5px; }
.ql { font-size: 12px; font-weight: 700; }
.qs { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* ── DOC LIST ── */
.doc-item { background: white; border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.doc-item:hover { transform: translateX(2px); }
.doc-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.doc-right { text-align: right; flex-shrink: 0; }
.doc-amount { font-family: var(--font-d); font-weight: 700; font-size: 14px; }
.doc-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 3px; display: inline-block; }
.st-draft { background: #F3F4F6; color: #6B7280; }
.st-sent { background: #DBEAFE; color: #1D4ED8; }
.st-paid { background: #DCFCE7; color: #15803D; }
.st-signed { background: #FEF3C7; color: #B45309; }
.st-partial { background: #FFF7ED; color: #92400E; }

/* ── SEARCH & CHIPS ── */
.chip-row { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); cursor: pointer; transition: all .18s; background: white; color: var(--navy); white-space: nowrap; }
.chip.active { background: var(--navy); color: white; border-color: var(--navy); }
.search-bar { position: relative; margin-bottom: 14px; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; }
.search-input { width: 100%; padding: 11px 13px 11px 40px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; background: white; transition: border .18s; color: var(--text); }
.search-input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(249,115,22,.1); }

/* ── FORM ── */
.form-header { background: var(--navy); color: white; padding: 18px; margin: -18px -18px 18px; }
.form-header h2 { font-family: var(--font-d); font-size: 19px; font-weight: 700; }
.form-header p { font-size: 12px; opacity: .6; margin-top: 2px; }
.form-body { }
.fg { margin-bottom: 14px; }
.fl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: block; margin-bottom: 5px; }
.fi { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; background: white; color: var(--text); transition: border .18s; }
.fi:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.1); outline: none; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── AUTOCOMPLETE ── */
.autocomplete-wrap { position: relative; }
.autocomplete-wrap .fi { padding-right: 90px; }
.btn-new-client { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--orange); color: white; border: none; border-radius: 6px; padding: 6px 10px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; transition: background .18s; }
.btn-new-client:hover { background: var(--orange2); }
.autocomplete-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: white; border: 1.5px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-md); z-index: 50; max-height: 260px; overflow-y: auto; display: none; }
.autocomplete-dropdown.open { display: block; animation: fadeUp .15s ease; }
.ac-item { padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); transition: background .15s; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.highlighted { background: #FFF7ED; }
.ac-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: 13px; color: white; flex-shrink: 0; }
.ac-name { font-weight: 600; font-size: 14px; }
.ac-detail { font-size: 11px; color: var(--muted); margin-top: 1px; }
.ac-mark { background: #FFF3CD; color: var(--navy); border-radius: 2px; }
.ac-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.ac-create { padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--orange); font-weight: 600; font-size: 14px; background: #FFF7ED; border-top: 1px solid var(--border); }
.ac-create:hover { background: #FFEDD5; }
.selected-client-card { margin-top: 8px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; display: none; }
.selected-client-card.show { display: flex; align-items: center; gap: 12px; }
.sc-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: 13px; color: white; flex-shrink: 0; }
.sc-info { flex: 1; }
.sc-name { font-weight: 700; font-size: 13px; color: var(--green); }
.sc-detail { font-size: 11px; color: var(--muted); }
.sc-clear { color: var(--muted); padding: 4px; font-size: 16px; line-height: 1; }

/* ── LINE ITEMS ── */
.lines-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.btn-sm-outline { border: 1.5px solid var(--border); color: var(--navy); background: white; padding: 7px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .18s; }
.btn-sm-outline:hover { border-color: var(--orange); color: var(--orange); }
.line-item { background: white; border-radius: var(--r-sm); padding: 11px; margin-bottom: 8px; box-shadow: var(--shadow); }
.line-item-top { display: flex; gap: 8px; align-items: flex-start; }
.line-item-desc { flex: 1; }
.line-item-del { color: var(--red); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; flex-shrink: 0; transition: background .15s; cursor: pointer; }
.line-item-del:hover { background: #FEF2F2; }
.line-nums { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 7px; }
.mini-field .ml { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.mini-input { width: 100%; padding: 7px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 13px; font-family: var(--font-d); font-weight: 600; text-align: center; color: var(--navy); }
.mini-input:focus { border-color: var(--orange); outline: none; }
.line-total { text-align: right; font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--navy); margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--border); }
.btn-add-line { width: 100%; padding: 11px; border: 2px dashed var(--border); border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 5px; transition: all .18s; background: white; margin-bottom: 14px; cursor: pointer; }
.btn-add-line:hover { border-color: var(--orange); color: var(--orange); }

/* ── ACOMPTE ── */
.acompte-block { background: white; border-radius: var(--r); padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); border-left: 4px solid var(--orange); }
.ac-title { font-family: var(--font-d); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.optional { font-size: 11px; font-weight: 400; color: var(--muted); }
.ac-slider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ac-slider { flex: 1; -webkit-appearance: none; height: 5px; border-radius: 3px; background: var(--border); }
.ac-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--orange); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(249,115,22,.4); }
.ac-pct-label { font-family: var(--font-d); font-weight: 700; font-size: 16px; color: var(--orange); min-width: 40px; text-align: right; }
.ac-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ac-box { background: var(--concrete); border-radius: var(--r-sm); padding: 10px; text-align: center; }
.ac-box-label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.ac-box-val { font-family: var(--font-d); font-weight: 700; font-size: 16px; color: var(--navy); }

/* ── TOTAUX ── */
.totals-card { background: var(--navy); border-radius: var(--r); padding: 16px; color: white; margin-bottom: 14px; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; opacity: .75; }
.total-row.total-main { font-family: var(--font-d); font-size: 18px; font-weight: 800; opacity: 1; margin-bottom: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }
.tva-select { background: transparent; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 2px 4px; font-size: 12px; cursor: pointer; }
.tva-select option { background: var(--navy); }

/* ── SIGNATURE ── */
.sig-block { background: white; border-radius: var(--r); padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); border-left: 4px solid var(--navy); }
.sig-block-title { font-family: var(--font-d); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.sig-block-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sig-pad-wrap { border: 2px dashed var(--border); border-radius: 10px; height: 110px; position: relative; overflow: hidden; margin-bottom: 10px; background: #FAFAFA; cursor: crosshair; touch-action: none; transition: border-color .2s; }
.sig-pad-wrap.signed { border: 2px solid var(--green); background: #F0FDF4; }
.sig-pad-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig-pad-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; pointer-events: none; }
.sig-btn-row { display: flex; gap: 8px; }
.sig-btn-clear { flex: 1; border: 1.5px solid var(--border); color: var(--muted); border-radius: var(--r-sm); padding: 10px; font-size: 13px; font-weight: 600; background: white; transition: all .18s; }
.sig-btn-clear:hover { border-color: var(--red); color: var(--red); }
.sig-btn-confirm { flex: 1; background: var(--navy); color: white; border-radius: var(--r-sm); padding: 10px; font-size: 13px; font-weight: 700; transition: background .18s; }
.sig-btn-confirm:hover { background: var(--navy2); }
.sig-cert { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; padding: 10px; margin-top: 10px; font-size: 11px; color: var(--green); display: none; align-items: flex-start; gap: 6px; line-height: 1.5; }
.sig-cert.show { display: flex; }

/* ── SEND ── */
.send-primary { width: 100%; padding: 14px; background: var(--orange); color: white; border-radius: var(--r-sm); font-family: var(--font-d); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 16px rgba(249,115,22,.3); transition: all .18s; margin-bottom: 8px; cursor: pointer; }
.send-primary:hover { background: var(--orange2); }
.send-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.send-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px; background: white; border-radius: var(--r-sm); box-shadow: var(--shadow); font-size: 11px; font-weight: 600; color: var(--navy); cursor: pointer; border: 2px solid transparent; transition: all .18s; }
.send-btn:hover { border-color: var(--orange); color: var(--orange); }
.form-action-row { display: flex; gap: 8px; margin-bottom: 40px; }
.btn-save { flex: 1; padding: 14px; background: var(--orange); color: white; border-radius: var(--r-sm); font-family: var(--font-d); font-weight: 700; font-size: 14px; transition: background .18s; cursor: pointer; }
.btn-save:hover { background: var(--orange2); }
.btn-preview { padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; background: white; font-weight: 600; cursor: pointer; }

/* ── CLIENTS ── */
.clients-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.btn-add-client { display: flex; align-items: center; gap: 6px; background: var(--orange); color: white; padding: 9px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; transition: background .18s; }
.btn-add-client:hover { background: var(--orange2); }
.client-card { background: white; border-radius: var(--r-sm); padding: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.client-card:hover { transform: translateX(2px); }
.client-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 700; font-size: 16px; color: white; flex-shrink: 0; }
.client-info { flex: 1; min-width: 0; }
.client-name { font-weight: 700; font-size: 14px; }
.client-company { font-size: 12px; color: var(--muted); margin-top: 1px; }
.client-contact { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-right { text-align: right; flex-shrink: 0; }
.client-total { font-family: var(--font-d); font-weight: 700; font-size: 14px; }
.client-count { font-size: 11px; color: var(--muted); margin-top: 2px; }
.clients-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.clients-empty .empty-icon { font-size: 48px; margin-bottom: 12px; }
.clients-empty p { font-size: 14px; }

/* ── SETTINGS ── */
.settings-card { background: white; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.settings-card-title { font-family: var(--font-d); font-weight: 700; font-size: 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sub-status-row { display: flex; align-items: center; justify-content: space-between; }
.sub-plan-name { font-weight: 700; font-size: 14px; }
.sub-plan-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sub-badge-active { background: #DCFCE7; color: var(--green); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.sig-preview-box { border: 1.5px dashed var(--border); border-radius: 10px; height: 70px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); cursor: pointer; background: #FAFAFA; }
.btn-danger-full { display: block; width: 100%; padding: 13px; background: #FEF2F2; color: var(--red); border: 1.5px solid #FECACA; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; text-align: center; cursor: pointer; transition: background .18s; }
.btn-danger-full:hover { background: #FEE2E2; }

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,30,61,.6); z-index: 500; display: none; align-items: flex-end; }
.modal-overlay.open { display: flex; }
.modal-sheet { background: white; border-radius: 20px 20px 0 0; width: 100%; max-height: 90vh; overflow-y: auto; padding: 18px; animation: slideUp .25s ease; }
@keyframes slideUp { from{transform:translateY(100%)} to{transform:none} }
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-family: var(--font-d); font-weight: 700; font-size: 17px; }
.modal-close { width: 32px; height: 32px; background: var(--concrete); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.modal-body { }
.modal-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-modal-cancel { border: 1.5px solid var(--border); color: var(--navy); background: white; padding: 13px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; transition: all .18s; }
.btn-modal-save { background: var(--orange); color: white; padding: 13px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; transition: background .18s; }
.btn-modal-save:hover { background: var(--orange2); }

/* CLIENT DETAIL */
.cd-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cd-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 20px; color: white; flex-shrink: 0; }
.cd-name { font-family: var(--font-d); font-weight: 800; font-size: 18px; }
.cd-company { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cd-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.cd-info-item { background: var(--concrete); border-radius: 8px; padding: 10px; }
.cd-info-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.cd-info-val { font-size: 13px; font-weight: 600; }
.cd-docs-title { font-family: var(--font-d); font-weight: 700; font-size: 14px; margin-bottom: 10px; }

/* TOAST */
.toast { position: fixed; bottom: 82px; left: 16px; right: 16px; background: var(--navy); color: white; padding: 13px 16px; border-radius: var(--r-sm); font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 8px; z-index: 600; box-shadow: 0 8px 32px rgba(0,0,0,.3); animation: slideUp .3s ease; }
.toast.hidden { display: none; }

/* RESPONSIVE */
@media (min-width: 600px) {
  .tab-content { max-width: 600px; margin: 0 auto; padding: 24px; }
  .form-header { border-radius: var(--r) var(--r) 0 0; margin: 0 0 18px; }
}
@media (max-width: 360px) {
  .field-row-2 { grid-template-columns: 1fr; }
  .send-row { grid-template-columns: 1fr 1fr; }
  .send-row .send-btn:last-child { grid-column: 1 / -1; }
}
