:root {
  --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  --bg-primary: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #1a253e;
  --text-main: #f3f6fc;
  --text-muted: #94a3b8;
  --accent-cyan: #00d2ff;
  --accent-blue: #0066ff;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 210, 255, 0.3);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

.header {
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 28px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: 960px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.card-header {
  margin-bottom: 24px;
}

.card-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.device-banner {
  background: linear-gradient(135deg, rgba(16, 29, 54, 0.9), rgba(22, 36, 68, 0.9));
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.device-info .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 6px;
}

.device-id {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.prompt-card {
  text-align: center;
  padding: 48px 24px;
}

.prompt-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.prompt-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.prompt-card p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.5;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.15);
}

.plan-card.featured {
  border-color: var(--accent-blue);
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.12), rgba(19, 27, 46, 0.95));
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.plan-card.featured:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 40px rgba(0, 210, 255, 0.25);
}

.badge-featured {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.plan-price .currency {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: bold;
  font-size: 16px;
}

.btn {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
}

.btn-primary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.btn-featured {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-featured:hover {
  opacity: 0.95;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.04);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  width: auto;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  width: auto;
}

.promo-link-container {
  margin-top: 24px;
  text-align: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
}

#user-name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: inline-block;
}

.success-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.success-header h2 {
  color: var(--accent-green);
  font-size: 20px;
}

.success-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.input-field {
  width: 100%;
  padding: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

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

.fleet-list {
  margin-top: 16px;
}

.fleet-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fleet-item .dev-id {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 16px;
}

.fleet-item .dev-plan {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 500;
  display: none;
  z-index: 1000;
}
