:root {
  --cn-bg: #050506;
  --cn-surface: rgba(24, 24, 28, 0.92);
  --cn-surface-2: rgba(35, 33, 32, 0.9);
  --cn-border: rgba(255, 183, 0, 0.22);
  --cn-border-soft: rgba(255, 255, 255, 0.08);
  --cn-text: #fff8ef;
  --cn-muted: rgba(255, 248, 239, 0.68);
  --cn-orange: #ff9d00;
  --cn-yellow: #ffd000;
  --cn-green: #24e886;
  --cn-red: #ff5c5c;
}

* { box-sizing: border-box; }

body.cn-auth-body,
body.cn-user-body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cn-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 157, 0, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 20%, rgba(255, 90, 0, 0.12), transparent 30rem),
    linear-gradient(135deg, #050506 0%, #0a0b10 55%, #170c05 100%);
}

.cn-public-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cn-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cn-text);
  text-decoration: none;
  font-weight: 900;
}

.cn-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #050506;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  font-weight: 950;
  box-shadow: 0 0 0 4px rgba(255, 157, 0, 0.15);
}

.cn-public-nav nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--cn-border-soft);
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.76);
  box-shadow: 0 18px 45px rgba(0,0,0,0.34);
}

.cn-public-nav a,
.cn-public-nav button {
  border: 0;
  appearance: none;
  font: inherit;
  cursor: pointer;
  color: var(--cn-muted);
  text-decoration: none;
  font-weight: 850;
  padding: 12px 20px;
  border-radius: 999px;
  background: transparent;
}

.cn-public-nav a.active,
.cn-public-nav button:hover,
.cn-public-nav a:hover {
  color: #080808;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
}

.cn-auth-shell,
.cn-user-shell,
.cn-staff-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 58px auto 80px;
}

.cn-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.cn-auth-hero,
.cn-auth-card,
.cn-user-hero,
.cn-user-card,
.cn-profile-mini-card {
  border: 1px solid var(--cn-border);
  background: linear-gradient(145deg, rgba(36, 33, 29, 0.94), rgba(13, 15, 21, 0.94));
  border-radius: 28px;
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.35);
}

.cn-auth-hero {
  padding: 52px;
  min-height: 620px;
}

.cn-kicker {
  display: inline-flex;
  color: var(--cn-yellow);
  border: 1px solid rgba(255, 208, 0, 0.28);
  background: rgba(255, 208, 0, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cn-auth-hero h1,
.cn-user-hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.cn-auth-hero p,
.cn-user-hero p,
.cn-muted {
  color: var(--cn-muted);
  line-height: 1.65;
  font-weight: 600;
}

.cn-auth-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}

.cn-auth-flow-grid article {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--cn-border-soft);
  background: rgba(255,255,255,0.04);
}

.cn-auth-flow-grid strong {
  color: var(--cn-yellow);
  display: block;
  margin-bottom: 22px;
}

.cn-auth-flow-grid span {
  display: block;
  font-weight: 950;
  margin-bottom: 6px;
}

.cn-auth-flow-grid p {
  margin: 0;
  font-size: 13px;
}

.cn-auth-card {
  padding: 34px;
}

.cn-card-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.cn-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #080808;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  font-weight: 950;
  font-size: 22px;
  flex: none;
}

.cn-card-head h1,
.cn-card-head h2 {
  margin: 0 0 8px;
}

.cn-card-head p {
  margin: 0;
  color: var(--cn-muted);
  line-height: 1.55;
}

.cn-auth-button,
.cn-login-form button,
.cn-secondary-button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 18px 20px;
  font-weight: 950;
  cursor: pointer;
  color: #070707;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  margin-top: 14px;
  text-align: left;
}

.cn-auth-button small,
.cn-auth-button span {
  display: block;
}

.cn-auth-button small {
  margin-top: 4px;
  color: rgba(0,0,0,0.66);
}

.cn-auth-button.discord {
  background: linear-gradient(135deg, #6f86ff, #a575ff);
  color: #fff;
}

.cn-auth-button.discord small { color: rgba(255,255,255,0.75); }

.cn-auth-button.kick {
  background: linear-gradient(135deg, #34f77e, #0ecf60);
}

.cn-private-note {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}

.cn-private-note p { color: var(--cn-muted); margin-bottom: 0; }

.cn-login-form {
  display: grid;
  gap: 18px;
}

.cn-login-form label span {
  display: block;
  color: var(--cn-muted);
  font-weight: 850;
  margin-bottom: 8px;
}

.cn-login-form input {
  width: 100%;
  border: 1px solid var(--cn-border-soft);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  color: var(--cn-text);
  padding: 17px 18px;
  font-weight: 800;
}

.cn-staff-shell {
  max-width: 520px;
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.cn-staff-card { width: 100%; }
.cn-staff-footnote { color: var(--cn-muted); text-align: center; }

.cn-login-notice {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 92, 92, 0.4);
  background: rgba(255, 92, 92, 0.12);
  color: #ffb1b1;
  font-weight: 900;
  margin-bottom: 20px;
}

.cn-login-notice.hidden { display: none; }

.cn-user-hero {
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
}

.cn-profile-mini-card {
  padding: 28px;
}

.cn-profile-mini-card span,
.cn-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #080808;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  font-weight: 950;
  font-size: 24px;
}

.cn-profile-mini-card strong,
.cn-profile-mini-card small,
.cn-profile-mini-card em {
  display: block;
}

.cn-profile-mini-card strong { margin-top: 18px; font-size: 22px; }
.cn-profile-mini-card small { color: var(--cn-muted); margin-top: 6px; }
.cn-profile-mini-card em {
  width: fit-content;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 950;
  font-size: 12px;
  color: var(--cn-yellow);
  background: rgba(255, 208, 0, 0.12);
  border: 1px solid rgba(255, 208, 0, 0.25);
}

.cn-user-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.cn-user-grid.three { grid-template-columns: repeat(3, 1fr); }
.cn-user-grid.two { grid-template-columns: repeat(2, 1fr); }

.cn-user-card {
  padding: 28px;
  min-height: 240px;
}

.cn-user-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cn-user-card-head span {
  color: var(--cn-orange);
  font-weight: 950;
  font-size: 20px;
}

.cn-user-card-head strong {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--cn-yellow);
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.22);
}

.cn-profile-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--cn-border-soft);
  background: rgba(0,0,0,0.18);
}

.cn-profile-row h2 { margin: 0 0 6px; }
.cn-profile-row p { margin: 0; color: var(--cn-muted); }

.cn-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cn-check-list span {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--cn-border-soft);
}

.cn-check-list span.is-complete { color: var(--cn-green); border-color: rgba(36,232,134,0.28); background: rgba(36,232,134,0.1); }
.cn-check-list span.is-pending { color: #ffb1b1; border-color: rgba(255,92,92,0.28); background: rgba(255,92,92,0.1); }

.cn-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cn-stat-grid div {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--cn-border-soft);
  background: rgba(0,0,0,0.18);
  text-align: center;
}

.cn-stat-grid strong {
  display: block;
  color: var(--cn-orange);
  font-size: 30px;
  margin-bottom: 8px;
}

.cn-stat-grid span {
  color: var(--cn-muted);
  font-weight: 950;
  font-size: 12px;
  text-transform: uppercase;
}

.cn-info-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.cn-info-lines p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 15px;
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--cn-border-soft);
}

.cn-info-lines span { color: var(--cn-muted); font-weight: 800; }
.cn-info-lines strong { color: var(--cn-text); }

.cn-secondary-button {
  color: var(--cn-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--cn-border-soft);
  text-align: center;
}

.cn-progress-wrap { margin-top: 18px; }
.cn-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.cn-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  transition: width 0.3s ease;
}
.cn-progress-wrap small { display: block; margin-top: 10px; color: var(--cn-muted); }

.cn-activity-list {
  display: grid;
  gap: 10px;
}

.cn-activity-list article,
.cn-activity-list p {
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--cn-border-soft);
  margin: 0;
}

.cn-activity-list strong,
.cn-activity-list span { display: block; }
.cn-activity-list span { color: var(--cn-muted); margin-top: 4px; }

@media (max-width: 960px) {
  .cn-auth-shell,
  .cn-user-hero,
  .cn-user-grid.three,
  .cn-user-grid.two {
    grid-template-columns: 1fr;
  }

  .cn-auth-hero { min-height: auto; padding: 32px; }
  .cn-auth-flow-grid { grid-template-columns: 1fr; }
  .cn-public-nav { flex-direction: column; align-items: stretch; }
  .cn-public-nav nav { overflow-x: auto; justify-content: flex-start; }
}

/* User Dashboard public nav alignment with Home page */
.cn-user-dashboard-body .cn-user-public-nav {
  width: min(1180px, calc(100% - 32px));
  margin-top: 0;
}

.cn-user-dashboard-body .public-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 14px;
}

.cn-user-dashboard-body .public-nav-links form,
.cn-public-logout-form {
  margin: 0;
  display: inline-flex;
}

.cn-user-dashboard-body .public-nav-links button,
.cn-public-logout-form button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--public-muted, rgba(255, 255, 255, 0.68));
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  transition: 180ms ease;
}

.cn-user-dashboard-body .public-nav-links button:hover,
.cn-public-logout-form button:hover {
  color: var(--public-text, #fff7ed);
  background: rgba(255, 255, 255, 0.08);
}

.cn-user-dashboard-body .cn-user-shell {
  margin-top: 58px;
}

.cn-user-dashboard-body .cn-user-hero h1,
.cn-user-dashboard-body .cn-user-hero-home-style h1 {
  color: #fff7ed;
  font-size: clamp(3.9rem, 8vw, 7.1rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-transform: none;
}

.cn-user-dashboard-body .cn-user-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
}

.cn-ltc-address-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 208, 0, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.cn-ltc-address-form label {
  display: block;
  color: var(--cn-text);
  font-weight: 950;
  margin-bottom: 6px;
}

.cn-ltc-address-form p {
  margin: 0;
  color: var(--cn-muted);
  font-weight: 650;
  line-height: 1.55;
}

.cn-ltc-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.cn-ltc-input-row input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--cn-text);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  font-weight: 750;
  outline: none;
}

.cn-ltc-input-row input:focus {
  border-color: rgba(255, 208, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.09);
}

.cn-ltc-input-row button {
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  color: #080808;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.cn-ltc-input-row button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.cn-ltc-status {
  min-height: 18px;
  color: var(--cn-muted);
  font-weight: 800;
}

.cn-ltc-status.is-success { color: var(--cn-green); }
.cn-ltc-status.is-error { color: var(--cn-red); }
.cn-ltc-status.is-saving { color: var(--cn-yellow); }

@media (max-width: 720px) {
  .cn-ltc-input-row {
    grid-template-columns: 1fr;
  }

  .cn-user-dashboard-body .cn-user-hero h1,
  .cn-user-dashboard-body .cn-user-hero-home-style h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }
}

/* User profile correction: keep dashboard typography from the original user profile,
   but make only the navbar match the public Home navigation style. */
body.cn-user-body .cn-public-nav.cn-user-public-nav {
  width: 100%;
  margin: 0;
  padding: 26px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.98), rgba(7, 8, 12, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body.cn-user-body .cn-brand {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  gap: 12px;
}

body.cn-user-body .cn-brand-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

body.cn-user-body .cn-brand .cn-brand-logo {
  display: none;
}

body.cn-user-body .cn-public-nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

body.cn-user-body .cn-public-nav nav a,
body.cn-user-body .cn-public-nav nav button {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 248, 239, 0.72);
  padding: 13px 18px;
  border-radius: 999px;
}

body.cn-user-body .cn-public-nav nav a.active,
body.cn-user-body .cn-public-nav nav a:hover,
body.cn-user-body .cn-public-nav nav button:hover {
  color: #080808;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
}

body.cn-user-body .cn-public-nav nav form {
  margin: 0;
  display: inline-flex;
}

body.cn-user-body .cn-user-shell {
  margin-top: 58px;
}

/* Revert the user profile hero to the original dashboard scale, not the Home hero scale. */
body.cn-user-body .cn-user-hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

body.cn-user-body .cn-user-hero p {
  color: var(--cn-muted);
  line-height: 1.65;
  font-weight: 600;
  max-width: none;
}

/* Provider-aware profile photos. Real Discord/Kick avatars can replace these URLs later. */
.cn-provider-avatar {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #080808;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  box-shadow: 0 0 0 4px rgba(255, 157, 0, 0.14), 0 20px 45px rgba(0, 0, 0, 0.28);
  flex: none;
}

.cn-provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.cn-provider-avatar.has-image img {
  display: block;
}

.cn-provider-avatar.has-image span {
  display: none;
}

.cn-provider-avatar span,
.cn-profile-mini-card .cn-provider-avatar span,
.cn-profile-row .cn-provider-avatar span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
  font-weight: 950;
  color: inherit;
}

.cn-provider-avatar.is-discord {
  background: linear-gradient(135deg, #5865f2, #9b72ff);
  color: #ffffff;
}

.cn-provider-avatar.is-kick {
  background: linear-gradient(135deg, #53fc18, #11c45a);
  color: #071107;
}

.cn-provider-avatar::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 3px solid rgba(7, 8, 12, 0.9);
  background: var(--cn-orange);
}

.cn-provider-avatar.is-discord::after { background: #5865f2; }
.cn-provider-avatar.is-kick::after { background: #53fc18; }

@media (max-width: 960px) {
  body.cn-user-body .cn-public-nav.cn-user-public-nav {
    padding: 18px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  body.cn-user-body .cn-public-nav nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
}


/* User dashboard uses the same public navbar structure as Home/Slots/Leaders. */
.cn-user-body .public-nav {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cn-user-body .public-nav-links form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.cn-user-body .public-nav-links button,
.public-body .public-nav-links button.public-nav-button {
  border: 0;
  appearance: none;
  cursor: pointer;
  color: var(--public-muted, rgba(255, 255, 255, 0.72));
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
}

.cn-user-body .public-nav-links button:hover,
.public-body .public-nav-links button.public-nav-button:hover {
  color: var(--public-text, #fff);
  background: rgba(255, 255, 255, 0.08);
}

.cn-user-body .cn-user-shell {
  padding-top: 58px;
}

.cn-user-queue-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 78px;
}

.cn-user-queue-hero {
  margin-bottom: 22px;
  padding: 34px;
  border: 1px solid var(--cn-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 0, 0.13), transparent 38%),
    rgba(24, 24, 28, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.cn-user-queue-hero h1 {
  margin: 12px 0 10px;
  max-width: 760px;
  color: #fff8ef;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.cn-user-queue-hero p {
  max-width: 760px;
  color: var(--cn-muted);
  line-height: 1.7;
}

.cn-user-queue-note {
  margin: 14px 0 0;
  color: rgba(255, 248, 239, 0.58);
  font-size: 0.88rem;
}

.cn-user-queue-page .slot-queue-actions {
  display: none !important;
}

@media (max-width: 720px) {
  .cn-user-queue-main,
  .cn-user-body .cn-user-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 34px;
  }

  .cn-user-queue-hero {
    padding: 24px;
  }
}

/* Modern square-logo provider buttons for viewer login. */
.cn-auth-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.cn-auth-provider-grid form {
  margin: 0;
}

.cn-auth-provider-button {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cn-auth-provider-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.92;
}

.cn-auth-provider-button.discord::before {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #5d74ff 0%, #9a64ff 100%);
}

.cn-auth-provider-button.kick::before {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #28ef7a 0%, #0bc75a 100%);
}

.cn-auth-provider-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
  filter: saturate(1.08);
}

.cn-auth-provider-logo {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.cn-auth-provider-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cn-auth-provider-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
}

.cn-auth-provider-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cn-auth-provider-copy small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cn-auth-provider-button.kick .cn-auth-provider-copy strong,
.cn-auth-provider-button.kick .cn-auth-provider-copy small {
  color: #041006;
}

.cn-auth-provider-button.kick .cn-auth-provider-logo {
  background: #050905;
}

@media (max-width: 680px) {
  .cn-auth-provider-grid {
    grid-template-columns: 1fr;
  }
}


/* Profile verification actions */
.cn-verify-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cn-verify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  color: #080808;
  font-weight: 950;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.cn-verify-button.discord {
  color: #ffffff;
  background: linear-gradient(135deg, #5865f2, #9b72ff);
  border-color: rgba(255, 255, 255, 0.15);
}

.cn-verify-button.kick {
  color: #071107;
  background: linear-gradient(135deg, #53fc18, #11c45a);
  border-color: rgba(255, 255, 255, 0.12);
}

.cn-verify-button.is-verified {
  pointer-events: none;
  color: var(--cn-green);
  background: rgba(36, 232, 134, 0.1);
  border-color: rgba(36, 232, 134, 0.28);
  box-shadow: none;
}

.cn-status-help {
  display: block;
  margin-top: 12px;
  color: var(--cn-muted);
  line-height: 1.5;
}

#profileBadge.is-eligible,
#profileEligibilityStatus.is-eligible {
  color: var(--cn-green);
  border-color: rgba(36, 232, 134, 0.28);
  background: rgba(36, 232, 134, 0.1);
}

#profileBadge.is-not-eligible,
#profileEligibilityStatus.is-not-eligible {
  color: #ffb1b1;
  border-color: rgba(255, 92, 92, 0.28);
  background: rgba(255, 92, 92, 0.1);
}

@media (max-width: 720px) {
  .cn-verify-actions {
    grid-template-columns: 1fr;
  }
}


/* User profile payout tabs and locked fields */
.cn-payout-profile-form {
  gap: 14px;
}

.cn-payout-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cn-payout-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--cn-muted);
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.cn-payout-tabs button.is-active {
  color: #080808;
  border-color: rgba(255, 208, 0, 0.62);
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
}

.cn-payout-panel {
  display: none;
  gap: 10px;
}

.cn-payout-panel.is-active {
  display: grid;
}

.cn-payout-panel input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--cn-text);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  font-weight: 750;
  outline: none;
}

.cn-payout-panel input:focus {
  border-color: rgba(255, 208, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 208, 0, 0.09);
}

.cn-payout-panel input:disabled {
  color: rgba(255, 255, 255, 0.76);
  cursor: not-allowed;
  border-color: rgba(36, 232, 134, 0.26);
  background: rgba(36, 232, 134, 0.08);
}

.cn-payout-warning {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 208, 0, 0.2);
  border-radius: 14px;
  color: rgba(255, 239, 191, 0.92);
  background: rgba(255, 208, 0, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.cn-payout-actions {
  display: flex;
  justify-content: flex-end;
}

.cn-payout-actions button {
  min-width: 138px;
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  color: #080808;
  background: linear-gradient(135deg, var(--cn-yellow), var(--cn-orange));
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.cn-payout-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.cn-user-card .cn-check-list.compact {
  grid-template-columns: repeat(4, minmax(0, auto));
}


/* Streamer Login polish */
body.cn-auth-body.staff-only {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 157, 0, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(255, 84, 0, 0.14), transparent 34rem),
    radial-gradient(circle at 50% 96%, rgba(255, 208, 0, 0.06), transparent 38rem),
    linear-gradient(135deg, #050506 0%, #090b12 58%, #190d06 100%);
}

body.cn-auth-body.staff-only::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.68), transparent 68%);
}

.cn-staff-shell {
  max-width: 560px;
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.cn-staff-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 40px 34px 36px;
  border-radius: 32px;
  border-color: rgba(255, 177, 0, 0.24);
  background:
    linear-gradient(145deg, rgba(31, 31, 33, 0.96), rgba(13, 15, 21, 0.96)),
    rgba(0,0,0,0.22);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

.cn-staff-card::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 157, 0, 0.7), transparent);
  opacity: 0.55;
}

.cn-staff-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255, 157, 0, 0.12);
  filter: blur(10px);
  pointer-events: none;
}

.cn-staff-head {
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}

.cn-card-logo {
  width: 70px;
  height: 70px;
  padding: 7px;
  border-radius: 22px;
  background: rgba(5, 5, 6, 0.72);
  border: 1px solid rgba(255, 157, 0, 0.46);
  box-shadow:
    0 12px 34px rgba(255, 157, 0, 0.12),
    0 0 0 5px rgba(255, 157, 0, 0.08);
}

.cn-card-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
}

.staff-only .cn-card-head h1 {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

.staff-only .cn-card-head p {
  color: rgba(255, 248, 239, 0.74);
  font-weight: 650;
  max-width: 320px;
}

.cn-staff-login-form {
  position: relative;
  z-index: 1;
  gap: 20px;
}

.staff-only .cn-login-form label span {
  color: rgba(255, 248, 239, 0.75);
  letter-spacing: -0.01em;
}

.staff-only .cn-login-form input {
  min-height: 56px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.staff-only .cn-login-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 177, 0, 0.52);
  box-shadow: 0 0 0 4px rgba(255, 157, 0, 0.1);
}

.staff-only .cn-login-form button {
  width: min(286px, 100%);
  justify-self: center;
  text-align: center;
  margin-top: 12px;
  border-radius: 17px;
  padding: 17px 22px;
  box-shadow: 0 18px 36px rgba(255, 128, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.staff-only .cn-login-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 22px 42px rgba(255, 128, 0, 0.25);
}

.cn-staff-footnote {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: rgba(255, 248, 239, 0.7);
  font-weight: 650;
}

.staff-only .cn-login-notice {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .cn-staff-shell {
    width: min(100% - 28px, 560px);
    margin-top: 34px;
  }

  .cn-staff-card {
    padding: 34px 22px 30px;
    border-radius: 28px;
  }

  .cn-staff-head {
    align-items: flex-start;
  }

  .cn-card-logo {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }
}

/* Compact Slot Call History for viewer profile */
.cn-slot-call-history-list {
  display: grid;
  gap: 8px;
  max-height: 252px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 208, 0, 0.42) rgba(255, 255, 255, 0.06);
}

.cn-slot-call-history-list::-webkit-scrollbar {
  width: 6px;
}

.cn-slot-call-history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.cn-slot-call-history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 208, 0, 0.42);
  border-radius: 999px;
}

.cn-slot-call-history-list .cn-slot-history-empty {
  padding: 16px;
  border-radius: 16px;
  color: var(--cn-muted);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--cn-border-soft);
}

.cn-activity-list .cn-slot-history-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(78px, auto) minmax(46px, auto);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 11px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.cn-slot-history-image {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cn-slot-history-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cn-slot-history-line {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.cn-slot-history-line small,
.cn-slot-history-leaderboard small {
  flex: 0 0 auto;
  color: rgba(255, 248, 237, 0.48);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.cn-slot-history-line strong,
.cn-slot-history-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--cn-text);
  font-size: 13px;
  line-height: 1.18;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cn-slot-history-line span {
  color: rgba(255, 248, 237, 0.82);
  font-weight: 800;
}

.cn-slot-history-main em {
  overflow: hidden;
  color: rgba(189, 180, 169, 0.82);
  font-size: 10.5px;
  line-height: 1.15;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cn-slot-history-result {
  display: grid;
  justify-items: start;
  gap: 3px;
  min-width: 74px;
}

.cn-slot-history-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  background: rgba(255, 208, 0, 0.1);
  color: var(--cn-yellow);
}

.cn-slot-history-item.is-success .cn-slot-history-badge {
  color: var(--cn-green);
  background: rgba(36, 232, 134, 0.13);
}

.cn-slot-history-item.is-failed .cn-slot-history-badge {
  color: var(--cn-red);
  background: rgba(255, 92, 92, 0.14);
}

.cn-slot-history-item.is-refunded .cn-slot-history-badge,
.cn-slot-history-item.is-cleared .cn-slot-history-badge,
.cn-slot-history-item.is-cancelled .cn-slot-history-badge,
.cn-slot-history-item.is-canceled .cn-slot-history-badge {
  color: rgba(255, 208, 0, 0.95);
  background: rgba(255, 208, 0, 0.13);
}

.cn-slot-history-result strong {
  color: var(--cn-text);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
}

.cn-slot-history-item.is-success .cn-slot-history-result strong {
  color: var(--cn-green);
}

.cn-slot-history-item.is-failed .cn-slot-history-result strong {
  color: var(--cn-red);
}

.cn-slot-history-multi {
  color: rgba(255, 208, 0, 0.86);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.cn-slot-history-leaderboard {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 44px;
}

.cn-slot-history-rank {
  display: grid;
  justify-items: end;
  color: rgba(255, 248, 237, 0.72);
  font-size: 12px;
  line-height: 1.05;
  font-weight: 950;
  white-space: nowrap;
}

.cn-slot-history-rank small {
  margin-top: 2px;
  color: rgba(189, 180, 169, 0.82);
  font-size: 9.5px;
  font-weight: 850;
}

.cn-slot-history-rank.is-up {
  color: var(--cn-green);
}

.cn-slot-history-rank.is-down {
  color: var(--cn-red);
}

@media (max-width: 720px) {
  .cn-activity-list .cn-slot-history-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .cn-slot-history-result,
  .cn-slot-history-leaderboard {
    grid-column: 2;
    justify-items: start;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}
