* {
  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: 600px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.auth-card {
  max-width: 440px;
}

.payment-card {
  max-width: 480px;
  text-align: center;
}

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

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

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

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

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

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

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

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

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

input, select, textarea {
  padding: 12px 14px;
  font-size: 14px;
  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: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.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: 16px;
  font-weight: 600;
}

.error {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

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

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

.price-label {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 4px;
}

.features {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

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

.features li:last-child {
  border-bottom: none;
}

.note {
  color: #718096;
  font-size: 13px;
  margin-top: 16px;
}

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

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.user-name {
  font-weight: 500;
  color: #667eea;
}

#appView .container {
  display: block;
  padding: 32px 24px;
  min-height: auto;
}

#appView .card {
  margin-bottom: 24px;
}

#appView .card:last-child {
  margin-bottom: 0;
}

.status-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  background: #f7fafc;
  border-radius: 12px;
}

.status-item {
  text-align: center;
}

.status-label {
  font-size: 13px;
  color: #718096;
  margin-bottom: 8px;
}

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

.demo-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.demo-item {
  padding: 24px;
  background: #f7fafc;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
}

.demo-item:hover {
  background: #edf2f7;
  transform: translateY(-2px);
}

.view {
  display: none;
}

@media (max-width: 640px) {
  .demo-content {
    grid-template-columns: 1fr;
  }
  
  .status-box {
    grid-template-columns: 1fr;
  }
}