:root {
  --background: #10100E;
  --panel: #181611;
  --card: #1C1913;
  --border: #2E2820;
  --border-light: #3A3122;
  --gold: #C9A45D;
  --soft-gold: #DFC07A;
  --text: #F2EBD9;
  --muted: #A89880;
  --dim: #6E6050;
  --success: #008C00;
  --shadow: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(201, 164, 93, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(142, 166, 184, 0.05), transparent),
    var(--background);
  color: var(--text);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────── */

.support-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #10100E;
  box-shadow:
    0 40px 100px var(--shadow),
    0 0 0 1px rgba(201, 164, 93, 0.04) inset;
  padding: clamp(32px, 5vw, 64px);
}

/* Starfield image layer */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/STARFIELD.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.52;
  z-index: 0;
  border-radius: inherit;
}

/* Dark gradient overlay to keep palette premium and readable */
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 9, 7, 0.58) 0%,
      rgba(10, 9, 7, 0.32) 40%,
      rgba(10, 9, 7, 0.58) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(10, 9, 7, 0.4), transparent);
  z-index: 1;
  border-radius: inherit;
}

/* All direct children sit above the image and overlay */
.hero-card > * {
  position: relative;
  z-index: 2;
}

/* ─── Sun logo ───────────────────────────────── */

.sun-logo {
  display: block;
  width: 60px;
  margin-bottom: 20px;
}

/* ─── Brand / Title ──────────────────────────── */

.presented {
  margin: 0 0 20px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ─── Shared ─────────────────────────────────── */

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ─── Access gate ────────────────────────────── */

.access-gate {
  margin-top: 44px;
}

.gate-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(16, 14, 10, 0.92);
  padding: 36px 40px;
  max-width: 520px;
}

.gate-intro {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.gate-form {
  display: grid;
  gap: 10px;
}

.gate-form label {
  color: #C9A45D;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gate-form input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(10, 9, 7, 0.7);
  color: var(--text);
  font: 400 15px/1.5 'Roboto', sans-serif;
  outline: none;
  padding: 14px 16px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s;
}

.gate-form input:focus {
  border-color: var(--gold);
}

.gate-form input::placeholder {
  color: var(--dim);
  letter-spacing: 0.02em;
}

.gate-error {
  margin: 0;
  color: #E07070;
  font-size: 13px;
  font-weight: 400;
}

.gate-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 140, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 13px 28px;
  text-transform: uppercase;
  transition: background 0.2s;
  margin-top: 4px;
}

.gate-form button:hover {
  background: rgba(0, 140, 0, 0.75);
}

.gate-note {
  margin: 24px 0 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ─── Gate steps ─────────────────────────────── */

@keyframes softPulseCheck {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.95; }
}

.gate-step {
  transition: opacity 0.2s;
}

.gate-step h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gate-checking-box {
  display: none;
  align-items: center;
  border: 1px solid rgba(201, 164, 93, 0.3);
  border-radius: 4px;
  padding: 6px 14px;
  animation: softPulseCheck 2.1s ease-in-out infinite;
}

.gate-checking-box.active {
  display: inline-flex;
}

.gate-checking-box span {
  color: rgba(180, 175, 165, 0.65);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.gate-not-found {
  padding: 14px 0 4px;
}

.gate-not-found-title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}

.gate-not-found-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.gate-not-found-sub a {
  color: var(--gold);
  text-decoration: none;
}

.gate-not-found-sub a:hover {
  text-decoration: underline;
}

/* ─── Admitted content ───────────────────────── */

.admitted-content {
  margin-top: 36px;
}

/* ─── Account panel ──────────────────────────── */

.account-panel {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: rgba(20, 18, 13, 0.96);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-header .eyebrow {
  margin-bottom: 4px;
}

.account-email {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}

.account-details-btn {
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 8px 18px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.account-details-btn:hover {
  border-color: var(--gold);
  color: var(--soft-gold);
}

.account-details {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.account-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-field-label {
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.account-field-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.account-field-value.status-active {
  color: #A8D4A2;
}

/* ─── Notice card ────────────────────────────── */

.notice-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(16, 14, 10, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.notice-card p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

/* ─── Support grid ───────────────────────────── */

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.support-grid article {
  border: 1px solid rgba(201, 164, 93, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 19, 13, 0.97), rgba(14, 13, 11, 0.97));
  padding: 20px;
  transition: border-color 0.2s;
}

.support-grid article:hover {
  border-color: rgba(201, 164, 93, 0.6);
}

.support-grid article.blue-panel {
  border: 1px solid rgba(100, 160, 220, 0.55);
  background: linear-gradient(180deg, rgba(16, 22, 32, 0.97), rgba(12, 13, 18, 0.97));
  box-shadow: 0 0 0 1px rgba(100, 160, 220, 0.1), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.support-grid article.blue-panel:hover {
  border-color: rgba(100, 160, 220, 0.8);
}

.support-grid span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.support-grid h3 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.support-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* ─── Chat card ──────────────────────────────── */

.chat-card {
  border: 1px solid rgba(0, 140, 0, 0.72);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 18, 10, 0.97), rgba(10, 13, 10, 0.97));
  box-shadow: 0 0 0 1px rgba(0, 140, 0, 0.12), 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 32px;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.chat-header h2 {
  font-size: clamp(20px, 2.8vw, 30px);
}

.status-pill {
  border: 1px solid rgba(0, 140, 0, 0.45);
  border-radius: 999px;
  background: rgba(0, 140, 0, 0.12);
  color: #B8E8B8;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Quick actions ──────────────────────────── */

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.quick-actions button {
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  transition: border-color 0.2s, color 0.2s;
}

.quick-actions button:hover {
  border-color: var(--gold);
  color: var(--soft-gold);
}

/* ─── Support response ───────────────────────── */

.support-response {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-left: 3px solid rgba(0, 140, 0, 0.6);
  background: rgba(14, 13, 11, 0.55);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 58px;
}

.support-response p {
  margin: 0 0 12px;
}

.support-response p:last-child {
  margin-bottom: 0;
}

.support-response ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.support-response ul:last-child {
  margin-bottom: 0;
}

.support-response li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.support-response strong {
  color: var(--soft-gold);
  font-weight: 600;
}

.support-response:empty {
  display: none;
}

/* ─── Chat form ──────────────────────────────── */

.chat-form {
  display: grid;
  gap: 10px;
}

.chat-form label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 9, 7, 0.7);
  color: var(--text);
  font: 400 14px/1.65 'Roboto', Arial, Helvetica, sans-serif;
  outline: none;
  padding: 16px 18px;
  resize: vertical;
  transition: border-color 0.2s;
}

textarea:focus {
  border-color: var(--border-light);
}

textarea::placeholder {
  color: var(--dim);
}

.chat-form button {
  justify-self: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 140, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 13px 28px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.chat-form button:hover {
  background: rgba(0, 140, 0, 0.75);
}

.chat-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ─── Footer note ────────────────────────────── */

.small-note {
  margin: 20px 0 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 860px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-header {
    flex-direction: column;
    gap: 12px;
  }

  .account-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .support-shell {
    width: calc(100% - 24px);
    padding: 20px 0 40px;
  }

  .hero-card {
    border-radius: 18px;
    padding: 28px 22px;
  }

  h1 {
    font-size: clamp(60px, 20vw, 90px);
    letter-spacing: -0.05em;
  }

  .gate-card {
    padding: 24px 20px;
  }

  .notice-card,
  .chat-card {
    padding: 20px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-fields {
    grid-template-columns: 1fr 1fr;
  }
}
