/* ============================================================
   portal.css — LexAI Portal Ortak Stilleri
   ============================================================ */

/* ─── RESET / BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: #050c15;
  color: #c8d6e5;
  overflow-x: hidden;
}

/* ─── VARIABLES ─── */
:root {
  --gold: #c9973e;
  --gold-light: #e0b866;
  --gold-dim: rgba(201,151,62,0.15);
  --navy-900: #050c15;
  --navy-800: #0a1628;
  --navy-700: #0e1e35;
  --navy-600: #162947;
  --border: rgba(201,151,62,0.12);
  --border-hover: rgba(201,151,62,0.3);
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --sidebar-w: 280px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: all 0.2s ease;
  --success: #22c55e;
  --success-dim: rgba(34,197,94,0.12);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-800); }
::-webkit-scrollbar-thumb { background: rgba(201,151,62,0.3); border-radius: 3px; }

/* ═══════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,151,62,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(14,30,53,0.6) 0%, transparent 60%),
    var(--navy-900);
}
.login-card {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
}
.login-logo-icon { font-size: 1.4rem; }
.login-logo-text { font-size: 1.3rem; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.login-logo-sub { font-size: 0.72rem; color: var(--text-muted); line-height: 1; margin-left: 2px; }
.login-title { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.login-subtitle { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 32px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.login-input {
  background: rgba(5,12,21,0.8);
  border: 1px solid rgba(201,151,62,0.15);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  transition: var(--transition);
  outline: none;
}
.login-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,151,62,0.1); }
.login-btn {
  background: linear-gradient(135deg, #c9973e, #a07830);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #0a0f1e;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.login-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.login-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.83rem; color: #fca5a5; display: none; }
.login-error.show { display: block; }
.login-divider { text-align: center; font-size: 0.78rem; color: var(--text-muted); position: relative; }
.login-divider::before, .login-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.login-divider::before { left: 0; } .login-divider::after { right: 0; }
.login-link { color: var(--gold); text-decoration: none; font-size: 0.8rem; text-align: center; display: block; }
.login-link:hover { text-decoration: underline; }
.login-back { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.8rem; text-decoration: none; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 20px; transition: var(--transition); }
.login-back:hover { color: var(--gold); }

/* ═══════════════════════════════════════
   PORTAL LAYOUT
═══════════════════════════════════════ */
.portal-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.portal-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy-800);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar-top {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 20px;
}
.sidebar-logo span:first-child { font-size: 1.1rem; }
.sidebar-logo-text { font-size: 1rem; font-weight: 800; color: var(--gold); letter-spacing: -0.01em; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold), #a07830);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #0a0f1e;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 0.83rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.sidebar-user-email { font-size: 0.7rem; color: var(--text-muted); }

.sidebar-nav { padding: 16px 12px; flex-grow: 1; }
.sidebar-nav-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0 8px; margin-bottom: 8px; margin-top: 4px; }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
}
.sidebar-nav-item:hover { background: rgba(201,151,62,0.06); color: var(--text-primary); }
.sidebar-nav-item.active { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-hover); }
.sidebar-nav-item.active .nav-item-icon { color: var(--gold); }
.nav-item-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }
.nav-item-progress {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(201,151,62,0.1);
  color: var(--gold);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.nav-item-done { color: var(--success); margin-left: auto; width: 16px; height: 16px; }

.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.83rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.sidebar-logout:hover { color: #fc8181; background: rgba(239,68,68,0.06); }

/* MAIN CONTENT */
.portal-main {
  margin-left: var(--sidebar-w);
  flex-grow: 1;
  min-height: 100vh;
  background: var(--navy-900);
}
.portal-topbar {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,22,40,0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.topbar-breadcrumb { font-size: 0.78rem; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* HAMBURGER (mobile) */
.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
.sidebar-toggle span { width: 20px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: var(--transition); }

/* ═══════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════ */
.portal-content { padding: 32px; max-width: 1100px; }
.portal-welcome { margin-bottom: 32px; }
.portal-welcome h1 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.portal-welcome p { font-size: 0.9rem; color: var(--text-secondary); }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat-card {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.dash-stat-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.dash-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.dash-stat-sub { font-size: 0.78rem; color: var(--text-muted); }

.modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dash-module-card {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.dash-module-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.dash-module-card.locked { opacity: 0.5; cursor: not-allowed; }
.dash-module-card.locked:hover { transform: none; border-color: var(--border); }
.dash-mod-num { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.dash-mod-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.dash-mod-lessons { font-size: 0.78rem; color: var(--text-secondary); }
.dash-mod-progress-bar { height: 4px; background: rgba(201,151,62,0.1); border-radius: 2px; overflow: hidden; }
.dash-mod-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; transition: width 0.4s ease; }
.dash-mod-progress-text { font-size: 0.72rem; color: var(--text-muted); }
.dash-mod-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--success-dim);
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.dash-mod-locked-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(100,116,139,0.15);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

/* ═══════════════════════════════════════
   MODULE CONTENT PAGE
═══════════════════════════════════════ */
.module-content-page { padding: 32px; max-width: 900px; }
.module-header {
  background: linear-gradient(135deg, rgba(201,151,62,0.05), rgba(14,30,53,0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.module-header-info { /* intentional — layout anchor */ flex: 1; }
.module-number { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 8px; }
.module-header h1 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; margin-bottom: 8px; }
.module-header-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.module-header-progress { flex-shrink: 0; text-align: right; }
.mod-progress-ring { font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; }
.mod-progress-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* LESSONS */
.lessons-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-item {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.lesson-item.completed { border-color: rgba(34,197,94,0.2); }
.lesson-item.open { border-color: var(--border-hover); }
.lesson-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.lesson-header:hover { background: rgba(201,151,62,0.03); }
.lesson-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(201,151,62,0.1);
  border: 1px solid rgba(201,151,62,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.lesson-item.completed .lesson-num { background: var(--success-dim); border-color: rgba(34,197,94,0.3); color: var(--success); }
.lesson-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); flex-grow: 1; }
.lesson-duration { font-size: 0.72rem; color: var(--text-muted); margin-right: 8px; }
.lesson-toggle { color: var(--gold); font-size: 1.3rem; transition: transform 0.2s; flex-shrink: 0; }
.lesson-item.open .lesson-toggle { transform: rotate(45deg); }

.lesson-body { display: none; border-top: 1px solid var(--border); }
.lesson-item.open .lesson-body { display: block; }
.lesson-content { padding: 24px 24px 0; }
.lesson-content p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.lesson-content h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; margin-top: 20px; }
.lesson-content ul { padding-left: 20px; }
.lesson-content ul li { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }
.lesson-content ul li::marker { color: var(--gold); }

/* PROMPT BOX */
.prompt-box {
  background: rgba(5,12,21,0.9);
  border: 1px solid rgba(201,151,62,0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  margin: 16px 0;
  overflow: hidden;
}
.prompt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(201,151,62,0.05);
  border-bottom: 1px solid rgba(201,151,62,0.1);
}
.prompt-box-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.prompt-copy-btn {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.prompt-copy-btn:hover { color: var(--gold); border-color: rgba(201,151,62,0.3); }
.prompt-copy-btn.copied { color: var(--success); border-color: rgba(34,197,94,0.3); }
.prompt-text {
  padding: 14px 16px;
  font-size: 0.83rem;
  color: #a0afc0;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
  white-space: pre-wrap;
}

/* LESSON FOOTER */
.lesson-footer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  background: rgba(10,22,40,0.5);
}
.complete-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--success-dim);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.complete-btn:hover { background: rgba(34,197,94,0.18); }
.complete-btn.done { background: rgba(34,197,94,0.18); }
.complete-btn.done svg { fill: var(--success); }
.lesson-nav-btns { display: flex; gap: 8px; }
.lesson-nav-btn {
  padding: 8px 14px;
  background: rgba(201,151,62,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.lesson-nav-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* RESOURCE SECTION */
.resources-section {
  margin-top: 32px;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.resources-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 16px; }
.resource-list { display: flex; flex-direction: column; gap: 10px; }
.resource-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(5,12,21,0.6);
  border: 1px solid rgba(201,151,62,0.1);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}
.resource-item:hover { border-color: var(--border-hover); }
.resource-icon { color: var(--gold); flex-shrink: 0; }
.resource-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); flex-grow: 1; }
.resource-type { font-size: 0.7rem; color: var(--text-muted); background: rgba(201,151,62,0.08); padding: 2px 8px; border-radius: 99px; }

/* CHECKLIST */
.checklist {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(5,12,21,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.checklist-item:hover { border-color: var(--border-hover); }
.checklist-item.checked { background: var(--success-dim); border-color: rgba(34,197,94,0.2); }
.checklist-box {
  width: 18px; height: 18px;
  border: 2px solid rgba(201,151,62,0.3);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.checklist-item.checked .checklist-box { background: var(--success); border-color: var(--success); }
.checklist-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.checklist-item.checked .checklist-text { text-decoration: line-through; color: var(--text-muted); }

/* PROGRESS BANNER */
.module-complete-banner {
  display: none;
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(14,30,53,0.8));
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  align-items: center;
  gap: 16px;
}
.module-complete-banner.show { display: flex; }
.module-complete-banner svg { color: var(--success); flex-shrink: 0; }
.banner-title { font-size: 1rem; font-weight: 700; color: var(--success); margin-bottom: 4px; }
.banner-text { font-size: 0.83rem; color: var(--text-secondary); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .portal-sidebar { transform: translateX(-100%); }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .portal-content, .module-content-page { padding: 20px 16px; }
  .dash-grid { grid-template-columns: 1fr; }
  .portal-topbar { padding: 14px 16px; }
  .module-header { flex-direction: column; }
  .ih-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .calc-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════
   GLOBAL SEARCH OVERLAY
═══════════════════════════════════════ */
.gs-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.gs-overlay.open { display: flex; }
.gs-box {
  background: #0d1f38;
  border: 1px solid rgba(201,151,62,0.3);
  border-radius: 18px;
  width: min(640px, 94vw);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.gs-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.gs-input-row span { font-size: 1.1rem; color: #8b9cb5; }
.gs-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #f3f4f6;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.gs-input::placeholder { color: #4b5563; }
.gs-esc { font-size: 0.72rem; color: #4b5563; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.gs-results { max-height: 400px; overflow-y: auto; }
.gs-section-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #4b5563; padding: 10px 20px 4px; }
.gs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.gs-item:hover, .gs-item.active { background: rgba(201,151,62,0.08); }
.gs-item-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.gs-item-name { font-size: 0.88rem; font-weight: 600; color: #e5e7eb; }
.gs-item-desc { font-size: 0.74rem; color: #6b7280; margin-left: auto; white-space: nowrap; }
.gs-empty { padding: 32px 20px; text-align: center; color: #6b7280; font-size: 0.85rem; }

/* ═══════════════════════════════════════
   PRINT / A4 STYLES
═══════════════════════════════════════ */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: #8b9cb5;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
}
.print-btn:hover { color: #f3f4f6; border-color: rgba(201,151,62,0.3); }

@media print {
  body { background: #fff !important; color: #111 !important; font-size: 10pt; }
  .portal-sidebar, .portal-topbar, .ih-tabs, .sidebar-toggle,
  .calc-btn, .prompt-copy, .copy-ref-btn, .print-btn,
  button, .gs-overlay { display: none !important; }
  .portal-main { margin-left: 0 !important; }
  .ih-pane { display: block !important; }
  .calc-result, .calc-result.show { display: block !important; background: #f9f9f9 !important; border: 1px solid #ddd !important; }
  .calc-card, .mev-article, .mev-table { background: #fff !important; border-color: #ddd !important; page-break-inside: avoid; }
  .mev-article-text, .result-label, .result-value { color: #333 !important; }
  .mev-section-title, .calc-title, .result-total { color: #8b6914 !important; }
  a[href]:after { content: none; }
  @page { margin: 15mm 20mm; size: A4; }
}
