@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-secondary: #666666;
  --color-border: #e5e5e5;
  --color-primary: #000000;
  --color-primary-hover: #333333;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 48px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon {
  font-size: 32px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Main */
.main {
  flex: 1;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* Pricing Card */
.pricing-section {
  margin-bottom: 24px;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 8px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
}

.price-period {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* Features */
.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* Auth Section */
.auth-prompt {
  text-align: center;
}

.auth-prompt p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* User Info */
.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.user-avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--color-bg);
  border-radius: 100px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-github {
  background: #24292e;
  color: white;
}

.btn-github:hover {
  background: #1b1f23;
}

.github-icon {
  width: 20px;
  height: 20px;
}

.btn-link {
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  padding: 8px;
}

.btn-link:hover {
  color: var(--color-text);
}

/* Status Message */
.status-message {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 16px;
}

.status-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-message.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 48px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-links span {
  margin: 0 8px;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Loading State */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .price-amount {
    font-size: 40px;
  }
  
  .pricing-card {
    padding: 24px;
  }
}
