/* Haminext Customer Panel */

.hx-panel-body,
.hx-panel-auth {
  margin: 0;
  min-height: 100vh;
  background: var(--hx-slate-50, #f8fafc);
  font-family: 'IRANYekanXVF', sans-serif;
  overflow-x: hidden;
}

/* ── Auth ── */
.hx-auth {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 42%, #ecfdf5 100%);
  overflow: hidden;
}

.hx-auth__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hx-auth__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: hx-auth-float 8s ease-in-out infinite;
}

.hx-auth__orb--1 {
  width: 280px;
  height: 280px;
  background: #93c5fd;
  top: -80px;
  right: -60px;
}

.hx-auth__orb--2 {
  width: 220px;
  height: 220px;
  background: #6ee7b7;
  bottom: -40px;
  left: -50px;
  animation-delay: -3s;
}

.hx-auth__orb--3 {
  width: 160px;
  height: 160px;
  background: #c4b5fd;
  top: 40%;
  left: 55%;
  animation-delay: -5s;
}

@keyframes hx-auth-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.05); }
}

.hx-auth__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.75rem;
  padding: 36px 28px 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 48px rgba(37, 99, 235, 0.1),
    0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hx-auth__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.hx-auth__logo img {
  display: block;
  max-width: 140px;
  height: auto;
  margin: 0 auto;
}

.hx-auth__header {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
  padding: 2.25rem 0.5rem 0;
}

.hx-auth__back {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hx-slate-500, #64748b);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.hx-auth__back svg {
  width: 1rem;
  height: 1rem;
}

.hx-auth__back:hover {
  color: var(--hx-brand-600, #1f359b);
  background: var(--hx-slate-50, #f8fafc);
}

.hx-auth__title {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--hx-slate-900, #0f172a);
  margin: 14px 0 6px;
}

.hx-auth__subtitle {
  color: var(--hx-slate-500, #64748b);
  font-size: 0.8125rem;
  line-height: 1.7;
  margin: 0;
  max-width: 300px;
  margin-inline: auto;
}

.hx-auth__debug {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #92400e;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hx-auth__step { display: none; }
.hx-auth__step.is-active { display: block; }

.hx-auth__form { margin: 0; }

.hx-auth__form-inner {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.hx-auth__field {
  margin-bottom: 14px;
  text-align: center;
}

.hx-auth__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--hx-slate-500, #64748b);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.02em;
}

.hx-auth__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hx-auth__input-icon {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--hx-slate-400, #94a3b8);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hx-auth__input-icon svg {
  width: 18px;
  height: 18px;
}

.hx-auth__field input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border: 1.5px solid var(--hx-slate-200, #e2e8f0);
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hx-slate-800, #1e293b);
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.hx-auth__field input::placeholder {
  color: var(--hx-slate-400, #94a3b8);
  font-weight: 500;
}

.hx-auth__field input:focus {
  border-color: var(--hx-brand-500, #3b82f6);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.hx-auth__input-wrap--otp input {
  text-align: center;
  padding-left: 44px;
  padding-right: 44px;
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
}

.hx-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hx-auth__submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.hx-auth__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hx-auth__submit:hover svg {
  transform: translateX(3px);
}

.hx-auth__submit:active {
  transform: translateY(0);
}

.hx-auth__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hx-auth__link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--hx-brand-600, #2563eb);
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
}

.hx-auth__link:hover {
  color: var(--hx-brand-700, #1d4ed8);
}

.hx-auth__hint {
  font-size: 0.8125rem;
  color: var(--hx-slate-500, #64748b);
  line-height: 1.65;
  margin: 0 0 16px;
  text-align: center;
}

.hx-auth__hint strong {
  color: var(--hx-slate-700, #334155);
  direction: ltr;
  display: inline-block;
}

.hx-auth__otp-display {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px dashed #34d399;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: #059669;
  margin-bottom: 14px;
  direction: ltr;
}

.hx-auth__message {
  max-width: 300px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.hx-auth__message.is-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.hx-auth__message.is-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.hx-auth__footer {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hx-slate-100, #f1f5f9);
  font-size: 0.8125rem;
}

.hx-auth__footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hx-slate-400, #94a3b8);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.hx-auth__footer a svg {
  width: 14px;
  height: 14px;
}

.hx-auth__footer a:hover {
  color: var(--hx-brand-600, #2563eb);
}

@media (max-width: 380px) {
  .hx-auth__card {
    padding: 28px 20px 22px;
    border-radius: 1.25rem;
  }

  .hx-auth__form-inner {
    max-width: 100%;
  }
}

/* ── Panel Layout ── */
.hx-panel {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.hx-panel__sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(175deg, #ffffff 0%, #f5f9ff 38%, #eef6ff 72%, #e8f2ff 100%);
  color: var(--hx-slate-700, #334155);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s;
  border-left: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: -6px 0 32px rgba(37, 99, 235, 0.07);
  overflow: hidden;
}

.hx-panel__sidebar::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.hx-panel__sidebar::after {
  content: '';
  position: absolute;
  bottom: 80px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.hx-panel__brand {
  position: relative;
  z-index: 1;
  padding: 26px 22px 18px;
  border-bottom: 1px solid rgba(219, 234, 254, 0.85);
}

.hx-panel__brand-link { text-decoration: none; color: inherit; display: block; }

.hx-panel__brand-logo {
  display: block;
  max-width: 120px;
  height: auto;
  margin: 0 auto 6px;
}

.hx-panel__brand-sub {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--hx-slate-500, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
}

.hx-panel__nav {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
}

.hx-panel__nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 13px;
  color: var(--hx-slate-600, #475569);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 5px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.hx-panel__nav-item:hover {
  background: rgba(59, 130, 246, 0.09);
  color: var(--hx-brand-700, #1d4ed8);
}

.hx-panel__nav-item.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.hx-panel__nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hx-slate-500, #64748b);
  transition: color 0.2s;
}

.hx-panel__nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hx-panel__nav-item:hover .hx-panel__nav-icon {
  color: var(--hx-brand-600, #2563eb);
}

.hx-panel__nav-item.is-active .hx-panel__nav-icon {
  color: #fff;
}

.hx-panel__nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-panel__user {
  position: relative;
  z-index: 1;
  margin: 10px 12px 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.hx-panel__user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.hx-panel__user-info { flex: 1; min-width: 0; }

.hx-panel__user-info strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--hx-slate-800, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-panel__user-info span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--hx-slate-500, #64748b);
}

.hx-panel__logout {
  color: var(--hx-slate-500, #64748b);
  font-size: 0.6875rem;
  text-decoration: none;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.hx-panel__logout:hover {
  color: #dc2626;
  background: rgba(254, 226, 226, 0.6);
}

.hx-panel__main {
  flex: 1;
  margin-right: 260px;
  min-width: 0;
  overflow-x: hidden;
}

.hx-panel__header {
  background: #fff;
  border-bottom: 1px solid var(--hx-slate-200);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.hx-panel__menu-toggle {
  display: none;
  background: var(--hx-slate-100);
  border: none;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}
.hx-panel__menu-toggle svg { width: 24px; height: 24px; }

.hx-panel__header-content { flex: 1; }
.hx-panel__title { font-size: 1.35rem; font-weight: 900; color: var(--hx-slate-900); margin: 0; }
.hx-panel__subtitle { font-size: 0.85rem; color: var(--hx-slate-500); margin: 4px 0 0; }

.hx-panel__content { padding: 28px 32px; max-width: 1100px; }

.hx-panel .hx-card { margin-bottom: 24px; }

.hx-form__hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--hx-slate-400);
}

.hx-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--hx-slate-100);
  color: var(--hx-slate-700);
}
.hx-panel__btn--primary { background: var(--hx-brand-600); color: #fff; }
.hx-panel__btn--primary:hover { background: var(--hx-brand-700); }
.hx-panel__btn--block { width: 100%; }
.hx-panel__btn--sm { padding: 6px 14px; font-size: 0.8rem; }

/* ── Badges ── */
.hx-badge--success { background: #ecfdf5; color: #059669; }
.hx-badge--warning { background: #fffbeb; color: #d97706; }
.hx-badge--danger { background: #fef2f2; color: #dc2626; }
.hx-badge--info { background: #eff6ff; color: #2563eb; }
.hx-badge--muted { background: var(--hx-slate-100); color: var(--hx-slate-500); }

/* ── Dashboard v2 ── */
.hx-dash--v2 { display: flex; flex-direction: column; gap: 20px; }
.hx-dash-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  border: none;
}
.hx-dash-hero__eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; opacity: 0.85; margin: 0 0 8px; }
.hx-dash-hero__title { margin: 0 0 10px; font-size: 1.55rem; font-weight: 900; }
.hx-dash-hero__text { margin: 0 0 20px; font-size: 0.92rem; line-height: 1.8; opacity: 0.92; max-width: 36rem; }
.hx-dash-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hx-dash-hero__actions .hx-panel__btn { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.hx-dash-hero__actions .hx-panel__btn--primary { background: #fff; color: var(--hx-brand-700); border: none; }
.hx-dash-hero__glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%);
  top: -60px; left: -40px;
  pointer-events: none;
}

.hx-dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hx-dash-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 0;
}
.hx-dash-metric__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hx-dash-metric__icon--projects { background: #eff6ff; }
.hx-dash-metric__icon--tickets { background: #ecfdf5; }
.hx-dash-metric__icon--sub { background: #fffbeb; }
.hx-dash-metric__value { display: block; font-size: 1.45rem; font-weight: 900; color: var(--hx-slate-900); line-height: 1.2; }
.hx-dash-metric__value span { font-size: 0.95rem; color: var(--hx-slate-400); font-weight: 700; }
.hx-dash-metric__value--text { font-size: 1rem; }
.hx-dash-metric__label { display: block; font-size: 0.78rem; color: var(--hx-slate-500); font-weight: 700; margin-top: 2px; }
.hx-dash-metric--cta { padding: 0; overflow: hidden; }
.hx-dash-metric__cta-link {
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; height: 100%;
  padding: 18px 20px;
  text-decoration: none;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  color: var(--hx-brand-700);
  font-weight: 900;
}
.hx-dash-metric__cta-link small { display: block; margin-top: 4px; font-size: 0.72rem; font-weight: 600; color: var(--hx-slate-500); }

.hx-dash-promo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
}
.hx-dash-promo__icon { font-size: 1.8rem; flex-shrink: 0; }
.hx-dash-promo h3 { margin: 0 0 4px; font-weight: 900; }
.hx-dash-promo p { margin: 0; color: var(--hx-slate-500); font-size: 0.9rem; }
.hx-dash-promo .hx-panel__btn { margin-right: auto; flex-shrink: 0; }

.hx-dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hx-dash-panel { padding: 24px 26px; margin-bottom: 0; }
.hx-dash-link {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--hx-brand-600);
  text-decoration: none;
  white-space: nowrap;
}

/* ── Mobile-friendly feed lists (no horizontal scroll) ── */
.hx-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hx-feed-list--page { padding: 12px; }
.hx-feed-list--subs { padding: 0; }
.hx-feed-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--hx-slate-100);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hx-feed-item:hover { border-color: var(--hx-brand-200); box-shadow: 0 8px 20px rgba(15,23,42,0.05); }
.hx-feed-item__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.hx-feed-item__link--static { cursor: default; }
.hx-feed-item__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--hx-slate-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hx-feed-item__body { flex: 1; min-width: 0; }
.hx-feed-item__body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--hx-slate-900);
  margin-bottom: 4px;
  word-break: break-word;
}
.hx-feed-item__meta {
  display: block;
  font-size: 0.78rem;
  color: var(--hx-slate-400);
  font-weight: 600;
  word-break: break-word;
}
.hx-feed-item__arrow {
  color: var(--hx-slate-300);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transform: rotate(180deg);
}
.hx-feed-item__badge { align-self: flex-start; }

/* ── Dashboard ── */
.hx-dash__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.hx-dash__stat { padding: 24px; text-align: center; }
.hx-dash__stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--hx-brand-600); }
.hx-dash__stat-num--sm { font-size: 1.1rem; }
.hx-dash__stat-label { font-size: 0.8rem; color: var(--hx-slate-500); font-weight: 700; }
.hx-dash__stat--cta { display: flex; align-items: center; justify-content: center; }

.hx-dash__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #eff6ff, #fff);
  border-color: var(--hx-brand-200);
}
.hx-dash__banner h3 { margin: 0 0 6px; font-weight: 900; }
.hx-dash__banner p { margin: 0; color: var(--hx-slate-500); font-size: 0.9rem; }

.hx-dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.hx-dash__section { padding: 24px; }
.hx-dash__section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hx-dash__section-head h2 { font-size: 1rem; font-weight: 900; margin: 0; }
.hx-dash__section-head a { font-size: 0.8rem; color: var(--hx-brand-600); font-weight: 700; text-decoration: none; }

.hx-list { list-style: none; margin: 0; padding: 0; }
.hx-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hx-slate-100);
}
.hx-list li:last-child { border-bottom: none; }
.hx-list a { text-decoration: none; color: inherit; flex: 1; }
.hx-list strong { display: block; font-size: 0.9rem; }
.hx-list span { font-size: 0.75rem; color: var(--hx-slate-400); }

.hx-empty, .hx-muted { color: var(--hx-slate-400); font-size: 0.9rem; }
.hx-empty-state { padding: 48px 32px; text-align: center; }
.hx-empty-state h3 { font-weight: 900; margin: 0 0 8px; }

/* ── Timeline ── */
.hx-timeline { position: relative; padding-right: 24px; }
.hx-timeline__item { position: relative; padding-bottom: 24px; padding-right: 28px; }
.hx-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 5px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--hx-slate-200);
}
.hx-timeline__dot {
  position: absolute;
  right: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hx-brand-500);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--hx-brand-200);
}
.hx-timeline__dot--security { background: #ef4444; box-shadow: 0 0 0 2px #fecaca; }
.hx-timeline__dot--backup { background: #8b5cf6; box-shadow: 0 0 0 2px #ddd6fe; }
.hx-timeline__dot--update { background: #3b82f6; }
.hx-timeline__dot--monitor { background: #06b6d4; }
.hx-timeline__dot--support { background: #10b981; }

.hx-timeline__meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--hx-slate-400); margin-bottom: 4px; }
.hx-timeline__type { font-weight: 800; color: var(--hx-brand-600); }
.hx-timeline__body strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.hx-timeline__body p { margin: 0; font-size: 0.85rem; color: var(--hx-slate-500); line-height: 1.7; }
.hx-timeline__by { font-size: 0.75rem; color: var(--hx-slate-400); }

/* ── Grid & Cards ── */
.hx-grid { display: grid; gap: 20px; }
.hx-grid--3 { grid-template-columns: repeat(3, 1fr); }

.hx-project-card { padding: 24px; text-decoration: none; color: inherit; display: block; }
.hx-project-card__head { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 8px; }
.hx-project-card__head h3 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.hx-project-card__domain { font-size: 0.85rem; color: var(--hx-brand-600); margin: 0 0 8px; }
.hx-project-card__desc { font-size: 0.85rem; color: var(--hx-slate-500); margin: 0 0 12px; }
.hx-project-card__link { font-size: 0.8rem; font-weight: 800; color: var(--hx-brand-600); }

.hx-project-detail__hero { padding: 28px; margin-bottom: 20px; }
.hx-project-detail__hero-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 12px; }
.hx-project-detail__hero h2 { margin: 0 0 6px; font-weight: 900; }
.hx-project-detail__domain { color: var(--hx-brand-600); font-weight: 700; text-decoration: none; }
.hx-project-detail__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hx-project-detail__cols section { padding: 24px; }
.hx-project-detail__cols h3 { margin: 0 0 8px; font-weight: 900; }

/* ── Table ── */
.hx-table-wrap { overflow-x: auto; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hx-table th { text-align: right; padding: 12px 16px; font-size: 0.75rem; color: var(--hx-slate-400); font-weight: 800; border-bottom: 1px solid var(--hx-slate-200); }
.hx-table td { padding: 14px 16px; border-bottom: 1px solid var(--hx-slate-100); }

/* ── Forms ── */
.hx-form { padding: 28px; }
.hx-form__field { margin-bottom: 18px; }
.hx-form__field label { display: block; font-size: 0.8rem; font-weight: 800; color: var(--hx-slate-600); margin-bottom: 6px; }
.hx-form__field input,
.hx-form__field select,
.hx-form__field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--hx-slate-200);
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
}
.hx-form__field input:focus,
.hx-form__field textarea:focus { border-color: var(--hx-brand-500); box-shadow: var(--hx-focus-ring); }
.hx-form__message { margin-top: 12px; padding: 12px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; }
.hx-form__message.is-error { background: #fef2f2; color: #dc2626; }
.hx-form__message.is-success { background: #ecfdf5; color: #059669; }

/* ── Tickets ── */
.hx-ticket-detail__head { padding: 24px; margin-bottom: 16px; }
.hx-ticket-detail__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 0.8rem; color: var(--hx-slate-500); }
.hx-ticket-detail__head h2 { margin: 0; font-weight: 900; }
.hx-ticket-thread { margin-bottom: 20px; }
.hx-ticket-msg { padding: 20px; margin-bottom: 12px; }
.hx-ticket-msg--staff { border-right: 4px solid var(--hx-brand-500); }
.hx-ticket-msg--client { border-right: 4px solid var(--hx-slate-300); }
.hx-ticket-msg__head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.8rem; }
.hx-ticket-msg__head strong { font-weight: 900; }
.hx-ticket-msg__head time { color: var(--hx-slate-400); }
.hx-ticket-msg__body { font-size: 0.9rem; line-height: 1.8; color: var(--hx-slate-600); }

/* ── Plans ── */
.hx-subs__heading { font-weight: 900; margin: 0 0 8px; }
.hx-subs__plans { margin-bottom: 32px; }
.hx-plan-card { padding: 28px; position: relative; text-align: center; }
.hx-plan-card--featured { border: 2px solid var(--hx-brand-500); transform: scale(1.02); }
.hx-plan-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hx-brand-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
}
.hx-plan-card h3 { font-weight: 900; margin: 8px 0 4px; }
.hx-plan-card__sub { font-size: 0.85rem; color: var(--hx-slate-500); margin: 0 0 16px; }
.hx-plan-card__price { margin-bottom: 20px; }
.hx-plan-card__amount { display: block; font-size: 2.5rem; font-weight: 900; color: var(--hx-brand-600); }
.hx-plan-card__period { font-size: 0.8rem; color: var(--hx-slate-400); }
.hx-plan-card__features { list-style: none; padding: 0; margin: 0 0 24px; text-align: right; }
.hx-plan-card__features li { padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid var(--hx-slate-100); }
.hx-plan-card__features li::before { content: '✓ '; color: #10b981; font-weight: 900; }

.hx-subs__notice--success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.hx-subs__notice--error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ── Modal ── */
.hx-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hx-modal[hidden] { display: none; }
.hx-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); }
.hx-modal__dialog { position: relative; width: 100%; max-width: 440px; padding: 32px; z-index: 1; }
.hx-modal__close { position: absolute; top: 16px; left: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--hx-slate-400); }

/* ── Reports ── */
.hx-reports-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hx-report-card { padding: 24px; }
.hx-report-card__head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.hx-report-card__head h3 { margin: 0; font-weight: 900; }
.hx-report-card__month { font-size: 0.8rem; background: var(--hx-brand-50); color: var(--hx-brand-600); padding: 4px 10px; border-radius: 8px; font-weight: 800; }
.hx-report-card__body { font-size: 0.9rem; line-height: 1.8; color: var(--hx-slate-600); margin: 12px 0; }
.hx-report-card__date { font-size: 0.75rem; color: var(--hx-slate-400); }

.hx-report-list { list-style: none; padding: 0; margin: 0; }
.hx-report-list__item { padding: 14px 0; border-bottom: 1px solid var(--hx-slate-100); }
.hx-report-list__excerpt { font-size: 0.85rem; color: var(--hx-slate-500); margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hx-dash__stats, .hx-grid--3, .hx-dash__grid, .hx-project-detail__cols, .hx-reports-grid, .hx-dash-metrics, .hx-dash-panels { grid-template-columns: 1fr; }
  .hx-plan-card--featured { transform: none; }
}

@media (max-width: 768px) {
  .hx-panel__sidebar {
    transform: translateX(100%);
    box-shadow: -12px 0 40px rgba(37, 99, 235, 0.12);
  }
  .hx-panel__sidebar.is-open { transform: translateX(0); }
  .hx-panel__main { margin-right: 0; }
  .hx-panel__menu-toggle { display: block; }
  .hx-panel__content { padding: 16px 14px; }
  .hx-panel__header { padding: 14px 16px; flex-wrap: wrap; }
  .hx-panel__title { font-size: 1.15rem; }
  .hx-panel__header .hx-panel__btn--primary { width: 100%; justify-content: center; }
  .hx-dash__stats { grid-template-columns: 1fr 1fr; }
  .hx-dash__banner, .hx-dash-promo { flex-direction: column; text-align: center; }
  .hx-dash-promo .hx-panel__btn { margin: 0; width: 100%; }
  .hx-dash-hero { padding: 22px 20px; }
  .hx-dash-hero__title { font-size: 1.3rem; }
  .hx-dash-hero__actions .hx-panel__btn { flex: 1; justify-content: center; min-width: calc(50% - 6px); }
  .hx-dash-metric { padding: 16px; }
  .hx-dash-panel { padding: 18px 16px; }
  .hx-table-wrap { display: none; }
  .hx-feed-item { padding: 12px 14px; }
  .hx-plan-card { padding: 22px 18px; }
  .hx-plan-card__amount { font-size: 2rem; }
  .hx-subs__history { padding: 18px 16px; }
}

/* ── Project Progress Tracker ── */
.pt-page { display: flex; flex-direction: column; gap: 24px; }
.pt-header { padding: 32px; }
.pt-header-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.pt-brand { font-weight: 900; color: var(--hx-brand-600); font-size: 0.9rem; }
.pt-badge { font-size: 0.75rem; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.pt-badge-active { background: #ecfdf5; color: #059669; }
.pt-badge-pending { background: #eff6ff; color: #2563eb; }
.pt-badge-warn { background: #fffbeb; color: #d97706; }
.pt-badge-muted { background: var(--hx-slate-100); color: var(--hx-slate-500); }
.pt-title { font-size: 1.75rem; font-weight: 900; margin: 0 0 8px; color: var(--hx-slate-900); }
.pt-subtitle { margin: 0 0 12px; color: var(--hx-slate-500); font-size: 0.95rem; }
.pt-client, .pt-site { margin: 6px 0; font-size: 0.9rem; color: var(--hx-slate-600); }
.pt-site a { color: var(--hx-brand-600); font-weight: 700; text-decoration: none; }
.pt-header-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pt-description-card, .pt-progress-card, .pt-note-card, .pt-timeline { padding: 28px 32px; }
.pt-section-title { font-size: 1.1rem; font-weight: 900; margin: 0 0 20px; color: var(--hx-slate-900); }
.pt-rich-content p { margin: 0 0 12px; line-height: 1.9; color: var(--hx-slate-600); }
.pt-rich-content p:last-child { margin-bottom: 0; }
.pt-progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 800; }
.pt-progress-value { font-size: 1.5rem; color: var(--hx-brand-600); }
.pt-progress-track {
  position: relative;
  height: 12px;
  background: var(--hx-slate-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.pt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hx-brand-500), var(--hx-brand-600));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}
.pt-progress-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: pt-shimmer 2s infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes pt-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.pt-progress-meta { margin: 0; font-size: 0.85rem; color: var(--hx-slate-500); }
.pt-note-label { font-size: 0.75rem; font-weight: 800; color: var(--hx-brand-600); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pt-note-card p { margin: 0 0 10px; line-height: 1.8; color: var(--hx-slate-600); }
.pt-note-time { font-size: 0.8rem; color: var(--hx-slate-400); }
.pt-steps { list-style: none; margin: 0; padding: 0; }
.pt-step { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.pt-step:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--hx-slate-200);
}
.pt-step-marker {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.pt-step-marker svg { width: 18px; height: 18px; color: #fff; background: #10b981; border-radius: 50%; padding: 6px; box-sizing: content-box; }
.pt-dot { width: 12px; height: 12px; background: var(--hx-slate-300); border-radius: 50%; }
.pt-pulse-dot { width: 12px; height: 12px; background: var(--hx-brand-500); border-radius: 50%; position: relative; z-index: 2; }
.pt-pulse-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--hx-brand-400);
  border-radius: 50%;
  animation: pt-pulse 1.5s ease-out infinite;
}
@keyframes pt-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.pt-step-content { flex: 1; min-width: 0; padding-top: 2px; }
.pt-step-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 6px; }
.pt-step-top h3 { margin: 0; font-size: 1rem; font-weight: 900; }
.pt-step-status { font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: var(--hx-slate-100); color: var(--hx-slate-500); white-space: nowrap; }
.pt-step-completed .pt-step-status { background: #ecfdf5; color: #059669; }
.pt-step-in_progress .pt-step-status, .pt-step-current .pt-step-status { background: #eff6ff; color: #2563eb; }
.pt-step-content p { margin: 0; font-size: 0.88rem; color: var(--hx-slate-500); line-height: 1.7; }
.pt-active-bar { height: 4px; background: var(--hx-slate-100); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.pt-active-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--hx-brand-500);
  border-radius: 4px;
  animation: pt-active-slide 1.8s ease-in-out infinite;
}
@keyframes pt-active-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.hx-project-detail__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hx-project-detail__cols section { padding: 28px; margin-bottom: 0; }
.hx-project-detail__cols h3 { margin: 0 0 8px; font-weight: 900; }

/* ── Chat-style ticketing ── */
.hx-chat-room { display: flex; flex-direction: column; gap: 16px; height: calc(100vh - 180px); min-height: 480px; }
.hx-chat-room__header { padding: 20px 24px; margin-bottom: 0; flex-shrink: 0; }
.hx-chat-room__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.hx-chat-room__title { margin: 0; font-weight: 900; font-size: 1.15rem; }
.hx-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hx-card-border);
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 0;
}
.hx-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.hx-chat__bubble { max-width: 78%; padding: 14px 18px; border-radius: 18px; line-height: 1.75; font-size: 0.92rem; }
.hx-chat__bubble--out {
  align-self: flex-end;
  background: var(--hx-brand-600);
  color: #fff;
  border-bottom-left-radius: 6px;
}
.hx-chat__bubble--in {
  align-self: flex-start;
  background: #fff;
  color: var(--hx-slate-700);
  border: 1px solid var(--hx-slate-200);
  border-bottom-right-radius: 6px;
}
.hx-chat__bubble-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 0.72rem; opacity: 0.85; }
.hx-chat__bubble--out .hx-chat__bubble-head { color: rgba(255,255,255,0.9); }
.hx-chat__bubble-body p { margin: 0 0 8px; }
.hx-chat__bubble-body p:last-child { margin-bottom: 0; }
.hx-chat__attachment { display: block; margin-top: 10px; }
.hx-chat__attachment--image img { max-width: 220px; border-radius: 12px; display: block; }
.hx-chat__attachment--file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
}
.hx-chat__bubble--out .hx-chat__attachment--file { color: #fff; background: rgba(255,255,255,0.15); }
.hx-chat__composer {
  padding: 16px 20px;
  border-top: 1px solid var(--hx-slate-100);
  background: #fff;
  flex-shrink: 0;
}
.hx-chat__preview {
  font-size: 0.8rem;
  color: var(--hx-slate-500);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: var(--hx-slate-50);
  border-radius: 8px;
}
.hx-chat__composer-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.hx-chat__attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hx-slate-100);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hx-chat__attach-btn:hover { background: var(--hx-slate-200); }
.hx-chat__attach-btn svg { width: 20px; height: 20px; color: var(--hx-slate-500); }
.hx-chat__composer textarea {
  flex: 1;
  border: 1px solid var(--hx-slate-200);
  border-radius: 16px;
  padding: 12px 16px;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  max-height: 120px;
  outline: none;
  line-height: 1.5;
}
.hx-chat__composer textarea:focus { border-color: var(--hx-brand-400); box-shadow: var(--hx-focus-ring); }
.hx-chat__send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--hx-brand-600);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hx-chat__send:hover { background: var(--hx-brand-700); }
.hx-chat__send svg { width: 20px; height: 20px; }
.hx-chat__closed { padding: 20px; text-align: center; color: var(--hx-slate-500); margin: 16px; }

/* ── Project page (activities + reports) ── */
.hx-project-page { display: flex; flex-direction: column; gap: 24px; }
.hx-project-hero { padding: 32px; }
.hx-project-hero__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 14px; }
.hx-project-hero__eyebrow { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--hx-brand-600); margin-bottom: 6px; }
.hx-project-hero__title { margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--hx-slate-900); }
.hx-project-hero__domain a { color: var(--hx-brand-600); font-weight: 700; text-decoration: none; }
.hx-project-hero__desc { margin-top: 14px; color: var(--hx-slate-600); line-height: 1.9; font-size: 0.92rem; }
.hx-project-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hx-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.hx-section-head h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 900; }
.hx-feed-note { padding: 24px 28px; border-right: 4px solid var(--hx-brand-500); }
.hx-feed-note__label { font-size: 0.72rem; font-weight: 800; color: var(--hx-brand-600); margin-bottom: 8px; }
.hx-feed-note p { margin: 0 0 8px; line-height: 1.8; color: var(--hx-slate-600); }
.hx-feed-note time { font-size: 0.8rem; color: var(--hx-slate-400); }
.hx-feed-empty { text-align: center; padding: 40px 24px; color: var(--hx-slate-500); }
.hx-feed-empty__icon { display: block; font-size: 1.6rem; margin-bottom: 10px; opacity: 0.7; }
.hx-activity-feed, .hx-report-feed { padding: 28px 32px; }

.hx-activity-steps { list-style: none; margin: 0; padding: 0; }
.hx-activity-step {
  display: flex;
  gap: 18px;
  padding-bottom: 26px;
  position: relative;
}
.hx-activity-step:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--hx-brand-200), var(--hx-slate-100));
}
.hx-activity-step__marker {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hx-activity-step__marker svg {
  width: 16px; height: 16px; color: #fff;
  background: #10b981;
  border-radius: 50%;
  padding: 7px;
  box-sizing: content-box;
}
.hx-activity-step__pulse-dot {
  width: 12px; height: 12px;
  background: var(--hx-brand-500);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}
.hx-activity-step__pulse-ring {
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--hx-brand-400);
  border-radius: 50%;
  animation: hx-activity-pulse 1.6s ease-out infinite;
}
@keyframes hx-activity-pulse {
  0% { transform: scale(0.65); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.hx-activity-step__body { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--hx-slate-100); border-radius: 16px; padding: 16px 18px; box-shadow: 0 8px 24px rgba(15,23,42,0.04); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hx-activity-step:hover .hx-activity-step__body { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,0.07); }
.hx-activity-step--latest .hx-activity-step__body { border-color: var(--hx-brand-200); background: linear-gradient(135deg, #fff 0%, #f8fbff 100%); }
.hx-activity-step__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 0.75rem; }
.hx-activity-step__type { font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--hx-slate-100); color: var(--hx-slate-600); }
.hx-activity-step__type--security { background: #fef2f2; color: #dc2626; }
.hx-activity-step__type--backup { background: #f5f3ff; color: #7c3aed; }
.hx-activity-step__type--update { background: #eff6ff; color: #2563eb; }
.hx-activity-step__type--monitor { background: #ecfeff; color: #0891b2; }
.hx-activity-step__type--support { background: #ecfdf5; color: #059669; }
.hx-activity-step__body h3 { margin: 0 0 6px; font-size: 0.98rem; font-weight: 900; color: var(--hx-slate-900); }
.hx-activity-step__body p { margin: 0; font-size: 0.88rem; color: var(--hx-slate-500); line-height: 1.75; }
.hx-activity-step__by { display: block; margin-top: 8px; font-size: 0.75rem; color: var(--hx-slate-400); }
.hx-activity-step__bar { height: 3px; background: var(--hx-slate-100); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.hx-activity-step__bar span { display: block; height: 100%; width: 35%; background: var(--hx-brand-500); animation: hx-activity-bar 1.8s ease-in-out infinite; }
@keyframes hx-activity-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(380%); }
}

.hx-report-feed__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hx-report-feed__grid--page { grid-template-columns: 1fr; }
.hx-report-feed__card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--hx-slate-100);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hx-report-feed__card:hover {
  transform: translateY(-3px);
  border-color: var(--hx-brand-200);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.1);
}
.hx-report-feed__card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.hx-report-feed__month {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--hx-brand-700);
  background: #eff6ff;
  padding: 5px 12px;
  border-radius: 999px;
}
.hx-report-feed__card time { font-size: 0.75rem; color: var(--hx-slate-400); }
.hx-report-feed__card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 900; color: var(--hx-slate-900); }
.hx-report-feed__card p, .hx-report-feed__body { margin: 0; font-size: 0.9rem; line-height: 1.8; color: var(--hx-slate-600); }
.hx-report-feed__project { font-size: 0.8rem !important; color: var(--hx-slate-400) !important; margin-bottom: 8px !important; }
.hx-report-feed__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.65) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: hx-report-shine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hx-report-shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.hx-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.hx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hx-project-hero, .hx-activity-feed, .hx-report-feed { padding: 20px; }
  .hx-chat__bubble { max-width: 92%; }
  .hx-chat-room { height: calc(100vh - 140px); }
  .hx-report-feed__grid { grid-template-columns: 1fr; }
}
