:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #f3f4f6;
  --ink: #111827;
  --ink-light: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-light: #dbeafe;
  --accent-lighter: #eff6ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #8b5cf6;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.orb-a { width: 600px; height: 600px; background: #93c5fd; top: -200px; right: -150px; animation: float 20s ease-in-out infinite; }
.orb-b { width: 500px; height: 500px; background: #c7d2fe; bottom: -150px; left: -100px; animation: float 25s ease-in-out infinite reverse; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

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

.brand h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-pill {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.menu { 
  display: flex; 
  gap: 8px;
  align-items: center;
}

.menu-link,
.menu-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-link:hover,
.menu-btn:hover {
  background: var(--surface-soft);
  color: var(--accent);
}

.menu-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.container { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 40px 24px 60px;
  position: relative;
  z-index: 1;
}

.view { 
  display: none; 
  animation: fadeIn 0.4s ease;
}

.view.active { 
  display: block; 
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.hero-modern {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
  padding: 60px 0;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--border);
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}

.visual-header i {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.visual-arrow i {
  width: 24px;
  height: 24px;
  color: var(--success);
}

.features-section,
.pricing-section,
.how-it-works,
.cta-section {
  margin-bottom: 80px;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--ink-light);
  margin: 0;
}

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

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  width: 28px;
  height: 28px;
  color: var(--accent);
  display: inline-block;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.feature-card p {
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0;
}

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

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted-light);
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--ink);
}

.price-period {
  font-size: 1.125rem;
  color: var(--muted-light);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
}

.pricing-features i {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

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

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.step-icon i {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.step-card p {
  color: var(--ink-light);
  margin: 0;
  font-size: 0.9375rem;
}

.cta-section {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 16px;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.btn i {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-light);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

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

.btn-sm i {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.btn i:only-child {
  margin: 0;
}

.btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.panel h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.panel-header .btn {
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.reply-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-size: 0.875rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.reply-form-actions {
  display: flex;
  justify-content: flex-end;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: white;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 8px 0;
}

.auth-shell {
  max-width: 520px;
  margin: 0 auto;
}

.auth-single {
  max-width: 480px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

td .btn {
  margin-right: 4px;
}

td .btn i {
  width: 16px;
  height: 16px;
}

th {
  background: var(--surface-soft);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: var(--accent-lighter);
  cursor: pointer;
}

tbody tr:hover td {
  color: var(--ink);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.split-wide {
  margin-bottom: 24px;
}

.kv {
  display: grid;
  gap: 12px;
}

.kv p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-sidebar-header {
  padding: 20px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-icon i {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.admin-sidebar-header h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  color: var(--ink-light);
  transition: all 0.2s ease;
  text-align: left;
  font-size: 0.9375rem;
}

.admin-nav-btn i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
}

.admin-nav-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.admin-nav-btn:hover {
  background: var(--accent-lighter);
  color: var(--accent);
}

.admin-nav-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.admin-nav-btn.active i {
  color: white;
}

.admin-main {
  min-width: 0;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.admin-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--accent);
  border-radius: 2px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

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

.stat-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon i {
  width: 28px;
  height: 28px;
  color: white;
  display: inline-block;
}

.stat-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stat-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.stat-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.stat-info {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-card-content {
  flex: 1;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  padding: 14px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  border-left: 3px solid var(--accent-light);
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: var(--accent-lighter);
  border-left-color: var(--accent);
  transform: translateX(4px);
}

.activity-item strong {
  color: var(--ink);
  font-weight: 600;
}

.activity-item small {
  color: var(--muted);
  font-size: 0.875rem;
}

.admin-toolbar {
  margin-bottom: 24px;
}

.admin-filter-grid {
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-license-grid {
  grid-template-columns: repeat(2, 1fr);
}

.admin-login-grid {
  grid-template-columns: repeat(2, 1fr);
}

.admin-shell {
  max-width: 600px;
  margin: 0 auto;
}

.admin-bootstrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s ease;
}

.message-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

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

.message-from {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-from i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.message-from strong {
  color: var(--ink);
  font-weight: 600;
}

.message-email {
  color: var(--muted);
  font-size: 0.875rem;
}

.message-date {
  color: var(--muted);
  font-size: 0.875rem;
}

.message-subject {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 1rem;
}

.message-preview {
  color: var(--ink-light);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.message-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.message-detail {
  margin-bottom: 24px;
}

.message-full {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.message-meta {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.message-meta p {
  margin: 8px 0;
  color: var(--ink-light);
}

.message-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.message-body {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.message-body h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.message-body p {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.6;
  white-space: pre-wrap;
}

.pager-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.pager-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.pager-actions {
  display: flex;
  gap: 8px;
}

.flash {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.flash.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.flash.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.flash.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.flash.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-modern {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-layout {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    position: static;
  }
}

/* ── Output Preview (hero) ── */
.output-preview {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-family: 'Source Serif 4', Georgia, serif;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
}
.output-preview-header {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.output-preview-body {
  padding: 14px 18px;
  font-size: 0.82rem;
  line-height: 1.55;
}
.preview-table-title { font-weight: 700; margin-bottom: 6px; font-size: 0.84rem; }
.preview-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4px;
  padding: 3px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8rem;
}
.preview-table-head { font-weight: 700; border-bottom: 2px solid var(--ink); }
.verdict-good { color: var(--success); font-weight: 700; }
.preview-note { font-style: italic; font-size: 0.75rem; color: var(--muted); margin: 6px 0; }
.preview-section { margin-top: 8px; font-size: 0.8rem; line-height: 1.5; }
.preview-refs { font-size: 0.76rem; color: var(--muted-light); border-top: 1px solid var(--border); padding-top: 6px; margin-top: 6px; }

/* ── 3-column pricing ── */
.pricing-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-savings {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 12px;
}
.pricing-badge-best {
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 4px;
}

/* ── Plan selector (checkout) ── */
.plan-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.plan-btn {
  flex: 1;
  min-width: 140px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.plan-btn:hover { border-color: var(--accent); }
.plan-btn-active { border-color: var(--accent); background: var(--accent-lighter); }
.plan-btn-name { display: block; font-weight: 700; font-size: 1rem; }
.plan-btn-price { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 2px; }
.plan-badge {
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 99px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── License Edit Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 1.15rem; }
.modal-box .form-grid { padding: 20px 24px; gap: 12px; }
.form-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 10px;
}
.form-row label { font-size: 0.875rem; font-weight: 600; color: var(--ink-light); }
.input-readonly { background: var(--surface-soft); color: var(--muted); cursor: default; }
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

/* ── Status pills extra ── */
.status-inactive { background: #fee2e2; color: #b91c1c; }
.status-trial { background: #fef3c7; color: #92400e; }

/* ── AI Credential Card ── */
.credential-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.credential-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.credential-row:last-child { border-bottom: none; }
.credential-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.credential-value {
  font-size: 0.875rem;
  color: var(--ink);
  word-break: break-all;
}
.credential-secret {
  display: flex;
  align-items: center;
  gap: 8px;
}
.credential-secret .masked {
  font-family: monospace;
  letter-spacing: 2px;
  color: var(--muted);
}
.status-pill.status-paid  { background: #dcfce7; color: #15803d; }
.status-pill.status-trial { background: #fef3c7; color: #92400e; }
.status-pill.status-inactive { background: #fee2e2; color: #b91c1c; }

/* ═══════════════════════════════════════════
   ADMIN SIDEBAR — compact professional style
═══════════════════════════════════════════ */
.admin-sidebar-header {
  padding: 16px !important;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-icon {
  width: 32px !important;
  height: 32px !important;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-icon i, .admin-icon svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--accent);
}
.admin-sidebar-header h3 {
  font-size: 0.95rem !important;
  margin: 0 0 2px !important;
}
.admin-sidebar-header p.hint {
  font-size: 0.75rem;
  margin: 0;
}
.admin-nav {
  padding: 0 10px 12px !important;
  gap: 4px !important;
}
.admin-nav-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-light);
  transition: all 0.15s;
  width: 100%;
  text-align: left;
}
.admin-nav-btn i {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.admin-nav-btn svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
}
.admin-nav-btn span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-nav-btn:hover {
  background: var(--accent-lighter);
  color: var(--accent);
}
.admin-nav-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.admin-nav-btn.active i,
.admin-nav-btn.active svg {
  color: white;
}

/* ═══════════════════════════════════════════
   IMAGE SLIDER
═══════════════════════════════════════════ */
.slider-section {
  margin: 0 0 48px;
}
.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  user-select: none;
}
.slides-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.slide {
  min-width: 100%;
  padding: 32px 32px 20px;
  box-sizing: border-box;
}
.slide-mock {
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: 'Source Serif 4', Georgia, serif;
}
.slide-mock-blue  { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #93c5fd; }
.slide-mock-green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #86efac; }
.slide-mock-purple{ background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%); border-color: #c4b5fd; }
.slide-mock-bar {
  background: var(--ink);
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.slide-mock-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.slide-mock-body { padding: 20px 24px; }
.slide-mock-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}
.slide-mock-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-light);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 14px;
}
.slide-mock-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
}
.slide-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 0;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.slider-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}
.slider-dot.active { background: var(--accent); transform: scale(1.3); }

/* ═══════════════════════════════════════════
   VIDEO TUTORIALS
═══════════════════════════════════════════ */
.tutorials-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.tutorials-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.tutorial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.tutorial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tutorial-thumb {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}
.tutorial-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.tutorial-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tutorial-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s;
}
.tutorial-play-btn:hover { background: rgba(0,0,0,0.1); }
.tutorial-play-icon {
  width: 56px; height: 56px;
  background: rgba(255,0,0,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.5rem;
  padding-left: 4px;
}
.tutorial-info { padding: 16px; }
.tutorial-info h4 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; }
.tutorial-info p { margin: 0; font-size: 0.825rem; color: var(--muted); }
.tutorial-info-footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px 12px;
}
.tutorial-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.tutorial-placeholder i { width: 48px; height: 48px; margin: 0 auto 12px; display: block; }

/* ═══════════════════════════════════════════
   ALTERNATIVE PAYMENT
═══════════════════════════════════════════ */
.alt-payment-section {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.alt-payment-section summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  background: var(--surface-soft);
  user-select: none;
  transition: color 0.15s;
}
.alt-payment-section summary::-webkit-details-marker { display: none; }
.alt-payment-section summary:hover { color: var(--accent); }
.alt-payment-section summary i { width: 16px; height: 16px; flex-shrink: 0; }
.alt-payment-body {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ═══════════════════════════════════════════
   HAMBURGER / MOBILE MENU
═══════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.hamburger-btn:hover { background: var(--surface-soft); }
.hamburger-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
#main-menu.menu-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  z-index: 49;
  box-shadow: var(--shadow-lg);
  gap: 4px;
}
#main-menu.menu-open .menu-btn,
#main-menu.menu-open .menu-link {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 16px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .hero-modern {
    flex-direction: column;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  #main-menu { display: none; }
  #main-menu.menu-open { display: flex; }

  .container {
    padding: 20px 14px 40px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-value { font-size: 1.5rem; }

  .features-grid,
  .pricing-cards,
  .pricing-cards-3,
  .steps-grid { grid-template-columns: 1fr; }

  .split,
  .admin-grid-2 { grid-template-columns: 1fr; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav-btn { flex: 0 0 auto; width: auto !important; }

  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .admin-filter-grid,
  .admin-license-grid,
  .admin-login-grid { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.625rem; }
  .cta-content h2 { font-size: 1.625rem; }

  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-featured { transform: none; }
  .form-row { grid-template-columns: 1fr; }

  .slide { padding: 20px 16px 14px; }
  .slide-mock-body { padding: 14px 16px; }

  .tutorials-grid { grid-template-columns: 1fr; }

  .table-wrap { overflow-x: auto; }
  table { min-width: 600px; }

  .plan-selector { flex-direction: column; }
}
