:root {
  --sidebar-width: 260px;
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: #3b82f6;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  --topbar-bg: #ffffff;
  --content-bg: #f0f2f5;
  --footer-bg: #ffffff;
  --primary-light: #eff6ff;
  --success-light: #f0fdf4;
  --warning-light: #fffbeb;
  --danger-light: #fef2f2;
  --info-light: #ecfeff;
}

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: static; width: auto; height: auto; margin: 0 0 1rem 0;
  overflow: visible; clip: auto;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 14px; position: relative; min-height: 100%;
}
@media (min-width: 768px) { html { font-size: 15px; } }

body {
  margin-bottom: 0; background-color: var(--content-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Sidebar ===== */
.wrapper { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-width);
  background: var(--sidebar-bg); display: flex; flex-direction: column;
  z-index: 1040; transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand a {
  color: #fff; text-decoration: none; font-size: 1.2rem;
  font-weight: 700; letter-spacing: -0.02em;
}
.sidebar-brand a i { margin-right: 0.5rem; color: var(--sidebar-active); }

.sidebar-user {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--sidebar-text); font-size: 0.8rem;
}
.sidebar-user strong { display: block; color: #e2e8f0; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.sidebar-nav .nav-section {
  padding: 0.6rem 1.25rem 0.3rem; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #475569; font-weight: 600;
}
.sidebar-nav .nav-item {
  display: flex; align-items: center; padding: 0.55rem 1.25rem;
  color: var(--sidebar-text); text-decoration: none; font-size: 0.9rem;
  transition: all 0.15s ease; border-left: 3px solid transparent;
}
.sidebar-nav .nav-item i { width: 1.4rem; font-size: 0.95rem; margin-right: 0.6rem; text-align: center; }
.sidebar-nav .nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }
.sidebar-nav .nav-item.active {
  background: rgba(59,130,246,0.1); color: var(--sidebar-text-active); border-left-color: var(--sidebar-active);
}
.sidebar-nav .nav-item.active i { color: var(--sidebar-active); }
.sidebar-nav button.nav-item {
  width: 100%; background: transparent; border-top: 0; border-right: 0; border-bottom: 0;
  text-align: left; cursor: pointer;
}
.sidebar-nav .nav-parent span { flex: 1; }
.sidebar-nav .nav-parent-chevron {
  margin-left: auto; margin-right: 0; font-size: 0.75rem; transition: transform 0.15s ease;
}
.sidebar-nav .nav-parent[aria-expanded="true"] .nav-parent-chevron { transform: rotate(180deg); }
.sidebar-nav .nav-submenu { background: rgba(15,23,42,0.35); }
.sidebar-nav .nav-subitem {
  padding-left: 2.4rem; font-size: 0.86rem; border-left-color: transparent;
}
.sidebar-nav .nav-subitem i { font-size: 0.85rem; }

/* ===== Content Wrapper ===== */
.content-wrapper { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 1030; background: var(--topbar-bg);
  border-bottom: 1px solid #e2e8f0; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-toggle {
  display: none; background: none; border: none; font-size: 1.2rem;
  color: #475569; cursor: pointer; padding: 0.25rem; border-radius: 0.375rem;
}
.sidebar-toggle:hover { background: #f1f5f9; }

/* Breadcrumb-style page title */
.topbar-title {
  font-size: 0.85rem; color: #64748b; display: flex; align-items: center; gap: 0.4rem;
}
.topbar-title .separator { color: #cbd5e1; }
.topbar-title strong { color: #1e293b; font-weight: 600; }

/* ===== Topbar Right ===== */
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

/* Notification bell */
.notif-bell {
  position: relative; width: 34px; height: 34px; display: flex; align-items: center;
  justify-content: center; border-radius: 0.375rem; color: #64748b;
  text-decoration: none; transition: all 0.15s;
}
.notif-bell:hover { background: #f1f5f9; color: #1e293b; }
.notif-bell .badge-dot {
  position: absolute; top: 5px; right: 6px; width: 8px; height: 8px;
  background: #ef4444; border-radius: 50%; border: 2px solid #fff;
}

/* User avatar in topbar */
.topbar-user {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.25rem 0.5rem; border-radius: 0.375rem;
  transition: background 0.15s; text-decoration: none; color: #1e293b;
}
.topbar-user:hover { background: #f1f5f9; }

.topbar-user .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem; flex-shrink: 0;
}

.topbar-user .user-info { line-height: 1.2; }
.topbar-user .user-name { font-size: 0.85rem; font-weight: 500; color: #1e293b; }
.topbar-user .user-role { font-size: 0.7rem; color: #94a3b8; }

/* User dropdown */
.user-dropdown { min-width: 240px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.12); border-radius: 0.5rem; padding: 0.5rem; }
.user-dropdown .dropdown-header-item {
  padding: 0.5rem 0.75rem; border-bottom: 1px solid #f1f5f9; margin-bottom: 0.25rem;
}
.user-dropdown .dropdown-header-item .full-name { font-weight: 600; color: #1e293b; }
.user-dropdown .dropdown-header-item .email { font-size: 0.8rem; color: #94a3b8; }
.user-dropdown .dropdown-item {
  border-radius: 0.375rem; padding: 0.5rem 0.75rem; font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.user-dropdown .dropdown-item i { width: 1.2rem; text-align: center; color: #64748b; }
.user-dropdown .dropdown-item:hover { background: #f1f5f9; }
.user-dropdown .dropdown-item.text-danger { color: #ef4444; }
.user-dropdown .dropdown-item.text-danger i { color: #ef4444; }
.user-dropdown .dropdown-item.text-danger:hover { background: #fef2f2; }
.user-dropdown .dropdown-divider { margin: 0.25rem 0; }

/* ===== Main Content ===== */
.content { flex: 1; padding: 1.5rem 1.5rem 5rem; }

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg); border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem; text-align: center; color: #94a3b8; font-size: 0.78rem;
}
.footer a { color: #64748b; text-decoration: none; }
.footer a:hover { color: #2563eb; text-decoration: underline; }

/* ===== Minimal layout (Login page) ===== */
.wrapper-minimal {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.wrapper-minimal .login-card { width: 100%; max-width: 420px; margin: 1rem; }
.wrapper-minimal .card { border-radius: 0.75rem; }
.wrapper-minimal .card-body { padding: 2rem; }
.wrapper-minimal .btn-primary { padding: 0.6rem 1rem; font-size: 1rem; }
.minimal-legal-links { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.8rem; }
.minimal-legal-links a { color: #cbd5e1; text-decoration: none; }
.minimal-legal-links a:hover { color: #fff; text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .no-scroll { height: 100vh; overflow: hidden; }
  .sidebar-toggle { display: inline-flex; }
  .content-wrapper { margin-left: 0; }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1035; }
  .sidebar-backdrop.show { display: block; }
  .topbar-user .user-info { display: none; }
}

/* ===== Page header ===== */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.4rem; font-weight: 700; margin: 0; color: #0f172a; }
.page-header p { margin: 0.15rem 0 0; color: #64748b; font-size: 0.9rem; }
.page-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ===== Card refinements ===== */
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04); }
.card-header {
  background: #fff; border-bottom: 1px solid #e2e8f0; font-weight: 600;
  padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between;
}

/* ===== Dashboard Stat Cards ===== */
.stat-card {
  border-radius: 0.75rem; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12);
}
.stat-card .stat-body {
  padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem;
}
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.stat-card .stat-content { flex: 1; min-width: 0; }
.stat-card .stat-label { font-size: 0.8rem; color: #64748b; font-weight: 500; margin-bottom: 0.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin: 0; }
.stat-card .stat-footer { font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; }

/* ===== Table refinement ===== */
.table { margin-bottom: 0; }
.table > thead { background: #f8fafc; }
.table > thead th {
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: #64748b; border-bottom: 1px solid #e2e8f0;
  padding: 0.65rem 0.75rem; white-space: nowrap; vertical-align: middle;
}
.table > tbody td { padding: 0.65rem 0.75rem; vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
.table-hover > tbody > tr:hover { background-color: #f8fafc; }

/* ===== Filter card ===== */
.filter-card {
  background: #fff; border-radius: 0.5rem; padding: 1.25rem; margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}
.filter-card .form-label { font-size: 0.8rem; font-weight: 500; color: #475569; margin-bottom: 0.25rem; }
.filter-card .form-control, .filter-card .form-select {
  font-size: 0.875rem; border-color: #e2e8f0;
}
.filter-card .form-control:focus, .filter-card .form-select:focus {
  border-color: var(--sidebar-active); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.filter-card .filter-toggle {
  text-decoration: none; font-size: 0.8rem; color: var(--sidebar-active); cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.filter-card .filter-toggle:hover { text-decoration: underline; }

/* ===== Badges ===== */
.badge { font-weight: 500; padding: 0.3em 0.65em; font-size: 0.78rem; }

/* ===== Legal pages ===== */
.legal-hero {
  background: linear-gradient(135deg, #0f172a, #1e40af);
  color: #fff;
  border-radius: 1.35rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 24px 60px -34px rgba(15,23,42,0.85);
}
.legal-hero span {
  display: inline-flex; color: #bfdbfe; font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.7rem;
}
.legal-hero h1 { font-weight: 850; letter-spacing: -0.045em; margin-bottom: 0.65rem; }
.legal-hero p { max-width: 820px; color: #dbeafe; font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }
.legal-meta { color: #bfdbfe; font-size: 0.86rem; }
.legal-layout { display: grid; grid-template-columns: minmax(240px, 310px) 1fr; gap: 1.25rem; align-items: start; }
.legal-summary-card,
.legal-document {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  box-shadow: 0 14px 34px -28px rgba(15,23,42,0.65);
}
.legal-summary-card { padding: 1.25rem; position: sticky; top: 82px; }
.legal-summary-card h2,
.legal-document h2 { color: #0f172a; font-size: 1.05rem; font-weight: 800; }
.legal-summary-card p,
.legal-summary-card li,
.legal-document p { color: #475569; line-height: 1.72; }
.legal-summary-card ul { padding-left: 1.1rem; margin-bottom: 0; }
.legal-document { padding: 1.5rem; }
.legal-document section + section { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid #e2e8f0; }
@media (max-width: 991.98px) { .legal-layout { grid-template-columns: 1fr; } .legal-summary-card { position: static; } }

/* ===== Public landing ===== */
.landing-hero {
  padding: 2.5rem 0 3rem;
}
.landing-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 999px; padding: 0.35rem 0.75rem; font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.landing-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 0.98;
  letter-spacing: -0.055em; font-weight: 800; color: #0f172a; margin-bottom: 1.2rem;
}
.landing-lead {
  color: #475569; font-size: 1.12rem; line-height: 1.75;
  max-width: 680px; margin-bottom: 1.5rem;
}
.landing-trust-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.25rem; margin-top: 1.5rem;
  color: #475569; font-size: 0.9rem;
}
.landing-trust-row i { color: #2563eb; margin-right: 0.35rem; }
.landing-panel {
  background: #0f172a; color: #e2e8f0; border-radius: 1.25rem; padding: 1.25rem;
  box-shadow: 0 28px 60px -30px rgba(15, 23, 42, 0.75); position: relative; overflow: hidden;
}
.landing-panel::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 70%);
}
.landing-panel-header {
  display: flex; align-items: center; gap: 0.6rem; font-weight: 700; margin-bottom: 1rem; position: relative;
}
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,0.16); }
.landing-step {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.9rem; padding: 1rem; margin-bottom: 0.8rem; position: relative;
}
.landing-step strong { display: block; color: #fff; margin-bottom: 0.25rem; }
.landing-step span { display: block; color: #cbd5e1; font-size: 0.9rem; line-height: 1.55; }
.landing-step.done { border-color: rgba(34,197,94,0.35); }
.landing-step.active { border-color: rgba(59,130,246,0.55); background: rgba(59,130,246,0.16); }
.landing-panel-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 0.6rem; color: #94a3b8; position: relative;
}
.landing-panel-footer strong { color: #fff; }
.landing-section { padding: 3rem 0; }
.section-heading { max-width: 720px; margin-bottom: 1.5rem; }
.section-heading span {
  color: #2563eb; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.section-heading h2 { color: #0f172a; font-weight: 800; letter-spacing: -0.035em; margin: 0.35rem 0 0; }
.landing-feature-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.4rem;
  box-shadow: 0 12px 30px -24px rgba(15,23,42,0.5);
}
.landing-feature-card i {
  width: 44px; height: 44px; border-radius: 0.85rem; display: inline-flex; align-items: center; justify-content: center;
  background: #eff6ff; color: #2563eb; font-size: 1.1rem; margin-bottom: 1rem;
}
.landing-feature-card h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.landing-feature-card p { color: #64748b; line-height: 1.65; margin: 0; }
.pricing-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1.1rem; padding: 1.35rem;
  box-shadow: 0 18px 42px -30px rgba(15,23,42,0.7); position: relative; overflow: hidden;
}
.pricing-card-featured { border-color: #93c5fd; box-shadow: 0 24px 54px -34px rgba(37,99,235,0.85); }
.pricing-label {
  display: inline-flex; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 999px; padding: 0.25rem 0.65rem; font-weight: 800; font-size: 0.75rem; margin-bottom: 0.9rem;
}
.pricing-card h3 { color: #0f172a; font-weight: 850; letter-spacing: -0.025em; }
.pricing-price { color: #2563eb; font-size: 1.8rem; font-weight: 850; margin-bottom: 0.75rem; }
.pricing-card p:not(.pricing-price) { color: #64748b; line-height: 1.65; }
.pricing-card ul { padding-left: 1.15rem; margin: 1rem 0 0; color: #475569; line-height: 1.8; }
.pricing-note { margin: 1rem 0 0; color: #64748b; font-size: 0.9rem; }
.landing-process { border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.process-item {
  height: 100%; background: #f8fafc; border-radius: 1rem; padding: 1.2rem;
  border: 1px solid #e2e8f0;
}
.process-item span { display: block; color: #2563eb; font-weight: 800; margin-bottom: 0.7rem; }
.process-item strong { display: block; color: #0f172a; margin-bottom: 0.4rem; }
.process-item p { color: #64748b; margin: 0; line-height: 1.6; }
.landing-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #2563eb, #0f172a); color: #fff; border-radius: 1.25rem;
  padding: 1.5rem; margin: 2rem 0 1rem;
}
.landing-cta h2 { margin: 0 0 0.3rem; font-weight: 800; }
.landing-cta p { margin: 0; color: #dbeafe; }

/* ===== Public footer ===== */
.public-footer { background: #f8fafc; padding: 2rem 0 1rem; color: #334155; }
.public-footer-brand { font-size: 1.2rem; font-weight: 850; color: #0f172a; margin-bottom: 0.75rem; }
.public-footer h6 { color: #0f172a; font-weight: 800; margin-bottom: 0.75rem; }
.public-footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
.public-footer a { color: #2563eb; text-decoration: none; }
.public-footer a:hover { color: #1d4ed8; text-decoration: underline; }
.bct-badge {
  display: inline-flex; align-items: center; gap: 0.75rem; border: 2px solid #2563eb;
  border-radius: 0.75rem; padding: 0.75rem 0.9rem; color: #1d4ed8; background: #fff;
  box-shadow: 0 12px 30px -26px rgba(37,99,235,0.9);
}
.bct-badge i { font-size: 1.35rem; }
.bct-badge strong { display: block; font-size: 0.78rem; letter-spacing: 0.05em; }
.bct-badge span { display: block; font-size: 0.72rem; }
.public-footer-bottom { border-top: 1px solid #e2e8f0; margin-top: 1.25rem; padding-top: 0.9rem; color: #64748b; font-size: 0.85rem; }

/* ===== Public news ===== */
.news-index-hero { padding-top: 1rem; }
.news-heading { max-width: 760px; }
.news-heading span {
  color: #2563eb; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.news-heading h1 {
  color: #0f172a; font-weight: 850; letter-spacing: -0.05em;
  font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.02; margin: 0.45rem 0 0.8rem;
}
.news-heading p { color: #64748b; font-size: 1.05rem; line-height: 1.7; margin: 0; }
.news-search { display: flex; gap: 0.5rem; min-width: min(100%, 360px); }
.news-search .form-control { border-color: #cbd5e1; }
.news-meta { color: #64748b; font-size: 0.82rem; font-weight: 600; }
.news-hero-card, .news-card, .news-side-card, .news-newsletter-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1.1rem; overflow: hidden;
  box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.45);
}
.news-hero-card img { width: 100%; height: 360px; object-fit: cover; display: block; }
.news-hero-content { padding: 1.35rem; }
.news-hero-content h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 820; line-height: 1.12; margin: 0.45rem 0; }
.news-hero-content h2 a, .news-card h3 a, .news-side-card h3 a { color: #0f172a; text-decoration: none; }
.news-hero-content h2 a:hover, .news-card h3 a:hover, .news-side-card h3 a:hover { color: #2563eb; }
.news-hero-content p, .news-side-card p, .news-card p { color: #64748b; line-height: 1.65; margin-bottom: 0; }
.news-side-card { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: 0.85rem; }
.news-side-card img { width: 160px; height: 132px; object-fit: cover; border-radius: 0.75rem; display: block; }
.news-side-card h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.25; margin: 0.35rem 0; }
.news-newsletter-card { padding: 1.15rem; color: #fff; background: linear-gradient(135deg, #2563eb, #0f172a); }
.news-newsletter-card span { color: #bfdbfe; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.news-newsletter-card h3 { font-weight: 820; margin: 0.45rem 0; }
.news-newsletter-card p { color: #dbeafe; line-height: 1.6; }
.news-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -34px rgba(15, 23, 42, 0.55); }
.news-card img { width: 100%; height: 205px; object-fit: cover; display: block; }
.news-card-body { padding: 1rem; display: flex; flex-direction: column; height: calc(100% - 205px); }
.news-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.28; margin: 0.35rem 0 0.55rem; }
.news-read-more { margin-top: auto; color: #2563eb; font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.35rem; align-items: center; }
.news-read-more:hover { text-decoration: underline; }
.news-detail { max-width: 920px; margin: 0 auto; }
.news-detail-header { text-align: center; margin-bottom: 1.75rem; }
.news-detail-header h1 {
  color: #0f172a; font-size: clamp(2rem, 5vw, 4rem); font-weight: 850;
  line-height: 1.04; letter-spacing: -0.055em; margin-bottom: 1rem;
}
.news-detail-header p { color: #475569; font-size: 1.15rem; line-height: 1.75; max-width: 780px; margin: 0 auto; }
.news-detail-cover { margin: 0 0 2rem; }
.news-detail-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 1.2rem; box-shadow: 0 28px 60px -38px rgba(15, 23, 42, 0.65); }
.news-content {
  color: #1e293b; font-size: 1.04rem; line-height: 1.85; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 1.1rem; padding: clamp(1.2rem, 4vw, 2.4rem);
}
.news-content h2 { color: #0f172a; font-weight: 820; letter-spacing: -0.025em; margin: 2rem 0 0.75rem; }
.news-content h3 { color: #0f172a; font-weight: 760; margin: 1.5rem 0 0.6rem; }
.news-content p { margin-bottom: 1rem; }
.news-content ul, .news-content ol { margin-bottom: 1.1rem; padding-left: 1.35rem; }
.news-content li { margin-bottom: 0.45rem; }
.news-content img { max-width: 100%; height: auto; border-radius: 0.85rem; margin: 1.2rem 0; }
.news-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 4px solid #2563eb;
  background: #eff6ff; color: #1e3a8a; border-radius: 0.65rem;
}
.news-content a { color: #2563eb; font-weight: 650; }
@media (max-width: 575.98px) {
  .news-side-card { grid-template-columns: 1fr; }
  .news-side-card img { width: 100%; height: 190px; }
  .news-search { min-width: 100%; }
}

/* ===== Pagination ===== */
.pagination { margin-bottom: 0; gap: 0.15rem; }
.page-link {
  border: none; padding: 0.35rem 0.7rem; color: #475569; border-radius: 0.375rem;
  font-size: 0.85rem; transition: all 0.15s;
}
.page-link:hover { background: #e2e8f0; color: #1e293b; }
.page-item.disabled .page-link { background: transparent; color: #cbd5e1; }
.page-item.active .page-link { background: var(--sidebar-active); color: #fff; }

/* ===== Dashboard extra ===== */
.dashboard-stat-list .list-group-item {
  padding: 0.6rem 1rem; border-left: none; border-right: none;
  display: flex; align-items: center; justify-content: space-between;
}
.dashboard-stat-list .list-group-item:first-child { border-top: none; }
.dashboard-stat-list .list-group-item:last-child { border-bottom: none; }

/* ===== Form enhancements ===== */
.form-card { background: #fff; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.form-card .card-header-form {
  background: #f8fafc; border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.25rem; font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.form-card .card-header-form i { font-size: 1rem; }
.form-card .card-body-form { padding: 1.25rem; }
.form-card .instruction {
  font-size: 0.82rem; color: #64748b; margin-bottom: 1rem;
  padding: 0.6rem 0.75rem; background: #f0f9ff; border-radius: 0.375rem;
  border-left: 3px solid var(--sidebar-active);
}
.form-card .form-label { font-size: 0.85rem; font-weight: 500; color: #374151; margin-bottom: 0.3rem; }
.form-card .form-control, .form-card .form-select {
  font-size: 0.9rem; border-color: #e2e8f0; border-radius: 0.375rem;
}
.form-card .form-control:focus, .form-card .form-select:focus {
  border-color: var(--sidebar-active); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-card .input-group-text { background: #f8fafc; border-color: #e2e8f0; color: #64748b; }

/* ===== Rich text editor ===== */
.note-editor.note-frame {
  border-color: #e2e8f0; border-radius: 0.5rem; overflow: hidden;
}
.note-editor .note-toolbar {
  background: #f8fafc; border-bottom-color: #e2e8f0;
}
.note-editor .note-editable {
  color: #0f172a; line-height: 1.7; background: #fff;
}
.note-editor .note-editable h2,
.note-editor .note-editable h3 { font-weight: 700; margin-top: 1rem; }
.note-editor .note-editable blockquote {
  border-left: 4px solid #bfdbfe; padding-left: 1rem; color: #475569;
}

/* ===== Empty state ===== */
.empty-state { padding: 2.5rem 1rem; text-align: center; }
.empty-state i { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 0.75rem; }
.empty-state h6 { font-weight: 600; color: #475569; }
.empty-state p { font-size: 0.85rem; color: #94a3b8; margin-bottom: 0; }

/* ===== Survey list ===== */
.survey-company-type-col,
.survey-company-type-cell {
  width: 150px;
  max-width: 150px;
}

.survey-company-type-cell .badge {
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}

.survey-next-action {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}

.survey-next-action-warning {
  color: #92400e;
  background: #fffbeb;
  border-color: #fbbf24;
}

.survey-next-action-primary {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

.survey-next-action-info {
  color: #0f766e;
  background: #f0fdfa;
  border-color: #5eead4;
}

.survey-next-action-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.survey-next-action-muted {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ===== Account pages ===== */
.profile-summary-card {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.profile-summary-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -50px;
  top: -50px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.profile-summary-card .card-body { position: relative; z-index: 1; }
.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 2rem;
  font-weight: 850;
  margin-bottom: 1rem;
}

.profile-summary-card h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.25rem; }
.profile-summary-card p { color: #dbeafe; margin-bottom: 0; }
.account-security-list { display: grid; gap: 0.75rem; }
.account-security-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.account-security-list > div:last-child { border-bottom: 0; }
.account-security-list span { color: #64748b; }
.account-security-list strong { color: #0f172a; text-align: right; }

/* ===== Transition helpers ===== */
.collapse-filter { transition: all 0.2s ease; }
