.dwta-start-card,
.dwta-toast,
.dwta-admin,
.dwta-admin * {
  box-sizing: border-box;
}

.dwta-start-card {
  width: min(720px, calc(100% - 32px));
  margin: 48px auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(91, 124, 255, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(60, 219, 255, 0.15), transparent 28%),
    linear-gradient(145deg, #101936, #070b1c 72%);
  box-shadow: 0 28px 80px rgba(1, 7, 24, 0.38);
  color: #f7f9ff;
}

.dwta-start-card h2 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.dwta-eyebrow {
  color: #62ddff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dwta-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.dwta-summary > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.dwta-summary span,
.dwta-summary strong {
  display: block;
}

.dwta-summary span {
  margin-bottom: 7px;
  color: rgba(235, 241, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dwta-summary strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 18px;
}

.dwta-copy,
.dwta-start-card p {
  color: rgba(238, 243, 255, 0.78);
  line-height: 1.7;
}

.dwta-confirm-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.dwta-button,
.dwta-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dwta-button {
  color: #061024 !important;
  background: linear-gradient(135deg, #75e8ff, #38bdf8);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

.dwta-button:hover,
.dwta-button:focus-visible {
  color: #061024 !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.34);
}

.dwta-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.dwta-secondary {
  color: #eaf1ff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.dwta-secondary:hover,
.dwta-secondary:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.dwta-alert,
.dwta-minimum {
  padding: 12px 14px;
  border: 1px solid rgba(255, 111, 129, 0.32);
  border-radius: 13px;
  background: rgba(255, 82, 104, 0.1);
  color: #ffdce2 !important;
  font-weight: 700;
}

.dwta-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: grid;
  gap: 4px;
  width: min(390px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(76, 225, 255, 0.34);
  border-radius: 16px;
  background: rgba(8, 18, 43, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: #fff;
  animation: dwta-in 0.35s ease both;
}

.dwta-toast span {
  color: rgba(235, 243, 255, 0.72);
  font-size: 13px;
}

@keyframes dwta-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dwta-admin {
  max-width: 1440px;
  color: #10203f;
}

.dwta-admin-head,
.dwta-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dwta-admin-head {
  margin: 18px 0;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d1732, #172b59);
  box-shadow: 0 18px 40px rgba(9, 22, 52, 0.18);
  color: #fff;
}

.dwta-admin-head h1,
.dwta-admin-head p,
.dwta-user-head h2,
.dwta-user-head p {
  margin: 0;
}

.dwta-admin-head h1 {
  margin-top: 6px;
  color: #fff;
}

.dwta-admin-head p {
  margin-top: 6px;
  color: rgba(235, 243, 255, 0.72);
}

.dwta-admin-badge,
.dwta-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.dwta-admin-badge {
  border: 1px solid rgba(90, 225, 255, 0.28);
  background: rgba(90, 225, 255, 0.1);
  color: #9aedff;
}

.dwta-search {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.dwta-search input {
  width: min(560px, 100%);
  min-height: 42px;
}

.dwta-empty,
.dwta-user-panel,
.dwta-audit-panel,
.dwta-account-directory {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #dce5f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 32, 63, 0.07);
}

.dwta-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dwta-directory-head h2,
.dwta-directory-head p {
  margin: 0;
}

.dwta-directory-head p {
  margin-top: 5px;
  color: #64748b;
}

.dwta-directory-head > span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf6ff;
  color: #175a86;
  font-size: 12px;
  font-weight: 800;
}

.dwta-account-directory table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.dwta-account-directory th,
.dwta-account-directory td {
  padding: 12px 10px;
  border-bottom: 1px solid #e7edf5;
  text-align: left;
  vertical-align: middle;
}

.dwta-account-directory th {
  color: #5c708c;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dwta-account-directory td strong,
.dwta-account-directory td small {
  display: block;
}

.dwta-account-directory td small {
  margin-top: 4px;
  color: #718096;
}

.dwta-account-directory tr.is-selected td {
  background: #eef8ff;
}

.dwta-user-head p {
  margin-top: 5px;
  color: #64748b;
}

.dwta-status {
  background: #eef2f7;
  color: #64748b;
}

.dwta-status.active {
  background: #dcfce7;
  color: #14733b;
}

.dwta-money-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.dwta-money-grid > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e1e8f2;
  border-radius: 15px;
  background: linear-gradient(180deg, #fbfdff, #f5f8fc);
}

.dwta-money-grid span,
.dwta-money-grid strong {
  display: block;
}

.dwta-money-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dwta-money-grid strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #10203f;
  font-size: 20px;
}

.dwta-next {
  padding: 12px 14px;
  border-radius: 12px;
  background: #edfaff;
  color: #16516a;
}

.dwta-adjust-form {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1.5fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}

.dwta-adjust-form label span {
  display: block;
  margin-bottom: 6px;
  color: #52657e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dwta-adjust-form input,
.dwta-adjust-form select {
  width: 100%;
  min-height: 42px;
}

.dwta-adjust-form .button {
  min-height: 42px;
}

.dwta-table-wrap {
  overflow-x: auto;
}

.dwta-audit-panel table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.dwta-audit-panel th,
.dwta-audit-panel td {
  padding: 11px 10px;
  border-bottom: 1px solid #e7edf5;
  text-align: left;
  vertical-align: top;
}

.dwta-audit-panel th {
  color: #5c708c;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .dwta-money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwta-adjust-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwta-adjust-form .dwta-note-field { grid-column: span 2; }
}

@media (max-width: 680px) {
  .dwta-summary,
  .dwta-money-grid,
  .dwta-adjust-form { grid-template-columns: 1fr; }
  .dwta-adjust-form .dwta-note-field { grid-column: auto; }
  .dwta-admin-head,
  .dwta-user-head { align-items: flex-start; flex-direction: column; }
  .dwta-search { flex-direction: column; }
  .dwta-directory-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .dwta-button,
  .dwta-secondary,
  .dwta-toast { animation: none; transition: none; }
}
