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

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

body {
  min-height: 100vh;
}

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

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Auth View */
#auth-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-card {
  max-width: 420px;
  width: 100%;
}

.auth-card h1 {
  font-size: 28px;
  color: #1a202c;
  margin-bottom: 8px;
  text-align: center;
}

.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;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #718096;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.tab:hover {
  color: #667eea;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
}

input {
  padding: 12px 14px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  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;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

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

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

/* Payment View */
#payment-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.payment-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.payment-card h2 {
  font-size: 24px;
  color: #1a202c;
  margin-bottom: 24px;
}

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

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

.validity {
  font-size: 16px;
  opacity: 0.9;
}

/* App View */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

#user-name {
  font-weight: 500;
  color: #2d3748;
}

.content {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
  color: white;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text {
  font-size: 18px;
  opacity: 0.95;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  color: #1a202c;
  margin-bottom: 8px;
}

.feature-card p {
  color: #718096;
  line-height: 1.6;
}

.payment-info {
  max-width: 600px;
  margin: 0 auto;
}

.payment-info h3 {
  font-size: 20px;
  color: #1a202c;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
  border-bottom: none;
}

.label {
  font-weight: 500;
  color: #4a5568;
}

.value {
  color: #2d3748;
}

.status-active {
  color: #38a169;
  font-weight: 600;
}

.view {
  display: none;
}

.view.active {
  display: block;
}