:root {
  --bg-color: #0b0e14;
  --card-bg: rgba(18, 24, 38, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary-accent: #e05534;
  --primary-hover: #f06443;
  --steam-btn: #171d25;
  --steam-hover: #222b37;
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --success-color: #10b981;
  --error-color: #ef4444;
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: var(--primary-accent);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: -150px;
  left: -150px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Main Container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

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

/* Card Header */
.card-header {
  margin-bottom: 1.5rem;
}

.logo-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(224, 85, 52, 0.2), rgba(224, 85, 52, 0.05));
  border: 1px solid rgba(224, 85, 52, 0.4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(224, 85, 52, 0.15);
}

h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* State Views */
.state-view {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.state-view.active {
  display: flex;
}

/* Info Box */
.info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  width: 100%;
}

.info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.info-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.info-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.user-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.user-info .value {
  color: var(--primary-accent);
  font-weight: 600;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-steam {
  background: linear-gradient(135deg, #171d25, #222b37);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-steam:hover {
  background: linear-gradient(135deg, #1e2632, #2c3747);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(224, 85, 52, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 85, 52, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Status Elements */
.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(224, 85, 52, 0.2);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0.5rem 0;
}

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

.status-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.success-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.error-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.action-hint {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  width: 100%;
}

.action-hint p {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.action-hint ol {
  padding-left: 1.2rem;
}

.action-hint li {
  margin-bottom: 0.3rem;
}

.action-hint code {
  background: rgba(224, 85, 52, 0.15);
  color: var(--primary-accent);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Footer */
.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-muted);
}
