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

body.ct-auth-body {
  min-height: 100vh;
  color: #fff;
  font-family: "Exo 2", sans-serif;
  background:
    radial-gradient(circle at 48% -8%, rgba(0, 212, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(255, 184, 0, 0.12), transparent 24rem),
    linear-gradient(180deg, #080016 0%, #05000c 48%, #020006 100%);
  overflow-x: hidden;
}

.ct-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ct-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.ct-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.22rem;
  letter-spacing: 2px;
  font-weight: 900;
  color: inherit;
}

.ct-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.ns-n { color: #fff; font-weight: 900; }
.ns-s { color: #00d4ff; font-weight: 900; }
.tm { color: #00d4ff; font-size: 0.58em; vertical-align: super; margin-left: 2px; }

.ct-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ct-nav a {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #bcbcdf;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
}

.ct-nav a:hover,
.ct-nav a:focus-visible {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.08);
}

.ct-page-banner {
  width: 100%;
  margin: 6px 0 22px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
}

.ct-page-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ct-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 34px 20px 42px;
  color: #7d7d9a;
}

.ct-footer-brand {
  font-family: "Rajdhani", sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.ct-footer p {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 1.4px;
}

.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #00d4ff;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.ct-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFB800;
}

.ct-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.ct-auth-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ct-auth-page {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto 84px;
}

.ct-auth-card,
.ct-gate-card {
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 8, 36, 0.88), rgba(8, 3, 20, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  padding: clamp(22px, 4vw, 34px);
}

.ct-auth-card h1,
.ct-gate-card h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 10px;
}

.ct-auth-copy,
.ct-auth-note {
  color: #d7d7ee;
  line-height: 1.7;
  margin-bottom: 18px;
}

.ct-auth-note {
  color: #a7a7c4;
  font-size: 0.95rem;
}

.ct-auth-form,
.ct-auth-stack {
  display: grid;
  gap: 14px;
}

.ct-auth-form label {
  display: grid;
  gap: 7px;
  color: #d9d9ef;
  font-size: 0.9rem;
}

.ct-auth-form input,
.ct-auth-form textarea,
.ct-auth-form select {
  width: 100%;
  color: #fff;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  padding: 11px 12px;
}

.ct-auth-form textarea {
  min-height: 96px;
  resize: vertical;
}

.ct-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #d7d7ee;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ct-check input {
  width: auto;
  margin-top: 4px;
}

.ct-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ct-auth-button {
  min-height: 44px;
  border: 1px solid rgba(0, 212, 255, 0.26);
  border-radius: 11px;
  background: rgba(0, 212, 255, 0.08);
  color: #e9fbff;
  cursor: pointer;
  font-family: "Rajdhani", sans-serif;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ct-auth-button.primary {
  border-color: rgba(0, 212, 255, 0.48);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(255, 184, 0, 0.10));
  color: #fff;
}

[hidden] {
  display: none !important;
}

.ct-auth-message {
  min-height: 1.4em;
  color: #ffe7a3;
  line-height: 1.5;
}

.ct-auth-message.error {
  color: #ffc8cf;
}

.ct-auth-message.success {
  color: #b7ffcf;
}

.ct-gate {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 84px;
}

body:not([data-ct-access="granted"]) .workspace,
body:not([data-ct-access="granted"]) .app-hero {
  display: none !important;
}

.ct-account-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  color: #a7a7c4;
  font-size: 0.92rem;
}

.ct-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.ct-admin-table th,
.ct-admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.ct-admin-table th {
  color: #00d4ff;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

@media (max-width: 740px) {
  .ct-auth-page,
  .ct-gate {
    width: min(calc(100vw - 28px), 760px);
  }
}
