/* DMDesk - Main Stylesheet */
:root {
  --primary: #E8845C;
  --primary-dark: #C96840;
  --primary-light: #F5C4A8;
  --secondary: #6C63FF;
  --accent: #FFB347;
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --sidebar-bg: #1A1A2E;
  --sidebar-text: #CCC8E0;
  --sidebar-active: #E8845C;
  --text: #2D2D3A;
  --text-muted: #8A8A9A;
  --border: #E8E4DC;
  --success: #52C97A;
  --warning: #FFB347;
  --danger: #FF6B6B;
  --info: #4ECDC4;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar-logo .tagline {
  font-size: 11px;
  color: var(--sidebar-text);
  opacity: 0.6;
  margin-top: 2px;
}

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

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.25);
  margin-top: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.2s;
  position: relative;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.sidebar-nav a.active {
  color: #fff;
  background: rgba(232,132,92,0.15);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav .icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* Main content */
.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

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

.page-content {
  padding: 28px;
  flex: 1;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.card-body {
  padding: 22px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.stat-card .label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 4px;
  line-height: 1.2;
}

.stat-card .sublabel {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.stat-card.orange .icon-wrap { background: rgba(232,132,92,0.12); }
.stat-card.purple .icon-wrap { background: rgba(108,99,255,0.12); }
.stat-card.green .icon-wrap { background: rgba(82,201,122,0.12); }
.stat-card.red .icon-wrap { background: rgba(255,107,107,0.12); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

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

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.9); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.9); }

.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

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

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-new { background: rgba(78,205,196,0.12); color: #2A9D8F; }
.badge-paid { background: rgba(108,99,255,0.12); color: #6C63FF; }
.badge-shipped { background: rgba(255,179,71,0.12); color: #C07800; }
.badge-delivered { background: rgba(82,201,122,0.12); color: #2D9A4B; }
.badge-cancelled { background: rgba(255,107,107,0.12); color: #CC4444; }
.badge-unpaid { background: rgba(255,107,107,0.12); color: #CC4444; }
.badge-refunded { background: rgba(138,138,154,0.12); color: #555; }

/* Tables */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(232,132,92,0.03); }

/* Forms */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s;
  appearance: auto;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,132,92,0.1);
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Kanban board */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.kanban-col {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 300px;
}

.kanban-col-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.kanban-col-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.dot-new { background: var(--info); }
.dot-paid { background: var(--secondary); }
.dot-shipped { background: var(--warning); }
.dot-delivered { background: var(--success); }

.col-count {
  background: var(--border);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
}

.kanban-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.kanban-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}

.kanban-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.kanban-col.drag-over {
  background: rgba(232,132,92,0.05);
  border-color: var(--primary);
}

.kanban-card .order-num {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kanban-card .customer {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kanban-card .amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.kanban-card .items-list {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.kanban-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.kanban-card .source-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.modal-header h3 { font-size: 16px; font-weight: 600; }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}

.close-btn:hover { color: var(--text); }

/* Search bar */
.search-wrap {
  position: relative;
  max-width: 320px;
}

.search-wrap input {
  padding-left: 36px;
}

.search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

/* Customer card */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.customer-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

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

.customer-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.customer-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.customer-card .handle {
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.customer-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.product-card .product-img {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.product-card .product-info {
  padding: 16px;
}

.product-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .sku {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-card .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-ok .stock-dot { background: var(--success); }
.stock-low .stock-dot { background: var(--warning); }
.stock-out .stock-dot { background: var(--danger); }
.stock-ok { color: var(--success); }
.stock-low { color: #B07800; }
.stock-out { color: var(--danger); }

/* Order items builder */
.items-builder {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.items-builder-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px 36px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

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

.items-builder-row input,
.items-builder-row select {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 9px 12px;
}

.items-builder-row input:focus,
.items-builder-row select:focus {
  box-shadow: none;
  background: rgba(232,132,92,0.05);
}

.remove-item-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.remove-item-btn:hover { color: var(--danger); }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--text); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .emoji { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* Loading */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

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

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Utility */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); font-size: 13px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-info { background: rgba(78,205,196,0.1); color: #2A9D8F; border: 1px solid rgba(78,205,196,0.3); }
.alert-warning { background: rgba(255,179,71,0.1); color: #B07800; border: 1px solid rgba(255,179,71,0.3); }
.alert-danger { background: rgba(255,107,107,0.1); color: #CC4444; border: 1px solid rgba(255,107,107,0.3); }

/* Analytics */
.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.chart-bar-label {
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-bar-track {
  flex: 1;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.chart-bar-value {
  width: 70px;
  text-align: right;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
  .kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hamburger {
    display: block;
  }

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

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

  .form-grid, .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .page-content { padding: 16px; }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Landing page specific */
.landing {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.landing-nav {
  background: #fff;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-nav .logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

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

.landing-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.landing-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav-links a:hover { color: var(--primary); }

.hero {
  padding: 80px 5% 60px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,132,92,0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(232,132,92,0.2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin: 56px auto 0;
  max-width: 900px;
  padding: 0 5%;
}

.hero-image .mockup {
  background: var(--sidebar-bg);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.hero-image .mockup-screen {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  min-height: 300px;
}

.mockup-sidebar {
  background: var(--sidebar-bg);
  border-radius: 8px;
  padding: 16px;
}

.mockup-sidebar .logo-mock {
  height: 20px;
  background: rgba(232,132,92,0.3);
  border-radius: 4px;
  margin-bottom: 20px;
}

.mockup-nav-item {
  height: 12px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 10px;
}

.mockup-nav-item.active {
  background: rgba(232,132,92,0.3);
  width: 70%;
}

.mockup-main { display: flex; flex-direction: column; gap: 12px; }

.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mockup-stat {
  height: 60px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.mockup-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.mockup-col {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--border);
}

.mockup-card {
  height: 50px;
  border-radius: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.features {
  padding: 80px 5%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.pricing {
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, #2D2B55 100%);
  padding: 80px 5%;
  text-align: center;
}

.pricing h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing .subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px;
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  text-align: left;
}

.pricing-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.03);
}

.pricing-card .plan-name {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pricing-card.featured .plan-name { color: rgba(255,255,255,0.85); }

.pricing-card .price {
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card .price sup { font-size: 22px; vertical-align: top; margin-top: 8px; }
.pricing-card .price sub { font-size: 16px; color: rgba(255,255,255,0.6); }

.pricing-card .desc {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card ul li {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 5px 0;
  display: flex;
  gap: 8px;
}

.pricing-card ul li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-card.featured ul li::before { color: rgba(255,255,255,0.9); }

.testimonials {
  padding: 80px 5%;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.testimonial-card .quote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

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

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

.testimonial-card .author .name {
  font-size: 13px;
  font-weight: 600;
}

.testimonial-card .author .handle {
  font-size: 12px;
  color: var(--text-muted);
}

.landing-footer {
  background: var(--sidebar-bg);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

.landing-footer a { color: var(--primary); text-decoration: none; }
