/* === Cognos SuperApp - Inspired by diausgroup.com === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0f1a;
  --bg2: #111827;
  --bg3: #1a2332;
  --surface: #1e293b;
  --surface2: #243447;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #8b5cf6;
  --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
}
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; min-width: 0; }
.container { width: 100%; max-width: 100%; min-width: 0; margin: 0 auto; padding: 0 clamp(24px, 4vw, 64px); }

/* === Navbar === */
.navbar {
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 1.5rem; font-weight: 800;
  color: var(--text); flex-shrink: 0;
}
.brand-icon { color: var(--primary); font-size: 1.8rem; }
.nav-links {
  display: flex; align-items: center; gap: clamp(2px, 0.4vw, 8px);
  list-style: none; min-width: 0; flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text2); text-decoration: none;
  padding: clamp(6px, 0.6vw, 8px) clamp(8px, 1vw, 16px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.72rem, 0.62rem + 0.32vw, 0.9rem);
  font-weight: 500; white-space: nowrap;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-links .nav-cta {
  background: var(--gradient); color: #fff;
  padding: clamp(6px, 0.6vw, 8px) clamp(12px, 1.4vw, 20px);
  border-radius: 50px; font-weight: 600;
}
.nav-links .nav-cta:hover { opacity: 0.9; background: var(--gradient); }

/* === Alerts bell === */
.nav-bell { position: relative; display: flex; align-items: center; }
.alert-bell {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; cursor: pointer;
  background: transparent; color: var(--text2); font-size: 1.05rem;
  border-radius: var(--radius-sm); transition: all 0.2s;
}
.alert-bell:hover { color: var(--text); background: var(--surface); }
.alert-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  font-size: 0.68rem; font-weight: 700; line-height: 1;
  border-radius: 50px; border: 2px solid var(--bg);
}
.alert-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 1200; overflow: hidden;
}
.alert-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.alert-panel-count { font-size: 0.75rem; font-weight: 500; color: var(--text3); }
.alert-panel-body { max-height: 360px; overflow-y: auto; }
.alert-empty { padding: 32px 16px; text-align: center; color: var(--text3); font-size: 0.88rem; }
.alert-item {
  display: flex; gap: 12px; padding: 12px 16px;
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.alert-item:last-child { border-bottom: none; }
.alert-item:hover { background: var(--surface); }
.alert-item-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.alert-item.alert-danger .alert-item-icon { background: rgba(239,68,68,0.12); color: var(--danger); }
.alert-item.alert-warning .alert-item-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.alert-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alert-item-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.alert-item-msg { font-size: 0.78rem; color: var(--text2); }
.alert-item-tag {
  align-self: flex-start; margin-top: 4px;
  padding: 1px 8px; border-radius: 50px;
  background: rgba(59,130,246,0.12); color: var(--primary);
  font-size: 0.68rem; font-weight: 600;
}
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 0; min-width: 200px;
  list-style: none; z-index: 100;
}
.dropdown-menu a {
  display: block; padding: 8px 16px; white-space: nowrap;
  color: var(--text2); border-radius: 0;
}
.dropdown-menu a:hover { color: var(--text); background: var(--surface); }
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: 0.3s;
}

/* === Hero === */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(135deg, #0a0f1a 0%, #1a2332 50%, #0f172a 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139,92,246,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 50px; font-size: 0.85rem; color: var(--primary);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text2);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 0.95rem;
  font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; transition: all 0.2s;
}
.btn-primary {
  background: var(--gradient); color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); }
.btn-danger {
  background: var(--danger); color: #fff;
}
.btn-danger:hover { opacity: 0.9; }
.btn-full { width: 100%; justify-content: center; padding: 14px; }
.btn-large { padding: 16px 40px; font-size: 1.05rem; }

/* === Sections === */
.section { padding: 100px 0; }
.section-dark { background: var(--bg2); }
.section-header {
  text-align: center; max-width: 700px; margin: 0 auto 60px;
}
.section-tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(59,130,246,0.1); border-radius: 50px;
  font-size: 0.8rem; color: var(--primary); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 {
  font-size: 2.5rem; font-weight: 700; margin-bottom: 16px;
}
.section-header p { color: var(--text2); font-size: 1.1rem; }

/* === About Grid === */
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.about-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.about-icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  background: rgba(59,130,246,0.1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--primary);
}
.about-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.about-card p { color: var(--text2); font-size: 0.95rem; line-height: 1.7; }

/* === Services Grid === */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all 0.2s;
}
.service-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.service-icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  background: rgba(139,92,246,0.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: var(--text2); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.service-link { color: var(--primary); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.service-link:hover { color: var(--accent); }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, #1e293b, #111827);
  text-align: center;
}
.cta-content h2 { font-size: 2.2rem; margin-bottom: 16px; }
.cta-content p { color: var(--text2); font-size: 1.1rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === Dashboard === */
.dashboard { padding: 40px 0; }
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.dash-header h1 { font-size: 2rem; }
.dash-header p { color: var(--text2); }
.dash-date { color: var(--text3); font-size: 0.9rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.stat-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.stat-icon.contacts { background: rgba(59,130,246,0.1); color: var(--primary); }
.stat-icon.projects { background: rgba(139,92,246,0.1); color: var(--accent); }
.stat-icon.revenue { background: rgba(34,197,94,0.1); color: var(--success); }
.stat-icon.employees { background: rgba(245,158,11,0.1); color: var(--warning); }
.stat-icon.expenses { background: rgba(239,68,68,0.1); color: var(--danger); }
.stat-icon.invoices { background: rgba(20,184,166,0.1); color: #14b8a6; }
.stat-card { cursor: grab; user-select: none; transition: all 0.2s; }
.stat-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-card.dragging { opacity: 0.4; }
.stat-card:active { cursor: grabbing; }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text2); }

.dash-modules h2 { margin-bottom: 24px; font-size: 1.3rem; }
.modules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.module-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-decoration: none;
  color: var(--text); transition: all 0.2s;
}
.module-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.module-card.dragging { opacity: 0.4; }
.module-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 12px; }
.module-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.module-card p { font-size: 0.85rem; color: var(--text3); }

/* === Auth Page === */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 70px); padding: 40px 24px;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 40px;
  width: 100%; max-width: 420px;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .brand-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.auth-header h2 { font-size: 1.5rem; }
.auth-header p { color: var(--text2); font-size: 0.9rem; margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text3); font-size: 0.8rem; }

/* === Forms === */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text2); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem;
  font-family: inherit; transition: border-color 0.2s; outline: none;
  width: 100%; box-sizing: border-box;
}
.form-group select { min-width: 0; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea { resize: vertical; }
.line-item { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }

/* === Alerts === */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 20px;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--danger); }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: var(--success); }

/* === Page Module (CRM, Inventory, etc) === */
.page-module { padding: 40px 0; }
.module-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; gap: 20px;
}
.module-header h1 { font-size: 1.6rem; }
.module-header h1 i { margin-right: 10px; color: var(--primary); }
.module-header p { color: var(--text2); margin-top: 4px; }
.module-toolbar {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.search-input {
  flex: 1; min-width: 200px; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; outline: none;
}
.search-input:focus { border-color: var(--primary); }
.filter-select {
  padding: 10px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; outline: none; cursor: pointer;
}

/* === Data Table === */
.data-table-wrapper {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; overflow-x: auto; overflow-y: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 14px 20px; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text3); background: var(--bg2); border-bottom: 1px solid var(--border);
}
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--text); }
.sort-icon { display: inline-block; width: 14px; margin-left: 4px; opacity: 0.4; }
.sort-icon.asc::after { content: '▲'; opacity: 1; }
.sort-icon.desc::after { content: '▼'; opacity: 1; }
.data-table td {
  padding: 14px 20px; font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
  word-break: normal;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(59,130,246,0.03); }
.data-table td.cell-actions { white-space: nowrap; vertical-align: middle; }
.data-table td.cell-actions .btn { padding: 4px 10px; font-size: 0.75rem; margin-right: 4px; }
.data-table td.cell-actions .btn:last-child { margin-right: 0; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: rgba(59,130,246,0.08) !important; }
.table-empty { text-align: center; color: var(--text3); padding: 40px !important; }
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text3);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.2rem; color: var(--text1); margin-bottom: 8px; }
.empty-state p { font-size: 0.92rem; }

/* === Badges === */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 500; text-transform: capitalize;
  white-space: nowrap;
}
.badge-lead, .badge-pending, .badge-medium { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-customer, .badge-paid, .badge-active, .badge-high, .badge-success { background: rgba(34,197,94,0.1); color: var(--success); }
.badge-partner, .badge-completed { background: rgba(59,130,246,0.1); color: var(--primary); }
.badge-vendor { background: rgba(139,92,246,0.1); color: var(--accent); }
.badge-overdue, .badge-critical, .badge-danger, .badge-out { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-low, .badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-in, .badge-planning, .badge-probation { background: rgba(59,130,246,0.1); color: var(--primary); }
.badge-on-hold, .badge-inactive, .badge-cancelled { background: rgba(100,116,139,0.1); color: var(--text3); }
.badge-admin { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-manager { background: rgba(139,92,246,0.1); color: var(--accent); }
.badge-staff { background: rgba(59,130,246,0.1); color: var(--primary); }
.badge-low { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-todo { background: rgba(100,116,139,0.12); color: var(--text3); }
.badge-in_progress { background: rgba(59,130,246,0.1); color: var(--primary); }
.badge-blocked { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-done { background: rgba(34,197,94,0.1); color: var(--success); }

/* === Summary Cards === */
.inventory-summary, .invoices-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 24px;
}
.summary-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px;
}
.summary-card i { font-size: 1.8rem; color: var(--success); }
.summary-card.warning i { color: var(--warning); }
.summary-card.danger i { color: var(--danger); }
.summary-card.success i { color: var(--success); }
.summary-card div { display: flex; flex-direction: column; }
.summary-card span { font-size: 1.5rem; font-weight: 700; }
.summary-card small { font-size: 0.8rem; color: var(--text3); }

/* === Entity Card Grid (Projects, Tasks) === */
.entity-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.entity-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  cursor: pointer; transition: all 0.2s;
}
.entity-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.entity-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px;
}
.entity-head h3 { font-size: 1.1rem; }
.entity-sub {
  display: block; font-size: 0.72rem; color: var(--text3);
  font-weight: 600; letter-spacing: 0.4px; margin-bottom: 2px;
}
.entity-desc { color: var(--text2); font-size: 0.9rem; margin-bottom: 16px; }
.entity-meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.entity-meta > span {
  font-size: 0.85rem; color: var(--text3);
  display: inline-flex; align-items: center;
}
.entity-meta > span i { margin-right: 6px; }
.entity-actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.entity-actions .btn {
  padding: 6px 12px; font-size: 0.8rem;
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
}
.entity-actions .btn:hover { border-color: var(--primary); }
.entity-actions .btn.btn-danger {
  background: var(--danger); color: #fff; border-color: transparent;
}
.progress-bar {
  height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--gradient); border-radius: 3px;
  transition: width 0.3s;
}
.loading-text { color: var(--text3); text-align: center; padding: 40px; }

/* === Reports === */
.reports-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-bottom: 40px;
}
.report-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.report-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 12px; }
.report-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.report-card p { color: var(--text2); font-size: 0.9rem; }
.report-meta { display: block; margin-top: 16px; font-size: 0.8rem; color: var(--success); }
.php-middleware-info {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.php-middleware-info h3 { margin-bottom: 12px; }
.php-middleware-info h3 i { color: var(--accent); margin-right: 8px; }
.php-middleware-info p { color: var(--text2); font-size: 0.92rem; margin-bottom: 12px; }
.middleware-status { font-size: 0.9rem; padding: 8px 0; }

/* === Modal === */
.modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); align-items: center; justify-content: center;
  z-index: 1100; padding: 24px;
}
.modal-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; width: 100%;
  max-width: 560px; max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-content h2 { margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 1.8rem; color: var(--text3); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* === Footer === */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-text { font-size: 1.2rem; font-weight: 700; }
.footer-brand p { color: var(--text3); font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer-links h4 { font-size: 0.9rem; margin-bottom: 16px; color: var(--text); }
.footer-links a {
  display: block; color: var(--text3); text-decoration: none;
  font-size: 0.88rem; margin-bottom: 10px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  text-align: center; color: var(--text3); font-size: 0.85rem;
}

/* === Responsive === */
@media (min-width: 1600px) {
  .stats-grid { grid-template-columns: repeat(6, 1fr); }
  .modules-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .services-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) and (min-width: 769px) {
  .nav-brand { font-size: 1.25rem; }
  .brand-icon { font-size: 1.5rem; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 0.75rem; padding: 6px 8px; }
  .nav-links .nav-cta { padding: 6px 12px; }
  .alert-bell { width: 34px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; width: 100%;
    background: var(--bg); flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-bell { align-self: stretch; }
  .alert-bell { justify-content: flex-start; gap: 8px; width: 100%; padding: 8px 16px; }
  .alert-panel { right: auto; left: 0; width: 100%; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 80px 0 60px; }
  .section-header h2 { font-size: 1.8rem; }
  .services-grid, .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: 1fr; }
  .entity-grid { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .module-header { flex-direction: column; }
  .module-toolbar { flex-direction: column; }
  .module-toolbar .search-input, .module-toolbar .filter-select { width: 100%; min-width: 0; }
  .inventory-summary, .invoices-summary { grid-template-columns: 1fr; }
  .wizard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .auth-card { padding: 32px 24px; }
}
