/* Netins Virtual Office — glass morphism on brand */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-navy: #183761;
  --brand-navy-2: #2a4d80;
  --brand-navy-3: #0f2545;
  --brand-orange: #fcae1b;
  --brand-orange-soft: #fdc658;
  --text: #1b2747;
  --text-soft: #56627a;
  --text-on-dark: #f3f6fb;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 18px 50px -20px rgba(24, 55, 97, 0.45);
  --radius: 40px;
  --radius-sm: 18px;
  --transition: 220ms cubic-bezier(.2, .8, .25, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body {
  background-color: #eef2f9;
  background-image:
    /* fade overlay: image clear at top → page color by ~820px */
    linear-gradient(180deg,
      rgba(232, 238, 249, 0)   0%,
      rgba(232, 238, 249, .15) 30%,
      rgba(238, 242, 249, .65) 65%,
      rgba(238, 242, 249, .95) 88%,
      #eef2f9                  100%),
    /* photo backdrop, anchored top, sized to ~920px */
    url('/assets/img/hero-bg.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center 0, center top;
  background-size: 100% 920px, 100% 920px;
}

a { color: var(--brand-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-orange); }

/* === Layout === */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 28px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header === */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 26px;
  margin-bottom: 28px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}
.app-header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-header .logo img {
  height: 50px;
  width: auto;
}
.app-header .logo .tagline {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: .3px;
}
.app-header .user-block {
  display: flex;
  align-items: center;
  gap: 18px;
}
.app-header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(24, 55, 97, .06);
  border-radius: 999px;
  cursor: default;
}
.app-header .user-info .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.app-header .user-info .who small {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.app-header .user-info .who strong {
  font-size: 13px;
  color: var(--brand-navy);
  font-weight: 700;
}
.app-header .icon-btn {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(24, 55, 97, .12);
  background: rgba(255, 255, 255, .6);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.app-header .icon-btn:hover { background: var(--brand-navy); color: #fff; transform: translateY(-1px); }
.app-header .logout {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 14px;
  background: rgba(24, 55, 97, .08);
  color: var(--brand-navy);
  font-weight: 600; font-size: 13px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.app-header .logout:hover { background: var(--brand-navy); color: #fff; }

/* Mobile menu (off-canvas) — animated */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 37, 69, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  visibility: hidden;
  pointer-events: none;
  transition: background 320ms ease, backdrop-filter 320ms ease, visibility 0s linear 320ms;
}
.mobile-nav.open {
  background: rgba(15, 37, 69, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  visibility: visible;
  pointer-events: auto;
  transition: background 320ms ease, backdrop-filter 320ms ease, visibility 0s linear 0s;
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 30px 26px;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
  transform: translateX(100%);
  box-shadow: -30px 0 60px -20px rgba(15, 37, 69, 0);
  transition: transform 360ms cubic-bezier(.2, .8, .25, 1), box-shadow 360ms ease;
}
.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
  box-shadow: -30px 0 60px -20px rgba(15, 37, 69, .45);
}
.mobile-nav-panel a {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  background: rgba(24, 55, 97, .06);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 280ms ease, transform 280ms ease, background 200ms ease, color 200ms ease;
}
.mobile-nav.open .mobile-nav-panel a {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav.open .mobile-nav-panel a:nth-child(2)  { transition-delay: 80ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(3)  { transition-delay: 110ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(4)  { transition-delay: 140ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(5)  { transition-delay: 170ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(6)  { transition-delay: 200ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(7)  { transition-delay: 230ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(8)  { transition-delay: 260ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(9)  { transition-delay: 290ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(10) { transition-delay: 320ms; }
.mobile-nav.open .mobile-nav-panel a:nth-child(11) { transition-delay: 350ms; }
.mobile-nav-panel a:hover { background: var(--brand-navy); color: #fff; }
.mobile-nav-panel .close {
  align-self: flex-end;
  margin-bottom: 10px;
  background: transparent; border: none;
  font-size: 22px; color: var(--brand-navy); cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}
.mobile-nav-panel .close:hover { background: rgba(24, 55, 97, .1); transform: rotate(90deg); }

body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav-panel, .mobile-nav-panel a, .mobile-nav-panel .close {
    transition: none !important;
    transform: none !important;
  }
}

/* === Glass card === */
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.glass-sm {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px -10px rgba(24, 55, 97, .25);
}

/* === Hero strip === */
.hero {
  position: relative;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  margin-bottom: 26px;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 30px 70px -28px rgba(15, 37, 69, .6);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero-pattern.svg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15, 37, 69, .88) 0%, rgba(24, 55, 97, .55) 45%, rgba(24, 55, 97, .15) 100%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 42px 48px;
  min-height: 240px;
}
.hero-greet .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.hero-greet .eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(252, 174, 27, .22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(252, 174, 27, .22); }
  50%      { box-shadow: 0 0 0 8px rgba(252, 174, 27, .05); }
}
.hero-greet h1 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.12;
}
.hero-greet h1 .accent {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-orange-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-greet .sub { font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 560px; line-height: 1.5; }
.hero-greet .quick-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-greet .quick-actions .btn {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.hero-greet .quick-actions .btn:hover { background: #fff; color: var(--brand-navy); }
.hero-greet .quick-actions .btn.btn-accent {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-soft));
  border-color: transparent; color: #2a1a00;
}
.hero-greet .quick-actions .btn.btn-accent:hover { color: #2a1a00; }

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 16px 18px;
  transition: transform var(--transition), background var(--transition);
}
.hero-stat:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.hero-stat .label {
  display: block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 4px;
}
.hero-stat .value { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.hero-stat .value .unit { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .65); margin-left: 4px; }
.hero-stat .value .trend { font-size: 12px; font-weight: 700; margin-left: 6px; }
.hero-stat .value .trend.up { color: #6dffa8; }
.hero-stat .value .trend.down { color: #ff8d8d; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 32px 28px; }
  .hero-greet h1 { font-size: 28px; }
}
@media (max-width: 480px) {
  .hero-inner { padding: 26px 22px; }
  .hero-greet h1 { font-size: 24px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 12px 14px; }
  .hero-stat .value { font-size: 18px; }
}

/* === Dashboard grids === */
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.widget {
  grid-column: span 6;
  background: var(--glass-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--glass-shadow);
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.widget:hover { transform: translateY(-3px); box-shadow: 0 28px 64px -24px rgba(24, 55, 97, .55); }
.widget.w-4 { grid-column: span 4; }
.widget.w-8 { grid-column: span 8; }
.widget.w-12 { grid-column: span 12; }

.widget-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.widget-head .title {
  display: flex; align-items: center; gap: 12px;
  margin: 0;
  color: var(--brand-navy);
  font-size: 16px; font-weight: 800;
  letter-spacing: -.2px;
}
.widget-head .title .ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(24, 55, 97, .6);
}
.widget-head .title .ico.accent { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-soft)); color: #2a1a00; box-shadow: 0 8px 16px -8px rgba(252, 174, 27, .6); }
.widget-head .title .ico.green { background: linear-gradient(135deg, #2ea043, #4caf50); box-shadow: 0 8px 16px -8px rgba(46, 160, 67, .55); }
.widget-head .title .ico.purple { background: linear-gradient(135deg, #6c5ce7, #8e7bff); box-shadow: 0 8px 16px -8px rgba(108, 92, 231, .55); }
.widget-head .title .ico.rose { background: linear-gradient(135deg, #d63384, #ee598b); box-shadow: 0 8px 16px -8px rgba(214, 51, 132, .55); }
.widget-head .title .ico.teal { background: linear-gradient(135deg, #0d9488, #14b8a6); box-shadow: 0 8px 16px -8px rgba(13, 148, 136, .55); }
.widget-head .more {
  font-size: 12px; font-weight: 700;
  color: var(--brand-navy);
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(24, 55, 97, .08);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.widget-head .more:hover { background: var(--brand-navy); color: #fff; }
.widget-body { flex-grow: 1; }
.widget-empty { color: var(--text-soft); font-size: 13px; padding: 18px 4px; text-align: center; }

/* News widget rows */
.w-news-list { display: flex; flex-direction: column; gap: 10px; }
.w-news-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background var(--transition);
}
.w-news-row:hover { background: rgba(24, 55, 97, .05); }
.w-news-row .thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .8);
}
.w-news-row .meta { min-width: 0; }
.w-news-row .meta .date { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-soft); font-weight: 700; }
.w-news-row .meta h4 { margin: 2px 0 0; font-size: 14px; color: var(--brand-navy); font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Events widget rows */
.w-event-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 14px;
  transition: background var(--transition);
}
.w-event-row + .w-event-row { border-top: 1px dashed rgba(24, 55, 97, .1); }
.w-event-row:hover { background: rgba(252, 174, 27, .06); }
.w-event-row .date-chip {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(252, 174, 27, .18), rgba(252, 174, 27, .05));
  border: 1px solid rgba(252, 174, 27, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--brand-navy);
}
.w-event-row .date-chip .d { font-size: 18px; font-weight: 800; line-height: 1; }
.w-event-row .date-chip .m { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #8a5a00; }
.w-event-row .info h4 { margin: 0; font-size: 14px; color: var(--brand-navy); font-weight: 700; line-height: 1.3; }
.w-event-row .info .loc { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.w-event-row .rsvp { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(24, 55, 97, .08); color: var(--brand-navy); }
.w-event-row .rsvp.attending { background: rgba(46, 160, 67, .15); color: #1c6928; }

/* Pipeline mini */
.w-pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.w-pipe .col {
  text-align: center;
  padding: 14px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(24, 55, 97, .08);
  position: relative;
}
.w-pipe .col.s-new { border-top: 3px solid #6c5ce7; }
.w-pipe .col.s-contacted { border-top: 3px solid #0d9488; }
.w-pipe .col.s-negotiating { border-top: 3px solid var(--brand-orange); }
.w-pipe .col.s-won { border-top: 3px solid #2ea043; }
.w-pipe .col.s-lost { border-top: 3px solid #b71c1c; }
.w-pipe .col .num { font-size: 24px; font-weight: 800; color: var(--brand-navy); line-height: 1; }
.w-pipe .col .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-soft); margin-top: 6px; display: block; }

/* Career mini */
.w-career { display: flex; align-items: center; gap: 18px; }
.w-career .badge-big {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-soft));
  color: #2a1a00;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 14px 30px -10px rgba(252, 174, 27, .55);
}
.w-career .info { flex-grow: 1; min-width: 0; }
.w-career .info .now { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: var(--text-soft); font-weight: 700; }
.w-career .info h3 { margin: 2px 0 6px; color: var(--brand-navy); font-size: 18px; }
.w-career .info .next { font-size: 12px; color: var(--text-soft); }
.w-career .info .next strong { color: var(--brand-navy); }
.w-career .progress {
  height: 8px;
  background: rgba(24, 55, 97, .08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.w-career .progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-soft));
  border-radius: 999px;
}

/* Competition mini leaderboard */
.w-lb { display: flex; flex-direction: column; gap: 8px; }
.w-lb .row {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}
.w-lb .row .rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(24, 55, 97, .08); color: var(--brand-navy); font-size: 12px; }
.w-lb .row.r1 .rank { background: linear-gradient(135deg, #FFD700, #FFA500); color: #5a3000; }
.w-lb .row.r2 .rank { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #303030; }
.w-lb .row.r3 .rank { background: linear-gradient(135deg, #CD7F32, #b87333); color: #fff; }
.w-lb .row .nm { font-weight: 700; color: var(--brand-navy); font-size: 13px; }
.w-lb .row .sc { font-weight: 800; color: var(--brand-navy); font-size: 14px; }
.w-lb .row.me { background: rgba(252, 174, 27, .12); border: 1px solid rgba(252, 174, 27, .3); }

/* Materials category chips */
.w-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-cats a {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(24, 55, 97, .08);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; color: var(--brand-navy);
  transition: all var(--transition);
}
.w-cats a:hover { background: var(--brand-navy); color: #fff; transform: translateY(-2px); }
.w-cats a:hover .ico { background: rgba(255, 255, 255, .15); color: #fff; }
.w-cats a .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(24, 55, 97, .08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-navy);
  transition: all var(--transition);
}
.w-cats a .name { font-size: 12px; font-weight: 700; line-height: 1.2; }
.w-cats a .cnt { font-size: 10px; color: var(--text-soft); }
.w-cats a:hover .cnt { color: rgba(255, 255, 255, .7); }

/* Quick links footer */
.quick-links {
  margin-top: 14px;
}
.quick-links h3 {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-soft); margin: 0 0 14px;
}
.quick-links .ql-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) {
  .quick-links .ql-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .quick-links .ql-grid { grid-template-columns: repeat(2, 1fr); }
}
.quick-links .ql {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-border);
  color: var(--brand-navy);
  font-weight: 700; font-size: 13px;
  transition: all var(--transition);
}
.quick-links .ql:hover { background: var(--brand-navy); color: #fff; transform: translateY(-2px); }
.quick-links .ql .ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(24, 55, 97, .08);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.quick-links .ql:hover .ico { background: rgba(255, 255, 255, .2); }

@media (max-width: 1100px) {
  .widget, .widget.w-4, .widget.w-8 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .w-pipe { grid-template-columns: repeat(3, 1fr); }
  .w-pipe .col:nth-child(n+4) { grid-column: span 1; }
  .w-cats { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { grid-template-columns: 1fr; }
}

/* === Dashboard tiles (legacy — still used in mobile/admin) === */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}
.tile {
  background: var(--glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  color: var(--brand-navy);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  min-height: 168px;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(252, 174, 27, .0), rgba(252, 174, 27, .12));
  opacity: 0;
  transition: opacity var(--transition);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -22px rgba(24, 55, 97, .55);
  border-color: rgba(252, 174, 27, .4);
}
.tile:hover::before { opacity: 1; }
.tile .tile-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(24, 55, 97, .55);
  transition: transform var(--transition);
  position: relative; z-index: 1;
}
.tile:hover .tile-icon {
  transform: scale(1.06);
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-orange));
}
.tile .tile-icon svg { width: 30px; height: 30px; }
.tile .tile-label {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .2px;
  position: relative; z-index: 1;
}

/* === Page header === */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -.5px;
}
.page-head h1 .accent { color: var(--brand-orange); }
.page-head .breadcrumb {
  font-size: 13px; color: var(--text-soft);
  display: flex; align-items: center; gap: 8px;
}
.page-head .breadcrumb a { color: var(--text-soft); }
.page-head .breadcrumb a:hover { color: var(--brand-orange); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  color: #fff;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(24, 55, 97, .6); color: #fff; }
.btn.btn-accent { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-soft)); color: #2a1a00; }
.btn.btn-accent:hover { box-shadow: 0 14px 28px -12px rgba(252, 174, 27, .6); color: #2a1a00; }
.btn.btn-ghost { background: rgba(24, 55, 97, .08); color: var(--brand-navy); }
.btn.btn-ghost:hover { background: var(--brand-navy); color: #fff; }
.btn.btn-danger { background: linear-gradient(135deg, #c2185b, #e53935); }
.btn.btn-sm { padding: 7px 14px; font-size: 12px; }

/* === Forms === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-soft);
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(24, 55, 97, .15);
  background: rgba(255, 255, 255, .7);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }

/* === Tables === */
.table-wrap {
  overflow-x: auto;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  padding: 8px;
}
table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
table.data th {
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--text-soft);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(24, 55, 97, .1);
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(24, 55, 97, .06);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(252, 174, 27, .06); }

.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.badge.b-active { background: rgba(46, 160, 67, .15); color: #1c6928; }
.badge.b-inactive { background: rgba(120, 130, 150, .15); color: #56627a; }
.badge.b-warning { background: rgba(252, 174, 27, .18); color: #8a5a00; }
.badge.b-info { background: rgba(24, 55, 97, .12); color: var(--brand-navy); }
.badge.b-danger { background: rgba(229, 57, 53, .15); color: #b71c1c; }

/* === Login === */
.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  padding: 40px 38px;
  background: var(--glass-strong);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}
.login-card .login-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.login-card .login-logo img { height: 70px; }
.login-card h1 { margin: 0 0 6px; text-align: center; color: var(--brand-navy); font-size: 22px; }
.login-card .subtitle { text-align: center; color: var(--text-soft); font-size: 13px; margin-bottom: 28px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; justify-content: center; }

/* === Footer === */
.app-footer {
  margin-top: auto;
  padding: 22px 4px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
}
.app-footer .sep { margin: 0 8px; opacity: .5; }

/* === Flash messages === */
.flash-stack { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.flash {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
}
.flash.success { background: rgba(46, 160, 67, .14); color: #145a23; border-color: rgba(46, 160, 67, .25); }
.flash.error { background: rgba(229, 57, 53, .12); color: #93140f; border-color: rgba(229, 57, 53, .25); }
.flash.info { background: rgba(24, 55, 97, .1); color: var(--brand-navy); }

/* === Stats === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card {
  padding: 22px 24px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}
.stat-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 6px;
}
.stat-card .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -.5px;
}
.stat-card .value .unit { font-size: 14px; font-weight: 500; color: var(--text-soft); margin-left: 4px; }
.stat-card .change { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

/* === Tabs === */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a {
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}
.tabs a.active { background: var(--brand-navy); color: #fff; }
.tabs a:hover { background: var(--brand-orange); color: #2a1a00; }

/* === Calendar === */
.calendar {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--glass-shadow);
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-head h3 { margin: 0; color: var(--brand-navy); font-size: 18px; }
.calendar-head .nav { display: flex; gap: 8px; }
.calendar-head .nav a { width: 36px; height: 36px; border-radius: 12px; background: rgba(24, 55, 97, .08); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-navy); font-weight: 700; }
.calendar-head .nav a:hover { background: var(--brand-navy); color: #fff; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-grid .dow { font-size: 11px; font-weight: 700; text-align: center; color: var(--text-soft); text-transform: uppercase; padding: 8px 0; letter-spacing: .8px; }
.calendar-grid .day {
  min-height: 90px;
  background: rgba(255, 255, 255, .6);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid transparent;
  position: relative;
  font-size: 13px;
}
.calendar-grid .day.empty { background: transparent; }
.calendar-grid .day.today { border-color: var(--brand-orange); background: rgba(252, 174, 27, .1); }
.calendar-grid .day .num { font-weight: 700; color: var(--brand-navy); }
.calendar-grid .day .ev { display: block; margin-top: 4px; padding: 4px 6px; background: var(--brand-navy); color: #fff; border-radius: 8px; font-size: 11px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-grid .day .ev:hover { background: var(--brand-orange); color: #2a1a00; }

/* === Career ladder === */
.ladder { display: flex; flex-direction: column; gap: 14px; }
.ladder-step {
  padding: 22px 24px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: center;
}
.ladder-step .step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
}
.ladder-step.current { border-color: var(--brand-orange); box-shadow: 0 18px 50px -20px rgba(252, 174, 27, .55); }
.ladder-step.current .step-num { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-soft)); color: #2a1a00; }
.ladder-step.achieved .step-num { background: linear-gradient(135deg, #2ea043, #4caf50); }
.ladder-step h3 { margin: 0 0 6px; color: var(--brand-navy); }
.ladder-step .meta { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.ladder-step .desc { font-size: 14px; color: var(--text); margin: 0; line-height: 1.5; }

/* === Material tiles === */
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.material-card {
  padding: 22px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.material-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -20px rgba(24, 55, 97, .45); }
.material-card .ext-chip {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-soft));
  color: #2a1a00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.material-card h4 { margin: 0; color: var(--brand-navy); font-size: 16px; line-height: 1.35; }
.material-card .desc { font-size: 13px; color: var(--text-soft); margin: 0; flex-grow: 1; }
.material-card .actions { display: flex; gap: 8px; }

/* === News === */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.news-card {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -20px rgba(24, 55, 97, .45); }
.news-card .img {
  height: 180px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  background-size: cover; background-position: center;
}
.news-card .body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.news-card .body .date { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.news-card .body h3 { margin: 0; color: var(--brand-navy); font-size: 17px; line-height: 1.3; }
.news-card .body p { margin: 0; font-size: 13px; color: var(--text-soft); flex-grow: 1; }
.news-card .body .read { color: var(--brand-orange); font-weight: 700; font-size: 13px; margin-top: 8px; }

/* === Leaderboard === */
.leaderboard {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  padding: 22px;
}
.lb-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 6px;
}
.lb-row:nth-child(odd) { background: rgba(24, 55, 97, .04); }
.lb-row .rank {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  background: rgba(24, 55, 97, .08);
  color: var(--brand-navy);
}
.lb-row.r1 .rank { background: linear-gradient(135deg, #FFD700, #FFA500); color: #5a3000; }
.lb-row.r2 .rank { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #303030; }
.lb-row.r3 .rank { background: linear-gradient(135deg, #CD7F32, #b87333); color: #fff; }
.lb-row .name { font-weight: 700; color: var(--brand-navy); }
.lb-row .name small { display: block; font-size: 11px; color: var(--text-soft); font-weight: 500; }
.lb-row .score { font-weight: 800; color: var(--brand-navy); font-size: 16px; }

/* === Pipeline kanban === */
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kanban .col {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 14px;
  min-height: 200px;
}
.kanban .col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-soft);
  font-weight: 800;
  display: flex; justify-content: space-between;
}
.kanban .col h4 .count { background: var(--brand-navy); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.kanban .lead {
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  border: 1px solid rgba(24, 55, 97, .08);
}
.kanban .lead strong { display: block; color: var(--brand-navy); }
.kanban .lead small { color: var(--text-soft); font-size: 11px; }

/* === Admin sidebar === */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.admin-side {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  padding: 18px;
  position: sticky; top: 24px;
}
.admin-side h4 {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--text-soft);
  font-weight: 800;
  padding: 0 10px;
}
.admin-side a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.active { background: var(--brand-navy); color: #fff; }

/* === Empty state === */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
}
.empty h3 { color: var(--brand-navy); margin-bottom: 6px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .kanban { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { padding: 14px 14px 40px; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .app-header { flex-wrap: wrap; padding: 12px 16px; }
  .app-header .user-block { gap: 10px; }
  .app-header .user-info .who { display: none; }
  .app-header .logout span { display: none; }
  .tile { padding: 20px 14px; min-height: 140px; }
  .tile .tile-icon { width: 52px; height: 52px; }
  .tile .tile-label { font-size: 13px; }
  .stats-grid { grid-template-columns: 1fr; }
  .calendar-grid .day { min-height: 60px; font-size: 11px; }
  .ladder-step { grid-template-columns: 60px 1fr; gap: 14px; }
  .page-head h1 { font-size: 22px; }
}
@media (max-width: 460px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .app-header .logo .tagline { display: none; }
  .app-header .logo img { height: 38px; }
}

/* === Global entrance animation === */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero, .widget, .stat-card, .tile, .glass, .glass-sm,
.material-card, .news-card, .ladder-step, .calendar, .leaderboard,
.table-wrap, .login-card, .login-hero {
  animation: rise 480ms cubic-bezier(.2, .8, .25, 1) both;
}
.section-grid > .widget:nth-child(2) { animation-delay: 60ms; }
.section-grid > .widget:nth-child(3) { animation-delay: 120ms; }
.section-grid > .widget:nth-child(4) { animation-delay: 180ms; }
.section-grid > .widget:nth-child(5) { animation-delay: 240ms; }
.section-grid > .widget:nth-child(6) { animation-delay: 300ms; }
.section-grid > .widget:nth-child(7) { animation-delay: 360ms; }
.dashboard-grid > .tile:nth-child(2) { animation-delay: 40ms; }
.dashboard-grid > .tile:nth-child(3) { animation-delay: 80ms; }
.dashboard-grid > .tile:nth-child(4) { animation-delay: 120ms; }
.dashboard-grid > .tile:nth-child(5) { animation-delay: 160ms; }
.dashboard-grid > .tile:nth-child(6) { animation-delay: 200ms; }
@media (prefers-reduced-motion: reduce) {
  .hero, .widget, .stat-card, .tile, .glass, .glass-sm,
  .material-card, .news-card, .ladder-step, .calendar, .leaderboard,
  .table-wrap, .login-card, .login-hero { animation: none; }
}

/* === News card image fallback === */
.news-card .img.placeholder {
  position: relative;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(252, 174, 27, .35) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(77, 123, 191, .35) 0%, transparent 50%),
    linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  display: flex; align-items: center; justify-content: center;
}
.news-card .img.placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero-pattern.svg');
  background-size: cover;
  background-position: center;
  opacity: .35;
  mix-blend-mode: screen;
}
.news-card .img.placeholder .initial {
  position: relative;
  z-index: 1;
  width: 72px; height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

/* === Login two-pane === */
.login-shell.two-pane {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.login-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 50px 56px;
  min-height: 100vh;
  isolation: isolate;
}
.login-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/img/hero-pattern.svg');
  background-size: cover; background-position: center;
  z-index: -2;
}
.login-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15, 37, 69, .92) 0%, rgba(24, 55, 97, .65) 60%, rgba(24, 55, 97, .2) 100%);
  z-index: -1;
}
.login-hero .brand { display: flex; align-items: center; gap: 14px; }
.login-hero .brand img { height: 56px; filter: brightness(0) invert(1); }
.login-hero .brand-text { font-size: 13px; color: rgba(255, 255, 255, .8); letter-spacing: .4px; font-weight: 500; }
.login-hero .pitch { max-width: 460px; }
.login-hero .pitch .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.login-hero .pitch h2 { margin: 0 0 14px; font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.login-hero .pitch h2 .accent {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-orange-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-hero .pitch p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.login-hero .perks { display: grid; gap: 10px; margin-top: 22px; }
.login-hero .perks .perk { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .92); font-weight: 500; }
.login-hero .perks .perk .ck {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(252, 174, 27, .25); color: var(--brand-orange);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.login-hero .small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.login-form-pane {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px;
  min-height: 100vh;
}
.login-shell.two-pane .login-card {
  box-shadow: 0 30px 70px -30px rgba(24, 55, 97, .35);
  width: min(440px, 100%);
}
@media (max-width: 900px) {
  .login-shell.two-pane { grid-template-columns: 1fr; }
  .login-hero { min-height: 320px; padding: 36px 28px; }
  .login-form-pane { min-height: auto; padding: 30px 20px 50px; }
}

/* === Business chart polish === */
.chart-card { padding: 26px 28px; }
.chart-card .chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.chart-card .chart-head h3 { margin: 0; color: var(--brand-navy); font-size: 16px; font-weight: 800; }
.chart-card .chart-head .sub { font-size: 12px; color: var(--text-soft); }
.chart {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: stretch;
  height: 220px;
}
.chart .y-axis {
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 10px; color: var(--text-soft); font-weight: 600;
  text-align: right;
  padding-bottom: 22px;
}
.chart .plot {
  position: relative;
  padding-bottom: 22px;
  background-image: linear-gradient(to top, rgba(24, 55, 97, .06) 1px, transparent 1px);
  background-size: 100% 25%;
  background-position: 0 calc(100% - 22px);
}
.chart .plot .bars { position: relative; display: flex; gap: 10px; align-items: flex-end; height: 100%; }
.chart .plot .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: absolute; bottom: 22px; left: 0; right: 0; }
.chart .plot .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.chart .plot .bar {
  width: 70%;
  max-width: 56px;
  background: linear-gradient(180deg, var(--brand-orange), var(--brand-orange-soft));
  border-radius: 10px 10px 4px 4px;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: 0 -6px 14px -8px rgba(252, 174, 27, .55);
}
.chart .plot .bar:hover { background: linear-gradient(180deg, var(--brand-navy), var(--brand-navy-2)); box-shadow: 0 -6px 14px -8px rgba(24, 55, 97, .65); }
.chart .plot .bar .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--brand-navy);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.chart .plot .bar .tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--brand-navy);
}
.chart .plot .bar:hover .tooltip { opacity: 1; }
.chart .x-label { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 10px; }
.chart .x-label span { flex: 1; text-align: center; font-size: 10px; color: var(--text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }

/* === Kanban refinement === */
.kanban .col { background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-border); }
.kanban .col.s-new       { border-top: 3px solid #6c5ce7; }
.kanban .col.s-contacted { border-top: 3px solid #0d9488; }
.kanban .col.s-negotiating { border-top: 3px solid var(--brand-orange); }
.kanban .col.s-won       { border-top: 3px solid #2ea043; }
.kanban .col.s-lost      { border-top: 3px solid #b71c1c; }
.kanban .lead { display: flex; gap: 10px; align-items: flex-start; padding: 12px; transition: transform var(--transition), box-shadow var(--transition); }
.kanban .lead:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(24, 55, 97, .35); }
.kanban .lead .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  flex-shrink: 0;
}
.kanban .lead .body { min-width: 0; flex-grow: 1; }
.kanban .lead .body strong { font-size: 13px; }

/* === Material categories — color variants === */
.material-card .cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 6px;
  box-shadow: 0 10px 20px -10px rgba(24, 55, 97, .55);
}
.material-card[data-cat="1"] .cat-icon { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.material-card[data-cat="2"] .cat-icon { background: linear-gradient(135deg, #6c5ce7, #8e7bff); }
.material-card[data-cat="3"] .cat-icon { background: linear-gradient(135deg, #d63384, #ee598b); }
.material-card[data-cat="4"] .cat-icon { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-soft)); color: #2a1a00; }
.material-card[data-cat="5"] .cat-icon { background: linear-gradient(135deg, #2ea043, #4caf50); }
.material-card[data-cat="6"] .cat-icon { background: linear-gradient(135deg, #2563eb, #3b82f6); }

/* === Events: side list === */
.events-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1024px) { .events-layout { grid-template-columns: 1fr; } }
.events-upcoming { display: flex; flex-direction: column; gap: 12px; }
.events-upcoming .ev-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.events-upcoming .ev-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgba(24, 55, 97, .4); }
.events-upcoming .ev-card .date-chip {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(252, 174, 27, .2), rgba(252, 174, 27, .08));
  border: 1px solid rgba(252, 174, 27, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--brand-navy);
}
.events-upcoming .ev-card .date-chip .d { font-size: 22px; font-weight: 800; line-height: 1; }
.events-upcoming .ev-card .date-chip .m { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #8a5a00; }
.events-upcoming .ev-card .info h4 { margin: 0 0 4px; color: var(--brand-navy); font-size: 14px; font-weight: 700; }
.events-upcoming .ev-card .info .meta { font-size: 12px; color: var(--text-soft); }
