/* ===== Forms, toasts, accordion, tables ===== */

.field { display: grid; gap: 8px; margin-bottom: 18px; }

.field label {
  font: 600 0.82rem/1 'Inter', sans-serif;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 13, 20, 0.7);
  color: var(--text);
  font: 400 0.96rem/1.4 'Inter', sans-serif;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.input::placeholder, .textarea::placeholder { color: #5f6c7f; }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(87, 166, 255, 0.65);
  background: rgba(12, 18, 28, 0.9);
  box-shadow: 0 0 0 4px rgba(47, 139, 255, 0.14);
}

.textarea { min-height: 130px; resize: vertical; }

.field-error { color: var(--bad); font-size: 0.82rem; min-height: 1em; }

.form-note { font-size: 0.86rem; color: var(--text-mute); }

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.checkline input { margin-top: 3px; accent-color: var(--ice-500); }

.strength { display: flex; gap: 5px; margin-top: 4px; }
.strength i {
  height: 4px;
  flex: 1;
  border-radius: 4px;
  background: rgba(140, 175, 220, 0.16);
  transition: background 0.3s var(--ease);
}
.strength[data-level='1'] i:nth-child(1) { background: var(--bad); }
.strength[data-level='2'] i:nth-child(-n + 2) { background: var(--warn); }
.strength[data-level='3'] i:nth-child(-n + 3) { background: #7ed4ff; }
.strength[data-level='4'] i { background: var(--ok); }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 19, 28, 0.96);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  color: var(--text);
  animation: toast-in 0.35s var(--ease) both;
  border-left: 3px solid var(--ice-400);
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--bad); }
.toast.leaving { animation: toast-out 0.3s var(--ease) both; }

/* ---------- Accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 23, 33, 0.6);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s;
}
.faq-item[open] { border-color: rgba(87, 166, 255, 0.4); background: rgba(20, 28, 40, 0.75); }

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font: 600 1rem/1.4 'Sora', sans-serif;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--ice-400);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

table.data th {
  text-align: left;
  padding: 13px 16px;
  font: 600 0.74rem/1 'Inter', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(12, 17, 26, 0.9);
  border-bottom: 1px solid var(--line);
}

table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(87, 166, 255, 0.045); }

.status { font-weight: 600; }
.status-paid, .status-active, .status-approved { color: var(--ok); }
.status-pending { color: var(--warn); }
.status-rejected, .status-revoked, .status-expired { color: var(--bad); }

.empty {
  padding: 30px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.92rem;
}
