:root {
  --bg-color: #08090f;
  --panel-bg: rgba(13, 16, 29, 0.65);
  --border-color: rgba(255, 255, 255, 0.06);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-green: #34d399;
  --accent-red: #f87171;
  --glow-color: rgba(56, 189, 248, 0.15);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Abstract Background Glows */
body::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  left: -10%;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(0,0,0,0) 75%);
  bottom: -15%;
  right: -10%;
  z-index: -1;
  pointer-events: none;
}

.glass-container {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 580px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(56, 189, 248, 0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.gate-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-area {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.shield-icon {
  width: 16px;
  height: 16px;
}

.main-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Pipeline Cards */
.pipeline-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
}

.pipeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pipeline-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0.4;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pipeline-step.active {
  opacity: 1;
  transform: scale(1.02);
}

.pipeline-step.completed {
  opacity: 0.75;
}

.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pipeline-step.active .step-indicator {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.pipeline-step.completed .step-indicator {
  background: rgba(52, 211, 153, 0.1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Indicators */
.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.pipeline-step.active .dot {
  background: var(--accent-blue);
  animation: pulse 1.5s infinite alternate;
}

.check-icon {
  width: 14px;
  height: 14px;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(1.3); opacity: 1; }
}

.step-details h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.pipeline-step.active .step-details h3 {
  color: var(--accent-blue);
}

.pipeline-step.completed .step-details h3 {
  color: var(--text-primary);
}

.step-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Consent Pane */
.consent-pane {
  background: rgba(56, 189, 248, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.location-banner {
  display: flex;
  gap: 14px;
}

.loc-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.banner-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.banner-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

.btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #000;
  color: var(--bg-color);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Redirect / Progress Pane */
.redirect-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.redirect-timer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.redirect-timer span {
  font-weight: 700;
  color: var(--accent-blue);
}

.progress-bar-container {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  border-radius: 2px;
  transition: width 1s linear;
}

/* Footer */
.gate-footer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}
