/* ============================================================
   ESCRITÓRIO VIRTUAL PARA INTÉRPRETES — CSS
   Estilo: limpo, minimalista, inspirado no workflow original
   Paleta: Navy #283550 · Gold #D4A843 · Red #CC4433 · BG #F3F4F7
   ============================================================ */

:root {
  --navy: #283550;
  --navy-deep: #1a2438;
  --gold: #D4A843;
  --gold-light: #e8c05a;
  --red: #CC4433;
  --bg: #F3F4F7;
  --white: #fff;
  --text: #1a2438;
  --muted: #6b7280;
  --border: #e5e7eb;
  --r: 8px;
  --rl: 12px;
  --sidebar-w: 240px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
}

/* ---- AUTH ---- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
}

.auth-card {
  background: var(--white);
  border-radius: var(--rl);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-logo-mark {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--gold);
}

.auth-logo-text span { display: block; font-weight: 700; font-size: 1rem; color: var(--navy); }
.auth-logo-text small { color: var(--muted); font-size: 0.75rem; }

.auth-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.auth-tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 0.5rem 1rem; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.auth-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

.auth-error { background: #fef2f2; border: 1px solid #fcd4d4; color: var(--red); padding: 0.65rem 0.85rem; border-radius: var(--r); font-size: 0.8rem; margin-bottom: 1rem; }
.auth-footer { text-align: center; color: var(--muted); font-size: 0.75rem; margin-top: 1.5rem; }

/* ---- ONBOARDING ---- */
.onboarding-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep);
}

.onboarding-card {
  background: var(--white);
  border-radius: var(--rl);
  padding: 2.5rem;
  width: 100%; max-width: 600px;
  border: 1px solid var(--border);
}

.onboarding-header { text-align: center; margin-bottom: 2rem; }
.onboarding-header h2 { font-size: 1.3rem; color: var(--navy); margin: 1rem 0 0.5rem; }
.onboarding-header p { color: var(--muted); font-size: 0.875rem; }

.onboarding-step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.step { width: 30px; height: 30px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; transition: all 0.3s; }
.step.active { background: var(--navy); color: var(--gold); }
.step.done { background: var(--gold); color: var(--navy); }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 60px; margin: 0 0.5rem; }

.onboarding-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.ob-info { color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }
.ob-services-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; max-height: 280px; overflow-y: auto; }
.ob-service-item { display: flex; gap: 0.5rem; align-items: center; }
.ob-service-item input { flex: 1; }
.ob-service-item input.price { width: 100px; flex: none; }

/* ---- APP LAYOUT ---- */
.app { display: flex; height: 100vh; overflow: hidden; }
.app.hidden { display: none; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-deep);
  display: flex; flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sidebar-logo-img { height: 28px; max-width: 80px; object-fit: contain; }
.sidebar-logo-text { width: 34px; height: 34px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: var(--navy); }

.sidebar-brand strong { display: block; font-size: 0.78rem; color: white; line-height: 1.2; }
.sidebar-brand small { color: rgba(255,255,255,0.4); font-size: 0.62rem; }

.sidebar-nav { flex: 1; padding: 0.75rem 0; }
.nav-section-label { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.28); padding: 0.75rem 1rem 0.2rem; }

.nav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item.active { color: var(--gold); background: rgba(212,168,67,0.1); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.nav-icon { font-size: 0.85rem; opacity: 0.7; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-placeholder { opacity: 0.45; }
.badge-soon { font-size: 0.55rem; font-weight: 700; background: rgba(204,68,51,0.25); color: #ff9988; padding: 0.1rem 0.4rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; margin-left: auto; }

.sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 0.5rem;
}

.user-info { flex: 1; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
.user-details strong { display: block; font-size: 0.68rem; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-details small { color: rgba(255,255,255,0.38); font-size: 0.6rem; }
.btn-icon { background: none; border: none; color: rgba(255,255,255,0.38); cursor: pointer; font-size: 0.9rem; padding: 0.2rem; transition: color 0.15s; }
.btn-icon:hover { color: white; }

/* ---- MAIN CONTENT ---- */
.main-content { flex: 1; overflow-y: auto; background: var(--bg); }

.module { display: none; padding: 1.75rem 1.75rem; }
.module.active { display: block; }
.module.hidden { display: none !important; }

.module-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.module-header h1 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--rl);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.875rem;
}

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* ---- DASHBOARD ---- */
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; margin-bottom: 1.25rem; }

.stat-card {
  background: var(--white);
  border-radius: var(--rl);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  border-top: 3px solid var(--gold);
}

.stat-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.4rem; }
.stat-value { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-sub { font-size: 0.68rem; color: var(--muted); margin-top: 0.35rem; }

.dashboard-bottom { display: grid; grid-template-columns: 1fr 320px; gap: 0.875rem; }

.recent-list { display: flex; flex-direction: column; gap: 0.4rem; }

.placeholder-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; cursor: pointer;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--rl);
  padding: 1.25rem;
  transition: all 0.2s;
  min-height: 200px;
}
.placeholder-card:hover { border-color: var(--gold); background: #fdf9ef; }
.placeholder-icon { font-size: 1.75rem; color: var(--muted); margin-bottom: 0.65rem; opacity: 0.4; }
.placeholder-title { font-weight: 600; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.placeholder-text { font-size: 0.73rem; color: var(--muted); max-width: 220px; line-height: 1.5; }
.placeholder-badge { margin-top: 1rem; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(204,68,51,0.1); color: var(--red); padding: 0.2rem 0.65rem; border-radius: 20px; }

.placeholder-full { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 60vh; }
.placeholder-icon-lg { font-size: 3rem; color: var(--muted); margin-bottom: 1.25rem; opacity: 0.3; }
.placeholder-full h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.65rem; }
.placeholder-full p { color: var(--muted); max-width: 400px; line-height: 1.7; font-size: 0.875rem; }
.placeholder-badge-lg { margin-top: 1.25rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(204,68,51,0.1); color: var(--red); padding: 0.35rem 1rem; border-radius: 20px; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 0.875rem; display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: inherit; font-size: 13px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 80px; resize: vertical; line-height: 1.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.875rem; }
.form-row-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0.875rem; }

/* ---- BUTTONS ---- */
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--r); padding: 7px 16px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); border: 1px solid var(--gold); border-radius: var(--r); padding: 7px 16px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn-gold:hover { background: #c49a38; }
.btn-ghost { background: var(--white); border: 1px solid var(--border); color: var(--text); border-radius: var(--r); padding: 7px 16px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: none; border: 1px solid #fcd4d4; color: var(--red); border-radius: var(--r); padding: 7px 16px; font-family: inherit; font-size: 13px; cursor: pointer; }
.btn-danger:hover { background: #fef2f2; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 4px 11px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-icon-sm { background: none; border: none; cursor: pointer; font-size: 0.85rem; color: var(--muted); padding: 0.2rem; transition: color 0.15s; }
.btn-icon-sm:hover { color: var(--navy); }

/* ---- STATUS BADGES ---- */
.status-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.status-RASCUNHO { background: #f0f9ff; color: #0369a1; }
.status-ENVIADA { background: #eff6ff; color: #1d4ed8; }
.status-PENDENTE { background: #fff7ed; color: #c2410c; }
.status-APROVADA { background: #f0fdf4; color: #15803d; }
.status-REJEITADA { background: #fef2f2; color: #b91c1c; }
.status-FATURADA { background: #faf5ff; color: #7e22ce; }
.status-PAGA { background: #ecfdf5; color: #065f46; }

/* ---- SEARCH / FILTER ---- */
.search-bar, .filter-bar { margin-bottom: 0.875rem; display: flex; gap: 0.65rem; }
.search-bar input, .filter-bar input { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--r); font-family: inherit; font-size: 13px; color: var(--text); outline: none; background: var(--white); }
.search-bar input:focus, .filter-bar input:focus { border-color: var(--gold); }
.filter-bar select { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--r); font-family: inherit; font-size: 13px; color: var(--text); outline: none; background: var(--white); }

/* ---- DATA LISTS ---- */
.data-list { display: flex; flex-direction: column; gap: 0.4rem; }

.list-item {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.875rem;
  transition: border-color 0.15s;
}
.list-item:hover { border-color: var(--gold); background: #fdf9ef; }
.list-item.border-gold { border-left: 3px solid var(--gold); }

.list-item-main { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: 0.875rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub { font-size: 0.73rem; color: var(--muted); margin-top: 0.1rem; }
.list-item-actions { display: flex; gap: 0.2rem; flex-shrink: 0; align-items: center; }

/* ---- PROPOSAL ITEMS TABLE ---- */
.items-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.items-table th { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--border); background: var(--bg); }
.items-table td { padding: 5px 7px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.items-table td input, .items-table td select { padding: 4px 6px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; width: 100%; outline: none; }
.items-table td input:focus { border-color: var(--gold); }
.items-table td textarea { min-height: 40px; padding: 4px 6px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; width: 100%; outline: none; resize: vertical; }

.totals-area { display: flex; justify-content: flex-end; padding: 1rem 0 0; }
.totals-box { min-width: 260px; }
.trow { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; }
.trow.big { font-size: 16px; font-weight: 700; color: var(--navy); border-top: 2px solid var(--border); padding-top: 9px; margin-top: 3px; }
.trow.disc { color: var(--red); }
.tlabel { color: var(--muted); }

/* ---- FREELANCER ROWS ---- */
.fl-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 8px; padding: 10px 12px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--border); }

/* ---- TAX TABLE ---- */
.tax-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.875rem; }
.tax-item label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.tax-item input { width: 100%; }

/* ---- RESULT CARDS ---- */
.result-card { background: var(--white); border-radius: var(--rl); border: 1px solid var(--border); padding: 1.1rem 1.25rem; margin-bottom: 0.5rem; }
.result-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.875rem; }
.result-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.result-item { text-align: center; }
.result-item label { display: block; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.25rem; }
.result-item .value { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.result-item.profit .value { color: #15803d; }
.result-item.cost .value { color: var(--red); }

/* ---- INDICATOR DOTS ---- */
.indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ind-green { background: #15803d; }
.ind-yellow { background: #f59e0b; }
.ind-red { background: var(--red); }

/* ---- GLOSSARY ---- */
.gp-terms { padding: 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.65rem; }
.term-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 0.875rem; border-left: 3px solid var(--gold); }
.term-source { font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.term-target { font-size: 0.875rem; color: var(--muted); margin-top: 0.2rem; }
.term-context { font-size: 0.73rem; color: #9ca3af; margin-top: 0.35rem; font-style: italic; }

/* ---- GLOSSARY PUBLIC ---- */
.glossary-public-screen { min-height: 100vh; background: var(--bg); }
.gp-header { background: var(--navy-deep); padding: 0.875rem 1.5rem; display: flex; align-items: center; }
.gp-logo { color: white; font-weight: 700; font-size: 0.95rem; }
.gp-logo span { color: var(--gold); margin-left: 0.5rem; font-weight: 400; font-size: 0.8rem; }
.gp-auth { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 56px); }
.gp-auth-card { background: var(--white); border-radius: var(--rl); border: 1px solid var(--border); padding: 2.5rem; width: 100%; max-width: 400px; }
.gp-auth-card h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.4rem; }
.gp-auth-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.25rem; }
.gp-toolbar { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.gp-toolbar h2 { font-size: 0.95rem; color: var(--navy); }
.gp-search { flex: 1; min-width: 200px; }
.gp-search input { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--r); font-family: inherit; font-size: 13px; outline: none; }
.gp-search input:focus { border-color: var(--gold); }
.gp-access-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 9px; border-radius: 20px; background: #f0fdf4; color: #15803d; }

/* ---- MEMBERS ---- */
.member-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.875rem; background: var(--bg); border-radius: var(--r); border: 1px solid var(--border); margin-bottom: 0.4rem; }
.member-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.member-info { flex: 1; }
.member-info strong { display: block; font-size: 0.8rem; color: var(--navy); }
.member-info small { color: var(--muted); font-size: 0.7rem; }
.role-badge { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 4px; }
.role-owner { background: #fdf3dc; color: #92650a; }
.role-member { background: #f1f5f9; color: #475569; }
.role-super_admin { background: #fef2f2; color: #b91c1c; }

/* ---- LOGO UPLOAD ---- */
.logo-upload-area { border: 2px dashed var(--border); border-radius: var(--r); padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.logo-upload-area:hover { border-color: var(--gold); background: #fdf9ef; }
.logo-upload-area.small { padding: 0.875rem; }
.upload-icon { font-size: 1.75rem; color: var(--muted); margin-bottom: 0.4rem; opacity: 0.5; }
.logo-upload-area span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.logo-upload-area small { font-size: 0.7rem; color: #9ca3af; }
.logo-upload-area img { max-height: 70px; max-width: 100%; object-fit: contain; }

/* ---- COLOR PICKERS ---- */
.color-pickers { display: flex; gap: 1.5rem; }
.color-picker-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.color-picker-item input[type=color] { width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer; padding: 2px; background: none; }
.color-picker-item span { font-size: 0.68rem; color: var(--muted); font-weight: 500; }

/* ---- RADIO ---- */
.radio-group { display: flex; flex-direction: column; gap: 0.4rem; }
.radio-item { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; cursor: pointer; }
.radio-item input { cursor: pointer; accent-color: var(--navy); }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal { background: var(--white); border-radius: var(--rl); width: 100%; max-width: 580px; max-height: 90vh; display: flex; flex-direction: column; }
.modal.modal-lg { max-width: 760px; }
.modal.modal-sm { max-width: 420px; }
.modal-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.modal-close { background: none; border: none; font-size: 1rem; color: var(--muted); cursor: pointer; transition: color 0.15s; }
.modal-close:hover { color: var(--red); }
.modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.modal-footer { padding: 0.875rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.65rem; }

/* ---- POINTS BADGE ---- */
.pts-badge { display: inline-flex; align-items: center; gap: 5px; background: #fdf3dc; border: 1px solid var(--gold); border-radius: 20px; padding: 3px 11px; font-size: 12px; font-weight: 700; color: #92650a; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); margin: 0.875rem 0; }

/* ---- TOAST ---- */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--navy); color: white; padding: 0.65rem 1.1rem; border-radius: var(--r); font-size: 0.8rem; font-weight: 500; z-index: 9999; animation: slideUp 0.25s ease; border: none; }
.toast.success { background: #065f46; }
.toast.error { background: var(--red); }
@keyframes slideUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 2.5rem; color: var(--muted); font-size: 13px; }

/* ---- TEXT UTILS ---- */
.text-muted { color: var(--muted); font-size: 0.8rem; }
.text-gold { color: var(--gold); font-weight: 700; }
.text-center { text-align: center; }

/* ---- HIDDEN ---- */
.hidden { display: none !important; }

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

@media (max-width: 768px) {
  :root { --sidebar-w: 200px; }
  .module { padding: 1rem; }
  .tax-grid { grid-template-columns: repeat(3, 1fr); }
  .result-breakdown { grid-template-columns: repeat(2, 1fr); }
}
