@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── LOGIN ── */
.nt-fe--login {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.nt-login-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.nt-login-icon { font-size: 2.2rem; margin-bottom: 16px; }
.nt-login-box h1 { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 8px; }
.nt-login-box p { font-family: 'Inter', sans-serif; font-size: 14px; color: #6b7280; margin: 0 0 24px; }

.nt-login-error {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
}

.nt-login-box form { display: flex; flex-direction: column; gap: 12px; }
.nt-login-box input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #111827;
  outline: none;
  text-align: center;
  letter-spacing: .15em;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.nt-login-box input[type="password"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.nt-login-box button {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.nt-login-box button:hover { background: #1f2937; }
.nt-login-box button:active { transform: scale(.98); }

/* ── DASHBOARD ── */
.nt-fe {
  font-family: 'Inter', sans-serif;
  color: #111827;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 0 60px;
}

.nt-fe-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.nt-fe-header h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.nt-fe-sub { font-size: 13px; color: #6b7280; margin: 0; }
.nt-fe-logout {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  margin-top: 4px;
}
.nt-fe-logout:hover { background: #f3f4f6; color: #374151; }

/* STATS */
.nt-fe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.nt-fe-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
}
.nt-fe-stat--green { border-top: 3px solid #16a34a; }
.nt-fe-stat--red   { border-top: 3px solid #dc2626; }
.nt-fe-stat__n {
  font-size: 30px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 5px;
}
.nt-fe-stat--green .nt-fe-stat__n { color: #16a34a; }
.nt-fe-stat--red   .nt-fe-stat__n { color: #dc2626; }
.nt-fe-stat__l { font-size: 11px; font-weight: 500; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }

/* TABLE */
.nt-fe-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.nt-fe-table { width: 100%; border-collapse: collapse; }

.nt-fe-table thead th {
  background: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.nt-fe-table thead th.nt-fe-th-name { text-align: left; }
.nt-fe-table thead th.nt-cur { background: #eff6ff; color: #2563eb; }

.nt-fe-table tbody tr { border-bottom: 1px solid #f3f4f6; transition: background .1s; }
.nt-fe-table tbody tr:last-child { border-bottom: none; }
.nt-fe-table tbody tr:hover { background: #fafafa; }

.nt-fe-td-name { padding: 14px 16px; min-width: 160px; }
.nt-fe-td-name strong { display: block; font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.nt-fe-name2 { font-size: 12px; color: #9ca3af; display: block; }
.nt-fe-amount { display: block; font-size: 12px; color: #9ca3af; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

.nt-fe-td-s { text-align: center; padding: 10px 6px; width: 90px; }
.nt-fe-td-s.nt-cur { background: #f8faff; }

.nt-fe-s {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 10px;
  min-width: 60px;
}
.nt-fe-s--yes  { background: #dcfce7; }
.nt-fe-s--no   { background: #fee2e2; }
.nt-fe-s--wait { background: #f3f4f6; }

.nt-fe-s__i { font-size: 16px; font-weight: 700; line-height: 1; }
.nt-fe-s--yes  .nt-fe-s__i { color: #16a34a; }
.nt-fe-s--no   .nt-fe-s__i { color: #dc2626; }
.nt-fe-s--wait .nt-fe-s__i { color: #9ca3af; font-size: 22px; }

.nt-fe-s__d { font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.nt-fe-s--yes  .nt-fe-s__d { color: #15803d; }
.nt-fe-s--no   .nt-fe-s__d { color: #b91c1c; }
.nt-fe-s--wait .nt-fe-s__d { color: #9ca3af; }

.nt-fe-empty {
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
  font-size: 15px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.nt-fe-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #9ca3af;
  text-align: right;
}
.nt-fe-footer a { color: #6b7280; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nt-fe { padding: 20px 0 40px; }
  .nt-fe-stats { grid-template-columns: 1fr 1fr; }
  .nt-login-box { padding: 36px 24px; }
}
