/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Ubuntu', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
  background: #2259C7;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #2259C7 0%, #1a4ba0 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Developer notices */
.dev-notice {
  background: rgba(255, 235, 59, 0.9);
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  font-size: 14px;
  border: 1px solid #fdd835;
}

.dev-notice a {
  color: #2259C7;
  text-decoration: none;
  font-weight: bold;
}

/* Features section */
.features {
  padding: 80px 0;
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: transform 0.3s ease;
}

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

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

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2259C7;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #2259C7;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid #2259C7;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  text-align: center;
  font-family: inherit;
}

.btn:hover {
  background: #1a4ba0;
  border-color: #1a4ba0;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.btn-primary {
  background: #2259C7;
  border-color: #2259C7;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: #2259C7;
  border-color: white;
}

.btn-outline {
  background: transparent;
  color: #2259C7;
  border-color: #2259C7;
}

.btn-outline:hover {
  background: #2259C7;
  color: white;
}

.btn-success {
  background: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background: #218838;
  border-color: #218838;
}

.btn-danger {
  background: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #c82333;
}

/* Pricing section */
.pricing {
  padding: 80px 0;
  background: #f8f9fa;
}

.pricing h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #333;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border-color: #2259C7;
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2259C7;
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.plan-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.plan-price {
  font-size: 48px;
  font-weight: 700;
  color: #2259C7;
  margin-bottom: 5px;
}

.plan-period {
  color: #666;
  margin-bottom: 30px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
}

.plan-features li {
  padding: 8px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.plan-features li:before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Auth containers */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #2259C7 0%, #1a4ba0 100%);
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 28px;
}

.plan-info {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  border: 1px solid #bbdefb;
}

.plan-info h3 {
  color: #2259C7;
  margin-bottom: 5px;
}

.plan-info p {
  color: #666;
  margin: 0;
}

.plan-info ul {
  list-style: none;
  margin: 15px 0 0 0;
  text-align: left;
}

.plan-info li {
  padding: 5px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.plan-info li:before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #2259C7;
}

.signin-link {
  text-align: center;
  margin-top: 30px;
  color: #666;
}

.signin-link a {
  color: #2259C7;
  text-decoration: none;
  font-weight: 600;
}

.signin-link a:hover {
  text-decoration: underline;
}

/* Account page */
.account-container {
  min-height: 100vh;
  padding: 100px 20px 40px;
  background: #f8f9fa;
}

.account-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.account-header h2 {
  color: #333;
  font-size: 28px;
}

.account-info {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.info-label {
  font-weight: 600;
  color: #333;
}

.info-value {
  color: #666;
  font-weight: 500;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-trial {
  background: #fff3cd;
  color: #856404;
}

.trial-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.trial-warning h4 {
  color: #856404;
  margin-bottom: 10px;
}

.trial-warning p {
  color: #856404;
  margin: 5px 0;
}

.subscription-management {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.subscription-management h3 {
  margin-bottom: 15px;
  color: #333;
}

.subscription-management p {
  color: #666;
  margin-bottom: 15px;
}

/* Success card */
.success-card {
  text-align: center;
}

.success-card h2 {
  color: #28a745;
  margin-bottom: 20px;
}

/* Error and success messages */
.error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

.success {
  color: #28a745;
  font-size: 14px;
  margin-top: 5px;
  display: block;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 40px 0;
  text-align: center;
}

footer p {
  margin: 0;
  opacity: 0.8;
}

/* Developer-specific styles */
.admin-header {
  background: #ff6b6b;
  color: white;
  padding: 20px 0;
  margin-bottom: 30px;
}

.admin-header h1 {
  margin-bottom: 5px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.admin-table tr:hover {
  background: #f8f9fa;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.status-creator {
  color: #28a745;
  font-weight: bold;
}

.status-trial {
  color: #ffc107;
  font-weight: bold;
}

.status-expired {
  color: #dc3545;
  font-weight: bold;
}

.quick-test {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #bbdefb;
}

.quick-test h3 {
  color: #2259C7;
  margin-bottom: 10px;
}

.test-account {
  display: inline-block;
  margin: 5px;
  padding: 8px 12px;
  background: #2259C7;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.test-account:hover {
  background: #1a4ba0;
  color: white;
  text-decoration: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #2259C7;
  margin-bottom: 5px;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
      font-size: 36px;
  }
  
  .hero p {
      font-size: 18px;
  }
  
  .hero-buttons {
      flex-direction: column;
      align-items: center;
  }
  
  .features-grid {
      grid-template-columns: 1fr;
  }
  
  .pricing-grid {
      grid-template-columns: 1fr;
  }
  
  .pricing-card.popular {
      transform: none;
  }
  
  .auth-card {
      padding: 30px 20px;
  }
  
  .account-header {
      flex-direction: column;
      gap: 20px;
      text-align: center;
  }
  
  .info-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
  }
  
  nav {
      gap: 15px;
      flex-wrap: wrap;
  }
  
  header .container {
      height: auto;
      padding: 15px 20px;
  }
  
  .hero {
      padding: 100px 0 60px;
  }
  
  .stats-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-table {
      font-size: 14px;
  }
  
  .admin-table th,
  .admin-table td {
      padding: 8px;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 15px;
  }
  
  .auth-container {
      padding: 15px;
  }
  
  .account-container {
      padding: 80px 15px 30px;
  }
  
  .account-card {
      padding: 25px 15px;
  }
  
  .stats-grid {
      grid-template-columns: 1fr;
  }
  
  .hero h1 {
      font-size: 28px;
  }
  
  .hero p {
      font-size: 16px;
  }
  
  nav {
      font-size: 14px;
  }
}

/* Hidden utility */
.hidden {
  display: none;
}