/* =========================================================
   NEXSUS / CLEAN DARK RED THEME
   Vollständige style.css
   ========================================================= */

/* =========================================================
   TOKENS / THEME
   ========================================================= */
:root {
  --bg-0: #050506;
  --bg-1: #08090b;
  --bg-2: #0c0d10;
  --bg-3: #111317;
  --bg-4: #17191e;

  --shell: #090a0c;
  --panel: rgba(13, 15, 19, 0.82);
  --panel-2: rgba(16, 18, 23, 0.9);
  --panel-3: rgba(20, 23, 29, 0.94);
  --panel-solid: #101217;

  --surface-1: rgba(255, 255, 255, 0.015);
  --surface-2: rgba(255, 255, 255, 0.025);
  --surface-3: rgba(255, 255, 255, 0.04);
  --surface-4: rgba(255, 255, 255, 0.07);

  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.11);
  --border-3: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.04);

  --text: #e7e9ee;
  --text-strong: #ffffff;
  --muted: #afb5c2;
  --muted-2: #8f97a7;
  --muted-3: #6c7483;

  --accent: #dc2626;
  --accent-2: #ef4444;
  --accent-3: #f87171;
  --accent-4: #fecaca;
  --accent-dark: #7f1d1d;

  --accent-soft: rgba(220, 38, 38, 0.08);
  --accent-soft-2: rgba(220, 38, 38, 0.14);
  --accent-soft-3: rgba(220, 38, 38, 0.2);

  --accent-glow: rgba(220, 38, 38, 0.12);
  --accent-glow-strong: rgba(220, 38, 38, 0.22);

  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --info: #38bdf8;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-3xl: 34px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.24);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.46);

  --glow-xs: 0 0 0 1px rgba(255, 255, 255, 0.015);
  --glow-sm: 0 0 24px rgba(220, 38, 38, 0.06);
  --glow: 0 0 38px rgba(220, 38, 38, 0.1);
  --glow-lg: 0 0 56px rgba(220, 38, 38, 0.14);

  --maxw: 1380px;
  --maxw-readable: 1180px;
  --maxw-profile: 1120px;

  --font-ui:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";

  --font-display:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";

  --focus: 0 0 0 3px rgba(220, 38, 38, 0.22);

  --transition-fast: 0.16s ease;
  --transition-mid: 0.28s ease;
  --transition-slow: 0.52s cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 88px;

  --hero-image: url("/static/hero.jpg");
  --hero-overlay-dark:
    linear-gradient(
      90deg,
      rgba(6, 7, 10, 0.96) 0%,
      rgba(6, 7, 10, 0.82) 38%,
      rgba(6, 7, 10, 0.96) 100%
    );
}

/* =========================================================
   RESET
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  scrollbar-width: thin;
  scrollbar-color: rgba(220, 38, 38, 0.8) rgba(255, 255, 255, 0.03);
}

body {
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15.5px;
  letter-spacing: 0.01em;
  line-height: 1.58;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 520px at 14% 10%, rgba(220, 38, 38, 0.06), transparent 56%),
    radial-gradient(720px 420px at 86% 16%, rgba(220, 38, 38, 0.04), transparent 50%),
    linear-gradient(180deg, #090a0d 0%, #040507 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012), transparent 16%),
    linear-gradient(to right, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  opacity: 0.2;
}

body::after {
  content: "";
  position: fixed;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(220, 38, 38, 0.22);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(220, 38, 38, 0.8) rgba(255, 255, 255, 0.03);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.92), rgba(220, 38, 38, 0.92));
  border-radius: 999px;
  border: 1px solid rgba(8, 10, 12, 0.45);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(252, 165, 165, 1), rgba(239, 68, 68, 1));
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   BASE
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-strong);
  line-height: 1.04;
}

strong {
  color: var(--text-strong);
}

p {
  line-height: 1.72;
}

.container {
  width: min(var(--maxw), calc(100% - 56px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.section-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-3);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-mini::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.24);
}

.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.86;
  font-weight: 500;
}

.eyebrow {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.info-title,
.mini-label,
.stat-label {
  color: var(--muted-2);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(7, 8, 11, 0.78);
  backdrop-filter: blur(16px) saturate(1.04);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.22), transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-top {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: #f7f8fb;
  white-space: nowrap;
}

.brand-main {
  display: block;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0.4);
  transform-origin: center;
  opacity: 0;
  transition:
    opacity var(--transition-mid),
    transform var(--transition-mid);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-strong);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================================
   USER MENU / DROPDOWN
   ========================================================= */
.user-menu {
  position: relative;
}

.user-menu-trigger,
.user-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    rgba(12, 14, 18, 0.92);
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-mid),
    background var(--transition-mid);
}

.user-menu-trigger {
  cursor: pointer;
}

.user-menu-trigger:hover,
.user-box:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 38, 38, 0.18);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-meta strong,
.user-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.user-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.user-menu-caret {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  transition:
    transform var(--transition-mid),
    color var(--transition-fast);
}

.user-menu.is-open .user-menu-caret {
  transform: rotate(180deg);
  color: #fff;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.006)),
    rgba(11, 13, 16, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity var(--transition-mid),
    visibility var(--transition-mid),
    transform var(--transition-mid);
  z-index: 60;
}

.user-menu.is-open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.user-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transform: translateX(2px);
}

.user-dropdown-link.danger:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #fff;
}

.user-dropdown-divider {
  height: 1px;
  margin: 8px 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006)),
    rgba(12, 14, 18, 0.96);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-mid);
}

.mobile-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition:
    transform var(--transition-mid),
    opacity var(--transition-mid);
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: calc(var(--header-h) - 2px);
  left: 14px;
  right: 14px;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity var(--transition-mid),
    transform var(--transition-mid),
    visibility var(--transition-mid);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-inner {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.006)),
    rgba(11, 13, 16, 0.97);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px;
}

.mobile-link {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-mid),
    color var(--transition-fast);
}

.btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary,
.btn-discord {
  border-color: rgba(248, 113, 113, 0.18);
  background: linear-gradient(180deg, #dc2626, #a81b1b);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(220, 38, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover:not(:disabled),
.btn-discord:hover:not(:disabled) {
  border-color: rgba(252, 165, 165, 0.24);
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  box-shadow:
    0 14px 30px rgba(220, 38, 38, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.015);
  border-color: var(--border-2);
  color: #f5f7fb;
}

.btn-outline:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.btn-glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01));
  border-color: var(--border);
  box-shadow: var(--glow-xs);
}

.btn-glass:hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.75rem;
}

.btn-discord.large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 0.9rem;
}

.full-width {
  width: 100%;
}

.discord-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f87171, #ffffff);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.18);
  flex-shrink: 0;
}

/* =========================================================
   HERO / PROFILE HERO / MULTI IMAGE HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.profile-hero {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  padding: 124px 0 60px;
}

.hero-bg,
.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    var(--hero-overlay-dark),
    var(--hero-image) center center / cover no-repeat;
  transform: scale(1.02);
}

.profile-hero-bg {
  background:
    radial-gradient(840px 360px at 14% 6%, rgba(220, 38, 38, 0.06), transparent 55%),
    radial-gradient(640px 220px at 88% 8%, rgba(220, 38, 38, 0.035), transparent 48%),
    linear-gradient(180deg, rgba(9, 11, 14, 0.96), rgba(5, 6, 8, 0.98));
}

.hero-overlay,
.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 520px at 16% 10%, rgba(220, 38, 38, 0.05), transparent 54%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.94) 100%);
  z-index: 1;
}

.profile-hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.44));
}

.hero-content,
.profile-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  padding-top: 190px;
  padding-bottom: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.profile-hero-content {
  padding-top: 0;
  padding-bottom: 0;
  display: block;
}

.hero h1,
.hero-copy h1,
.profile-hero h1 {
  max-width: 1100px;
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-text,
.profile-hero-text {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.84;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-stats-band {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding-bottom: 54px;
  text-align: center;
}

.profile-hero .hero-stats-band {
  position: relative;
  padding-bottom: 0;
  margin-top: 26px;
}

.mega-stat {
  font-size: clamp(4.4rem, 11vw, 8.4rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e7e9ef 22%,
    #adb3c2 56%,
    #5f6778 84%,
    #222732 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-hero .mega-stat {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  opacity: 0.1;
}

.mega-sub {
  margin-top: -8px;
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.profile-hero .mega-sub {
  margin-top: 6px;
  font-size: clamp(0.88rem, 1.5vw, 1.08rem);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.46);
}

.hero-slideshow,
.profile-hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide,
.profile-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: opacity 1s ease;
}

.hero-slide.is-active,
.profile-hero-slide.is-active {
  opacity: 1;
}

.hero-slide::after,
.profile-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-dark);
}

.hero-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  z-index: 3;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.hero-dot.is-active {
  background: var(--accent-2);
  border-color: rgba(248, 113, 113, 0.24);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.18);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.info-section,
.showcase-section,
.cta-section {
  position: relative;
  z-index: 2;
  padding: 110px 0;
}

.info-section::before,
.showcase-section::before,
.cta-section::before,
.dashboard-main::before,
.dashboard-stats::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(92%, 1200px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.showcase-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.006), transparent 24%),
    radial-gradient(700px 240px at 50% 0%, rgba(220, 38, 38, 0.035), transparent 65%);
}

.dashboard-stats {
  position: relative;
  z-index: 2;
  padding: 0 0 32px;
  margin-top: -26px;
}

.dashboard-main {
  position: relative;
  z-index: 2;
  padding: 26px 0 110px;
}

/* =========================================================
   PANELS / CARDS
   ========================================================= */
.feature-card,
.glass-panel,
.cta-box,
.dashboard-card,
.action-card,
.service-item,
.stat-card,
.kpi-card,
.copy-box,
.profile-block,
.clock-box,
.live-chip,
.onboarding-stage,
.onboarding-slide,
.onboarding-final-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.005)),
    rgba(13, 15, 19, 0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(1.02);
  -webkit-backdrop-filter: blur(14px) saturate(1.02);
  transition:
    transform var(--transition-slow),
    border-color var(--transition-mid),
    box-shadow var(--transition-mid),
    background var(--transition-mid);
}

.feature-card::before,
.glass-panel::before,
.cta-box::before,
.dashboard-card::before,
.action-card::before,
.service-item::before,
.stat-card::before,
.kpi-card::before,
.copy-box::before,
.profile-block::before,
.clock-box::before,
.live-chip::before,
.onboarding-stage::before,
.onboarding-slide::before,
.onboarding-final-box::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0),
    rgba(220, 38, 38, 0.06)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}

.feature-card::after,
.glass-panel::after,
.cta-box::after,
.dashboard-card::after,
.action-card::after,
.service-item::after,
.stat-card::after,
.kpi-card::after,
.copy-box::after,
.profile-block::after,
.onboarding-slide::after,
.onboarding-final-box::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.05), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}

.feature-card:hover,
.glass-panel:hover,
.cta-box:hover,
.dashboard-card:hover,
.action-card:hover,
.service-item:hover,
.stat-card:hover,
.kpi-card:hover,
.onboarding-slide:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.015);
}

.feature-card,
.dashboard-card,
.glass-panel {
  padding: 28px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.card-head h2 {
  font-size: clamp(1.34rem, 2vw, 1.85rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* =========================================================
   GRIDS / PROFILE / CONTENT
   ========================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-label,
.action-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: #fecaca;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3,
.action-card h3,
.service-item h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card p,
.action-card p,
.service-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
  font-weight: 500;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: center;
}

.showcase-copy h2,
.cta-box h2,
.onboarding-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.showcase-copy p,
.cta-box p,
.onboarding-copy p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.88;
  font-weight: 500;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.18);
}

.showcase-panel {
  min-width: 0;
}

.glass-top {
  color: var(--accent-3);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.glass-item,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-item:last-child,
.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.glass-item span,
.status-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.glass-item strong,
.status-row strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
}

.cta-box {
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.dashboard-left,
.dashboard-right {
  display: grid;
  gap: 24px;
}

.profile-layout {
  display: grid;
  gap: 22px;
  width: 100%;
}

.profile-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 22px;
  padding: 4px 0 0;
}

.profile-main-info {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 2px 0;
}

.profile-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.profile-avatar-large,
.profile-avatar-fallback {
  width: 94px;
  height: 94px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.profile-avatar-large {
  object-fit: cover;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.profile-avatar-small {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-identity {
  min-width: 0;
}

.profile-identity h3 {
  font-size: clamp(1.26rem, 1.8vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.profile-identity p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-word;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-summary-grid {
  min-width: 0;
}

.profile-block {
  padding: 16px 17px;
  border-radius: var(--radius-lg);
}

.profile-block strong {
  display: block;
  margin-top: 7px;
  font-size: 0.94rem;
  line-height: 1.48;
  word-break: break-word;
}

.copy-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 16px;
}

.copy-box {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  border-radius: var(--radius-lg);
}

.copy-box code {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-link-code {
  user-select: all;
}

/* =========================================================
   PROFILE PAGE LAYOUT FIX
   ========================================================= */
.profile-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: var(--maxw-profile);
  margin: 0 auto;
}

.profile-top-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-main.profile-main-vertical {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.profile-main-info.profile-main-info-wide {
  width: 100%;
  min-height: unset;
}

.profile-grid.profile-summary-grid.profile-summary-wide {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-single-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.profile-card-pad {
  padding: 0 24px 24px;
}

.profile-card-pad-top {
  padding-top: 4px;
}

.profile-head-compact {
  margin-bottom: 18px;
}

.profile-stat-list {
  display: grid;
  gap: 12px;
}

.profile-actions-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.profile-wide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-hero .dashboard-card {
  width: 100%;
}

.profile-hero .card-head {
  align-items: flex-start;
}

.profile-hero .profile-main-info {
  width: 100%;
}

.profile-hero .service-list {
  width: 100%;
}

.profile-hero .actions-grid {
  grid-template-columns: 1fr;
}

/* =========================================================
   PROGRESS / STATUS / TIMELINE
   ========================================================= */
.progress-wrap {
  margin-top: 22px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.progress-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.progress-head strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.progress-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-fill {
  position: relative;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  box-shadow:
    0 0 16px rgba(220, 38, 38, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.status-list,
.stat-list,
.timeline {
  display: grid;
  gap: 18px;
}

.status-list,
.stat-list {
  gap: 2px;
}

.status-text.success {
  color: var(--ok);
}

.status-text.warning {
  color: var(--warn);
}

.status-text.danger {
  color: var(--danger);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.22), rgba(255, 255, 255, 0.03));
  border-radius: 999px;
}

.timeline-dot {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: radial-gradient(circle at 50% 50%, #f87171, #dc2626);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.16);
}

.timeline-item h4 {
  font-size: 0.96rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
  font-weight: 500;
}

/* =========================================================
   ACTIONS / SERVICES / FORMS
   ========================================================= */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  display: block;
  padding: 20px;
}

.toolbar-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-input,
.dashboard-select,
.dashboard-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    rgba(11, 13, 17, 0.86);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-mid),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.dashboard-input,
.dashboard-select {
  min-height: 50px;
  padding: 0 16px;
}

.dashboard-textarea {
  min-height: 170px;
  padding: 16px;
  resize: vertical;
}

.dashboard-input::placeholder,
.dashboard-textarea::placeholder {
  color: var(--muted-3);
}

.dashboard-input:focus,
.dashboard-select:focus,
.dashboard-textarea:focus {
  border-color: rgba(220, 38, 38, 0.24);
  box-shadow:
    0 0 0 3px rgba(220, 38, 38, 0.1),
    0 0 20px rgba(220, 38, 38, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(13, 15, 20, 0.9);
}

.dashboard-select {
  appearance: none;
  cursor: pointer;
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.save-feedback {
  min-height: 22px;
  margin-top: 12px;
  color: var(--accent-3);
  font-size: 0.84rem;
  font-weight: 700;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
}

.service-item-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.service-item-copy {
  min-width: 0;
}

.service-item-copy h3 {
  margin-bottom: 4px;
}

.service-item-copy p {
  margin: 0;
  word-break: break-word;
}

.service-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
  color: #fecaca;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-tag.status-online {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.22);
  color: var(--ok);
}

.service-tag.status-offline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--muted);
}

.empty-state {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 600;
}

/* =========================================================
   ONBOARDING
   ========================================================= */
.onboarding-hero {
  min-height: 100vh;
}

.onboarding-shell {
  padding-top: 170px;
  padding-bottom: 120px;
  gap: 28px;
}

.onboarding-top {
  width: 100%;
}

.onboarding-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.onboarding-status {
  width: 100%;
}

.onboarding-slider-wrap {
  width: 100%;
}

.onboarding-progress {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.onboarding-progress-bar {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  box-shadow:
    0 0 16px rgba(220, 38, 38, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: width var(--transition-slow);
}

.onboarding-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.onboarding-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.onboarding-dot:hover {
  transform: scale(1.06);
}

.onboarding-dot.is-active {
  background: var(--accent-2);
  border-color: rgba(248, 113, 113, 0.22);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.16);
}

.onboarding-stage {
  position: relative;
  padding: 12px;
}

.onboarding-slide {
  display: none;
  padding: 28px;
}

.onboarding-slide.is-active {
  display: block;
  animation: fadeUp 0.45s ease;
}

.onboarding-slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.onboarding-panel {
  min-width: 0;
}

.onboarding-final-box {
  padding: 30px;
}

.onboarding-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.onboarding-control-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.onboarding-step-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.onboarding-step-label strong {
  color: #fff;
}

/* =========================================================
   DASHBOARD SPECIFIC
   ========================================================= */
.profile-container {
  animation: dashboardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notif-dropdown {
  transform-origin: top right;
  transition:
    opacity var(--transition-mid),
    transform var(--transition-mid),
    visibility var(--transition-mid);
}

.notif-dropdown.closed {
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  pointer-events: none;
  visibility: hidden;
}

.notif-dropdown.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(220, 38, 38, 0.8) rgba(255, 255, 255, 0.03);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.92), rgba(220, 38, 38, 0.92));
  border-radius: 999px;
  border: 1px solid rgba(8, 10, 12, 0.45);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(252, 165, 165, 1), rgba(239, 68, 68, 1));
}

.animate-pulse-slow {
  animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.moon-icon {
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.shimmer-line,
.animate-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
  pointer-events: none;
}

/* =========================================================
   DOWNLOAD CARDS
   ========================================================= */
.download-card {
  margin-top: 20px;
}

.download-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #dc2626, #a81b1b);
  color: #fff;
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-mid),
    border-color var(--transition-fast);
  box-shadow:
    0 10px 24px rgba(220, 38, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.download-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 165, 165, 0.24);
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  box-shadow:
    0 14px 30px rgba(220, 38, 38, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.coming-soon-badge {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-card.soon {
  opacity: 0.85;
}

/* =========================================================
   REVEAL / ANIMATION
   ========================================================= */
.reveal-up,
.reveal-card,
.reveal-left,
.reveal-right {
  opacity: 0;
  will-change: transform, opacity, filter;
  filter: blur(8px);
}

.reveal-up {
  transform: translateY(44px);
}

.reveal-card {
  transform: translateY(54px) scale(0.985);
}

.reveal-left {
  transform: translateX(-34px);
}

.reveal-right {
  transform: translateX(34px);
}

.is-visible.reveal-up,
.is-visible.reveal-card,
.is-visible.reveal-left,
.is-visible.reveal-right {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible.reveal-up {
  transform: translateY(0);
}

.is-visible.reveal-card {
  transform: translateY(0) scale(1);
}

.is-visible.reveal-left,
.is-visible.reveal-right {
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

.reveal-delay-5 {
  transition-delay: 0.4s;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(42px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes dashboardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-150%);
  }
  50% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(150%);
  }
}

@keyframes pulseSlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}



/* =========================================================
   ALL TICKETS / DOCUMENTS LAYOUT FIX
   ========================================================= */
.dashboard-left > .dashboard-card,
.dashboard-right > .dashboard-card {
  min-height: 0;
}

#ticketList,
#docList {
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
}

#ticketList .service-item,
#docList .service-item {
  margin-right: 2px;
}

#viewerBox {
  min-height: 560px;
  max-height: 70vh;
  overflow: auto;
}

@media (max-width: 980px) {
  #ticketList,
  #docList {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #viewerBox {
    max-height: none;
  }
}



/* =========================================================
   DASHBOARD HERO MATCH (all_tickets-style support)
   ========================================================= */
.profile-hero {
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  isolation: isolate;
}

.profile-hero > .container,
.profile-hero > .profile-hero-content {
  position: relative;
  z-index: 2;
}

.profile-hero-title {
  max-width: 920px;
  color: #fff;
  font-size: clamp(2.35rem, 5.3vw, 4.9rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile-hero-subtitle {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.86;
  font-weight: 500;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.28);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 18, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.profile-hero[style*="dashboard.jpg"] {
  background-position: center 24%;
}

body:has(#live-timeline-content) .profile-hero-overlay,
body:has(#realtime-clock) .profile-hero-overlay,
.profile-hero.dashboard-hero .profile-hero-overlay,
.dashboard-hero .profile-hero-overlay,
.profile-hero[style*="dashboard.jpg"] .profile-hero-overlay {
  background:
    radial-gradient(860px 360px at 16% 10%, rgba(220, 38, 38, 0.12), transparent 56%),
    linear-gradient(90deg, rgba(5, 6, 8, 0.78) 0%, rgba(5, 6, 8, 0.48) 38%, rgba(5, 6, 8, 0.64) 72%, rgba(5, 6, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.30) 56%, rgba(0, 0, 0, 0.78) 100%);
}

body:has(#live-timeline-content) .profile-hero-content,
body:has(#realtime-clock) .profile-hero-content,
.profile-hero.dashboard-hero .profile-hero-content,
.dashboard-hero .profile-hero-content,
.profile-hero[style*="dashboard.jpg"] .profile-hero-content {
  max-width: 900px;
}

body:has(#live-timeline-content) .profile-hero + .dashboard-main,
body:has(#realtime-clock) .profile-hero + .dashboard-main,
.profile-hero.dashboard-hero + .dashboard-main,
.dashboard-hero + .dashboard-main,
.profile-hero[style*="dashboard.jpg"] + .dashboard-main {
  margin-top: -8px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1260px) {
  .dashboard-grid,
  .onboarding-head,
  .onboarding-slide-grid,
  .profile-main {
    grid-template-columns: 1fr;
  }

  .profile-grid.profile-summary-grid.profile-summary-wide,
  .profile-wide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-content {
    padding-top: 175px;
    padding-bottom: 200px;
  }

  .profile-hero {
    padding-top: 118px;
    padding-bottom: 54px;
  }

  .hero-text,
  .profile-hero-text {
    font-size: 1rem;
  }

  .mega-sub {
    margin-top: 4px;
  }

  .brand-top {
    font-size: 1.65rem;
  }

  .brand-main {
    font-size: 0.66rem;
  }

  .profile-grid,
  .actions-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-row {
    grid-template-columns: 1fr;
  }

  .info-section,
  .showcase-section,
  .cta-section {
    padding: 90px 0;
  }

  .onboarding-shell {
    padding-top: 150px;
    padding-bottom: 90px;
  }

  .profile-card-pad {
    padding: 0 22px 22px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--maxw));
  }

  body::after {
    inset: 6px;
    border-radius: 12px;
  }

  .site-header {
    padding: 12px 0;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .user-menu,
  .user-menu-trigger,
  .user-box {
    width: 100%;
  }

  .user-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }

  .hero-content {
    padding-top: 150px;
    padding-bottom: 170px;
  }

  .profile-hero {
    padding-top: 112px;
    padding-bottom: 48px;
  }

  .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.2em;
  }

  .hero-text,
  .profile-hero-text {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .feature-card,
  .glass-panel,
  .cta-box,
  .dashboard-card,
  .action-card,
  .service-item,
  .onboarding-stage,
  .onboarding-slide,
  .onboarding-final-box {
    border-radius: 18px;
  }

  .feature-card,
  .glass-panel,
  .cta-box,
  .dashboard-card,
  .onboarding-slide,
  .onboarding-final-box {
    padding: 20px;
  }

  .showcase-copy h2,
  .cta-box h2,
  .section-title,
  .onboarding-copy h2 {
    font-size: 2rem;
  }

  .copy-row {
    flex-direction: column;
  }

  .service-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-tag {
    align-self: flex-start;
  }

  .brand {
    gap: 0;
  }

  .brand-top {
    font-size: 1.38rem;
    line-height: 0.88;
  }

  .brand-main {
    margin-left: 2px;
    font-size: 0.62rem;
  }

  .info-section,
  .showcase-section,
  .cta-section {
    padding: 76px 0;
  }

  .dashboard-main {
    padding-bottom: 76px;
  }

  .onboarding-controls {
    grid-template-columns: 1fr;
  }

  .onboarding-control-meta {
    order: -1;
  }

  .profile-main-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero .hero-stats-band {
    margin-top: 20px;
  }

  .profile-card-pad {
    padding: 0 16px 16px;
  }

  .profile-top-stack,
  .profile-sections-stack,
  .profile-page-wrap,
  .profile-single-column {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .brand-top {
    font-size: 1.16rem;
  }

  .brand-main {
    font-size: 0.58rem;
  }

  .hero-stats-band {
    padding-bottom: 36px;
  }

  .profile-hero .hero-stats-band {
    padding-bottom: 0;
  }

  .mega-stat {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .mega-sub {
    font-size: 1.08rem;
  }

  .btn,
  .btn-discord.large {
    min-height: 48px;
  }

  .btn-small {
    min-height: 44px;
  }

  .hero h1,
  .hero-copy h1,
  .profile-hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .card-head h2 {
    font-size: 1.36rem;
  }

  .profile-avatar-large,
  .profile-avatar-fallback {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .onboarding-stage {
    padding: 8px;
  }

  .onboarding-slide {
    padding: 18px;
  }
}


/* =========================================================
   HERO VISIBILITY / TICKETS / DASHBOARD FINAL OVERRIDES
   ========================================================= */

/* Home hero: slightly darker than the subpages, but with more visible image detail */
.hero-bg {
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.86) 0%,
      rgba(5, 6, 8, 0.60) 34%,
      rgba(5, 6, 8, 0.54) 58%,
      rgba(5, 6, 8, 0.82) 100%
    ),
    var(--hero-image) center center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    radial-gradient(980px 460px at 16% 14%, rgba(220, 38, 38, 0.08), transparent 56%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.26) 42%,
      rgba(0, 0, 0, 0.76) 100%
    );
}

/* Generic profile hero: brighter so the page images are easier to see */
.profile-hero {
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
}

.profile-hero-bg {
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.64) 0%,
      rgba(5, 6, 8, 0.34) 34%,
      rgba(5, 6, 8, 0.28) 56%,
      rgba(5, 6, 8, 0.62) 100%
    ),
    url("/static/hero.jpg") center 28% / cover no-repeat;
  transform: scale(1.01);
}

.profile-hero-overlay {
  background:
    radial-gradient(980px 420px at 16% 10%, rgba(220, 38, 38, 0.10), transparent 56%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.18) 48%,
      rgba(0, 0, 0, 0.58) 100%
    );
}

.profile-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.profile-hero .section-head {
  max-width: 760px;
  margin-bottom: 0;
}

.profile-hero .section-title,
.profile-hero-title {
  text-align: left;
}

.profile-hero .section-copy,
.profile-hero-subtitle {
  text-align: left;
}

/* Tickets page: restore tickets.jpg and keep it clearly visible */
body:has(#ticketList) .profile-hero-bg,
body:has(#docList) .profile-hero-bg {
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.62) 0%,
      rgba(5, 6, 8, 0.32) 34%,
      rgba(5, 6, 8, 0.24) 58%,
      rgba(5, 6, 8, 0.58) 100%
    ),
    url("/static/tickets.jpg") center 34% / cover no-repeat;
}

body:has(#ticketList) .profile-hero-overlay,
body:has(#docList) .profile-hero-overlay {
  background:
    radial-gradient(980px 420px at 16% 10%, rgba(220, 38, 38, 0.10), transparent 56%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.17) 48%,
      rgba(0, 0, 0, 0.56) 100%
    );
}

/* Dashboard page: same left-aligned look as all_tickets, but tailored for dashboard.jpg */
body:has(#live-timeline-content) .profile-hero-bg,
body:has(#realtime-clock) .profile-hero-bg,
.profile-hero.dashboard-hero .profile-hero-bg,
.dashboard-hero .profile-hero-bg {
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.62) 0%,
      rgba(5, 6, 8, 0.32) 34%,
      rgba(5, 6, 8, 0.24) 58%,
      rgba(5, 6, 8, 0.58) 100%
    ),
    url("/static/dashboard.jpg") center 22% / cover no-repeat;
}

body:has(#live-timeline-content) .profile-hero,
body:has(#realtime-clock) .profile-hero,
.profile-hero.dashboard-hero,
.dashboard-hero,
.profile-hero[style*="dashboard.jpg"] {
  background-position: center 22% !important;
  background-size: cover;
  background-repeat: no-repeat;
}

body:has(#live-timeline-content) .profile-hero-overlay,
body:has(#realtime-clock) .profile-hero-overlay,
.profile-hero.dashboard-hero .profile-hero-overlay,
.dashboard-hero .profile-hero-overlay,
.profile-hero[style*="dashboard.jpg"] .profile-hero-overlay {
  background:
    radial-gradient(920px 380px at 14% 10%, rgba(220, 38, 38, 0.11), transparent 56%),
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.68) 0%,
      rgba(5, 6, 8, 0.34) 36%,
      rgba(5, 6, 8, 0.20) 58%,
      rgba(5, 6, 8, 0.56) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.18) 52%,
      rgba(0, 0, 0, 0.58) 100%
    );
}

body:has(#live-timeline-content) .profile-hero-content,
body:has(#realtime-clock) .profile-hero-content,
.profile-hero.dashboard-hero .profile-hero-content,
.dashboard-hero .profile-hero-content,
.profile-hero[style*="dashboard.jpg"] .profile-hero-content {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 780px;
  margin-left: 0;
  padding-right: 0;
}

body:has(#live-timeline-content) .hero-kicker,
body:has(#live-timeline-content) .hero-badges,
body:has(#live-timeline-content) .profile-hero-title,
body:has(#live-timeline-content) .profile-hero-subtitle,
body:has(#realtime-clock) .hero-kicker,
body:has(#realtime-clock) .hero-badges,
body:has(#realtime-clock) .profile-hero-title,
body:has(#realtime-clock) .profile-hero-subtitle,
.profile-hero.dashboard-hero .hero-kicker,
.profile-hero.dashboard-hero .hero-badges,
.profile-hero.dashboard-hero .profile-hero-title,
.profile-hero.dashboard-hero .profile-hero-subtitle,
.dashboard-hero .hero-kicker,
.dashboard-hero .hero-badges,
.dashboard-hero .profile-hero-title,
.dashboard-hero .profile-hero-subtitle,
.profile-hero[style*="dashboard.jpg"] .hero-kicker,
.profile-hero[style*="dashboard.jpg"] .hero-badges,
.profile-hero[style*="dashboard.jpg"] .profile-hero-title,
body:has(#live-timeline-content) .profile-hero-subtitle,
body:has(#realtime-clock) .profile-hero-subtitle,
.profile-hero.dashboard-hero .profile-hero-subtitle,
.dashboard-hero .profile-hero-subtitle,
.profile-hero[style*="dashboard.jpg"] .profile-hero-subtitle {
  text-align: left;
  justify-content: flex-start;
}

body:has(#live-timeline-content) .profile-hero-title,
body:has(#realtime-clock) .profile-hero-title,
.profile-hero.dashboard-hero .profile-hero-title,
.dashboard-hero .profile-hero-title,
.profile-hero[style*="dashboard.jpg"] .profile-hero-title {
  max-width: 760px;
}

body:has(#live-timeline-content) .profile-hero-subtitle,
body:has(#realtime-clock) .profile-hero-subtitle,
.profile-hero.dashboard-hero .profile-hero-subtitle,
.dashboard-hero .profile-hero-subtitle,
.profile-hero[style*="dashboard.jpg"] .profile-hero-subtitle {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
}

body:has(#live-timeline-content) .profile-hero + .dashboard-main,
body:has(#realtime-clock) .profile-hero + .dashboard-main,
.profile-hero.dashboard-hero + .dashboard-main,
.dashboard-hero + .dashboard-main,
.profile-hero[style*="dashboard.jpg"] + .dashboard-main {
  margin-top: -8px;
}

/* Mobile tuning */
@media (max-width: 980px) {
  .profile-hero {
    padding-top: 112px;
    padding-bottom: 48px;
    background-position: center 24%;
  }

  .profile-hero-bg {
    background-position: center 24%;
  }

  body:has(#ticketList) .profile-hero-bg,
  body:has(#docList) .profile-hero-bg {
    background-position: center 28%;
  }

  body:has(#live-timeline-content) .profile-hero,
  body:has(#realtime-clock) .profile-hero,
  .profile-hero.dashboard-hero,
  .dashboard-hero,
  .profile-hero[style*="dashboard.jpg"] {
    background-position: center 24% !important;
  }

  body:has(#live-timeline-content) .profile-hero-bg,
  body:has(#realtime-clock) .profile-hero-bg,
  .profile-hero.dashboard-hero .profile-hero-bg,
  .dashboard-hero .profile-hero-bg {
    background-position: center 24% !important;
  }

  .profile-hero-title,
  .profile-hero .section-title {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .hero-content {
    padding-top: 162px;
    padding-bottom: 172px;
  }

  .profile-hero {
    padding-top: 104px;
    padding-bottom: 42px;
  }

  .profile-hero-subtitle,
  .profile-hero .section-copy {
    max-width: 100%;
  }
}


/* =========================================================
   FINAL HERO MATCH OVERRIDES (all_tickets 1:1 style)
   ========================================================= */

/* Generic subpage hero: brighter, more image visibility, left-aligned content */
.profile-hero {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  padding: 124px 0 60px;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
  isolation: isolate;
}

.profile-hero > .container,
.profile-hero > .profile-hero-content {
  position: relative;
  z-index: 2;
}

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(980px 420px at 16% 10%, rgba(220, 38, 38, 0.10), transparent 56%),
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.62) 0%,
      rgba(5, 6, 8, 0.32) 34%,
      rgba(5, 6, 8, 0.24) 58%,
      rgba(5, 6, 8, 0.58) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.17) 48%,
      rgba(0, 0, 0, 0.56) 100%
    ) !important;
}

.profile-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  width: 100%;
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-kicker,
.hero-badges,
.profile-hero-title,
.profile-hero-subtitle,
.profile-hero .section-title,
.profile-hero .section-copy {
  text-align: left !important;
}

.hero-badges {
  justify-content: flex-start;
}

.profile-hero-title {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.35rem, 5.3vw, 4.9rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile-hero-subtitle {
  max-width: 700px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.86;
  font-weight: 500;
}

/* all_tickets / documents hero uses tickets.jpg and stays clearly visible */
body:has(#ticketList) .profile-hero,
body:has(#docList) .profile-hero {
  background-image: url("/static/tickets.jpg") !important;
  background-position: center 34% !important;
}

body:has(#ticketList) .profile-hero-overlay,
body:has(#docList) .profile-hero-overlay {
  background:
    radial-gradient(980px 420px at 16% 10%, rgba(220, 38, 38, 0.10), transparent 56%),
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.62) 0%,
      rgba(5, 6, 8, 0.32) 34%,
      rgba(5, 6, 8, 0.24) 58%,
      rgba(5, 6, 8, 0.58) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.17) 48%,
      rgba(0, 0, 0, 0.56) 100%
    ) !important;
}

/* dashboard hero should look 1:1 like all_tickets, only with dashboard.jpg */
.profile-hero[style*="dashboard.jpg"] {
  background-position: center 34% !important;
}

body:has(#live-timeline-content) .profile-hero-overlay,
body:has(#realtime-clock) .profile-hero-overlay,
.profile-hero.dashboard-hero .profile-hero-overlay,
.dashboard-hero .profile-hero-overlay,
.profile-hero[style*="dashboard.jpg"] .profile-hero-overlay {
  background:
    radial-gradient(980px 420px at 16% 10%, rgba(220, 38, 38, 0.10), transparent 56%),
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.62) 0%,
      rgba(5, 6, 8, 0.32) 34%,
      rgba(5, 6, 8, 0.24) 58%,
      rgba(5, 6, 8, 0.58) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.17) 48%,
      rgba(0, 0, 0, 0.56) 100%
    ) !important;
}

body:has(#live-timeline-content) .profile-hero-content,
body:has(#realtime-clock) .profile-hero-content,
.profile-hero.dashboard-hero .profile-hero-content,
.dashboard-hero .profile-hero-content,
.profile-hero[style*="dashboard.jpg"] .profile-hero-content {
  max-width: 760px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  padding-right: 0;
}

body:has(#live-timeline-content) .hero-kicker,
body:has(#live-timeline-content) .hero-badges,
body:has(#live-timeline-content) .profile-hero-title,
body:has(#live-timeline-content) .profile-hero-subtitle,
body:has(#realtime-clock) .hero-kicker,
body:has(#realtime-clock) .hero-badges,
body:has(#realtime-clock) .profile-hero-title,
body:has(#realtime-clock) .profile-hero-subtitle,
.profile-hero.dashboard-hero .hero-kicker,
.profile-hero.dashboard-hero .hero-badges,
.profile-hero.dashboard-hero .profile-hero-title,
.profile-hero.dashboard-hero .profile-hero-subtitle,
.dashboard-hero .hero-kicker,
.dashboard-hero .hero-badges,
.dashboard-hero .profile-hero-title,
.dashboard-hero .profile-hero-subtitle,
.profile-hero[style*="dashboard.jpg"] .hero-kicker,
.profile-hero[style*="dashboard.jpg"] .hero-badges,
.profile-hero[style*="dashboard.jpg"] .profile-hero-title,
body:has(#live-timeline-content) .profile-hero-subtitle,
body:has(#realtime-clock) .profile-hero-subtitle,
.profile-hero.dashboard-hero .profile-hero-subtitle,
.dashboard-hero .profile-hero-subtitle,
.profile-hero[style*="dashboard.jpg"] .profile-hero-subtitle {
  text-align: left !important;
  justify-content: flex-start;
}

body:has(#live-timeline-content) .profile-hero + .dashboard-main,
body:has(#realtime-clock) .profile-hero + .dashboard-main,
.profile-hero.dashboard-hero + .dashboard-main,
.dashboard-hero + .dashboard-main,
.profile-hero[style*="dashboard.jpg"] + .dashboard-main {
  margin-top: -8px;
}

/* home hero remains a bit darker than subpages */
.hero-bg {
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 8, 0.86) 0%,
      rgba(5, 6, 8, 0.60) 34%,
      rgba(5, 6, 8, 0.54) 58%,
      rgba(5, 6, 8, 0.82) 100%
    ),
    var(--hero-image) center center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    radial-gradient(980px 460px at 16% 14%, rgba(220, 38, 38, 0.08), transparent 56%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.26) 42%,
      rgba(0, 0, 0, 0.76) 100%
    );
}

@media (max-width: 980px) {
  .profile-hero {
    padding-top: 112px;
    padding-bottom: 48px;
    background-position: center 28% !important;
  }

  body:has(#ticketList) .profile-hero,
  body:has(#docList) .profile-hero,
  .profile-hero[style*="dashboard.jpg"] {
    background-position: center 30% !important;
  }

  .profile-hero-content {
    max-width: 100%;
  }

  .profile-hero-title,
  .profile-hero-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .profile-hero {
    padding-top: 104px;
    padding-bottom: 42px;
  }
}

/* =========================================================
   STAFF PANEL / DISCORD EMBED STYLE
   ========================================================= */
.staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.staff-shell,
.history-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(15, 17, 22, 0.94);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px) saturate(1.02);
  -webkit-backdrop-filter: blur(14px) saturate(1.02);
  padding: 24px;
}

.staff-shell::before,
.history-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0),
    rgba(88, 101, 242, 0.12)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}

.staff-shell::after,
.history-shell::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.18), transparent 68%);
  opacity: 0.7;
  pointer-events: none;
}

.staff-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.staff-panel-head h3,
.history-shell h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.history-shell > p,
.staff-panel-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.75;
}

.staff-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.staff-pill strong {
  color: #fff;
  font-weight: 900;
}

.staff-avatar-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 5px rgba(88, 101, 242, 0.08);
  flex-shrink: 0;
}

.staff-sections {
  display: grid;
  gap: 18px;
}

.staff-section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    rgba(20, 23, 30, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.staff-section-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.staff-section-card h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.staff-role-list {
  display: grid;
  gap: 14px;
}

.staff-role-item {
  display: grid;
  gap: 8px;
  padding: 0 0 0 14px;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.staff-role-item:hover {
  border-left-color: rgba(88, 101, 242, 0.45);
}

.staff-role-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.role-chip::before {
  content: "@";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.role-chip.leadership {
  color: #ff6b6b;
  background: rgba(255, 59, 59, 0.12);
  border-color: rgba(255, 59, 59, 0.2);
}

.role-chip.management {
  color: #6fb8ff;
  background: rgba(52, 152, 255, 0.12);
  border-color: rgba(52, 152, 255, 0.2);
}

.role-chip.development {
  color: #ff9f43;
  background: rgba(255, 159, 67, 0.12);
  border-color: rgba(255, 159, 67, 0.2);
}

.role-chip.hr {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.2);
}

.role-chip.community {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.2);
}

.role-chip.default {
  color: #f2f4f8;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.18);
  color: #c4d0ff;
  border: 1px solid rgba(88, 101, 242, 0.24);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.member-tag::before {
  content: "@";
  color: #dce3ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.staff-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
  font-style: italic;
}

.history-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.history-item {
  position: relative;
  padding: 0 0 0 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.history-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7c8cff, #5865f2);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.16);
}

.history-item strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.5;
  font-weight: 800;
}

.history-time,
.staff-empty,
.staff-loading {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.history-time {
  margin-bottom: 4px;
}

.staff-empty,
.staff-loading {
  padding: 14px 0;
}

@media (max-width: 980px) {
  .staff-layout {
    grid-template-columns: 1fr;
  }

  .staff-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-avatar-badge {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 640px) {
  .staff-shell,
  .history-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .staff-section-card {
    padding: 16px;
  }

  .member-tag,
  .role-chip {
    font-size: 0.82rem;
  }
}
