/* ═══════════════════════════════════════════════════
   ZAAL — Luxury Real Estate Management
   Design System
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&family=DM+Mono:wght@300;400&display=swap');

:root {
  --ink:         #0C0C0F;
  --deep:        #11111A;
  --surface:     #16161F;
  --card:        #1C1C28;
  --card2:       #21212F;
  --line:        rgba(255,255,255,0.06);
  --line2:       rgba(255,255,255,0.10);
  --gold:        #C9A84C;
  --gold-light:  #E2C97E;
  --gold-dim:    rgba(201,168,76,0.15);
  --gold-glow:   rgba(201,168,76,0.07);
  --gold-border: rgba(201,168,76,0.3);
  --ivory:       #F5F0E8;
  --muted:       rgba(245,240,232,0.40);
  --faint:       rgba(245,240,232,0.14);
  --green:       #4CAF85;
  --green-dim:   rgba(76,175,133,0.12);
  --red:         #C96C6C;
  --red-dim:     rgba(201,108,108,0.12);
  --blue:        #5B8FCC;
  --blue-dim:    rgba(91,143,204,0.12);
  --amber:       #D4A017;
  --amber-dim:   rgba(212,160,23,0.12);
  --sidebar-w:   260px;
  --topbar-h:    64px;
  --radius:      0px;
  --trans:       all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.4); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: 0.03em; line-height: 1.2; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
a  { color: var(--gold); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--gold-light); }
p  { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }

/* ── LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; }
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.page-content { padding: 32px 36px; flex: 1; }

/* ═══════════════════════════
   SIDEBAR
═══════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--deep);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

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

.logo-icon {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.logo-icon::before {
  content: '';
  position: absolute; inset: 3px;
  border: 1px solid rgba(201,168,76,0.25);
}
.logo-icon svg { width: 14px; height: 14px; }

.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--gold-light);
  text-transform: uppercase;
}
.logo-sub { font-size: 7.5px; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.sidebar-section { padding: 20px 0 6px; }
.sidebar-label { font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding: 0 24px 8px; font-weight: 600; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 24px; cursor: pointer;
  color: rgba(245,240,232,0.35); font-size: 11.5px;
  letter-spacing: 0.04em; font-weight: 500;
  transition: var(--trans); position: relative;
  border: none; background: none; width: 100%; text-align: left; text-decoration: none;
}
.nav-item:hover { color: var(--ivory); background: var(--gold-glow); }
.nav-item.active { color: var(--gold-light); background: var(--gold-dim); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
}
.nav-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; }
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto; background: var(--gold); color: var(--ink);
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 20px; letter-spacing: 0;
}

.sidebar-footer {
  margin-top: auto; padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}
.user-card { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px; border: 1.5px solid var(--gold);
  background: var(--gold-dim); display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--gold-light); flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 11px; font-weight: 600; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-top: 1px; }

/* ═══════════════════════════
   TOPBAR
═══════════════════════════ */
.topbar {
  height: var(--topbar-h); background: var(--deep);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 32px; gap: 16px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; flex: 1; letter-spacing: 0.03em; }
.topbar-title .highlight { color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.tb-icon-btn {
  width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--trans); position: relative; color: var(--muted);
}
.tb-icon-btn:hover { border-color: var(--gold); background: var(--gold-glow); color: var(--gold); }
.tb-date { font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; font-family: 'DM Mono', monospace; font-weight: 300; }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
}

/* ═══════════════════════════
   PAGE HEADER
═══════════════════════════ */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 20px; }
.page-header-left {}
.page-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; letter-spacing: 0.04em; line-height: 1.1; }
.page-subtitle { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }
.page-header-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ═══════════════════════════
   CARDS
═══════════════════════════ */
.card {
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--line2); }
.card-gold { border-color: var(--gold-border); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 12px;
}
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.04em; }
.card-action { font-size: 9.5px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; cursor: pointer; font-weight: 600; }
.card-action:hover { opacity: 0.7; }
.card-body { padding: 20px 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--line); }

/* ═══════════════════════════
   KPI GRID
═══════════════════════════ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid-2 { grid-template-columns: repeat(2, 1fr); }

.kpi-card {
  background: var(--card); border: 1px solid var(--line);
  padding: 22px; position: relative; overflow: hidden;
  transition: border-color 0.2s;
}
.kpi-card:hover { border-color: var(--gold-border); }
.kpi-card.gold-accent { border-color: var(--gold-border); }
.kpi-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.kpi-card.gold-accent::after,
.kpi-card:hover::after { opacity: 0.6; }

.kpi-label { font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.kpi-value { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 300; color: var(--ivory); line-height: 1; }
.kpi-value.gold { color: var(--gold-light); }
.kpi-unit { font-size: 1rem; color: var(--muted); font-family: 'Cormorant Garamond', serif; margin-left: 3px; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; margin-top: 10px; padding: 3px 7px; letter-spacing: 0.04em; }
.kpi-delta.up   { color: var(--green); background: var(--green-dim); }
.kpi-delta.down { color: var(--red);   background: var(--red-dim); }
.kpi-delta.neutral { color: var(--muted); background: rgba(255,255,255,0.05); }

/* ═══════════════════════════
   TABLES
═══════════════════════════ */
.z-table { width: 100%; border-collapse: collapse; }
.z-table th {
  font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 0 16px 12px 0;
  font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.z-table th:last-child { padding-right: 0; }
.z-table td {
  padding: 13px 16px 13px 0; font-size: 12px; border-bottom: 1px solid var(--line);
  color: var(--ivory); vertical-align: middle;
}
.z-table td:last-child { padding-right: 0; }
.z-table tbody tr { cursor: pointer; transition: background 0.15s; }
.z-table tbody tr:hover td { background: var(--gold-glow); }
.z-table tbody tr:last-child td { border-bottom: none; }

.td-name { font-weight: 500; font-size: 12.5px; }
.td-sub  { font-size: 10px; color: var(--muted); margin-top: 2px; }
.td-mono { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 300; }
.td-serif { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 400; color: var(--gold-light); }

/* ═══════════════════════════
   STATUS PILLS
═══════════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em;
  padding: 4px 9px; text-transform: uppercase; white-space: nowrap;
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill-green   { background: var(--green-dim);  color: var(--green); }
.pill-gold    { background: var(--gold-dim);   color: var(--gold-light); }
.pill-red     { background: var(--red-dim);    color: var(--red); }
.pill-blue    { background: var(--blue-dim);   color: var(--blue); }
.pill-muted   { background: rgba(255,255,255,0.05); color: var(--muted); }
.pill-amber   { background: var(--amber-dim);  color: var(--amber); }

/* ═══════════════════════════
   BUTTONS
═══════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 11px 20px;
  cursor: pointer; border: none; transition: var(--trans); white-space: nowrap;
  text-decoration: none;
}
.btn-gold    { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(201,168,76,0.3); color: var(--ink); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold-dim); color: var(--gold-light); }
.btn-ghost   { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line2); color: var(--ivory); }
.btn-danger  { background: var(--red-dim); color: var(--red); border: 1px solid rgba(201,108,108,0.3); }
.btn-danger:hover { background: var(--red); color: white; }
.btn-sm      { padding: 7px 14px; font-size: 9px; }
.btn-lg      { padding: 14px 28px; font-size: 11px; }
.btn-icon    { width: 34px; height: 34px; padding: 0; justify-content: center; }
.btn svg     { width: 12px; height: 12px; flex-shrink: 0; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══════════════════════════
   FORMS
═══════════════════════════ */
.form-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3  { grid-template-columns: 1fr 1fr 1fr; }
.form-full    { grid-column: 1 / -1; }
.form-group   { display: flex; flex-direction: column; gap: 7px; }
.form-label   { font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.form-label .req { color: var(--gold); }

.form-control {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ivory); font-family: 'Montserrat', sans-serif; font-size: 12px;
  padding: 11px 14px; outline: none; transition: border-color 0.2s; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus { border-color: var(--gold); background: var(--card); }
.form-control::placeholder { color: var(--faint); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(245,240,232,0.3)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.form-hint  { font-size: 10px; color: var(--muted); margin-top: 3px; }
.form-error { font-size: 10px; color: var(--red); margin-top: 3px; }

.form-section { margin-bottom: 28px; }
.form-section-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  color: var(--gold-light); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); letter-spacing: 0.04em;
}

/* ═══════════════════════════
   ALERTS / FLASH
═══════════════════════════ */
.alert { padding: 13px 18px; font-size: 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border-left: 3px solid; }
.alert-success { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.alert-error   { background: var(--red-dim);   border-color: var(--red);   color: var(--red); }
.alert-warning { background: var(--amber-dim); border-color: var(--amber); color: var(--amber); }
.alert-info    { background: var(--blue-dim);  border-color: var(--blue);  color: var(--blue); }

/* ═══════════════════════════
   GRID LAYOUTS
═══════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.grid-2-1 { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
.grid-1-2 { display: grid; grid-template-columns: 360px 1fr; gap: 18px; }

/* ═══════════════════════════
   MISC COMPONENTS
═══════════════════════════ */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.25; margin: 20px 0; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.2; }
.empty-state h3 { color: var(--muted); font-size: 1.2rem; margin-bottom: 6px; }
.empty-state p  { font-size: 11px; color: var(--faint); }

.occ-bar { height: 4px; background: var(--line); overflow: hidden; }
.occ-fill { height: 100%; }
.occ-fill-green { background: var(--green); }
.occ-fill-gold  { background: var(--gold); }
.occ-fill-red   { background: var(--red); }

.cheque-track { display: flex; gap: 3px; align-items: center; }
.cheque-box { width: 14px; height: 14px; }
.cheque-box-cleared   { background: var(--green); opacity: 0.8; }
.cheque-box-pending   { background: var(--gold-dim); border: 1px solid var(--gold); }
.cheque-box-bounced   { background: var(--red); opacity: 0.8; }
.cheque-box-presented { background: var(--blue); opacity: 0.8; }

.reminder-badge { width: 44px; height: 44px; border: 1.5px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.reminder-num  { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; line-height: 1; }
.reminder-unit { font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.urgency-urgent { border-color: var(--red);   color: var(--red); }
.urgency-soon   { border-color: var(--gold);  color: var(--gold-light); }
.urgency-ok     { border-color: var(--green); color: var(--green); }
.urgency-overdue { border-color: var(--red);  color: var(--red); }

.step-bar { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step-item { display: flex; align-items: center; gap: 7px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.step-item.active { color: var(--gold-light); }
.step-item.done   { color: var(--green); }
.step-num { width: 22px; height: 22px; border: 1px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; font-family: 'DM Mono', monospace; }
.step-line { flex: 1; height: 1px; background: var(--line); margin: 0 8px; max-width: 36px; }

.page-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-tab { padding: 10px 20px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; font-weight: 600; position: relative; transition: var(--trans); border: none; background: none; }
.page-tab:hover { color: var(--ivory); }
.page-tab.active { color: var(--gold-light); }
.page-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gold); }

.unit-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.unit-cell { aspect-ratio: 1; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: var(--trans); gap: 3px; }
.unit-cell:hover { border-color: var(--gold); background: var(--gold-glow); }
.unit-cell-rented    { background: rgba(76,175,133,0.07); border-color: rgba(76,175,133,0.22); }
.unit-cell-process   { background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.22); }
.unit-cell-available { border-style: dashed; }
.unit-num  { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 300; line-height: 1; }
.unit-type-mini { font-size: 7.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* ═══════════════════════════
   AUTH PAGE
═══════════════════════════ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); position: relative; overflow: hidden; }
.auth-page::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,168,76,0.06), transparent); pointer-events: none; }
.auth-card { background: var(--deep); border: 1px solid var(--gold-border); padding: 48px; width: 100%; max-width: 420px; position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-logo-icon { width: 52px; height: 52px; border: 1.5px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; position: relative; }
.auth-logo-icon::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(201,168,76,0.25); }
.auth-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.auth-subtitle { font-size: 9px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* ═══════════════════════════
   PAGINATION
═══════════════════════════ */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; padding: 20px 0 0; }
.pagination .page-link { padding: 7px 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 11px; font-family: 'DM Mono', monospace; transition: var(--trans); }
.pagination .page-link:hover { border-color: var(--gold); color: var(--gold); }
.pagination .page-item.active .page-link { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.pagination .page-item.disabled .page-link { opacity: 0.3; cursor: not-allowed; }

/* ═══════════════════════════
   DETAIL ROWS
═══════════════════════════ */
.detail-row { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; min-width: 140px; flex-shrink: 0; padding-top: 1px; }
.detail-value { font-size: 12px; color: var(--ivory); flex: 1; }
.detail-value-serif { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--gold-light); }
.detail-value-mono  { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 300; }

/* ═══════════════════════════
   UTILITY
═══════════════════════════ */
.text-gold   { color: var(--gold-light); }
.text-muted  { color: var(--muted); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-serif  { font-family: 'Cormorant Garamond', serif; }
.text-mono   { font-family: 'DM Mono', monospace; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-sm     { font-size: 10.5px; }
.text-xs     { font-size: 9.5px; }
.fw-600      { font-weight: 600; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.w-100  { width: 100%; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.10s; }
.fade-up-3 { animation-delay: 0.15s; }
.fade-up-4 { animation-delay: 0.20s; }

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .grid-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .page-content { padding: 20px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
