
  :root {
    --bg: #0a0e1a;
    --bg2: #111827;
    --bg3: #1a2235;
    --bg4: #1e293b;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #64748b;
    --accent: #06b6d4;
    --accent2: #0e7490;
    --green: #10b981;
    --red: #ef4444;
    --amber: #f59e0b;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --pink: #ec4899;
    --sidebar-w: 240px;
    --header-h: 60px;
    --radius: 10px;
    --radius-lg: 14px;
    --font: 'Plus Jakarta Sans', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
  }
  /* LIGHT THEME */
  body.theme-light {
    --bg: #f0f4f8;
    --bg2: #ffffff;
    --bg3: #f1f5f9;
    --bg4: #e2e8f0;
    --border: rgba(0,0,0,0.07);
    --border2: rgba(0,0,0,0.13);
    --text: #0f172a;
    --text2: #334155;
    --text3: #64748b;
    --accent: #0891b2;
    --accent2: #0e7490;
    --green: #059669;
    --red: #dc2626;
    --amber: #d97706;
    --purple: #7c3aed;
    --blue: #2563eb;
    --pink: #db2777;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
  }
  .theme-toggle { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border2); background: var(--bg3); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 17px; transition: all 0.15s; flex-shrink: 0; }
  .theme-toggle:hover { background: var(--bg4); }
  /* Light mode nav accent */
  body.theme-light .nav-item:hover { background: rgba(8,145,178,0.07); }
  body.theme-light .nav-item.active { background: rgba(8,145,178,0.12); }
  body.theme-light .kpi-card { box-shadow: 0 1px 6px rgba(0,0,0,0.07); }
  body.theme-light .section-card, body.theme-light .chart-card { box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
  body.theme-light .modal { box-shadow: 0 24px 80px rgba(0,0,0,0.2); }
  body.theme-light .search-results { box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
  body.theme-light .notif-panel { box-shadow: -8px 0 32px rgba(0,0,0,0.12); }

  /* LIGHT THEME — Icon circle treatment */
  body.theme-light .nav-item .icon {
    width: 28px; height: 28px; min-width: 28px;
    background: #98ca3e;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
  }
  body.theme-light .nav-item .icon svg { stroke: white !important; }
  body.theme-light .nav-item:hover .icon { background: #7db52e; }
  body.theme-light .nav-item.active .icon { background: #7db52e; }

  /* KPI icons in light mode: gray + low opacity so they don't compete with text */
  body.theme-light .kpi-icon svg {
    stroke: #334155 !important;
    opacity: 0.12 !important;
  }

  /* Page title icons in light mode: green circle */
  body.theme-light .page-title svg,
  body.theme-light .chart-title svg,
  body.theme-light .section-title svg {
    background: #98ca3e;
    border-radius: 50%;
    padding: 3px;
    stroke: white !important;
    box-sizing: content-box;
  }

  /* Section icon divs in light mode */
  body.theme-light .section-icon {
    background: #98ca3e !important;
    border-radius: 50% !important;
  }
  body.theme-light .section-icon svg { stroke: white !important; }

  /* Header icon buttons in light mode */
  body.theme-light .btn-icon svg,
  body.theme-light .theme-toggle svg,
  body.theme-light .search-icon svg { stroke: #98ca3e !important; }

  /* Search icon stays green in light mode */
  body.theme-light .search-icon svg { stroke: #7db52e !important; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

  /* LAYOUT */
  .app { display: flex; min-height: 100vh; }
  .sidebar { width: var(--sidebar-w); background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); transition: transform 0.3s; }
  .main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
  .header { height: var(--header-h); background: var(--bg2); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 50; }
  .content { flex: 1; padding: 24px; overflow-y: auto; }

  /* SIDEBAR */
  .logo { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
  .logo-mark { display: flex; align-items: center; gap: 10px; }
  .logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .logo-text { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
  .logo-sub { font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; font-family: var(--mono); }
  .nav { flex: 1; overflow-y: auto; padding: 12px 0; }
  .nav-group { margin-bottom: 4px; }
  .nav-label { font-size: 9px; font-weight: 600; color: var(--text3); letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 20px 4px; font-family: var(--mono); }
  .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 20px; cursor: pointer; transition: all 0.15s; color: var(--text2); font-size: 13.5px; font-weight: 500; border-left: 2px solid transparent; position: relative; }
  .nav-item:hover { background: rgba(6,182,212,0.06); color: var(--text); }
  .nav-item.active { background: rgba(6,182,212,0.10); color: var(--accent); border-left-color: var(--accent); }
  .nav-item .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .nav-badge { margin-left: auto; background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; font-family: var(--mono); }
  .sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
  .user-card { display: flex; align-items: center; gap: 10px; }
  .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; }
  .user-info { flex: 1; min-width: 0; }
  .user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-role { font-size: 11px; color: var(--accent); font-family: var(--mono); }

  /* HEADER */
  .search-global { flex: 1; max-width: 440px; position: relative; }
  .search-global input { width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 8px 38px 8px 14px; font-size: 13.5px; color: var(--text); font-family: var(--font); outline: none; transition: border-color 0.2s; }
  .search-global input:focus { border-color: var(--accent); }
  .search-global input::placeholder { color: var(--text3); }
  .search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 15px; }
  .search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); overflow-y: auto; max-height: 420px; z-index: 200; box-shadow: var(--shadow); display: none; }
  .search-results.open { display: block; }
  .search-result-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border); }
  .search-result-item:last-child { border-bottom: none; }
  .search-result-item:hover { background: var(--bg3); }
  .search-result-type { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-family: var(--mono); padding: 2px 7px; border-radius: 5px; flex-shrink: 0; }
  .type-client { background: rgba(6,182,212,0.15); color: var(--accent); }
  .type-invoice { background: rgba(16,185,129,0.15); color: var(--green); }
  .type-agent { background: rgba(139,92,246,0.15); color: var(--purple); }
  .type-intervention { background: rgba(245,158,11,0.15); color: var(--amber); }
  .search-result-name { font-size: 13px; font-weight: 500; flex: 1; }
  .search-result-meta { font-size: 11px; color: var(--text3); font-family: var(--mono); }
  .header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .btn-icon { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border2); background: var(--bg3); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); font-size: 16px; transition: all 0.15s; position: relative; }
  .btn-icon:hover { background: var(--bg4); color: var(--text); }
  .notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 1px solid var(--bg2); }
  .date-badge { font-size: 11.5px; color: var(--text3); font-family: var(--mono); background: var(--bg3); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); }

  /* PAGE HEADER */
  .page-header { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .page-title { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
  .page-sub { font-size: 13px; color: var(--text3); margin-top: 3px; }
  .page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

  /* BUTTONS */
  .btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; font-family: var(--font); white-space: nowrap; }
  .btn-primary { background: var(--accent); color: #0a0e1a; }
  .btn-primary:hover { background: #22d3ee; transform: translateY(-1px); }
  .btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border2); }
  .btn-secondary:hover { background: var(--bg4); }
  .btn-danger { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
  .btn-danger:hover { background: rgba(239,68,68,0.25); }
  .btn-success { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
  .btn-success:hover { background: rgba(16,185,129,0.25); }
  .btn-sm { padding: 6px 12px; font-size: 12px; }
  .btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 6px; }

  /* KPI CARDS */
  .kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .kpi-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; position: relative; overflow: hidden; transition: border-color 0.2s; cursor: pointer; }
  .kpi-card:hover { border-color: var(--border2); }
  .kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .kpi-card.green::before { background: var(--green); }
  .kpi-card.red::before { background: var(--red); }
  .kpi-card.amber::before { background: var(--amber); }
  .kpi-card.accent::before { background: var(--accent); }
  .kpi-card.purple::before { background: var(--purple); }
  .kpi-card.blue::before { background: var(--blue); }
  .kpi-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; font-family: var(--mono); margin-bottom: 10px; }
  .kpi-value { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -1px; line-height: 1; font-family: var(--mono); }
  .kpi-value.currency { font-size: 18px; }
  .kpi-delta { font-size: 11px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
  .kpi-delta.up { color: var(--green); }
  .kpi-delta.down { color: var(--red); }
  .kpi-icon { position: absolute; right: 14px; top: 14px; font-size: 22px; opacity: 0.2; }

  /* CHARTS GRID */
  .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
  .chart-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
  .chart-card.full { grid-column: 1 / -1; }
  .chart-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .chart-sub { font-size: 11px; color: var(--text3); margin-bottom: 16px; font-family: var(--mono); }
  .chart-wrap { position: relative; height: 220px; }
  .chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
  .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
  .legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

  /* SECTION GRIDS */
  .section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
  .section-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
  .section-card.full { grid-column: 1 / -1; }
  .section-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
  .section-title-left { display: flex; align-items: center; gap: 8px; }
  .section-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

  /* TABLES */
  .table-wrap { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  thead tr { border-bottom: 1px solid var(--border2); }
  th { padding: 8px 12px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--mono); white-space: nowrap; transition: color 0.15s; }
  td { padding: 11px 12px; color: var(--text2); border-bottom: 1px solid var(--border); white-space: nowrap; }
  tr:last-child td { border-bottom: none; }
  tr:hover td { background: rgba(255,255,255,0.02); color: var(--text); }

  /* BADGES */
  /* Status select colors */
  .qs-select option[value="sent"]        { color: #3b82f6; }
  .qs-select option[value="accepted"]    { color: #98ca3e; }
  .qs-select option[value="negotiation"] { color: #f59e0b; }
  .qs-select option[value="refused"]     { color: #ef4444; }

  .badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; font-family: var(--mono); letter-spacing: 0.3px; }
  .badge-green { background: rgba(16,185,129,0.15); color: #34d399; }
  .badge-red { background: rgba(239,68,68,0.15); color: #f87171; }
  .badge-amber { background: rgba(245,158,11,0.15); color: #fbbf24; }
  .badge-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
  .badge-purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
  .badge-accent { background: rgba(6,182,212,0.15); color: var(--accent); }
  .badge-gray { background: rgba(255,255,255,0.07); color: var(--text3); }

  /* FORMS */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-grid.cols3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-group.full { grid-column: 1 / -1; }
  label { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--mono); }
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=url], select, textarea {
    background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; color: var(--text); font-family: var(--font); outline: none; transition: border-color 0.2s; width: 100%; }
  input:focus, select:focus, textarea:focus { border-color: var(--accent); }
  select option { background: var(--bg2); }
  textarea { resize: vertical; min-height: 80px; }

  /* MODAL */
  .modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
  .modal-backdrop.open { display: flex; }
  .modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 16px; width: 100%; max-width: 680px; max-height: 90vh; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.6); display: flex; flex-direction: column; flex-shrink: 0; }
  .modal-header { padding: 18px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg2); z-index: 3; border-radius: 16px 16px 0 0; flex-shrink: 0; }
  .modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
  .modal-close { width: 30px; height: 30px; border-radius: 7px; background: var(--bg3); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text3); font-size: 16px; transition: all 0.15s; }
  .modal-close:hover { color: var(--text); background: var(--bg4); }
  .modal-body { padding: 24px; overflow-y: auto; flex: 1; min-height: 0; }
  .modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0; background: var(--bg2); border-radius: 0 0 16px 16px; position: sticky; bottom: 0; z-index: 2; flex-wrap: wrap; }

  /* NOTIFICATIONS PANEL */
  .notif-panel { position: fixed; top: 0; right: -380px; width: 380px; height: 100vh; background: var(--bg2); border-left: 1px solid var(--border2); z-index: 400; transition: right 0.3s; overflow-y: auto; box-shadow: -8px 0 32px rgba(0,0,0,0.4); }
  .notif-panel.open { right: 0; }
  .notif-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg2); z-index: 10; }
  .notif-title { font-size: 15px; font-weight: 700; }
  .notif-item { padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; position: relative; }
  .notif-item:hover { background: var(--bg3); }
  .notif-item.unread::after { content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .notif-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; margin-bottom: 6px; }
  .notif-msg { font-size: 13px; color: var(--text2); line-height: 1.5; }
  .notif-msg strong { color: var(--text); }
  .notif-time { font-size: 11px; color: var(--text3); margin-top: 4px; font-family: var(--mono); }

  /* TABS */
  .tabs { display: flex; gap: 2px; background: var(--bg3); border-radius: 10px; padding: 4px; margin-bottom: 20px; width: fit-content; flex-wrap: wrap; }
  .tab { padding: 7px 16px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text3); transition: all 0.15s; }
  .tab.active { background: var(--bg2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

  /* STATS ROW */
  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
  .stat-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
  .stat-num { font-size: 22px; font-weight: 700; color: var(--text); font-family: var(--mono); }
  .stat-lbl { font-size: 11px; color: var(--text3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--mono); }

  /* PROGRESS */
  .progress-bar { height: 6px; background: var(--bg4); border-radius: 99px; overflow: hidden; }
  .progress-fill { height: 100%; border-radius: 99px; transition: width 1s ease; }

  /* SAV ALERT */
  .alert { padding: 12px 16px; border-radius: 10px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 13px; }
  .alert-red { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: var(--text2); }
  .alert-amber { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: var(--text2); }
  .alert-green { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: var(--text2); }
  .alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

  /* INVOICE PREVIEW */
  .invoice-preview { background: white; color: #0a0e1a; border-radius: 12px; padding: 32px; font-family: var(--font); }
  .invoice-preview h2 { font-size: 24px; font-weight: 700; color: #0a0e1a; }
  .invoice-preview .inv-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
  .invoice-preview .inv-table th { background: #f1f5f9; padding: 10px 12px; text-align: left; font-size: 12px; text-transform: uppercase; color: #64748b; }
  .invoice-preview .inv-table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; font-size: 13px; }
  .invoice-preview .inv-total { text-align: right; }
  .invoice-preview .inv-total-row { display: flex; justify-content: flex-end; gap: 40px; padding: 8px 0; font-size: 13px; }
  .invoice-preview .inv-grand { font-size: 18px; font-weight: 700; color: #0e7490; border-top: 2px solid #0e7490; padding-top: 8px; }

  /* CALENDAR */
  .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cal-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
  .cal-day-label { text-align: center; font-size: 11px; font-weight: 600; color: var(--text3); padding: 4px; font-family: var(--mono); }
  .cal-cell { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 2px 3px; cursor: pointer; transition: border-color 0.15s; overflow: hidden; }
  .cal-cell:hover { border-color: var(--accent); }
  .cal-cell.today { border-color: var(--accent); background: rgba(6,182,212,0.08); }
  .cal-cell.cal-selected { border-color: #98ca3e !important; background: rgba(152,202,62,0.12); }
  .cal-cell.cal-selected .cal-num { color: #98ca3e; font-weight: 700; }
  /* bars replace has-event dot */
  .cal-num { font-size: 12px; font-weight: 500; color: var(--text2); }
  .cal-cell.today .cal-num { color: var(--accent); font-weight: 700; }
  .cal-cell.other-month .cal-num { color: var(--text3); }

  /* ATTENDANCE */
  .attendance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .attendance-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
  .att-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
  .att-status { display: flex; align-items: center; gap: 6px; font-size: 12px; }
  .att-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .att-dot.present { background: var(--green); }
  .att-dot.absent { background: var(--red); }
  .att-dot.late { background: var(--amber); }

  /* PRICE CALCULATOR */
  .price-rule { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
  .price-rule-label { color: var(--text2); }
  .price-rule-val { color: var(--accent); font-weight: 700; font-family: var(--mono); }

  /* EMPTY STATE */
  .empty { text-align: center; padding: 48px 20px; color: var(--text3); }
  .empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
  .empty-text { font-size: 14px; }

  /* TOAST */
  .toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 600; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
  .toast { background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); animation: slideIn 0.3s ease; pointer-events: all; min-width: 260px; }
  .toast.success { border-left: 3px solid var(--green); }
  .toast.error { border-left: 3px solid var(--red); }
  .toast.info { border-left: 3px solid var(--accent); }
  .toast-msg { font-size: 13.5px; color: var(--text); }
  @keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
  @keyframes fadeOut { to { opacity: 0; transform: translateX(120%); } }

  /* ACTIVE DOT */
  .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
  .dot-green { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
  .dot-red { background: var(--red); }
  .dot-amber { background: var(--amber); }
  .dot-blue { background: var(--blue); }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .charts-grid { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 700px) {
    .sidebar { transform: translateX(-100%); }
    .main { margin-left: 0; }
  }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }


  /* CLIENT AUTOCOMPLETE */
  .ac-wrap { position: relative; width: 100%; }
  .ac-input { width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 10px 38px 10px 44px !important; font-size: 13.5px; color: var(--text); font-family: var(--font); outline: none; transition: border-color 0.2s; box-sizing: border-box; }
  input.ac-input[type=text] { padding: 10px 38px 10px 44px !important; }
  .ac-input:focus { border-color: #98ca3e; }
  .ac-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; display: flex; align-items: center; }
  .ac-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text3); font-size: 14px; display: none; background: none; border: none; padding: 2px 4px; color: var(--text3); }
  .ac-clear:hover { color: var(--text); }
  .ac-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg2); border: 1px solid #98ca3e; border-radius: 10px; z-index: 9999; max-height: 220px; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.3); display: none; }
  .ac-dropdown.open { display: block; }
  .ac-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border); }
  .ac-item:last-child { border-bottom: none; }
  .ac-item:hover, .ac-item.highlighted { background: rgba(152,202,62,0.10); }
  .ac-item-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #98ca3e, #6aaa22); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
  .ac-item-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .ac-item-meta { font-size: 11px; color: var(--text3); font-family: var(--mono); }
  .ac-item-type { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-family: var(--mono); font-weight: 600; margin-left: auto; flex-shrink: 0; }
  .ac-selected { background: rgba(152,202,62,0.08); border: 1px solid rgba(152,202,62,0.4); border-radius: 8px; padding: 8px 12px; display: none; align-items: center; gap: 10px; margin-top: 6px; }
  .ac-selected.show { display: flex; }
  .ac-selected-name { font-size: 13px; font-weight: 600; color: #98ca3e; flex: 1; }
  .ac-selected-meta { font-size: 11px; color: var(--text3); font-family: var(--mono); }
  .ac-no-result { padding: 14px; text-align: center; color: var(--text3); font-size: 13px; }
  .ac-highlight { color: #98ca3e; font-weight: 700; }

  /* ============================================
     MOBILE RESPONSIVE (iPhone & Android)
     ============================================ */

  /* Safe area for iPhone notch/Dynamic Island */
  :root { --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom); }

  /* Hamburger — hidden on desktop, shown on mobile via JS */
  .hamburger { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--bg3); border: 1px solid var(--border2); border-radius: 9px; cursor: pointer; flex-shrink: 0; }

  /* Bottom nav — hidden by default */
  .mobile-bottom-nav { display: none; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 998; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

  @media (max-width: 768px) {
    /* --- LAYOUT --- */
    .hamburger { display: flex !important; }
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
      z-index: 999;
      width: 280px;
    }
    .sidebar.mobile-open { transform: translateX(0) !important; }
    .sidebar-overlay.visible { display: block !important; }
    .main { margin-left: 0 !important; }
    .date-badge { display: none; }

    /* --- HEADER --- */
    .header { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); height: auto; }
    .header-left { gap: 8px; }
    .header-actions { gap: 6px; }
    .btn-icon { width: 34px; height: 34px; }
    .logo-mark .logo-name { font-size: 14px; }
    .logo-mark .logo-sub { display: none; }

    /* --- PAGE --- */
    .page { padding: 12px 12px calc(80px + env(safe-area-inset-bottom)); }
    .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-title { font-size: 16px; }
    .page-sub { font-size: 11px; }
    .page-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
    .page-actions .btn { flex: 1; min-width: 130px; justify-content: center; font-size: 12px; padding: 9px 12px; }
    .page-actions > div { width: 100%; }
    .page-actions input[type=text] { width: 100% !important; box-sizing: border-box; }

    /* --- STATS --- */
    .stats-row { grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 12px; }
    .stat-box { padding: 12px 10px; }
    .stat-num { font-size: 20px; }
    .stat-lbl { font-size: 10px; }

    /* --- SECTION GRID --- */
    .section-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .section-card { margin-bottom: 0; }
    .section-card.full { grid-column: 1 !important; }

    /* --- TABLES --- */
    .table-wrap { overflow-x: hidden; -webkit-overflow-scrolling: touch; border-radius: 0 0 10px 10px; }
    table { min-width: 0 !important; width: 100% !important; font-size: 12px; }
    th, td { padding: 6px 4px; white-space: normal; word-break: break-word; }
    .btn-xs { padding: 4px 6px; font-size: 10px; }

    /* --- FORMS --- */
    .form-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .form-group { grid-column: 1 !important; }
    .form-group.full { grid-column: 1 !important; }
    input, select, textarea { font-size: 16px !important; } /* prevent zoom on iOS */

    /* --- MODAL (bottom sheet) --- */
    .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
    .modal-box {
      width: 100% !important;
      max-width: 100% !important;
      max-height: 90vh !important;
      border-radius: 20px 20px 0 0 !important;
      margin: 0 !important;
      padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }

    /* --- AGENTS GRID --- */
    .attendance-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px; }

    /* --- CALENDAR --- */
    .cal-num { font-size: 10px; }
    .cal-cell { padding: 2px 1px !important; }

    /* --- BOTTOM NAV --- */
    .mobile-bottom-nav {
      display: flex !important;
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: calc(56px + env(safe-area-inset-bottom));
      padding-bottom: env(safe-area-inset-bottom);
      background: var(--bg2);
      border-top: 1px solid var(--border2);
      z-index: 100;
      justify-content: space-around;
      align-items: center;
    }
    .mobile-nav-item {
      display: flex; flex-direction: column; align-items: center;
      gap: 3px; padding: 6px 4px;
      cursor: pointer; color: var(--text3);
      font-size: 9px; font-family: var(--font); font-weight: 500;
      flex: 1; border: none; background: none; min-width: 0;
    }
    .mobile-nav-item.active { color: #98ca3e; }
    .mobile-nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }

    /* --- LOGIN --- */
    .login-card { border-radius: 20px; padding: 28px 18px; max-width: 100%; }
    .login-input { font-size: 16px !important; }

    /* --- SIDEBAR FOOTER on mobile --- */
    .sidebar { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

    /* --- SETTINGS PAGE --- */
    .section-card > div[style*="grid-template-columns:220px"],
    div[style*="grid-template-columns: 220px"] { display: flex !important; flex-direction: column !important; }
  }

  /* ============================================ */

  /* LOGIN PAGE */
  .login-page { position:fixed; inset:0; background:var(--bg); display:flex; align-items:center; justify-content:center; z-index:9999; padding:20px; }
  .login-card { background:var(--bg2); border:1px solid var(--border2); border-radius:20px; padding:40px 36px; width:100%; max-width:420px; box-shadow:0 24px 80px rgba(0,0,0,0.5); }
  .login-logo { display:flex; flex-direction:column; align-items:center; margin-bottom:32px; gap:12px; }
  .login-logo img { width:72px; height:72px; object-fit:contain; border-radius:50%; background:#fff; padding:4px; }
  .login-logo-name { font-size:22px; font-weight:800; color:var(--text); letter-spacing:-0.5px; }
  .login-logo-sub { font-size:11px; color:var(--text3); letter-spacing:2px; text-transform:uppercase; font-family:var(--mono); margin-top:-6px; }
  .login-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:6px; }
  .login-sub { font-size:13px; color:var(--text3); margin-bottom:24px; }
  .login-form { display:flex; flex-direction:column; gap:14px; }
  .login-field { display:flex; flex-direction:column; gap:6px; }
  .login-field label { font-size:12px; font-weight:600; color:var(--text3); text-transform:uppercase; letter-spacing:0.5px; font-family:var(--mono); }
  .login-input-wrap { position:relative; display:flex; align-items:center; }
  .login-input-icon { position:absolute; left:14px; color:var(--text3); display:flex; }
  .login-input { width:100%; padding:11px 14px 11px 42px; background:var(--bg3); border:1.5px solid var(--border2); border-radius:10px; font-size:14px; color:var(--text); font-family:var(--font); outline:none; transition:border-color 0.2s; box-sizing:border-box; }
  .login-input:focus { border-color:#98ca3e; }
  .login-input::placeholder { color:var(--text3); }
  .login-eye { position:absolute; right:12px; cursor:pointer; color:var(--text3); background:none; border:none; display:flex; padding:4px; transition:color 0.15s; }
  .login-eye:hover { color:var(--text); }
  .login-btn { width:100%; padding:13px; background:#98ca3e; color:#0a0e1a; border:none; border-radius:10px; font-size:14px; font-weight:700; cursor:pointer; font-family:var(--font); transition:all 0.2s; margin-top:4px; display:flex; align-items:center; justify-content:center; gap:8px; }
  .login-btn:hover { background:#aada4e; transform:translateY(-1px); box-shadow:0 4px 16px rgba(152,202,62,0.3); }
  .login-btn:active { transform:translateY(0); }
  .login-btn:disabled { opacity:0.6; cursor:not-allowed; transform:none; }
  .login-error { padding:10px 14px; background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.25); border-radius:8px; font-size:13px; color:#f87171; display:none; align-items:center; gap:8px; }
  .login-error.show { display:flex; }
  .login-footer { margin-top:24px; padding-top:20px; border-top:1px solid var(--border); text-align:center; font-size:11px; color:var(--text3); }
  .login-pin-pad { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:4px; }
  .pin-btn { padding:14px; background:var(--bg3); border:1px solid var(--border2); border-radius:10px; font-size:18px; font-weight:600; color:var(--text); cursor:pointer; transition:all 0.15s; font-family:var(--mono); }
  .pin-btn:hover { background:var(--bg4); border-color:#98ca3e; }
  .pin-display { display:flex; justify-content:center; gap:12px; margin-bottom:12px; }
  .pin-dot { width:14px; height:14px; border-radius:50%; border:2px solid var(--border2); transition:all 0.15s; }
  .pin-dot.filled { background:#98ca3e; border-color:#98ca3e; }
  .tab-toggle { display:flex; background:var(--bg3); border-radius:10px; padding:4px; gap:4px; margin-bottom:24px; }
  .tab-toggle button { flex:1; padding:8px; border:none; border-radius:7px; font-size:13px; font-weight:500; cursor:pointer; font-family:var(--font); transition:all 0.15s; color:var(--text3); background:transparent; }
  .tab-toggle button.active { background:var(--bg2); color:var(--text); box-shadow:0 1px 4px rgba(0,0,0,0.3); }

  /* PAGE TRANSITIONS */
  .page { animation: fadeInPage 0.2s ease; }
  @keyframes fadeInPage { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }


/* =============================================
   MOBILE RESPONSIVE v2
   ============================================= */

/* Bottom Nav - hidden on desktop */
.mobile-bottom-nav { display: none; }
.fab-menu { display: none; }

/* Mobile Search Dropdown */
.mobile-search-dropdown {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg2);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    z-index: 450;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mobile-search-dropdown.open { display: block; }
.mobile-search-dropdown input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.mobile-search-dropdown input:focus { border-color: var(--accent); }
.mobile-search-dropdown input::placeholder { color: var(--text3); }

/* FAB */
.mob-nav-fab { flex:1; display:flex; align-items:center; justify-content:center; position:relative; }
.fab-btn { width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,#98ca3e,#7db52e); color:white; display:flex; align-items:center; justify-content:center; font-size:32px; font-weight:300; cursor:pointer; box-shadow:0 4px 16px rgba(152,202,62,0.4); position:relative; top:-16px; transition:transform 0.3s; line-height:1; }
.fab-menu { position:fixed; inset:0; z-index:900; }
.fab-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.5); backdrop-filter:blur(4px); }
.fab-options { position:absolute; bottom:90px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; gap:10px; animation:fabUp 0.25s ease; }
@keyframes fabUp { from{transform:translateX(-50%) translateY(20px);opacity:0} to{transform:translateX(-50%) translateY(0);opacity:1} }
.fab-option { display:flex; align-items:center; gap:12px; padding:14px 24px; background:var(--bg2); border:1px solid var(--border); border-radius:14px; color:white; font-size:15px; font-weight:600; cursor:pointer; min-width:220px; box-shadow:0 8px 24px rgba(0,0,0,0.3); }
.fab-option:active { transform:scale(0.96); }
.fab-option-icon { font-size:24px; }

/* Mobile sidebar menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 699;
    display: none;
}
.mobile-menu-overlay.show { display: block; }



/* Desktop: hide mobile card list, show table */
.mobile-cards-list { display: none; }
.desktop-table { display: block; }

/* Mobile header elements — hidden on desktop */
.header-mobile-left { display: none; }
.mobile-hamburger { display: none; }
.header-mobile-logo { display: none; }
.mobile-search-icon { display: none; }

/* ============= MOBILE BREAKPOINT ============= */
@media (max-width: 768px) {
    /* Show mobile nav */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--bg2, #1a2332);
        border-top: 1px solid var(--border, #2a3a5c);
        z-index: 800;
        padding: 6px 0;
        padding-bottom: env(safe-area-inset-bottom, 6px);
    }

    .mob-nav-item {
        flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
        padding:6px 0; color:var(--text3); font-size:10px; cursor:pointer; text-decoration:none;
    }
    .mob-nav-item.active { color: #98ca3e; }
    .mob-nav-item svg { width:22px; height:22px; }

    /* === HEADER MOBILE === */
    .header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        height: 52px !important;
    }

    /* Show mobile-left: hamburger + logo */
    .header-mobile-left {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    .mobile-hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }
    .header-mobile-logo {
        display: block !important;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* Hide desktop search bar */
    .search-global { display: none !important; }

    /* Show mobile search icon */
    .mobile-search-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 6px;
    }

    /* Hide desktop-only */
    .desktop-only { display: none !important; }
    
    /* Hide old hamburger in sidebar */
    .sidebar .hamburger { display: none !important; }

    /* Sidebar: slide-in menu 70% width */
    .sidebar {
        position: fixed !important;
        left: 0; top: 0; bottom: 0;
        width: 70% !important;
        max-width: 300px !important;
        z-index: 700;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    /* Sidebar footer */
    .sidebar .nav {
        padding-bottom: 120px !important;
    }

    /* Main content */
    .main {
        margin-left: 0 !important;
        padding-bottom: 80px !important;
    }

    /* === DASHBOARD MOBILE === */
    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .dashboard-grid > div {
        width: 100% !important;
    }
    .chart-card, .section-card {
        min-width: 0 !important;
    }

    /* === MOBILE TABLES === */
    table {
        min-width: 0 !important;
        width: 100% !important;
    }
    .hide-mobile, th.hide-mobile, td.hide-mobile {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }
    .truncate-mobile {
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    th, td {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
    .btn-xs {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }

    /* Mobile card list alternative */
    .mobile-cards { display: flex !important; flex-direction: column; gap: 8px; }
    .mobile-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 12px;
    }
    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .mobile-card-label {
        font-size: 11px;
        color: var(--text3);
    }
    .mobile-card-value {
        font-weight: 600;
        font-size: 13px;
    }

    /* Page */
    .page { padding: 14px !important; }
    .page-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
    .page-actions { width: 100% !important; }
    .page-actions .btn { flex: 1 !important; justify-content: center !important; font-size: 12px !important; }

    /* Stats */
    .stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .stat-box { padding: 12px !important; }
    .stat-num { font-size: 22px !important; }
    .stat-lbl { font-size: 11px !important; }

    /* Tables */
    .table-wrap, .section-card { overflow-x: hidden !important; }
    table { min-width: 0 !important; width: 100% !important; }
    th, td { padding: 8px 6px !important; font-size: 12px !important; }

    /* Modal */
    .modal-backdrop .modal { max-width: 95% !important; max-height: 85vh !important; }
    .modal-body { padding: 14px !important; }
    .modal-footer { padding: 12px !important; flex-wrap: wrap !important; gap: 6px !important; }
    .modal-footer .btn { font-size: 12px !important; padding: 8px 12px !important; }

    /* Form */
    .form-grid { grid-template-columns: 1fr !important; }
}


    /* ===== MOBILE CARD TABLES ===== */
    .mobile-cards-list {
        display: block !important;
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 10px;
        overflow: hidden;
    }
    .mobile-cards-list .btn-xs, .mobile-cards-list .btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
    .desktop-table { display: none !important; }

@media (max-width: 380px) {
    .mob-nav-item span { font-size: 9px; }
    .fab-btn { width: 46px; height: 46px; font-size: 28px; }
    .page-title { font-size: 18px !important; }
}
