/* admin.css, STYLE */
@import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/Vazirmatn-font-face.css');


:root {
  --paper: #f4fafb;
  --paper-2: #eaf5f6;
  --surface: rgba(255, 255, 255, .58);
  --surface-strong: rgba(255, 255, 255, .78);
  --surface-soft: rgba(255, 255, 255, .38);

  --ink: #071a1e;
  --ink-soft: #3d5960;
  --ink-mute: #83999e;

  --aqua: #00b3c4;
  --aqua-deep: #017986;
  --aqua-bright: #00d8e8;
  --violet: #7c5cff;
  --violet-soft: #a58bff;

  --line: rgba(1, 46, 51, .12);
  --line-soft: rgba(1, 46, 51, .07);

  --ok: #12b981;
  --warn: #e6a020;
  --bad: #e5484d;

  --ease: cubic-bezier(.22, .9, .3, 1);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-card: 0 20px 48px -28px rgba(1, 46, 51, .22);
  --shadow-glow: 0 0 0 1px rgba(0, 179, 196, .10), 0 18px 46px -22px rgba(0, 179, 196, .35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

::selection {
  background: var(--aqua);
  color: #fff;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--paper);
}

.aurora canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: .55;
}

.aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: blobDrift 22s ease-in-out infinite;
}

.aurora .blob--1 {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle, rgba(0, 216, 232, .32), transparent 70%);
}

.aurora .blob--2 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(124, 92, 255, .18), transparent 70%);
  animation-delay: 4s;
  animation-duration: 26s;
}

.aurora .blob--3 {
  width: 380px;
  height: 380px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle, rgba(0, 179, 196, .14), transparent 72%);
  animation-delay: 9s;
  animation-duration: 30s;
}

@keyframes blobDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -24px) scale(1.06);
  }
}

.aurora .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1, 46, 51, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 46, 51, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 78%);
}

@media (prefers-reduced-motion: reduce) {
  .aurora .blob {
    animation: none;
  }

  .aurora canvas {
    display: none;
  }
}

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding: 26px 34px 70px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .content {
    padding: 20px 18px 90px;
  }
}

.sidebar {
  width: 272px;
  flex-shrink: 0;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-left: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

.sidebar-brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(0, 179, 196, .55);
  flex-shrink: 0;
}

.sidebar-brand .txt .name {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -.01em;
}

.sidebar-brand .txt .name span {
  color: var(--aqua-deep);
}

.sidebar-brand .txt .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 2px;
  letter-spacing: .02em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-nav .nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-mute);
  padding: 0 12px;
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.side-nav button.nav-item,
.side-nav a.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}

.side-nav .nav-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  flex-shrink: 0;
  transition: .25s var(--ease);
}

.side-nav button.nav-item:hover,
.side-nav a.nav-item:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.side-nav button.nav-item.active,
.side-nav a.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 179, 196, .14), rgba(124, 92, 255, .08));
  color: var(--aqua-deep);
  box-shadow: inset 0 0 0 1px rgba(0, 179, 196, .25);
}

.side-nav .nav-item.active .ic {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(0, 179, 196, .6);
}

.side-nav button.nav-item.active::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--aqua);
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-foot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 185, 129, .18);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 200;
    width: min(300px, 82vw);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .25);
  }

  html[dir="rtl"] .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(2, 20, 24, .28);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }

  .sidebar-scrim.show {
    opacity: 1;
    pointer-events: auto;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 34px;
  background: rgba(244, 250, 251, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 18px;
  }
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: .25s var(--ease);
}

.avatar-btn:hover {
  border-color: var(--aqua);
  box-shadow: var(--shadow-glow);
}

.avatar-btn .pic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.avatar-btn .info {
  text-align: right;
  line-height: 1.35;
}

.avatar-btn .info .n {
  font-size: 12.5px;
  font-weight: 700;
}

.avatar-btn .info .r {
  font-size: 10px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
}

.avatar-btn .chev {
  width: 14px;
  height: 14px;
  color: var(--ink-mute);
  transition: transform .3s var(--ease);
}

.avatar-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

@media (max-width: 560px) {
  .avatar-btn .info {
    display: none;
  }

  .avatar-btn {
    padding: 6px;
  }
}

.avatar-wrap {
  position: relative;
}

.avatar-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: 220px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top left;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 90;
}

.avatar-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.avatar-menu a,
.avatar-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: .2s;
}

.avatar-menu a:hover,
.avatar-menu button:hover {
  background: var(--paper-2);
  color: var(--aqua-deep);
}

.avatar-menu .sep {
  height: 1px;
  background: var(--line-soft);
  margin: 6px 4px;
}

.avatar-menu .danger:hover {
  color: var(--bad);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-head {
  margin: 6px 0 30px;
}

.page-head .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--aqua-deep);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.page-head .kicker::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--aqua);
}

.page-head h1 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.page-head p {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 560px;
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.glass-card:hover {
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card .row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.stat-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  background: linear-gradient(135deg, rgba(0, 179, 196, .16), rgba(124, 92, 255, .10));
  border: 1px solid var(--line);
}

.stat-card .trend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ok);
  background: rgba(18, 185, 129, .10);
}

.stat-card .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.stat-card .num span {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 4px;
}

.stat-card .lbl {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.stat-card .glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(50px);
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(0, 179, 196, .22), transparent 70%);
  pointer-events: none;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 19px;
  font-weight: 800;
}

.section-title .see-all {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--aqua-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 46px;
}

@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.proj-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proj-card:hover {
  transform: translateY(-4px);
}

.proj-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.proj-card .name {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.proj-card .type {
  font-size: 12.5px;
  color: var(--ink-mute);
}

.status-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-chip.active {
  color: var(--aqua-deep);
  background: rgba(0, 179, 196, .12);
}

.status-chip.review {
  color: var(--warn);
  background: rgba(230, 160, 32, .14);
}

.status-chip.done {
  color: var(--ok);
  background: rgba(18, 185, 129, .12);
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-ring {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 5;
}

.progress-ring .track {
  stroke: var(--line);
}

.progress-ring .bar {
  stroke: url(#ringGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease);
}

.progress-ring .pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--aqua-deep);
}

.progress-bar-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--aqua-bright));
  box-shadow: 0 0 12px rgba(0, 179, 196, .55);
  width: 0%;
  transition: width 1.1s var(--ease);
  position: relative;
}

.proj-card .meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
}

.timeline-card {
  padding: 26px 26px 10px;
}

.timeline {
  position: relative;
  padding-right: 6px;
}

.tl-item {
  display: flex;
  gap: 16px;
  padding-bottom: 26px;
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  top: 22px;
  right: 9px;
  bottom: 0;
  width: 1.5px;
  background: var(--line);
}

.tl-item:last-child::before {
  display: none;
}

.tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.tl-dot::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.tl-dot.g {
  color: var(--ok);
  box-shadow: 0 0 0 5px rgba(18, 185, 129, .12);
}

.tl-dot.b {
  color: var(--aqua-deep);
  box-shadow: 0 0 0 5px rgba(0, 179, 196, .12);
}

.tl-dot.p {
  color: var(--violet);
  box-shadow: 0 0 0 5px rgba(124, 92, 255, .12);
}

.tl-body {
  padding-top: 1px;
}

.tl-body .txt {
  font-size: 13.8px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.tl-body .time {
  font-size: 11.5px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 14px;
  transition: .3s var(--ease);
}

.btn-solid {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 179, 196, .55);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(0, 179, 196, .65);
}

.btn-glass {
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--aqua-deep);
  border: 1.5px solid rgba(0, 179, 196, .45);
  box-shadow: 0 0 0 0 rgba(0, 179, 196, .0);
}

.btn-glass:hover {
  border-color: var(--aqua);
  box-shadow: 0 0 0 6px rgba(0, 179, 196, .10), 0 20px 40px -20px rgba(0, 179, 196, .5);
  transform: translateY(-2px);
  color: var(--aqua-deep);
}

.btn-ghost {
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  background: var(--surface-soft);
}

.btn-ghost:hover {
  border-color: var(--aqua);
  color: var(--aqua-deep);
}

.support-hero {
  padding: 54px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 46px;
  position: relative;
  overflow: hidden;
}

.support-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 220px;
  background: radial-gradient(ellipse, rgba(0, 179, 196, .22), transparent 70%);
  pointer-events: none;
}

.support-hero .ic-badge {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(0, 179, 196, .18), rgba(124, 92, 255, .12));
  border: 1px solid var(--line);
}

.support-hero h2 {
  font-size: 21px;
  font-weight: 800;
  max-width: 480px;
}

.support-hero p {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 460px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: 46px 0;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.acc-item .q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 700;
  text-align: right;
}

.acc-item .q .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
  color: var(--ink-soft);
}

.acc-item.open .q .plus {
  transform: rotate(45deg);
  background: var(--aqua);
  color: #fff;
}

.acc-item .a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}

.acc-item.open .a {
  max-height: 200px;
}

.acc-item .a-inner {
  padding: 0 22px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.table-card {
  padding: 10px;
  overflow: hidden;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
}

.table-modern th {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.table-modern td {
  padding: 18px 20px;
  font-size: 13.8px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

.table-modern tr:last-child td {
  border-bottom: none;
}

.table-modern tbody tr {
  transition: background-color .25s var(--ease);
}

.table-modern tbody tr:hover {
  background: var(--paper-2);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-status.success {
  color: var(--ok);
  background: rgba(18, 185, 129, .12);
}

.badge-status.pending {
  color: var(--warn);
  background: rgba(230, 160, 32, .14);
}

.badge-status.failed {
  color: var(--bad);
  background: rgba(229, 72, 77, .12);
}

.amount-cell {
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 760px) {
  .table-modern thead {
    display: none;
  }

  .table-modern,
  .table-modern tbody,
  .table-modern tr,
  .table-modern td {
    display: block;
    width: 100%;
  }

  .table-card {
    padding: 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .table-modern tbody tr {
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 6px 6px;
  }

  .table-modern td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--line-soft);
    padding: 13px 16px;
  }

  .table-modern td:last-child {
    border-bottom: none;
  }

  .table-modern td::before {
    content: attr(data-label);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-mute);
    font-weight: 600;
  }
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewFade .5s var(--ease);
}

@keyframes viewFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .view.active {
    animation: none;
  }
}

.empty-hint {
  padding: 40px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13.5px;
}

.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--aqua-deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  right: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2.5px solid var(--aqua);
  outline-offset: 2px;
}

.role-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-soft));
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(124, 92, 255, .55);
}

.sidebar-brand .txt .name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 380px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.topbar-search:focus-within {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(0, 179, 196, .10);
}

.topbar-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
}

.topbar-search input::placeholder {
  color: var(--ink-mute);
}

@media (max-width: 860px) {
  .topbar-search {
    display: none;
  }
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: .25s var(--ease);
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--aqua);
  color: var(--aqua-deep);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 2px var(--paper);
}

.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 240px;
  flex: 1;
  max-width: 340px;
}

.toolbar-search svg {
  width: 16px;
  height: 16px;
  color: var(--ink-mute);
  flex-shrink: 0;
}

.toolbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  color: var(--ink);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.filter-tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: .25s var(--ease);
  white-space: nowrap;
}

.filter-tabs button:hover {
  color: var(--aqua-deep);
}

.filter-tabs button.active {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(0, 179, 196, .55);
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

@media (max-width: 760px) {
  .mini-stat-row {
    grid-template-columns: 1fr;
  }
}

.mini-stat {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-stat .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.mini-stat .num {
  font-size: 19px;
  font-weight: 800;
}

.mini-stat .lbl {
  font-size: 11.5px;
  color: var(--ink-mute);
  font-weight: 600;
}

.cell-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cell-person .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cell-person .meta .nm {
  font-size: 13.8px;
  font-weight: 700;
}

.cell-person .meta .em {
  font-size: 11.5px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.row-actions button {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  transition: .2s var(--ease);
}

.row-actions button svg {
  width: 14px;
  height: 14px;
}

.row-actions button:hover {
  color: var(--aqua-deep);
  border-color: var(--aqua);
}

@media (max-width: 760px) {
  .row-actions {
    justify-content: flex-start;
  }
}

.priority-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.priority-tag.urgent {
  color: var(--bad);
  background: rgba(229, 72, 77, .12);
}

.priority-tag.medium {
  color: var(--warn);
  background: rgba(230, 160, 32, .14);
}

.priority-tag.low {
  color: var(--aqua-deep);
  background: rgba(0, 179, 196, .12);
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-card {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ticket-card .t-main {
  flex: 1;
  min-width: 220px;
}

.ticket-card .t-subject {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ticket-card .t-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.ticket-card .t-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-mute);
}

.ticket-card .t-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reply-btn {
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--aqua-deep);
  border: 1.5px solid rgba(0, 179, 196, .4);
  background: rgba(0, 179, 196, .06);
  transition: .25s var(--ease);
  white-space: nowrap;
}

.reply-btn:hover {
  border-color: var(--aqua);
  background: rgba(0, 179, 196, .12);
}

.chart-card {
  padding: 26px 26px 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 160px;
  padding: 0 4px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  justify-content: flex-end;
}

.chart-col .bar {
  width: 100%;
  max-width: 34px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--aqua-bright), var(--aqua-deep));
  box-shadow: 0 8px 18px -10px rgba(0, 179, 196, .5);
  height: 0%;
  transition: height 1s var(--ease);
}

.chart-col .m-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-mute);
}

.urgent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.urgent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}

.urgent-row .flag {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(229, 72, 77, .12);
  color: var(--bad);
}

.urgent-row .txt {
  flex: 1;
}

.urgent-row .txt .t {
  font-size: 13px;
  font-weight: 700;
}

.urgent-row .txt .s {
  font-size: 11px;
  color: var(--ink-mute);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  padding: 24px;
}

.team-card .t-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.team-card .t-av {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-card .t-name {
  font-size: 15px;
  font-weight: 800;
}

.team-card .t-role {
  font-size: 11.5px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
}

.team-card .t-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.team-card .t-stats div {
  text-align: center;
}

.team-card .t-stats .n {
  font-size: 17px;
  font-weight: 800;
}

.team-card .t-stats .l {
  font-size: 10.5px;
  color: var(--ink-mute);
}

.workload-track {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  margin-bottom: 8px;
}

.workload-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua), var(--violet-soft));
  width: 0%;
  transition: width 1.1s var(--ease);
}

.team-card .w-lbl {
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 980px) {
  .overview-cols {
    grid-template-columns: 1fr !important;
  }
}

.project-edit-btn {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line-soft);
  border-radius: 10px;

  background: var(--paper-2);
  color: var(--ink-mute);

  cursor: pointer;

  font-size: 16px;
  line-height: 1;

  transition:
    color .25s ease,
    background .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.project-edit-btn:hover {
  color: var(--aqua-deep);
  background: rgba(0, 179, 196, .12);
  border-color: rgba(0, 179, 196, .35);
  transform: translateY(-2px);
}

.proj-card {
  position: relative;
}


.project-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  direction: rtl;
}

.project-modal.open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(4, 12, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal-box {
  position: relative;
  z-index: 2;

  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;

  padding: 28px;

  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 22px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(0, 179, 196, 0.08);

  animation: projectModalIn .25s ease;
}

@keyframes projectModalIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 24px;
}

.project-modal-header h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.project-modal-close {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line-soft);
  border-radius: 10px;

  background: var(--paper-2);
  color: var(--ink-mute);

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.project-modal-close:hover {
  color: var(--aqua-deep);
  background: rgba(0, 179, 196, .1);
  border-color: rgba(0, 179, 196, .35);
}

.project-modal .form-group {
  margin-bottom: 20px;
}

.project-modal .form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 13px;
  font-weight: 700;

  color: var(--ink);
}

.project-modal .form-group input,
.project-modal .form-group textarea,
.project-modal .form-group select {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;

  border: 1px solid var(--line-soft);
  border-radius: 11px;

  background: var(--paper-2);
  color: var(--ink);

  font-family: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.project-modal .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.project-modal .form-group input:focus,
.project-modal .form-group textarea:focus,
.project-modal .form-group select:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(0, 179, 196, .1);
}

.project-modal .form-group input[type="range"] {
  width: 100%;
  accent-color: var(--aqua);
  cursor: pointer;
}

#edit-progress-value {
  color: var(--aqua-deep);
  font-family: 'JetBrains Mono', monospace;
}

.project-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 10px;

  margin-top: 28px;
}

.project-modal-actions .btn {
  min-width: 120px;
}

@media (max-width: 600px) {

  .project-modal {
    padding: 12px;
  }

  .project-modal-box {
    padding: 22px;
    border-radius: 18px;
  }

  .project-modal-header h2 {
    font-size: 19px;
  }

  .project-modal-actions {
    flex-direction: column;
  }

  .project-modal-actions .btn {
    width: 100%;
  }
}

.project-card-actions {
  position: absolute;
  top: 60px;
  left: 16px;
  display: flex;
  gap: 14px;
  z-index: 2;
}

.project-edit-btn,
.project-delete-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.project-edit-btn:hover {
  color: var(--aqua-deep);
  background: rgba(0, 179, 196, .12);
  border-color: rgba(0, 179, 196, .35);
  transform: translateY(-2px);
}

.project-delete-btn:hover {
  color: var(--bad);
  background: rgba(229, 72, 77, .12);
  border-color: rgba(229, 72, 77, .35);
  transform: translateY(-2px);
}

@property --chat-ring-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes chatRingSpin {
  to {
    --chat-ring-angle: 360deg;
  }
}

@keyframes chatPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(18, 185, 129, .45);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(18, 185, 129, 0);
  }
}

.chat-modal-box {
  position: relative;
  width: min(780px, 96vw);
  padding: 2px;
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 26px;
  background: var(--paper);
  box-shadow:
    0 34px 100px rgba(1, 46, 51, .32),
    0 0 0 1px rgba(1, 46, 51, .04);
}

.chat-modal-box::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--chat-ring-angle),
      var(--aqua) 0%,
      var(--violet-soft) 28%,
      var(--aqua-bright) 55%,
      var(--aqua-deep) 78%,
      var(--aqua) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .8;
  animation: chatRingSpin 9s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.chat-modal-box>* {
  position: relative;
  z-index: 4;
}

.chat-modal-box>.chat-modal-header {
  border-radius: 24px 24px 0 0;
}

.chat-modal-box>.chat-composer {
  border-radius: 0 0 24px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .chat-modal-box::before {
    animation: none;
  }
}

.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background:
    radial-gradient(ellipse 70% 130% at 100% 0%, rgba(124, 92, 255, .10), transparent 60%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.chat-modal-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(0, 179, 196, .55), 0 0 0 4px rgba(0, 179, 196, .10);
}

.chat-avatar-online {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok);
  border: 2.5px solid var(--paper);
  animation: chatPulse 2.4s ease-out infinite;
}

.chat-modal-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--aqua-deep);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: .04em;
  margin-bottom: 5px;
}

.chat-modal-kicker::before {
  content: '';
  width: 14px;
  height: 1.5px;
  background: var(--aqua);
}

.chat-modal-header-left h2 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 0;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-modal-sub {
  font-size: 12px;
  color: var(--ink-mute);
}

.chat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.chat-status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chat-status-pill.open {
  color: var(--aqua-deep);
  background: rgba(0, 179, 196, .12);
}

.chat-status-pill.in_progress {
  color: var(--warn);
  background: rgba(230, 160, 32, .14);
}

.chat-status-pill.closed {
  color: var(--ink-mute);
  background: rgba(1, 46, 51, .08);
}

.chat-modal-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-status-select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.chat-status-select:hover,
.chat-status-select:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(0, 179, 196, .10);
  outline: none;
}

.chat-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  color: var(--ink-mute);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .25s var(--ease);
  flex-shrink: 0;
}

.chat-modal-close:hover {
  color: var(--bad);
  background: rgba(229, 72, 77, .10);
  border-color: rgba(229, 72, 77, .3);
  transform: rotate(90deg);
}

.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(0, 179, 196, .06), transparent 70%),
    linear-gradient(rgba(1, 46, 51, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 46, 51, .025) 1px, transparent 1px),
    var(--paper-2);
  background-size: auto, 32px 32px, 32px 32px, auto;
  scroll-behavior: smooth;
}

.chat-thread::-webkit-scrollbar {
  width: 7px;
}

.chat-thread::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--aqua), var(--violet-soft));
  border-radius: 999px;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 24px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .03em;
}

.chat-date-divider::before,
.chat-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 76%;
  margin-bottom: 20px;
  animation: chatMsgIn .35s var(--ease);
}

@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.msg-row.row-self {
  align-self: flex-end;
}

.msg-row.row-other {
  align-self: flex-start;
}

.msg-row .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(1, 46, 51, .4);
}

.row-other .avatar {
  background: linear-gradient(135deg, var(--ink-mute), var(--ink-soft));
}

.row-self .avatar {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
}

.bubble-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.row-self .bubble-col {
  align-items: flex-end;
}

.row-other .bubble-col {
  align-items: flex-start;
}

.sender-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--aqua-deep);
  padding: 0 4px;
}

.bubble {
  padding: 13px 18px;
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
  white-space: pre-wrap;
  max-width: 100%;
  position: relative;
}

.row-other .bubble {
  background: var(--surface-strong);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.row-self .bubble {
  background: linear-gradient(160deg, var(--aqua-bright) -10%, var(--aqua) 40%, var(--aqua-deep) 120%);
  border-radius: 18px 4px 18px 18px;
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 179, 196, .6);
  overflow: hidden;
}

.row-self .bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 55%);
  pointer-events: none;
}

.msg-time {
  font-size: 10.5px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  padding: 0 4px;
}


.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.chat-empty .ic-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(0, 179, 196, .16), rgba(124, 92, 255, .10));
  border: 1px solid var(--line);
}

.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-shrink: 0;
}

.chat-composer textarea {
  flex: 1;
  resize: none;
  max-height: 130px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.chat-composer textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(0, 179, 196, .10);
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(0, 179, 196, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.chat-send-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 16px 32px -10px rgba(0, 179, 196, .65);
}

.chat-send-btn:active {
  transform: translateY(0) scale(.96);
}

.chat-send-btn svg {
  transform: scaleX(-1);
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.pagination .page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  cursor: pointer;
  font-size: 12.5px;
}

.pagination .page-btn.active {
  background: var(--aqua);
  color: #fff;
  border-color: var(--aqua);
}

.pagination .page-btn:disabled {
  opacity: .4;
  cursor: default;
}

@media (max-width: 640px) {
  .chat-modal-box {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .chat-modal-header {
    padding: 18px 18px;
  }

  .chat-modal-header-left h2 {
    max-width: 150px;
    font-size: 15px;
  }

  .chat-thread {
    padding: 20px 16px;
  }

  .chat-composer {
    padding: 14px 16px;
  }

  .msg-row {
    max-width: 92%;
  }
}

.team-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.team-card .team-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.team-card .team-name {
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 3px;
}

.team-card .team-role {
  font-size: 12px;
  color: var(--aqua-deep);
  font-weight: 600;
  margin-bottom: 2px;
}

.team-card .team-username {
  font-size: 11.5px;
  color: var(--ink-mute);
}

.team-edit-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px;
  opacity: .8;
}

.team-edit-btn:hover {
  opacity: 1;
}

.client-edit-btn,
.invoice-edit-btn,
.invoice-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px;
  opacity: .8;
}

.client-edit-btn:hover,
.invoice-edit-btn:hover,
.invoice-delete-btn:hover {
  opacity: 1;
}

.empty-row {
  padding: 30px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13.5px;
}

.search-input {
  max-width: 320px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.search-input::placeholder {
  color: var(--ink-mute);
}

.search-input:hover {
  border-color: rgba(0, 179, 196, .35);
}

.search-input:focus {
  outline: none;
  border-color: var(--aqua);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px rgba(0, 179, 196, .10);
}

.section-manage-btn {
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--aqua-deep);
}

.urgent-row {
  position: relative;
  padding-left: 78px;
}

.urgent-row .urgent-actions {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
}

.urgent-row .urgent-actions button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.manage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}

.manage-row-input,
.manage-row-title,
.manage-row-subtitle {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
}

.manage-row-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.manage-row button {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manage-row-meta {
  font-size: 10.5px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  white-space: nowrap;
}

.article-review-box {
  max-width: 720px;
}

.ar-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

.ar-content {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 2;
  font-size: 15px;
  margin-bottom: 16px;
}

.ar-content img {
  max-width: 100%;
  border-radius: 10px;
}

.article-review-box {
  max-width: 720px;
}

.ar-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-mute, #9aa5b1);
  margin-bottom: 12px;
}

.ar-content {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line, #22303f);
  border-radius: 12px;
  line-height: 2;
  font-size: 15px;
  margin-bottom: 16px;
}

.ar-content img {
  max-width: 100%;
  border-radius: 10px;
}

.article-review-box {
  max-width: none;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-review-box .ar-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

#ar-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px 4px 20px;
  font-size: 19px;
  line-height: 2.1;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.ar-featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 24px;
  display: block;
}

/* Reuse the same rich-content rules from editor.css so tables/links/hr/code
   render identically to how the author saw them while writing */
#ar-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 22px 0 10px;
}

#ar-content h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 18px 0 8px;
}

#ar-content p {
  margin: 0 0 14px;
}

#ar-content blockquote {
  border-inline-start: 3px solid var(--aqua);
  padding: 8px 16px;
  color: var(--ink-soft);
  margin: 14px 0;
}

#ar-content pre {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Estedad', monospace;
  font-size: 13px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

#ar-content ul,
#ar-content ol {
  padding-inline-start: 26px;
  margin: 10px 0;
  list-style-position: inside;
}

#ar-content ul {
  list-style-type: disc;
}

#ar-content ol {
  list-style-type: decimal;
}

#ar-content a {
  color: var(--aqua-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#ar-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
  display: block;
}

#ar-content mark {
  border-radius: 3px;
  padding: 1px 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#ar-content hr {
  border: none;
  height: 3px;
  margin: 26px 0;
  border-radius: 999px;
  background: var(--line);
}

#ar-content hr.hr--thin {
  height: 1px;
}

#ar-content hr.hr--thick {
  height: 6px;
}

#ar-content hr.hr--dashed {
  height: 0;
  border-top: 2px dashed var(--line);
  background: none;
}

#ar-content hr.hr--dotted {
  height: 0;
  border-top: 3px dotted var(--line);
  background: none;
}

#ar-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14.5px;
}

#ar-content table th,
#ar-content table td {
  padding: 10px 14px;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
  min-width: 60px;
}

#ar-content table th:last-child,
#ar-content table td:last-child {
  border-inline-end: none;
}

#ar-content table tr:last-child td {
  border-bottom: none;
}

#ar-content table th {
  background: var(--surface-soft);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}

#ar-content table tr:nth-child(even) td {
  background: rgba(0, 0, 0, .015);
}

.editor-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}