/* ========== FRONTEND FORM ========== */
.abdt-wrap {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0f172a;
}
.abdt-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.abdt-hero {
  text-align: center;
  padding: 2rem 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.18), transparent),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #f1f5f9;
}
.abdt-hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.abdt-title {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom:15px;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.abdt-sub {
  margin: 0 auto;
  max-width: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}
.abdt-form {
  padding: 1.5rem 1.75rem 0.5rem;
}
.abdt-field {
  margin-bottom: 1.15rem;
}
.abdt-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}
.abdt-field .req { color: #ef4444; }
.abdt-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.abdt-field input::placeholder { color: #94a3b8; }
.abdt-field input:hover { border-color: #cbd5e1; }
.abdt-field input:focus {
  outline: none;
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.abdt-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.abdt-row .abdt-field {
  width: 100%;
}
.abdt-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 520px) {
  .abdt-row-2 {
    grid-template-columns: 1fr;
  }
}
.abdt-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.abdt-select:hover { border-color: #cbd5e1; }
.abdt-select:focus {
  outline: none;
  background-color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.abdt-saved-chip {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  color: #1e40af;
  background: #eff6ff;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}
.abdt-ifsc {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem !important;
}
.abdt-btn {
  display: block;
  width: 100%;
  margin: 0.5rem 0 1.25rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.abdt-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}
.abdt-btn:active { transform: translateY(0); }
.abdt-msg {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 1.75rem 0;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}
.abdt-msg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.abdt-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.abdt-ok .abdt-msg-dot { background: #10b981; }
.abdt-err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.abdt-err .abdt-msg-dot {
    background: #ef4444;
}

.abdt-trust {
    margin: 0;
    padding: 1rem 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

.abdt-trust .fa-lock {
    font-size: 0.7rem;
    color: #22c55e;
}
.abdt-hp {
  position: absolute !important;
  left: -10000px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none;
}
.abdt-login-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.abdt-login-card a { color: #2563eb; font-weight: 600; }
@media (max-width: 480px) {
  .abdt-row { grid-template-columns: 1fr; }
  .abdt-form { padding: 1.25rem 1.25rem 0.25rem; }
  .abdt-hero { padding: 1.5rem 1.25rem 1.25rem; }
}

/* ========== ADMIN ========== */
.abdt-admin { max-width: 1100px; }
.abdt-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
  gap: 1rem;
}
.abdt-admin h1 { margin: 0 0 0.25rem; font-size: 1.6rem; }
.abdt-admin-sub { margin: 0; color: #64748b; font-size: 0.9rem; }
.abdt-admin-stat {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  text-align: center;
  min-width: 64px;
  line-height: 1.2;
}
.abdt-stat-num { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.abdt-stat-label { font-size: 0.65rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; }
.abdt-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  color: #64748b;
}
.abdt-search-bar {
  margin: 0 0 1rem;
}
.abdt-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.abdt-search-input {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  vertical-align: middle;
}
.abdt-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.abdt-search-input::placeholder { color: #94a3b8; }
.abdt-search-form .button {
  margin: 0;
  height: auto;
  line-height: 1.4;
  padding: 0.55rem 0.9rem;
  vertical-align: middle;
}
.abdt-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.abdt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.abdt-table thead { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); }
.abdt-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #cbd5e1;
}
.abdt-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}
.abdt-table tbody tr:hover { background: #f8fafc; }
.abdt-table tbody tr.abdt-row-revealed { background: #fffbeb; }
.abdt-author { display: flex; flex-direction: column; gap: 2px; }
.abdt-author strong { font-size: 13.5px; }
.abdt-meta { font-size: 11.5px; color: #000; }
.abdt-acct {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.abdt-acct-mask { color: #64748b; }
.abdt-acct-full {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid #fcd34d;
}
.abdt-ifsc-badge {
  font-family: ui-monospace, monospace;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
}
.abdt-date { white-space: nowrap; color: #64748b; font-size: 12px; }
.abdt-btn-view,
.abdt-btn-hide {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 2px 4px 2px 0;
}
.abdt-btn-view {
  background: #e0e7ff;
  color: #3730a3;
}
.abdt-btn-view:hover { background: #c7d2fe; }
.abdt-btn-view:disabled { opacity: 0.6; cursor: wait; }
.abdt-btn-hide { background: #fee2e2; color: #b91c1c; }
.abdt-btn-hide:hover { background: #fecaca; }

.abdt-reveal-timer {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: #b45309;
  font-weight: 600;
}
.abdt-click-copy,
.abdt-acct.abdt-acct-full {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
}
.abdt-click-copy:hover,
.abdt-acct.abdt-acct-full:hover {
  border-bottom-color: currentColor;
}
#abdt-copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100000;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
#abdt-copy-toast.abdt-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#abdt-copy-toast.abdt-toast-ok { background: #15803d; }
#abdt-copy-toast.abdt-toast-fail { background: #b91c1c; }
