/* ============================================================
   KASSA – Stroynamail  |  Ultra-Premium Modern Dark UI
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0f19;
  --bg2:         #111827;
  --bg3:         #1f293d;
  --surface:     rgba(255, 255, 255, 0.04);
  --surface-h:   rgba(255, 255, 255, 0.08);
  --border:      rgba(255, 255, 255, 0.08);
  --border-h:    rgba(255, 255, 255, 0.18);

  --primary:     #6366f1;
  --primary-h:   #818cf8;
  --primary-d:   #4f46e5;
  --secondary:   #8b5cf6;

  --green:       #10b981;
  --green-bg:    rgba(16, 185, 129, 0.14);
  --red:         #f43f5e;
  --red-bg:      rgba(244, 63, 94, 0.14);
  --amber:       #f59e0b;
  --amber-bg:    rgba(245, 158, 11, 0.14);

  --text:        #f8fafc;
  --text-2:      #cbd5e1;
  --text-3:      #64748b;

  --radius:      16px;
  --radius-sm:   10px;
  --topbar-h:    58px;

  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

/* ─── SCREENS ─── */
.screen { position: fixed; inset: 0; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.screen.active { opacity: 1; pointer-events: all; }

/* ─── LOGIN ─── */
.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(139,92,246,.15) 0%, transparent 55%),
              var(--bg);
}
.login-blobs { position: absolute; inset: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35; animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: #6366f1; top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -80px; right: 0; animation-delay: 3s; }
.blob-3 { width: 300px; height: 300px; background: #06b6d4; top: 40%; left: 40%; animation-delay: 6s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(.95); }
}

.login-container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
}

.login-logo {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 2.5rem;
  color: var(--text);
}
.login-logo strong { color: var(--primary-h); }

.login-title { font-size: 2rem; font-weight: 800; text-align: center; }
.login-subtitle { color: var(--text-2); margin-top: .5rem; margin-bottom: 2rem; text-align: center; }

.org-cards {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 520px;
}

.org-card {
  flex: 1; min-width: 220px;
  background: rgba(17, 24, 39, 0.7);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer; display: flex; align-items: center; gap: 1rem;
  transition: all .25s ease; color: var(--text);
  backdrop-filter: blur(12px);
}
.org-card:hover {
  border-color: var(--primary);
  background: rgba(31, 41, 55, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99,102,241,.25);
}
.org-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.org-icon-stroyna { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: white; }
.org-icon-xbk     { background: linear-gradient(135deg,#0ea5e9,#06b6d4); color: white; }
.org-name  { font-size: 1.1rem; font-weight: 700; }
.org-desc  { font-size: .8rem; color: var(--text-2); margin-top: 2px; }
.org-arrow { margin-left: auto; font-size: 1.2rem; color: var(--text-3); transition: transform .2s; }
.org-card:hover .org-arrow { transform: translateX(4px); color: var(--primary-h); }

.login-form {
  width: 100%; max-width: 400px; margin-top: 1.5rem;
  animation: fadeUp .3s ease;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

.selected-org-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  margin-bottom: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
}

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }

input, textarea, select {
  background: rgba(17, 24, 39, 0.7);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  padding: .65rem .9rem;
  width: 100%;
  transition: all .2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
  background: rgba(31, 41, 55, 0.9);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
select option { background: var(--bg2); color: var(--text); }

.input-pw-wrap { position: relative; }
.input-pw-wrap input { padding-right: 2.8rem; }
.toggle-pw {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--text-2);
}

.form-error {
  min-height: 1.4rem; color: var(--red); font-size: .85rem;
  margin-bottom: .5rem; background: var(--red-bg); padding: .4rem .8rem;
  border-radius: 8px; display: none; border: 1px solid rgba(244, 63, 94, 0.3);
}
.form-error.visible { display: block; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none; border-radius: var(--radius-sm);
  color: white; font-family: inherit; font-size: .95rem; font-weight: 600;
  padding: .75rem 1.5rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  filter: brightness(1.12); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.btn-primary:active { transform: none; }

.btn-danger-primary {
  background: linear-gradient(135deg, var(--red), #dc2626);
}
.btn-danger-primary:hover { box-shadow: 0 8px 24px rgba(244,63,94,.4); }

.btn-login { width: 100%; margin-top: .25rem; }

.btn-ghost {
  background: transparent; border: none; color: var(--text-2);
  font-family: inherit; font-size: .9rem; cursor: pointer;
  padding: .5rem; margin-top: .5rem; width: 100%;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--text); }

/* ─── SPINNER ─── */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: var(--primary-h);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LAYOUT & HORIZONTAL NAV ─── */
#mainApp { display: flex; flex-direction: column; background: var(--bg); height: 100vh; }

.kassa-tabs {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px);
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; flex-shrink: 0;
  z-index: 100;
}
.kassa-tabs::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2); font-family: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap; width: auto;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.25));
  border-color: rgba(99,102,241,0.5);
  color: #a5b4fc; font-weight: 600;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}
.nav-icon { font-size: 1.1rem; }

/* MAIN CONTENT */
.main-content {
  flex: 1; display: flex; flex-direction: column;
  min-height: 0; height: calc(100vh - 52px); overflow: hidden;
  background: var(--bg);
}

/* TOP BAR */
.top-bar {
  height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.4);
}
.top-bar-left-group { display: flex; align-items: center; gap: 0.75rem; }
.top-bar-title { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.top-bar-right { display: flex; align-items: center; gap: 0.75rem; }
.org-pill {
  padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.35); background: rgba(99, 102, 241, 0.12); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 0.2rem;
}
.header-org-select {
  background: transparent;
  border: none;
  color: #818cf8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding: 2px 2px;
}
.header-org-select option {
  background: #1e293b;
  color: #f8fafc;
}
.btn-refresh {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text-2);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.btn-refresh:hover { border-color: var(--primary); color: var(--primary-h); transform: rotate(90deg); background: rgba(99,102,241,0.1); }

/* PAGES */
.page { display: none; flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem; }
.page.active { display: flex; flex-direction: column; gap: 1rem; }

/* QUICK PERIOD BUTTONS & TOOLBAR */
.page-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; backdrop-filter: blur(12px); flex-shrink: 0;
}
.toolbar-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.quick-period-btns {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border);
  padding: 4px; border-radius: 12px;
}
.period-btn {
  background: transparent; border: none; color: var(--text-2);
  padding: 0.4rem 0.85rem; border-radius: 8px; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.period-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.period-btn.active {
  background: var(--primary); color: #ffffff; font-weight: 600;
  box-shadow: 0 2px 10px rgba(99,102,241,0.4);
}

.date-range { display: flex; align-items: center; gap: 0.5rem; }
.date-range input[type="date"] {
  width: auto; padding: 0.45rem 0.75rem; font-size: 0.85rem;
  background: rgba(11, 15, 25, 0.6); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
}
.date-range span { color: var(--text-3); font-weight: 600; }

.search-box input {
  width: 220px; padding: 0.45rem 0.85rem; font-size: 0.85rem;
  background: rgba(11, 15, 25, 0.6); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
}
.search-box input:focus { width: 260px; }

.btn-sm {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-2);
  padding: 0.45rem 0.9rem; font-size: 0.84rem; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all .18s;
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary-h); background: rgba(99,102,241,0.1); }
.btn-primary.btn-sm { color: white; width: auto; }

/* STATS GRID & STAT CARDS */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; flex-shrink: 0;
}
.stat-card {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  display: flex; align-items: center; gap: 1.1rem;
  transition: all .25s ease; cursor: default;
  backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
}

.stat-in .stat-icon      { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.stat-out .stat-icon     { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.25); }
.stat-balance .stat-icon { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.25); }
.stat-docs .stat-icon    { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }

.stat-label { font-size: .75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-value { font-size: 1.45rem; font-weight: 800; margin-top: .2rem; color: var(--text); tracking: -0.02em; }

.stat-in .stat-value      { color: #34d399; }
.stat-out .stat-value     { color: #fb7185; }
.stat-balance .stat-value { color: #a5b4fc; }
.stat-docs .stat-value    { color: #fbbf24; }

/* SECTION ROW & CARDS */
.section-row { display: grid; grid-template-columns: 1fr 300px; gap: 1.25rem; }

.card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(12px);
}
.card.full {
  flex: 1; min-height: 0; overflow-x: auto; overflow-y: auto;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 0.95rem; color: var(--text);
}

/* QUICK ACTIONS */
.quick-actions { padding: 1.25rem; display: flex; flex-direction: column; gap: .85rem; }
.qa-btn {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid; cursor: pointer; font-family: inherit;
  font-size: .92rem; font-weight: 600; transition: all .25s ease;
}
.qa-in  {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border-color: rgba(16, 185, 129, 0.3); color: #34d399;
}
.qa-in:hover  {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.12));
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}
.qa-out {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
  border-color: rgba(244, 63, 94, 0.3); color: #fb7185;
}
.qa-out:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(244, 63, 94, 0.12));
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244, 63, 94, 0.2);
}

/* DOC LIST MINI */
.doc-list-mini { padding: .75rem; display: flex; flex-direction: column; gap: .4rem; max-height: 680px; min-height: 450px; overflow-y: auto; }
.doc-mini-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border);
  font-size: .85rem; transition: background .18s;
}
.doc-mini-item:hover { background: rgba(255, 255, 255, 0.05); }
.doc-mini-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-in  { background: var(--green); }
.dot-out { background: var(--red); }
.doc-mini-agent { flex: 1; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-mini-sum { font-weight: 700; white-space: nowrap; }
.doc-mini-sum.in  { color: #34d399; }
.doc-mini-sum.out { color: #fb7185; }
.doc-mini-date { color: var(--text-3); font-size: .78rem; }
.loading-row { padding: 1.2rem; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: .5rem; }

/* TABLE */
.table-card { display: flex; flex-direction: column; }
.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.doc-table th {
  position: sticky; top: 0; z-index: 10;
  background: #111827; color: #94a3b8;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border);
  font-weight: 700; white-space: nowrap; box-shadow: 0 1px 0 var(--border);
}
.doc-table td {
  padding: .85rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.04);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e2e8f0;
}
.doc-table tr:hover td { background: rgba(255,255,255,.03); }
.loading-cell { text-align: center; color: var(--text-2); padding: 2.5rem !important; }
.loading-cell div { display: inline-flex; align-items: center; gap: .5rem; }

.badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
}
.badge-green  { background: var(--green-bg); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-red    { background: var(--red-bg); color: #fb7185; border: 1px solid rgba(244,63,94,0.25); }
.badge-amber  { background: var(--amber-bg); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }

.btn-icon {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; padding: .4rem .65rem;
  color: var(--text-2); font-size: .85rem; transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary-h); background: rgba(99,102,241,0.1); }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); width: 100%; max-width: 580px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.modal-close {
  background: none; border: none; color: var(--text-2); cursor: pointer;
  font-size: 1.2rem; transition: color .2s;
}
.modal-close:hover { color: var(--red); }

.modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.req { color: var(--red); }

.modal-footer {
  padding: 1.1rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
}
.modal-footer .btn-primary { width: auto; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(24px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem 1.6rem;
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: all .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--green); color: #34d399; }
.toast.error   { border-color: var(--red); color: #fb7185; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .kassa-tabs { padding: 0.5rem 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .search-box input { width: 100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .org-cards { flex-direction: column; }
}
