:root {
  --bg: #070707;
  --panel: rgba(18, 18, 18, 0.9);
  --panel-border: rgba(231, 207, 115, 0.18);
  --text: #f5f1e6;
  --muted: #b8b1a0;
  --accent: #e7cf73;
  --accent-strong: #f2dc88;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 207, 115, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.coming-soon-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.coming-soon-card {
  width: min(100%, 640px);
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), #b99727);
  box-shadow: 0 0 24px rgba(231, 207, 115, 0.42);
}

.brand-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(231, 207, 115, 0.22);
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 4.75rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  margin: 18px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(231, 207, 115, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 32px;
  padding: 0 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), #cfb24b);
  color: #111111;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(231, 207, 115, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(231, 207, 115, 0.28);
}

@media (max-width: 640px) {
  .coming-soon-card {
    padding: 24px;
    border-radius: 8px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .lead {
    font-size: 0.96rem;
  }

  .contact-link {
    width: 100%;
  }
}

.ops-body {
  min-height: 100vh;
}

.ops-shell {
  min-height: 100vh;
  padding: 28px;
}

.ops-card {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.ops-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.ops-header-actions {
  display: flex;
  gap: 12px;
}

.ops-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ops-lead {
  max-width: 56ch;
}

.auth-panel,
.queue-panel {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(231, 207, 115, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ops-label,
.policy-select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.ops-input,
.policy-select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(231, 207, 115, 0.14);
  background: rgba(8, 8, 8, 0.8);
  color: var(--text);
  font: inherit;
}

.ops-input:focus,
.policy-select:focus {
  outline: none;
  border-color: rgba(231, 207, 115, 0.55);
  box-shadow: 0 0 0 3px rgba(231, 207, 115, 0.12);
}

.token-row,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-strong), #cfb24b);
  color: #111111;
  box-shadow: 0 12px 28px rgba(231, 207, 115, 0.24);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: rgba(231, 207, 115, 0.14);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.ops-help,
.policy-description,
.case-summary {
  color: var(--muted);
  line-height: 1.6;
}

.status-banner {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.status-banner.success {
  color: #7ae6ae;
  background: rgba(28, 95, 55, 0.28);
  border: 1px solid rgba(122, 230, 174, 0.18);
}

.status-banner.error {
  color: #ff8d8d;
  background: rgba(120, 23, 23, 0.32);
  border: 1px solid rgba(255, 141, 141, 0.18);
}

.console-meta {
  margin-top: 28px;
}

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

.ops-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.queue-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.queue-list,
.policy-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.policy-card,
.case-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(231, 207, 115, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.policy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
}

.policy-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.case-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.case-reference {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-top h3 {
  margin: 0;
  font-size: 1.1rem;
}

.case-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(231, 207, 115, 0.08);
  border: 1px solid rgba(231, 207, 115, 0.16);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.case-field {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.case-field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.case-field strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(231, 207, 115, 0.18);
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .ops-header,
  .policy-card {
    grid-template-columns: 1fr;
    display: block;
  }

  .auth-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .ops-card {
    padding: 24px;
    border-radius: 24px;
  }
}
