:root {
  --bg: #0a0e1a;
  --bg-secondary: #111827;
  --panel: #1f2937;
  --panel-hover: #374151;
  --text: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --brand: #3b82f6;
  --brand-hover: #2563eb;
  --brand-light: #60a5fa;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --border: #374151;
  --border-light: #4b5563;
  --shadow: rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-bg: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background: var(--panel);
}

/* Main Content */
main {
  padding: 3rem 2rem;
  min-height: calc(100vh - 140px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Plans Grid */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--border-light);
}

.plan:hover::before {
  opacity: 1;
}

.plan.premium {
  border: 2px solid var(--brand);
  background: linear-gradient(135deg, var(--panel) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.plan.premium::before {
  background: var(--gradient-secondary);
  opacity: 1;
}

.plan h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.badge {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-light);
  margin-bottom: 1.5rem;
  display: block;
}

.plan ul {
  list-style: none;
  margin-bottom: 2rem;
}

.plan li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

.btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-premium {
  background: var(--gradient-secondary);
  border: none;
}

.btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(245, 87, 108, 0.4);
}

.tag {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  width: 100%;
  text-align: center;
}

.tag.current {
  background: var(--accent);
}

/* Forms */
.form {
  max-width: 400px;
  margin: 0 auto;
  background: var(--panel);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form input,
.form select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Tables */
table {
  width: 100%;
  background: var(--panel);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

tr:hover {
  background: var(--panel-hover);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .plans {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  header .container {
    padding: 1rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  nav a {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan {
  animation: fadeInUp 0.6s ease-out;
}

.plan:nth-child(1) { animation-delay: 0.1s; }
.plan:nth-child(2) { animation-delay: 0.2s; }
.plan:nth-child(3) { animation-delay: 0.3s; }
