* {
  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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Views */
.view {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#dashboardView {
  display: block;
  align-items: flex-start;
  background: #f7fafc;
}

/* Auth Container */
.auth-container {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 440px;
  width: 100%;
}

.logo {
  font-size: 64px;
  text-align: center;
  margin-bottom: 16px;
}

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

.subtitle {
  text-align: center;
  color: #718096;
  margin-bottom: 32px;
  font-size: 16px;
}

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

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

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

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

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

input {
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

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

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* Error Messages */
.error-msg {
  color: #e53e3e;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}

/* Payment Container */
.payment-container {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.payment-container .icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.payment-container h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a202c;
}

.payment-container p {
  color: #718096;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.payment-container .btn {
  width: 100%;
  margin-bottom: 12px;
}

/* Dashboard */
.navbar {
  background: white;
  padding: 16px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

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

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

.nav-actions span {
  font-weight: 500;
  color: #4a5568;
}

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

.welcome-card {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.welcome-card .icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.welcome-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a202c;
}

.welcome-card > p {
  color: #718096;
  font-size: 18px;
  margin-bottom: 32px;
}

/* Status Card */
.status-card {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

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

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

.status-row .label {
  font-weight: 600;
  color: #4a5568;
}

.status-row .value {
  color: #2d3748;
}

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

/* Features */
.features {
  text-align: left;
}

.features h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #2d3748;
}

.features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features li {
  font-size: 16px;
  color: #4a5568;
  padding-left: 8px;
}

/* Loading */
#loadingView {
  flex-direction: column;
  gap: 16px;
  color: white;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
  .auth-container,
  .payment-container {
    padding: 32px 24px;
  }
  
  .welcome-card {
    padding: 32px 24px;
  }
  
  .navbar {
    padding: 12px 16px;
  }
  
  .nav-brand {
    font-size: 16px;
  }
  
  .nav-actions span {
    display: none;
  }
}