/* KinPlug - Premium Design System v2.0 */

:root {
  /* Brand Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  
  /* Accent */
  --accent: #06b6d4;
  --accent-light: #ecfeff;
  
  /* Status */
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  /* Neutrals */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.15);
  
  /* Layout */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  
  /* Animation */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 0 rgba(37,99,235,0);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(37,99,235,0.1);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background: var(--bg-subtle);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-icon { padding: 10px; }

.hidden { display: none !important; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 0;
}

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

.logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

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

.lang-switcher {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.lang-switcher a {
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
}

.lang-switcher a:hover { color: var(--text-secondary); }
.lang-switcher a.active { color: var(--primary); font-weight: 600; }

/* Auth - Hide until loaded */
.nav-auth {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav-auth.ready { display: flex; }

#user-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

#user-nav.hidden { display: none; }

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.user-info:hover { background: var(--bg-muted); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  overflow: hidden;
}

#user-name {
  font-weight: 500;
  color: var(--text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text { max-width: 560px; }

.hero-badge {
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.hero-feature svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-card-header {
  background: linear-gradient(90deg, #f5f5f5 0%, #fafafa 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #febc2e; }
.window-dot.green { background: #28c840; }

.hero-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 8px;
}

.hero-card-body { padding: 32px; }

.preview-document {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--text);
}

.preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.preview-number {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.preview-logo {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.preview-table {
  margin-bottom: 16px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

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

.preview-item { color: var(--text-secondary); }
.preview-price { color: var(--text); font-weight: 500; }

.preview-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--text);
  font-weight: 700;
}

.preview-total-label { color: var(--text); }
.preview-total-value { color: var(--primary); font-size: 1.25rem; }

/* Floating elements */
.hero-float {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
}

.hero-float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-float-text {
  font-size: 0.8125rem;
}

.hero-float-title {
  font-weight: 600;
  color: var(--text);
}

.hero-float-desc {
  color: var(--text-muted);
}

.hero-float-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   PROBLEMS / PAIN POINTS
   ======================================== */
.problems {
  padding: 100px 0;
  background: var(--bg);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all var(--transition-slow);
}

.problem-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.problem-card h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.problem-solution {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ========================================
   PLUGINS SHOWCASE
   ======================================== */
.plugins {
  padding: 100px 0;
}

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.plugin-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition-slow);
}

.plugin-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.plugin-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.plugin-card.coming-soon {
  opacity: 0.7;
}

.plugin-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plugin-badge.popular {
  background: var(--primary);
  color: white;
}

.plugin-badge.new {
  background: var(--success);
  color: white;
}

.plugin-badge.soon {
  background: var(--warning);
  color: var(--text);
}

.plugin-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.plugin-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.plugin-card > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.plugin-features {
  list-style: none;
  margin-bottom: 24px;
}

.plugin-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plugin-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.plugin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ========================================
   STATS / SOCIAL PROOF
   ======================================== */
.stats {
  padding: 60px 0;
  background: var(--primary-gradient);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg);
}

.step h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border-light);
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.125rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.testimonial-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
  padding: 100px 0;
}

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

.pricing-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
  transition: all var(--transition-slow);
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: 100px 0;
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text);
  color: white;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 16px 0 24px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 12px; }

.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: white; }

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-header {
  background: var(--bg-subtle);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-content { padding: 40px 0; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td { font-size: 0.9375rem; }

.status-badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active { background: var(--success-light); color: var(--success); }
.status-badge.trial { background: var(--warning-light); color: var(--warning); }
.status-badge.expired { background: var(--danger-light); color: var(--danger); }
.status-badge.monthly { background: var(--primary-light); color: var(--primary); }
.status-badge.annual { background: var(--accent-light); color: var(--accent); }

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}

/* Alert */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.alert-error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page { padding: 60px 0 100px; }

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.last-updated {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 0.9375rem;
}

.legal-content section { margin-bottom: 40px; }

.legal-content h2 {
  font-size: 1.375rem;
  margin: 48px 0 16px;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin: 24px 0 12px;
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal-content th, .legal-content td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
}

.legal-content th { background: var(--bg-subtle); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-text { max-width: 100%; }
  .hero-features { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero-card { transform: none; }
  .hero-float { display: none; }
  
  .problems-grid, .features-grid, .plugins-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .container { padding: 0 16px; }
  
  .hero { padding: 48px 0 64px; }
  .problems, .features, .plugins, .testimonials, .pricing, .faq, .how-it-works { padding: 64px 0; }
  
  .problems-grid, .features-grid, .plugins-grid, .testimonials-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }
}

/* Print styles */
@media print {
  .navbar, .footer, .cta { display: none; }
  body { font-size: 12pt; }
}
