@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-50: rgba(99,102,241,0.1);
  --primary-100: rgba(99,102,241,0.15);
  --primary-200: rgba(99,102,241,0.2);
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --danger: #f87171;
  --danger-bg: rgba(248,113,113,0.1);
  --success: #34d399;
  --success-bg: rgba(52,211,153,0.1);
  --warning: #fbbf24;
  --warning-bg: rgba(251,191,36,0.1);
  /* Dark navy - slightly lighter than pure dark */
  --bg: #131c31;
  --bg-secondary: #1a2540;
  --bg-card: #1e2d4a;
  --bg-card-hover: #253756;
  --bg-input: #152038;
  --text: #ffffff;
  --text-secondary: #e0ecff;
  --text-muted: #b8ccee;
  --border: #2a3f5f;
  --border-light: #3a5278;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.35);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  min-height: 100vh;
  zoom: 0.8;
}

/* Module-specific backgrounds — medium-tone, comfortable for eyes */
body.module-property-tax { background: linear-gradient(160deg, #2a3a56 0%, #334b6e 50%, #2e4260 100%); }
body.module-income-tax { background: linear-gradient(160deg, #2a3a58 0%, #344c6e 50%, #2e4462 100%); }
body.module-vat { background: linear-gradient(160deg, #2c3c5a 0%, #364e70 50%, #304464 100%); }
body.module-import-calc { background: linear-gradient(160deg, #2e3656 0%, #38466a 50%, #323e5e 100%); }
body.module-production { background: linear-gradient(160deg, #2a3c50 0%, #34506a 50%, #2e4458 100%); }
body.module-adv-production { background: linear-gradient(160deg, #2c3a52 0%, #364c68 50%, #30425c 100%); }
body.module-pl-statement { background: #f8fafc !important; }
body.module-vat-threshold { background: linear-gradient(160deg, #2a3856 0%, #34496c 50%, #2e4060 100%); }
body.module-mixed-ops { background: #f8fafc !important; }

/* ========== MODULE THEME — medium backgrounds, HIGH CONTRAST text, visible borders ========== */
body[class*="module-"] {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* Override module CSS variables */
body[class*="module-"] :root,
body[class*="module-"] {
  --bg: rgba(255,255,255,0.06) !important;
  --surf: rgba(255,255,255,0.10) !important;
  --surf2: rgba(255,255,255,0.05) !important;
  --brd: rgba(255,255,255,0.22) !important;
  --brd2: rgba(255,255,255,0.30) !important;
  --txt: #ffffff !important;
  --txt2: #e8f0ff !important;
  --txt3: #c8d8ee !important;
  --sh: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* Module headers */
body[class*="module-"] .hdr,
body[class*="module-"] .pl-hdr {
  background: rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
}
body[class*="module-"] .hdr h1,
body[class*="module-"] .pl-hdr h1 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}
body[class*="module-"] .hdr .ver {
  background: rgba(255,255,255,0.15) !important;
  color: #e8f0ff !important;
}

/* Back buttons */
body[class*="module-"] .back-btn,
body[class*="module-"] .pl-back {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #e8f0ff !important;
}
body[class*="module-"] .back-btn:hover,
body[class*="module-"] .pl-back:hover {
  background: rgba(255,255,255,0.20) !important;
  color: #fff !important;
}

/* Header buttons */
body[class*="module-"] .hbtn {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #e8f0ff !important;
}
body[class*="module-"] .hbtn:hover {
  background: rgba(255,255,255,0.20) !important;
}

/* Navigation tabs */
body[class*="module-"] .mnav,
body[class*="module-"] .tabs {
  background: rgba(255,255,255,0.08) !important;
  border-bottom-color: rgba(255,255,255,0.12) !important;
}
body[class*="module-"] .mnav-btn,
body[class*="module-"] .tab,
body[class*="module-"] .itab,
body[class*="module-"] .pl-tab {
  color: #d0e0f5 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}
body[class*="module-"] .mnav-btn:hover,
body[class*="module-"] .tab:hover,
body[class*="module-"] .itab:hover,
body[class*="module-"] .pl-tab:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.06) !important;
}
body[class*="module-"] .mnav-btn.act,
body[class*="module-"] .tab.act,
body[class*="module-"] .itab.act,
body[class*="module-"] .pl-tab.act {
  color: #60a5fa !important;
  border-bottom-color: #60a5fa !important;
  background: rgba(96,165,250,0.10) !important;
}

/* Cards and surfaces — visible borders */
body[class*="module-"] .card,
body[class*="module-"] .vt-card,
body[class*="module-"] .sec,
body[class*="module-"] [class*="-wrap"] .card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10) !important;
}

/* Section labels */
body[class*="module-"] .sec-label,
body[class*="module-"] .ctitle,
body[class*="module-"] .vt-card-title {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
  background: rgba(255,255,255,0.06) !important;
}

/* Tables */
body[class*="module-"] table {
  color: #ffffff !important;
}
body[class*="module-"] th {
  background: #253550 !important;
  color: #e8f0ff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
  border-bottom: 2px solid rgba(255,255,255,0.15) !important;
}
body[class*="module-"] .frow th {
  background: #1e2d44 !important;
}
body[class*="module-"] td {
  color: #f0f5ff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
body[class*="module-"] tr:hover td {
  background: rgba(255,255,255,0.04) !important;
}
body[class*="module-"] .trow td {
  background: rgba(255,255,255,0.06) !important;
  border-top: 2px solid rgba(255,255,255,0.12) !important;
}

/* Input fields */
body[class*="module-"] input,
body[class*="module-"] select,
body[class*="module-"] textarea {
  background: rgba(255,255,255,0.10) !important;
  border: 1.5px solid rgba(255,255,255,0.20) !important;
  color: #ffffff !important;
}
body[class*="module-"] input:focus,
body[class*="module-"] select:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.18) !important;
}
body[class*="module-"] select option {
  background: #2a3a56 !important;
  color: #ffffff !important;
}
body[class*="module-"] .dsel {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.20) !important;
  color: #ffffff !important;
}

/* Buttons inside modules */
body[class*="module-"] .btn,
body[class*="module-"] [class*="-wrap"] .btn {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
  background: rgba(255,255,255,0.10) !important;
  border: 1.5px solid rgba(255,255,255,0.20) !important;
}
body[class*="module-"] .bp,
body[class*="module-"] .btn-primary {
  background: #3b82f6 !important;
  color: #fff !important;
  border-color: #3b82f6 !important;
}
body[class*="module-"] .bs {
  background: #10b981 !important;
  color: #fff !important;
}
body[class*="module-"] .bd {
  background: #ef4444 !important;
  color: #fff !important;
}

/* Badges — bright on medium bg */
body[class*="module-"] .bdg {
  color: #93c5fd !important;
  background: rgba(96,165,250,0.18) !important;
}
body[class*="module-"] .bg {
  color: #6ee7b7 !important;
  background: rgba(52,211,153,0.15) !important;
}
body[class*="module-"] .br {
  color: #fca5a5 !important;
  background: rgba(248,113,113,0.15) !important;
}
body[class*="module-"] .by {
  color: #fcd34d !important;
  background: rgba(251,191,36,0.15) !important;
}
body[class*="module-"] .bb {
  color: #93c5fd !important;
  background: rgba(96,165,250,0.18) !important;
}

/* Upload cards */
body[class*="module-"] .uc {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}
body[class*="module-"] .uc-title {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}
body[class*="module-"] .uc-sub {
  color: #c8d8ee !important;
}
body[class*="module-"] .uc-icon {
  color: #c8d8ee !important;
}
body[class*="module-"] .uc.ok .uc-icon {
  color: #34d399 !important;
}

/* Numeric cells */
body[class*="module-"] .num {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}
body[class*="module-"] .dp { color: #f87171 !important; }
body[class*="module-"] .dn { color: #34d399 !important; }
body[class*="module-"] .dz { color: #a0b8d4 !important; }

/* Filter row inputs */
body[class*="module-"] .frow th input {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #ffffff !important;
}

/* Scrollbar */
body[class*="module-"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18) !important;
}
body[class*="module-"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28) !important;
}

/* Inner sub-labels */
body[class*="module-"] .slbl {
  color: #c8d8ee !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}

/* Text muted inside modules */
body[class*="module-"] .text-muted {
  color: #c8d8ee !important;
}

/* VT (vat-threshold) specific */
body[class*="module-"] .vt-header {
  background: rgba(255,255,255,0.12) !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}
body[class*="module-"] .vt-header h1 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}
body[class*="module-"] .vt-header h1 span {
  color: #818cf8 !important;
}
body[class*="module-"] .vt-field label {
  color: #e8f0ff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}
body[class*="module-"] .vt-field input,
body[class*="module-"] .vt-field select {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.20) !important;
  color: #ffffff !important;
}

/* P&L KPI cards */
body[class*="module-"] .pl-kpi,
body[class*="module-"] .kpi-card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
}
body[class*="module-"] .kpi-value,
body[class*="module-"] .pl-kpi-val {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}
body[class*="module-"] .kpi-label,
body[class*="module-"] .pl-kpi-label {
  color: #d0e0f5 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}

/* P&L chart containers */
body[class*="module-"] .chart-card,
body[class*="module-"] .pl-chart {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}
body[class*="module-"] .chart-title,
body[class*="module-"] .pl-chart-title {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* P&L statement rows */
body[class*="module-"] .stmt-row {
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
body[class*="module-"] .stmt-row:hover {
  background: rgba(255,255,255,0.04) !important;
}
body[class*="module-"] .stmt-cat {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}

/* P&L language switcher */
body[class*="module-"] .lang-btn {
  background: rgba(255,255,255,0.10) !important;
  color: #e8f0ff !important;
  border-color: rgba(255,255,255,0.18) !important;
}
body[class*="module-"] .lang-btn.active {
  background: #3b82f6 !important;
  color: #fff !important;
  border-color: #3b82f6 !important;
}

/* Toast messages */
body[class*="module-"] .toast {
  background: rgba(40,56,80,0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
}

/* Import calc specific */
body[class*="module-"] .settings {
  background: rgba(255,255,255,0.06) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}
body[class*="module-"] .fld label {
  color: #e8f0ff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}

/* Collapsible sections */
body[class*="module-"] .coll-header {
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
body[class*="module-"] .coll-badge {
  color: #fff !important;
}

/* Property tax tabs */
body[class*="module-"] .pt-tab {
  color: #d0e0f5 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}
body[class*="module-"] .pt-tab.active,
body[class*="module-"] .pt-tab:hover {
  color: #ffffff !important;
}

/* All remaining module text */
body[class*="module-"] [class*="-wrap"],
body[class*="module-"] .pw,
body[class*="module-"] .ic-wrap,
body[class*="module-"] .it-wrap,
body[class*="module-"] .vat-wrap {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
}

/* Full-width module wraps — no max-width constraints */
body[class*="module-"] [class*="-wrap"] {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ===== Search/dropdown panels — SOLID opaque backgrounds in ALL modules ===== */
body[class*="module-"] .sd-panel {
  background: #1e2d44 !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45) !important;
}
body[class*="module-"] .sd-panel input {
  background: #1a2838 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,0.18) !important;
}
body[class*="module-"] .sd-item {
  color: #e8f0ff !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
body[class*="module-"] .sd-item:hover {
  background: rgba(96,165,250,0.18) !important;
  color: #ffffff !important;
}
body[class*="module-"] .sd-item.none {
  color: #94a3b8 !important;
}
/* Select option backgrounds (for all modules) */
body[class*="module-"] select option {
  background: #1e2d44 !important;
  color: #ffffff !important;
}
/* Modal and popup panels — solid opaque backgrounds */
body[class*="module-"] .modal {
  background: #1e2d44 !important;
  border: 1.5px solid rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
}
body[class*="module-"] .cat-picker-drop,
body[class*="module-"] .ce-asset-drop,
body[class*="module-"] [id*="Drop"],
body[class*="module-"] [id*="drop"] {
  background: #1e2d44 !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4) !important;
}
body[class*="module-"] .cat-picker-drop div,
body[class*="module-"] .ce-asset-drop div,
body[class*="module-"] [id*="Drop"] div,
body[class*="module-"] [id*="drop"] div {
  color: #e8f0ff !important;
}
body[class*="module-"] .cat-picker-drop div:hover,
body[class*="module-"] .ce-asset-drop div:hover,
body[class*="module-"] [id*="Drop"] div:hover,
body[class*="module-"] [id*="drop"] div:hover {
  background: rgba(96,165,250,0.18) !important;
  color: #ffffff !important;
}

/* ========== LOGO ========== */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(99,102,241,0.35);
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #e8edf5;
}
.logo-text span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* login logo */
.login-logo .logo-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.login-logo .logo-icon svg { width: 30px; height: 30px; }
.login-logo .logo-text { font-size: 28px; letter-spacing: 4px; }

/* ========== LOGIN ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(99,102,241,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(124,58,237,0.07) 0%, transparent 50%);
  animation: aurora 15s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes aurora {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, -5%) rotate(3deg); }
}
.login-container { width: 100%; max-width: 420px; padding: 20px; position: relative; z-index: 1; }
.login-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}
.login-header { text-align: center; margin-bottom: 36px; display: flex; flex-direction: column; align-items: center; }
.login-header p { color: var(--text-muted); margin-top: 8px; font-size: 14px; }

/* ========== NAVBAR ========== */
.navbar {
  background: linear-gradient(135deg, #162a38, #1a3040);
  border-bottom: 1px solid rgba(103,194,222,0.2);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  z-index: 100;
  position: sticky;
  top: 0;
}
/* Module page navbar: light indigo accent */
.in-module .navbar {
  background: linear-gradient(135deg, #1e1a38, #261e40);
  border-bottom-color: rgba(165,148,249,0.25);
}
.in-module .nav-module-link {
  border-color: rgba(165,148,249,0.25);
  background: rgba(165,148,249,0.08);
}
.in-module .nav-module-link:hover {
  background: rgba(165,148,249,0.18);
  border-color: rgba(165,148,249,0.4);
  color: #c4b5fd;
}
.in-module .nav-module-link.active {
  background: rgba(165,148,249,0.2);
  border-color: rgba(165,148,249,0.45);
  color: #c4b5fd;
}
.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-center { display: flex; align-items: center; gap: 2px; }
.nav-right { display: flex; align-items: center; gap: 6px; }

.nav-module-link {
  color: var(--text);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(103,194,222,0.2);
  background: rgba(103,194,222,0.06);
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-module-link:hover { color: #e0f4ff; background: rgba(103,194,222,0.15); border-color: rgba(103,194,222,0.35); }
.nav-module-link.active { color: #e0f4ff; background: rgba(103,194,222,0.18); border-color: rgba(103,194,222,0.4); font-weight: 700; }

/* Modules Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { cursor: pointer; font-family: inherit; }
.nav-dropdown-btn.active { color: #e0f4ff; background: rgba(103,194,222,0.22); border-color: rgba(103,194,222,0.5); font-weight: 700; box-shadow: 0 0 12px rgba(103,194,222,0.15); }
.in-module .nav-dropdown-btn.active { background: rgba(165,148,249,0.25); border-color: rgba(165,148,249,0.5); color: #c4b5fd; box-shadow: 0 0 12px rgba(165,148,249,0.15); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; padding-top: 8px;
  min-width: 300px; z-index: 200;
}
.nav-dropdown-menu > .nav-dropdown-inner {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.nav-dropdown-menu.open { display: block; }
/* Hover to show dropdown for nav-center module dropdowns (not user menu) */
.nav-center > .nav-dropdown:hover > .nav-dropdown-menu {
  display: block;
}

/* Module cards in dropdown */
.nav-mod-grid-menu { min-width: 300px; }
.nav-mod-grid-menu > .nav-dropdown-inner { padding: 8px; }
.nav-mod-grid { display: flex; flex-direction: column; gap: 6px; }
.nav-mod-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; text-decoration: none;
  border: 1.5px solid var(--border-light); background: var(--bg-secondary);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.nav-mod-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  border-radius: 10px 0 0 10px; opacity: 0.9;
}
.nav-mod-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-mod-card:active { transform: translateY(-1px) scale(0.97); }
.nav-mod-card-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.nav-mod-card-name { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--text); letter-spacing: 0.2px; }

/* Per-module colors */
.nav-mod-card[data-module="vat"]            { border-color: rgba(99,102,241,0.35); }
.nav-mod-card[data-module="vat"]::before    { background: #6366f1; }
.nav-mod-card[data-module="vat"]:hover      { border-color: #6366f1; background: rgba(99,102,241,0.12); }
.nav-mod-card[data-module="vat"] .nav-mod-card-name { color: #a5b4fc; }

.nav-mod-card[data-module="import-calc"]         { border-color: rgba(245,158,11,0.35); }
.nav-mod-card[data-module="import-calc"]::before { background: #f59e0b; }
.nav-mod-card[data-module="import-calc"]:hover   { border-color: #f59e0b; background: rgba(245,158,11,0.12); }
.nav-mod-card[data-module="import-calc"] .nav-mod-card-name { color: #fcd34d; }

.nav-mod-card[data-module="income-tax"]         { border-color: rgba(234,179,8,0.35); }
.nav-mod-card[data-module="income-tax"]::before { background: #eab308; }
.nav-mod-card[data-module="income-tax"]:hover   { border-color: #eab308; background: rgba(234,179,8,0.12); }
.nav-mod-card[data-module="income-tax"] .nav-mod-card-name { color: #fde68a; }

.nav-mod-card[data-module="property-tax"]         { border-color: rgba(59,130,246,0.35); }
.nav-mod-card[data-module="property-tax"]::before { background: #3b82f6; }
.nav-mod-card[data-module="property-tax"]:hover   { border-color: #3b82f6; background: rgba(59,130,246,0.12); }
.nav-mod-card[data-module="property-tax"] .nav-mod-card-name { color: #93c5fd; }

.nav-mod-card[data-module="vat-threshold"]         { border-color: rgba(168,85,247,0.35); }
.nav-mod-card[data-module="vat-threshold"]::before { background: #a855f7; }
.nav-mod-card[data-module="vat-threshold"]:hover   { border-color: #a855f7; background: rgba(168,85,247,0.12); }
.nav-mod-card[data-module="vat-threshold"] .nav-mod-card-name { color: #d8b4fe; }

.nav-mod-card[data-module="production"]         { border-color: rgba(249,115,22,0.35); }
.nav-mod-card[data-module="production"]::before { background: #f97316; }
.nav-mod-card[data-module="production"]:hover   { border-color: #f97316; background: rgba(249,115,22,0.12); }
.nav-mod-card[data-module="production"] .nav-mod-card-name { color: #fdba74; }

.nav-mod-card[data-module="adv-production"]         { border-color: rgba(239,68,68,0.35); }
.nav-mod-card[data-module="adv-production"]::before { background: #ef4444; }
.nav-mod-card[data-module="adv-production"]:hover   { border-color: #ef4444; background: rgba(239,68,68,0.12); }
.nav-mod-card[data-module="adv-production"] .nav-mod-card-name { color: #fca5a5; }

.nav-mod-card[data-module="pl-statement"]         { border-color: rgba(56,189,248,0.35); }
.nav-mod-card[data-module="pl-statement"]::before { background: #38bdf8; }
.nav-mod-card[data-module="pl-statement"]:hover   { border-color: #38bdf8; background: rgba(56,189,248,0.12); }
.nav-mod-card[data-module="pl-statement"] .nav-mod-card-name { color: #7dd3fc; }

.nav-mod-card[data-module="mixed-ops"]         { border-color: rgba(14,165,233,0.35); }
.nav-mod-card[data-module="mixed-ops"]::before { background: #0ea5e9; }
.nav-mod-card[data-module="mixed-ops"]:hover   { border-color: #0ea5e9; background: rgba(14,165,233,0.12); }
.nav-mod-card[data-module="mixed-ops"] .nav-mod-card-name { color: #7dd3fc; }

/* View all link in dropdown */
.nav-mod-view-all {
  display: block; text-align: center; padding: 10px; font-size: 14px; font-weight: 700;
  color: var(--primary-light); text-decoration: none; border-top: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(.34,1.56,.64,1);
}
.nav-mod-view-all:hover { background: var(--primary-50); transform: scale(1.02); }

/* Navbar search */
.nav-search-wrap {
  position: relative; display: flex; align-items: center; margin-left: 8px;
}
.nav-search-wrap svg {
  position: absolute; left: 10px; color: var(--text-muted); pointer-events: none; z-index: 1;
}
.nav-search-input {
  width: 160px; padding: 7px 12px 7px 32px; border-radius: 8px;
  border: 1.5px solid rgba(103,194,222,0.55); background: rgba(8,14,28,0.72);
  color: #ffffff; font-family: inherit; font-size: 14px; font-weight: 700;
  transition: all 0.25s;
}
.nav-search-input:focus {
  outline: none; width: 220px; border-color: #67c2de;
  background: rgba(8,14,28,0.9); box-shadow: 0 0 12px rgba(103,194,222,0.4);
  color: #ffffff;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.78); font-weight: 600; }
.nav-search-results {
  display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 100; overflow: hidden; min-width: 220px;
}
.nav-search-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600;
  transition: all 0.15s;
}
.nav-search-item:hover { background: var(--primary-50); }
.nav-search-icon { font-size: 20px; }
.nav-search-name { flex: 1; }

/* Keep old nav-mod-btn for non-module items (logout, gundi) */
.nav-mod-item { border-bottom: 1px solid var(--border); }
.nav-mod-item:last-child { border-bottom: none; }
.nav-mod-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px;
  background: none; border: none; cursor: pointer; font-family: inherit; font-size: 13px;
  color: var(--text); transition: var(--transition); text-align: left; text-decoration: none;
}
.nav-mod-btn:hover { background: var(--primary-50); }
.nav-mod-icon { font-size: 18px; }
.nav-user-menu { min-width: 180px; left: auto; right: 0; }
.nav-logout-btn { color: var(--text-secondary); font-size: 13px; }
.nav-logout-item { color: var(--danger) !important; }
.nav-logout-item:hover { background: var(--danger-bg) !important; }
.nav-mod-name { flex: 1; font-weight: 500; }
.nav-mod-arrow { transition: transform 0.2s; color: var(--text-muted); }
.nav-mod-item.expanded .nav-mod-arrow { transform: rotate(90deg); }
.nav-mod-item.expanded .nav-mod-btn { background: var(--primary-50); color: var(--primary-light); }

.nav-companies { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.nav-companies-loading, .nav-company-empty {
  padding: 10px 16px 10px 46px; font-size: 12px; color: var(--text-muted);
}
.nav-company-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px 9px 46px; text-decoration: none; color: var(--text-secondary);
  font-size: 13px; transition: var(--transition); gap: 8px;
}
.nav-company-link:hover { background: var(--primary-50); color: var(--primary-light); }
.nav-company-name { font-weight: 500; }
.nav-company-tax { font-size: 11px; color: var(--text-muted); }

.nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 8px; }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-admin-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.nav-admin-link:hover { color: var(--text-secondary); background: rgba(255,255,255,0.05); }
.nav-admin-link.active { color: var(--primary-light); }
.nav-logout { color: var(--danger); }
.nav-logout:hover { background: var(--danger-bg); }
.nav-user {
  color: var(--text-muted);
  font-size: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
}
.nav-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 28px 24px; }
.in-module .container { max-width: 100%; padding: 28px 32px; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-secondary); color: var(--text); }

.checkbox-group { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.checkbox-label:hover { background: rgba(255,255,255,0.04); }
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(.34,1.56,.64,1);
  text-decoration: none;
  background: var(--bg-card);
  color: var(--text);
}
.btn:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 6px 20px rgba(99,102,241,0.4); transform: translateY(-3px) scale(1.04); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(248,113,113,0.3); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-success { background: var(--success); color: #0f172a; border-color: var(--success); }
.btn-full { width: 100%; padding: 14px; font-size: 17px; font-weight: 700; }
.btn-sm { padding: 6px 12px; font-size: 14px; font-weight: 600; }

/* ========== ALERTS ========== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(248,113,113,0.2); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,211,153,0.2); }

/* ========== STATS ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); box-shadow: 0 0 20px rgba(99,102,241,0.1); }
.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 15px; margin-top: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }

/* ========== TABLE ========== */
.table-wrap { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.table {
  width: 100%;
  background: var(--bg-card);
  border-collapse: collapse;
}
.table th {
  background: rgba(0,0,0,0.15);
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  font-weight: 700;
}
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table code {
  background: var(--primary-50);
  color: var(--primary-light);
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ========== BADGE ========== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  background: var(--primary-50);
  color: var(--primary-light);
  margin-right: 3px;
}
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-yellow { background: var(--warning-bg); color: var(--warning); }

/* ========== PAGE HEADER ========== */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-header h2 { font-size: 28px; font-weight: 800; }
.page-header p { color: var(--text-muted); font-size: 16px; margin-top: 2px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--text); }

/* ========== MODULES GRID ========== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.module-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.module-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(99,102,241,0.12);
  transform: translateY(-2px);
}
.module-card:hover::before { opacity: 1; }
.module-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: 14px;
}
.module-info h3 { font-size: 18px; margin-bottom: 4px; color: var(--text); font-weight: 700; }
.module-info p { font-size: 15px; color: var(--text-muted); line-height: 1.5; font-weight: 500; }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}
.empty-state h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.empty-state p { font-size: 16px; color: var(--text-muted); font-weight: 600; }

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { font-size: 18px; font-weight: 600; margin-bottom: 0; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); transition: var(--transition); padding: 4px; }
.modal-close:hover { color: var(--text); }

/* ========== ADMIN TABS ========== */
.admin-tabs { display: flex; gap: 2px; margin-bottom: 24px; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; border: 1px solid var(--border); }
.admin-tab {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-tab:hover { color: var(--text); background: var(--bg-card); }
.admin-tab.active { color: var(--primary-light); background: var(--bg-card); box-shadow: var(--shadow); font-weight: 800; }

/* ========== CARD ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ========== ACCESS SECTION (user-company-module) ========== */
.access-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.access-company { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.access-company-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.access-company-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.access-modules { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 4px; }
.access-mod-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.access-mod-label:hover { border-color: var(--primary); }
.access-mod-label input:checked + span { color: var(--primary-light); }
.access-add-company { margin-top: 8px; }

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

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar { padding: 0 12px; height: 48px; overflow: visible; }
  .nav-center {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: center; gap: 2px;
    background: rgba(24,24,28,0.97); border-top: 1px solid var(--border);
    padding: 6px 8px; backdrop-filter: blur(12px);
  }
  .nav-center .nav-module-link { font-size: 11px; padding: 6px 10px; flex-direction: column; gap: 2px; text-align: center; }
  .nav-center .nav-module-link span { font-size: 16px; }
  body { padding-bottom: 56px; }
  .logo-text { font-size: 14px !important; letter-spacing: 1px !important; }
  .nav-left { gap: 8px !important; margin-right: 8px !important; }
  .nav-user { font-size: 11px !important; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-user-avatar { display: none; }
  .nav-right { gap: 4px !important; flex-shrink: 0; margin-left: auto; }
  .nav-logout { font-size: 11px !important; padding: 4px 8px !important; white-space: nowrap; }
  .nav-sep { display: none; }
  .nav-admin-link { font-size: 11px !important; padding: 4px 8px !important; }
  .container { padding: 16px 12px; }
  .modules-grid { grid-template-columns: 1fr; }
  .login-box { padding: 32px 24px; }
  .stat-card { padding: 16px; }
  .stat-number { font-size: 28px; }
  .table th, .table td { padding: 8px 10px; font-size: 12px; }
  .admin-tabs { overflow-x: auto; }
  .nav-dropdown-menu { min-width: 260px; left: -60px; }
  .nav-mod-grid-menu { min-width: 260px; }
}

/* ========== DASHBOARD MODULE CARDS ========== */
.dash-section-title {
  font-size: 18px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 12px; padding-left: 4px;
}
.dash-mod-search {
  width: 100%; max-width: 500px; padding: 10px 16px 10px 40px; border-radius: 10px;
  border: 1.5px solid var(--border-light); background: var(--bg-card); color: var(--text);
  font-size: 14px; font-family: inherit; margin-bottom: 20px; transition: border-color 0.2s;
}
.dash-mod-search:focus { outline: none; border-color: var(--primary); }
.dash-mod-search-wrap {
  position: relative; max-width: 500px;
}
.dash-mod-search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-muted); pointer-events: none;
}
.dash-mod-grid {
  display: flex; flex-direction: column; gap: 8px; max-width: 500px;
}
.dash-mod-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-radius: 12px; text-decoration: none;
  border: 1.5px solid color-mix(in srgb, var(--mc) 35%, transparent);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
}
.dash-mod-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--mc); border-radius: 12px 0 0 12px;
}
.dash-mod-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: var(--mc);
  background: color-mix(in srgb, var(--mc) 8%, var(--bg-card));
  box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 0 0 1px color-mix(in srgb, var(--mc) 20%, transparent);
}
.dash-mod-card:active { transform: translateY(-1px) scale(0.98); }
.dash-mod-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.dash-mod-name {
  font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: 0.3px;
}

/* ========== MODULE SHOWCASE CARDS (big cards with animated hover clip) ========== */
.mod-showcase-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px;
}
.mod-showcase-card {
  position: relative; display: block; text-decoration: none; color: var(--text);
  height: 200px; border-radius: 20px; overflow: hidden;
  border: 2.5px solid color-mix(in srgb, var(--mc) 35%, transparent);
  background: linear-gradient(145deg, var(--bg-card), color-mix(in srgb, var(--mc) 5%, var(--bg-card)));
  box-shadow: 0 6px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s, border-color 0.3s;
  cursor: pointer;
}
.mod-showcase-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 6px;
  background: var(--mc); border-radius: 20px 0 0 20px;
}
/* Animated glow pulse on card */
.mod-showcase-card::after {
  content: ''; position: absolute; inset: -2px; border-radius: 22px; z-index: 0;
  background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--mc) 20%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.mod-showcase-card:hover::after { opacity: 1; }
.mod-showcase-card:hover {
  transform: translateY(-10px) scale(1.04);
  border-color: var(--mc);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px color-mix(in srgb, var(--mc) 30%, transparent),
              0 0 40px color-mix(in srgb, var(--mc) 18%, transparent);
}
.mod-showcase-card:active { transform: translateY(-3px) scale(0.97); }

/* Front face */
.mod-showcase-front {
  display: flex; align-items: center; gap: 20px; padding: 32px 36px;
  height: 100%; position: relative; z-index: 1;
  transition: opacity 0.35s, transform 0.35s;
}
.mod-showcase-icon { font-size: 52px; line-height: 1; flex-shrink: 0; }
.mod-showcase-name { font-size: 24px; font-weight: 800; letter-spacing: 0.3px; }

/* Animated clip overlay */
.mod-showcase-clip {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(145deg, color-mix(in srgb, var(--mc) 18%, var(--bg-card)) 0%, var(--bg-card) 100%);
  padding: 22px 28px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
  border-left: 6px solid var(--mc);
}
.mod-showcase-card:hover .mod-showcase-clip {
  opacity: 1; pointer-events: auto;
}
.mod-showcase-card:hover .mod-showcase-front {
  opacity: 0; transform: scale(0.95);
}

/* Clip children animate in sequence */
.mod-showcase-clip-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
  transform: translateX(-30px); opacity: 0;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1) 0.05s, opacity 0.3s 0.05s;
}
.mod-showcase-card:hover .mod-showcase-clip-header {
  transform: translateX(0); opacity: 1;
}
.mod-showcase-clip-icon { font-size: 32px; }
.mod-showcase-clip-title { font-size: 20px; font-weight: 800; color: var(--mc); }

.mod-showcase-clip-desc {
  font-size: 15px; font-weight: 600; color: var(--text-secondary); line-height: 1.5;
  transform: translateX(-30px); opacity: 0;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1) 0.12s, opacity 0.3s 0.12s;
}
.mod-showcase-card:hover .mod-showcase-clip-desc {
  transform: translateX(0); opacity: 1;
}

.mod-showcase-clip-features {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
  transform: translateY(15px); opacity: 0;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1) 0.2s, opacity 0.3s 0.2s;
}
.mod-showcase-card:hover .mod-showcase-clip-features {
  transform: translateY(0); opacity: 1;
}
.mod-showcase-chip {
  padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--mc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--mc) 30%, transparent);
  color: var(--mc);
}

.mod-showcase-clip-action {
  margin-top: 12px; font-size: 16px; font-weight: 800; color: var(--mc);
  letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px;
  transform: translateX(-20px); opacity: 0;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1) 0.28s, opacity 0.3s 0.28s;
}
.mod-showcase-card:hover .mod-showcase-clip-action {
  transform: translateX(0); opacity: 1;
}
.mod-showcase-clip-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mc); color: #fff; font-size: 16px; font-weight: 900;
  animation: none;
}
.mod-showcase-card:hover .mod-showcase-clip-arrow {
  animation: arrowPulse 1s infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ========== PAGE BACKGROUND ========== */
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center; background-attachment: fixed;
  opacity: 0.55;
  filter: saturate(1.1);
}

/* ========== MODULE HERO BANNER ========== */
.mod-hero {
  position: relative; overflow: hidden;
  background-size: cover; background-position: center; min-height: 280px;
  display: flex; align-items: flex-end;
}
.mod-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,0.15) 0%, rgba(10,15,30,0.55) 55%, rgba(10,15,30,0.88) 100%);
}
.mod-hero-content {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 32px 32px 36px;
  position: relative; z-index: 1;
}
.mod-hero-back {
  display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 13px; font-weight: 600; margin-bottom: 16px;
  padding: 6px 16px 6px 12px; border-radius: 20px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(.34,1.56,.64,1);
}
.mod-hero-back:hover { background: rgba(255,255,255,0.25); color: #fff; transform: translateX(-3px); }
.mod-hero-icon { font-size: 42px; margin-bottom: 8px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.mod-hero-title {
  font-size: 34px; font-weight: 900; color: #fff; margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4); letter-spacing: 0.3px;
}
.mod-hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.6; margin: 0 0 18px;
  max-width: 600px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.mod-hero-features { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-hero-feature {
  padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
  transition: all 0.2s cubic-bezier(.34,1.56,.64,1);
}
.mod-hero-feature:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px) scale(1.05); }
.mod-select-title {
  font-size: 20px; font-weight: 800; color: #ffffff; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(15,23,42,0.75);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.mod-select-title svg { stroke: #ffffff !important; }

/* Company cards — elastic & harmonized */
.mod-company-card {
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s !important;
  border-left: none !important;
}
.mod-company-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(99,102,241,0.2) !important;
}
.mod-company-card:active {
  transform: translateY(-2px) scale(1.0) !important;
}

@media (max-width: 768px) {
  .mod-hero { min-height: 240px; }
  .mod-hero-content { padding: 24px 20px 28px; }
  .mod-hero-title { font-size: 24px; }
  .mod-hero-icon { font-size: 32px; }
  .mod-hero-features { justify-content: flex-start; }
}

/* ========== HOME PAGE HERO ========== */
.home-hero {
  position: relative; overflow: hidden; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.home-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(0.7);
}
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,0.3) 0%, rgba(10,15,30,0.6) 50%, rgba(10,15,30,0.9) 100%);
}
.home-hero-content {
  position: relative; z-index: 1; text-align: center; padding: 48px 24px;
}
.home-hero-logo {
  margin-bottom: 12px;
  animation: heroLogoFloat 3s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.home-hero-title {
  font-size: 48px; font-weight: 900; color: #fff; letter-spacing: 6px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 8px;
}
.home-hero-title span { color: #818cf8; }
.home-hero-subtitle {
  font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.75);
  margin-bottom: 28px; letter-spacing: 1px;
}
.home-hero-stats {
  display: flex; gap: 40px; justify-content: center;
}
.home-hero-stat {
  display: flex; flex-direction: column; align-items: center;
}
.home-hero-stat-num {
  font-size: 32px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.home-hero-stat-label {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

/* ========== HOME ABOUT — CLIP STYLE ========== */
.home-about-clip {
  position: relative; border-radius: 24px; overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 60%, #1a1a2e 100%);
  border: 2px solid rgba(99,102,241,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(99,102,241,0.08),
              inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.home-about-clip:hover {
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 60px rgba(99,102,241,0.12),
              inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.home-about-clip-accent {
  position: absolute; top: 0; left: 0; bottom: 0; width: 7px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6, #6366f1);
  z-index: 2;
}
.home-about-clip-glow {
  position: absolute; top: -50%; left: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  transition: opacity 0.4s;
}
.home-about-clip:hover .home-about-clip-glow {
  opacity: 1.5;
}
.home-about-clip-inner {
  position: relative; z-index: 1; padding: 36px 40px 32px 44px;
}

/* Header */
.home-about-clip-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  transform: translateX(-15px); opacity: 0;
  animation: aboutClipSlideIn 0.6s cubic-bezier(.34,1.56,.64,1) 0.1s forwards;
}
.home-about-clip-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  flex-shrink: 0;
}
.home-about-clip-title {
  font-size: 32px; font-weight: 900; color: #ffffff; margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}
.home-about-clip-edit-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; font-size: 15px; font-weight: 700;
  color: #c4b5fd; background: rgba(99,102,241,0.15);
  border: 1.5px solid rgba(99,102,241,0.35);
  text-decoration: none; transition: all 0.3s;
}
.home-about-clip-edit-btn:hover {
  background: rgba(99,102,241,0.3); color: #fff;
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

/* Divider */
.home-about-clip-divider {
  height: 2px; margin-bottom: 20px;
  background: linear-gradient(90deg, rgba(99,102,241,0.4) 0%, rgba(139,92,246,0.2) 50%, transparent 100%);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  animation: aboutClipDivider 0.5s ease-out 0.35s forwards;
}

/* Body content */
.home-about-clip-body {
  transform: translateY(12px); opacity: 0;
  animation: aboutClipFadeUp 0.5s ease-out 0.45s forwards;
}
.home-about-clip-content {
  font-size: 20px; font-weight: 600; line-height: 1.9; color: #e2e8f0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.home-about-clip-content h1 {
  font-size: 28px; font-weight: 900; color: #c4b5fd; margin-bottom: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.home-about-clip-content h2 {
  font-size: 24px; font-weight: 800; color: #a5b4fc; margin-bottom: 12px;
}
.home-about-clip-content h3 {
  font-size: 20px; font-weight: 800; color: #a5b4fc; margin-bottom: 10px;
}
.home-about-clip-content p {
  margin-bottom: 16px;
}
.home-about-clip-content ul, .home-about-clip-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.home-about-clip-content li {
  font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #e2e8f0;
}
.home-about-clip-content strong {
  color: #ffffff; font-weight: 800;
}
.home-about-clip-content a {
  color: #a5b4fc; text-decoration: underline; font-weight: 700;
}
.home-about-clip-content-wrap {
  display: flex; gap: 28px; align-items: flex-start;
}
.home-about-clip-photo {
  flex-shrink: 0;
}
.home-about-clip-photo img {
  width: 180px; height: 180px; border-radius: 16px;
  object-fit: cover; border: 3px solid rgba(99,102,241,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.home-about-clip-placeholder {
  font-size: 20px; font-weight: 600; color: #94a3b8;
  line-height: 1.9; font-style: italic;
}

/* Floating decorative shapes */
.home-about-clip-shape {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.home-about-clip-shape-1 {
  width: 120px; height: 120px; top: -30px; right: 60px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  animation: aboutShapeFloat 6s ease-in-out infinite;
}
.home-about-clip-shape-2 {
  width: 80px; height: 80px; bottom: -20px; right: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
  animation: aboutShapeFloat 8s ease-in-out 1s infinite reverse;
}
.home-about-clip-shape-3 {
  width: 60px; height: 60px; top: 50%; right: 30px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  animation: aboutShapeFloat 5s ease-in-out 2s infinite;
}

/* Animations */
@keyframes aboutClipSlideIn {
  to { transform: translateX(0); opacity: 1; }
}
@keyframes aboutClipDivider {
  to { transform: scaleX(1); }
}
@keyframes aboutClipFadeUp {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes aboutShapeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.1); }
}

/* ========== HOME QUICK NAVIGATION ========== */
.home-quick-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px;
}
.home-quick-card {
  display: flex; align-items: center; gap: 18px; padding: 24px 28px;
  background: var(--bg-card); border: 2px solid color-mix(in srgb, var(--qc) 30%, transparent);
  border-radius: 16px; text-decoration: none; color: var(--text);
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative; overflow: hidden;
}
.home-quick-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: var(--qc);
}
.home-quick-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--qc);
  box-shadow: 0 14px 36px rgba(0,0,0,0.25), 0 0 20px color-mix(in srgb, var(--qc) 12%, transparent);
}
.home-quick-card:active { transform: translateY(-2px) scale(0.98); }
.home-quick-icon { font-size: 40px; flex-shrink: 0; }
.home-quick-info { flex: 1; }
.home-quick-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.home-quick-desc { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.home-quick-arrow {
  font-size: 24px; font-weight: 900; color: var(--qc);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.home-quick-card:hover .home-quick-arrow { transform: translateX(6px); }

/* ========== HOME CATEGORY INFO CARDS ========== */
.home-cat-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px;
}
.home-cat-card {
  display: flex; align-items: flex-start; gap: 20px; padding: 28px 30px;
  background: var(--bg-card); border: 2px solid color-mix(in srgb, var(--cc) 30%, transparent);
  border-radius: 18px; text-decoration: none; color: var(--text);
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: relative; overflow: hidden;
}
.home-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 6px;
  background: var(--cc);
}
.home-cat-card:not(.home-cat-coming):hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--cc);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25), 0 0 24px color-mix(in srgb, var(--cc) 12%, transparent);
}
.home-cat-card:not(.home-cat-coming):active { transform: translateY(-2px) scale(0.99); }
.home-cat-icon { font-size: 44px; flex-shrink: 0; margin-top: 2px; }
.home-cat-body { flex: 1; }
.home-cat-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.home-cat-desc { font-size: 15px; font-weight: 600; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.home-cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.home-cat-tags span {
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--cc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cc) 25%, transparent);
  color: var(--cc);
}
.home-cat-arrow {
  font-size: 28px; font-weight: 900; color: var(--cc); flex-shrink: 0; margin-top: 8px;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.home-cat-card:hover .home-cat-arrow { transform: translateX(6px); }
.home-cat-coming {
  opacity: 0.7; cursor: default;
}
.home-cat-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 800;
  background: var(--cc); color: #fff; letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .home-hero { min-height: 280px; }
  .home-hero-title { font-size: 32px; letter-spacing: 3px; }
  .home-hero-stats { gap: 24px; }
  .home-hero-stat-num { font-size: 24px; }
  .home-quick-nav { grid-template-columns: 1fr; }
  .home-cat-card { flex-direction: column; gap: 14px; }
}

/* ========== ABOUT PAGE ========== */
.about-page {
  min-height: calc(100vh - 56px);
  position: relative;
}
.about-overlay {
  min-height: calc(100vh - 56px);
  background: rgba(19, 28, 49, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.about-page:not([style*="background-image"]) .about-overlay {
  background: transparent;
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.about-content h1, .about-content h2, .about-content h3 {
  color: var(--primary-light);
  margin-bottom: 12px;
}
.about-content p { margin-bottom: 14px; }
.about-empty {
  text-align: center;
  padding: 60px 20px;
}
.about-empty h2 {
  font-size: 32px;
  color: var(--primary-light);
  margin-bottom: 8px;
}

/* Company cards grid */
.company-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
}
.company-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(99,102,241,0.15);
}
.company-card:active {
  transform: translateY(-2px) scale(0.98);
}
.company-card-icon {
  color: var(--primary-light);
  margin-bottom: 6px;
}
.company-card-icon svg {
  width: 22px;
  height: 22px;
}
.company-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.company-card-tax {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Shared sub-user companies — visually distinct from admin's own */
.company-card.shared-by-subuser {
  background: linear-gradient(180deg, rgba(255,214,10,0.08), rgba(255,214,10,0.02));
  border: 1.5px dashed rgba(255,214,10,0.55);
  position: relative;
}
.company-card.shared-by-subuser:hover {
  border-color: #ffd60a;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,214,10,0.35);
}
.company-card .shared-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255,214,10,0.92);
  color: #1a1d28;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.15px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 2;
}
.data-status-bar {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
  border-radius: 0 0 10px 10px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.data-status-bar.status-full {
  background: #10b981;
  color: #fff;
}
.data-status-bar.status-partial {
  background: #f59e0b;
  color: #fff;
}
.data-status-bar.status-empty {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  opacity: 0.5;
}
.data-status-bar.status-empty:hover {
  opacity: 1;
}
.ds-opts span {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.ds-opts span:hover {
  background: rgba(255,255,255,0.15);
}
.ds-opts span {
  font-size: 13px;
}

/* ========== GLOBAL MODULE TEXT SIZE OVERRIDES ========== */
/* Ensures minimum readable font sizes inside all module views */
[class*="-wrap"] table { font-size: 14px !important; }
[class*="-wrap"] th { font-size: 14px !important; }
[class*="-wrap"] td { font-size: 14px !important; }
[class*="-wrap"] .num { font-size: 14px !important; }
[class*="-wrap"] .btn, [class*="-wrap"] button { font-size: 14px !important; font-weight: 600 !important; }
[class*="-wrap"] .hdr h1 { font-size: 22px !important; font-weight: 800 !important; }
[class*="-wrap"] .ctitle { font-size: 18px !important; font-weight: 800 !important; }
[class*="-wrap"] .sec-label { font-size: 15px !important; font-weight: 700 !important; }
[class*="-wrap"] .mnav-btn, [class*="-wrap"] .itab { font-size: 15px !important; font-weight: 700 !important; }
[class*="-wrap"] .bdg, [class*="-wrap"] .bg, [class*="-wrap"] .br, [class*="-wrap"] .by, [class*="-wrap"] .bb { font-size: 13px !important; padding: 3px 8px !important; }
[class*="-wrap"] .uc-title { font-size: 14px !important; }
[class*="-wrap"] .uc-sub, [class*="-wrap"] .uc-file { font-size: 13px !important; }
[class*="-wrap"] .slbl { font-size: 13px !important; }
[class*="-wrap"] .dsel { font-size: 13px !important; }
[class*="-wrap"] .ver { font-size: 12px !important; }
[class*="-wrap"] .back-btn { font-size: 14px !important; font-weight: 700 !important; }
[class*="-wrap"] .hbtn { font-size: 14px !important; font-weight: 600 !important; }
[class*="-wrap"] select { font-size: 14px !important; }
[class*="-wrap"] input { font-size: 14px !important; }
[class*="-wrap"] .frow th input { font-size: 12px !important; }
[class*="-wrap"] .bsm { font-size: 12px !important; }

/* ========== PLATFORM CHROME — 10% SIZE REDUCTION ==========
   Shrinks platform-level elements (navbar, home page, login, admin pages)
   by 10%. Module interiors (.pl-wrap, .vt-wrap, .vat-wrap, etc.) are NOT
   affected — their internal labels/forms keep their original sizes. */
.navbar { zoom: 0.9; }
body:not([class*="module-"]) .container,
body:not([class*="module-"]) .login-container,
body:not([class*="module-"]) .home-hero,
body:not([class*="module-"]) .home-about-clip,
body:not([class*="module-"]) .page-header,
body:not([class*="module-"]) .stats-grid,
body:not([class*="module-"]) footer { zoom: 0.9; }

/* Accounting & Financial category pages — additional 10% reduction
   on text labels and company frames (mod-hero, module cards, company cards). */
.mod-hero,
.mod-showcase-grid,
.mod-select-title,
.company-cards-grid { zoom: 0.9; }

/* Universal print button */
.print-btn{position:fixed;bottom:18px;right:18px;z-index:999;background:#1e293b;color:#fff;border:1px solid #334155;border-radius:50%;width:36px;height:36px;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,0.35);display:flex;align-items:center;justify-content:center;transition:all .15s;padding:0;opacity:.85}
.print-btn svg{width:16px;height:16px;display:block}
.print-btn:hover{background:#334155;border-color:#64748b;transform:scale(1.1);box-shadow:0 6px 14px rgba(0,0,0,0.45);color:#ffffff;opacity:1}

/* Global print styles */
@media print{
  .navbar,.print-btn,.back-btn,.pl-back,.hdr-r,.vt-btns,.pl-toolbar,.pl-tabs,.pl-period,
  .company-switcher-wrap,.mnav,.tabs,.hbtn,.slbl,.vt-back-btn,.vt-header,.saras-subtabs,
  .pl-upload,.pl-btn,.pl-tab,.pl-lang-switch{display:none!important}
  body,body[class*="module-"]{background:#fff!important;color:#000!important;text-shadow:none!important}
  .it-wrap,.vat-wrap,.pw,.ic-body,.vt-wrap,.pl-wrap{background:#fff!important;color:#000!important;text-shadow:none!important;padding:10px!important;max-width:100%!important}
  .card,.vt-card,.pl-kpi,.pl-chart-card{background:#fff!important;border:1px solid #ccc!important;color:#000!important;box-shadow:none!important}
  th{background:#f0f0f0!important;color:#000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  td,label,span,div,p,h1,h2,h3,h4,h5{color:#000!important;text-shadow:none!important}
  .hdr{background:#f0f0f0!important;color:#000!important;text-shadow:none!important}
  a{color:#000!important;text-decoration:none!important}
  input,select,textarea{border:1px solid #999!important;background:#fff!important;color:#000!important}
  .tw,.pl-table-wrap{max-height:none!important;overflow:visible!important}
  table{font-size:11px!important}
}
