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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body { padding: 24px; }

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  margin-bottom: 24px;
}

.auth-card, .payment-card {
  max-width: 440px;
  margin: 48px auto;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.subtitle {
  text-align: center;
  color: #718096;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: #718096;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, select, textarea {
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #2d3748;
}

.btn-secondary:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
}

.btn-large {
  padding: 16px 32px;
  font-size: 17px;
  width: 100%;
  margin-bottom: 12px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.error {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.price-box {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin: 24px 0;
}

.price {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.price-detail {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
}

.features {
  margin: 24px 0;
}

.feature {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.feature:last-child {
  border-bottom: none;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header h1 {
  text-align: left;
  color: white;
  margin: 0;
}

.status-box {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 16px;
}

.status-label {
  font-size: 13px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.status-value {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

.status-value.active {
  color: #38a169;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.content-item {
  padding: 20px;
  background: #f7fafc;
  border-radius: 8px;
  text-align: center;
}

.icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.content-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.content-item p {
  font-size: 13px;
  color: #718096;
}

.loading {
  text-align: center;
  padding: 48px;
  color: white;
  font-size: 18px;
}

@media (max-width: 640px) {
  .container { padding: 16px; }
  .card { padding: 24px; }
  h1 { font-size: 24px; }
  .price { font-size: 36px; }
  .content-grid { grid-template-columns: 1fr; }
}