:root {
  --bg: #040612;
  --bg-soft: #080c1c;
  --panel: rgba(10, 16, 40, 0.78);
  --panel-strong: rgba(12, 19, 48, 0.96);
  --panel-hover: rgba(16, 26, 66, 0.96);
  --border: rgba(78, 147, 255, 0.22);
  --border-bright: rgba(79, 223, 255, 0.52);
  --text: #f7f9ff;
  --muted: #98a7ca;
  --cyan: #20d8ff;
  --blue: #3f7cff;
  --violet: #9f50ff;
  --pink: #e55cff;
  --success: #38e5a1;
  --warning: #ffc85a;
  --danger: #ff667f;
  --info: #66b7ff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 34px rgba(32, 216, 255, 0.22);
  --radius: 20px;
  --radius-sm: 13px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(32, 216, 255, 0.09), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(159, 80, 255, 0.11), transparent 30%),
    linear-gradient(145deg, #02040c 0%, #060a19 54%, #070317 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(52, 94, 180, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 94, 180, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 110px, rgba(39, 112, 255, .025) 111px 112px);
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { color: inherit; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 90px 0; }
.section-tight { padding: 48px 0; }

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #ffffff 0%, #79eaff 42%, #bf74ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(80, 216, 255, .3);
  border-radius: 999px;
  color: #8aeaff;
  background: rgba(20, 135, 190, .08);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .72rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
}
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 {
  margin: 16px 0 13px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-heading p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(73, 130, 245, .16);
  background: rgba(3, 6, 18, .78);
  backdrop-filter: blur(18px);
}
.navbar { display: flex; align-items: center; min-height: 76px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 24px rgba(57, 188, 255, .22); }
.brand-copy strong { display: block; letter-spacing: .08em; font-size: .96rem; }
.brand-copy span { color: #71dfff; font-size: .7rem; text-transform: uppercase; letter-spacing: .19em; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  border: 0;
  background: transparent;
  color: #aebade;
  padding: 10px 13px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  transition: .2s ease;
}
.nav-link:hover, .nav-link.active { color: white; background: rgba(61, 104, 221, .13); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.menu-toggle { display: none; }

.btn {
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(115deg, #16c9f2, #4b7cff 54%, #9f50ff);
  color: #fff;
  box-shadow: 0 12px 32px rgba(60, 100, 255, .27);
}
.btn-primary:hover { box-shadow: 0 18px 42px rgba(71, 123, 255, .35); }
.btn-secondary {
  background: rgba(15, 23, 53, .72);
  border-color: rgba(105, 151, 255, .25);
  color: #e9efff;
}
.btn-secondary:hover { border-color: rgba(80, 222, 255, .5); background: rgba(18, 31, 72, .9); }
.btn-ghost { background: transparent; border-color: rgba(132, 154, 220, .18); color: #b8c4e5; }
.btn-danger { background: rgba(255, 80, 111, .12); border-color: rgba(255, 102, 127, .32); color: #ff9aac; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: .86rem; }
.btn-block { width: 100%; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 15, .98) 0%, rgba(4, 8, 22, .82) 42%, rgba(4, 7, 20, .3) 75%, rgba(3, 6, 17, .76) 100%),
    url('../images/sdx-banner.png') center/cover no-repeat;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 58px; align-items: center; padding: 80px 0 100px; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: .91; letter-spacing: -.065em; margin: 19px 0 24px; max-width: 820px; }
.hero-copy p { color: #b5c2e2; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.75; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #9fadd1; font-size: .88rem; }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust b { color: var(--success); }

.hero-console {
  border: 1px solid rgba(79, 204, 255, .3);
  background: linear-gradient(155deg, rgba(8, 17, 44, .92), rgba(8, 8, 29, .82));
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 28px 90px rgba(1, 6, 32, .78), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(17px);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
.console-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 16px; color: #94a7d3; font-size: .83rem; }
.console-dots { display: flex; gap: 7px; }
.console-dots i { width: 8px; height: 8px; border-radius: 50%; background: #326fe6; box-shadow: 0 0 10px rgba(59, 139, 255, .5); }
.console-dots i:nth-child(2) { background: #20d8ff; }
.console-dots i:nth-child(3) { background: #a753ff; }
.console-card { border: 1px solid rgba(73, 123, 238, .2); background: rgba(4, 9, 25, .7); border-radius: 16px; padding: 17px; margin-bottom: 12px; }
.console-card:last-child { margin-bottom: 0; }
.console-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.console-title { display: flex; align-items: center; gap: 12px; }
.console-title img { width: 42px; height: 42px; border-radius: 12px; }
.console-title strong { display: block; font-size: .95rem; }
.console-title small { color: #8290b6; }
.progress { height: 7px; border-radius: 99px; background: rgba(71, 101, 174, .2); overflow: hidden; margin-top: 13px; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 15px rgba(45, 213, 255, .5); }

.stat-strip { position: relative; margin-top: -54px; z-index: 3; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: rgba(7, 12, 31, .86); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.stat-item { padding: 24px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { font-size: 1.8rem; display: block; }
.stat-item span { color: var(--muted); font-size: .86rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(13, 22, 53, .82), rgba(7, 11, 29, .74));
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.glass-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -60px;
  top: -65px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 205, 255, .18), transparent 65%);
}
.glass-card:hover { border-color: rgba(79, 202, 255, .4); }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: linear-gradient(145deg, rgba(30, 208, 250, .15), rgba(157, 78, 255, .15)); border: 1px solid rgba(90, 204, 255, .22); margin-bottom: 18px; }
.glass-card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.glass-card p { color: var(--muted); line-height: 1.68; margin: 0; }

.bot-card { display: flex; flex-direction: column; min-height: 100%; }
.bot-card .bot-head { display: flex; align-items: center; gap: 13px; }
.bot-card .bot-head img { width: 52px; height: 52px; border-radius: 15px; }
.bot-card h3 { margin: 0; }
.bot-card .tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 17px 0 20px; }
.tag { padding: 6px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #9defff; border: 1px solid rgba(44, 203, 255, .23); background: rgba(32, 180, 222, .07); }
.bot-card .card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 900; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-online, .status-paid, .status-complete { color: var(--success); background: rgba(56, 229, 161, .1); }
.status-progress, .status-open { color: var(--info); background: rgba(102, 183, 255, .1); }
.status-warning, .status-pending { color: var(--warning); background: rgba(255, 200, 90, .1); }
.status-danger, .status-overdue { color: var(--danger); background: rgba(255, 102, 127, .1); }
.status-offline { color: #8390b1; background: rgba(131, 144, 177, .1); }

.cta-panel {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: 30px;
  border: 1px solid rgba(86, 200, 255, .33);
  background:
    linear-gradient(115deg, rgba(19, 164, 214, .14), rgba(70, 77, 217, .12) 48%, rgba(151, 59, 224, .14)),
    rgba(7, 11, 30, .9);
  padding: 42px;
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(6, 17, 47, .6);
}
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 12px; letter-spacing: -.04em; }
.cta-panel p { margin: 0; color: #a9b8db; line-height: 1.7; }
.cta-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid rgba(62, 109, 204, .15); padding: 50px 0 24px; background: rgba(3, 6, 17, .6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 360px; line-height: 1.65; }
.footer-col h4 { margin: 0 0 14px; }
.footer-col a, .footer-col button { display: block; color: #99a8ca; border: 0; background: transparent; padding: 5px 0; cursor: pointer; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: #7eeaff; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(72, 112, 196, .12); color: #6f7d9f; font-size: .82rem; display: flex; justify-content: space-between; gap: 20px; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #030512;
}
.auth-visual {
  min-height: 100vh;
  background:
    linear-gradient(125deg, rgba(2, 5, 16, .9), rgba(4, 7, 20, .42)),
    url('../images/sdx-banner.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  border-right: 1px solid rgba(70, 144, 255, .2);
}
.auth-visual .brand { margin: 0; }
.auth-quote { max-width: 580px; }
.auth-quote h2 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; margin: 0 0 20px; }
.auth-quote p { color: #a9b7da; line-height: 1.75; max-width: 550px; }
.auth-panel { display: grid; place-items: center; padding: 38px 24px; background: radial-gradient(circle at 90% 10%, rgba(147, 70, 255, .08), transparent 32%); }
.auth-card { width: min(470px, 100%); }
.auth-card .back-link { display: inline-flex; align-items: center; gap: 8px; color: #8fa1c8; margin-bottom: 28px; cursor: pointer; }
.auth-card h1 { margin: 0 0 9px; font-size: 2.25rem; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); margin: 0 0 28px; line-height: 1.6; }
.form-group { margin-bottom: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-label { display: block; color: #c7d1ed; font-size: .84rem; font-weight: 800; margin-bottom: 8px; }
.form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(90, 127, 213, .24);
  border-radius: 12px;
  background: rgba(8, 13, 32, .82);
  color: white;
  padding: 0 14px;
  outline: none;
  transition: .2s ease;
}
textarea.form-control { min-height: 120px; padding-top: 12px; resize: vertical; }
.form-control:focus { border-color: rgba(47, 217, 255, .66); box-shadow: 0 0 0 4px rgba(39, 198, 245, .08); }
.form-control::placeholder { color: #596787; }
.form-note { color: #7281a3; font-size: .78rem; line-height: 1.5; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; color: #8e9abc; font-size: .82rem; line-height: 1.5; }
.checkbox-row input { margin-top: 3px; accent-color: var(--blue); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #697899; font-size: .77rem; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: rgba(89, 116, 181, .2); flex: 1; }
.demo-box { margin-top: 20px; border: 1px solid rgba(88, 135, 239, .2); background: rgba(11, 19, 45, .62); border-radius: 13px; padding: 13px; color: #8fa0c6; font-size: .78rem; line-height: 1.6; }
.demo-box code { color: #75e9ff; }
.switch-auth { text-align: center; margin-top: 22px; color: #8f9fc2; font-size: .9rem; }
.switch-auth button { border: 0; background: transparent; color: #55dbff; cursor: pointer; font-weight: 800; }

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 268px 1fr; background: rgba(3, 5, 14, .95); }
.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid rgba(74, 125, 225, .16);
  background: linear-gradient(180deg, rgba(8, 13, 34, .98), rgba(5, 8, 22, .98));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.portal-sidebar .brand { margin: 0 0 24px; padding: 6px; }
.sidebar-group-label { color: #596a91; font-size: .67rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 900; padding: 0 12px; margin: 17px 0 7px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #91a0c2;
  background: transparent;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 750;
}
.sidebar-link .nav-icon { width: 25px; text-align: center; opacity: .95; }
.sidebar-link:hover { color: white; background: rgba(54, 91, 189, .1); }
.sidebar-link.active { color: white; border-color: rgba(68, 209, 255, .2); background: linear-gradient(90deg, rgba(23, 199, 239, .13), rgba(109, 72, 236, .12)); box-shadow: inset 3px 0 0 var(--cyan); }
.sidebar-footer { margin-top: auto; padding-top: 18px; }
.user-mini { border: 1px solid rgba(89, 132, 225, .18); background: rgba(12, 20, 47, .65); border-radius: 14px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.user-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: linear-gradient(145deg, #16c8f2, #655cff 62%, #b34dff); box-shadow: 0 0 18px rgba(59, 166, 255, .22); }
.user-mini strong { display: block; font-size: .85rem; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini small { color: #7585a9; text-transform: capitalize; }

.portal-main { min-width: 0; }
.portal-topbar { min-height: 78px; display: flex; align-items: center; gap: 15px; padding: 0 28px; border-bottom: 1px solid rgba(73, 117, 207, .14); background: rgba(5, 8, 22, .78); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 30; }
.portal-topbar h1 { font-size: 1.08rem; margin: 0; }
.portal-topbar p { color: #7585a8; font-size: .78rem; margin: 2px 0 0; }
.topbar-spacer { flex: 1; }
.icon-button { width: 42px; height: 42px; border: 1px solid rgba(86, 123, 211, .2); background: rgba(13, 20, 45, .75); border-radius: 12px; display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-button:hover { border-color: rgba(47, 217, 255, .45); }
.notification-dot { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #ff6681; box-shadow: 0 0 9px #ff6681; }
.portal-menu-toggle { display: none; }
.portal-content { padding: 28px; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 24px; }
.page-intro h2 { margin: 0 0 7px; font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -.04em; }
.page-intro p { margin: 0; color: var(--muted); line-height: 1.6; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { border: 1px solid var(--border); background: linear-gradient(145deg, rgba(13, 21, 50, .9), rgba(7, 11, 29, .82)); border-radius: 17px; padding: 18px; box-shadow: 0 16px 44px rgba(0,0,0,.2); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #8999bb; font-size: .8rem; font-weight: 800; }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: rgba(38, 176, 232, .1); border: 1px solid rgba(47, 198, 245, .16); }
.metric-value { font-size: 1.8rem; font-weight: 900; letter-spacing: -.03em; }
.metric-sub { margin-top: 5px; color: #6f7fa2; font-size: .75rem; }
.metric-sub.positive { color: var(--success); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.panel { border: 1px solid var(--border); background: linear-gradient(145deg, rgba(12, 19, 46, .86), rgba(6, 10, 26, .82)); border-radius: 18px; box-shadow: 0 18px 48px rgba(0,0,0,.2); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 19px; border-bottom: 1px solid rgba(86, 126, 213, .14); }
.panel-header h3 { margin: 0; font-size: .98rem; }
.panel-header span { color: #7181a5; font-size: .76rem; }
.panel-body { padding: 18px; }

.activity-list { display: flex; flex-direction: column; }
.activity-item { display: grid; grid-template-columns: 39px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(75, 111, 188, .1); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(35, 151, 220, .09); border: 1px solid rgba(44, 182, 238, .13); }
.activity-copy strong { font-size: .86rem; display: block; }
.activity-copy span { color: #7686aa; font-size: .75rem; }
.activity-time { color: #5f6e91; font-size: .72rem; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-action { border: 1px solid rgba(87, 129, 217, .18); background: rgba(10, 17, 41, .7); border-radius: 13px; padding: 15px; cursor: pointer; min-height: 98px; text-align: left; }
.quick-action:hover { border-color: rgba(51, 212, 255, .42); background: rgba(14, 25, 58, .86); }
.quick-action span { font-size: 1.2rem; display: block; margin-bottom: 9px; }
.quick-action strong { font-size: .8rem; }
.quick-action small { display: block; color: #68789b; margin-top: 4px; line-height: 1.35; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { color: #6f80a5; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(81, 121, 204, .16); }
.data-table td { padding: 14px; border-bottom: 1px solid rgba(76, 108, 176, .09); color: #c4cdeb; font-size: .85rem; }
.data-table tr:hover td { background: rgba(20, 35, 77, .18); }
.data-table tr:last-child td { border-bottom: 0; }
.table-title { display: flex; align-items: center; gap: 10px; }
.table-logo { width: 34px; height: 34px; border-radius: 10px; }
.table-title strong { display: block; color: #f2f6ff; }
.table-title small { color: #6e7da0; }
.table-actions { display: flex; gap: 6px; }

.bot-dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.portal-bot-card { border: 1px solid var(--border); background: linear-gradient(145deg, rgba(13, 22, 53, .9), rgba(7, 11, 29, .86)); border-radius: 18px; padding: 18px; }
.portal-bot-head { display: flex; gap: 12px; align-items: center; }
.portal-bot-head img { width: 48px; height: 48px; border-radius: 14px; }
.portal-bot-head h3 { margin: 0 0 3px; }
.portal-bot-head p { margin: 0; color: #7585a8; font-size: .75rem; }
.bot-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.meta-box { background: rgba(7, 12, 30, .7); border: 1px solid rgba(83, 121, 205, .13); border-radius: 12px; padding: 11px; }
.meta-box span { display: block; color: #647498; font-size: .69rem; margin-bottom: 4px; }
.meta-box strong { font-size: .82rem; }
.bot-modules { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.project-card { border: 1px solid var(--border); background: linear-gradient(145deg, rgba(13, 21, 50, .9), rgba(7, 11, 29, .84)); border-radius: 18px; padding: 19px; margin-bottom: 14px; }
.project-card:last-child { margin-bottom: 0; }
.project-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.project-top h3 { margin: 0 0 5px; }
.project-top p { color: #7080a4; font-size: .78rem; margin: 0; }
.project-progress-row { display: flex; justify-content: space-between; color: #7889ad; font-size: .76rem; margin-top: 17px; }
.project-stages { margin-top: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.project-stage { height: 5px; background: rgba(70, 100, 170, .15); border-radius: 999px; }
.project-stage.active { background: linear-gradient(90deg, #1ed7ff, #885cff); box-shadow: 0 0 10px rgba(50, 195, 255, .32); }

.ticket-list { display: grid; gap: 12px; }
.ticket-card { border: 1px solid rgba(83, 121, 206, .18); border-radius: 15px; background: rgba(8, 14, 34, .62); padding: 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.ticket-card h4 { margin: 0 0 5px; }
.ticket-card p { margin: 0; color: #7181a5; font-size: .78rem; }

.empty-state { padding: 54px 20px; text-align: center; }
.empty-state-icon { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(38, 173, 229, .08); border: 1px solid rgba(50, 194, 242, .17); }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { margin: 0 auto 19px; color: var(--muted); max-width: 520px; line-height: 1.6; }

.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.profile-card { text-align: center; }
.profile-avatar { width: 92px; height: 92px; margin: 4px auto 15px; border-radius: 24px; display: grid; place-items: center; font-size: 2rem; font-weight: 900; background: linear-gradient(145deg, #19cdf4, #5e69ff 55%, #b047ff); box-shadow: 0 0 36px rgba(53, 163, 255, .22); }
.profile-card h3 { margin: 0 0 5px; }
.profile-card p { margin: 0; color: #7989ac; }
.profile-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 2, 10, .76); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(9px); }
.modal { width: min(600px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; border: 1px solid rgba(72, 200, 255, .3); background: linear-gradient(145deg, #0d1532, #070b1d); border-radius: 20px; box-shadow: 0 34px 100px rgba(0,0,0,.7); }
.modal-header { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 20px; border-bottom: 1px solid rgba(77, 120, 206, .16); }
.modal-header h3 { margin: 0; }
.modal-close { width: 36px; height: 36px; border: 1px solid rgba(94, 126, 200, .19); background: rgba(10, 16, 38, .72); border-radius: 10px; cursor: pointer; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; }

#toast-root { position: fixed; z-index: 500; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { width: min(380px, calc(100vw - 44px)); border: 1px solid rgba(76, 203, 255, .25); background: rgba(9, 15, 36, .96); border-radius: 14px; padding: 14px 16px; box-shadow: 0 22px 60px rgba(0,0,0,.45); display: grid; grid-template-columns: 30px 1fr; gap: 10px; animation: toastIn .25s ease; }
.toast strong { display: block; font-size: .86rem; }
.toast span { display: block; margin-top: 3px; color: #8292b6; font-size: .78rem; line-height: 1.45; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.045em; }
.legal-content h2 { margin-top: 36px; font-size: 1.35rem; }
.legal-content p, .legal-content li { color: #9aa9cb; line-height: 1.75; }
.legal-note { border: 1px solid rgba(255, 197, 80, .25); background: rgba(255, 190, 70, .07); padding: 15px; border-radius: 13px; color: #d9bd82; }

@media (max-width: 1100px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 18px; right: 18px; padding: 12px; border: 1px solid var(--border); border-radius: 15px; background: rgba(7, 11, 29, .98); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-link { text-align: left; }
  .menu-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-console { max-width: 720px; transform: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .bot-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: fixed; z-index: 80; left: 0; top: 0; width: 275px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 70px rgba(0,0,0,.6); }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-menu-toggle { display: grid; }
  .dashboard-grid, .profile-grid { grid-template-columns: 1fr; }
  .portal-content { padding: 20px; }
  .portal-topbar { padding: 0 20px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 65px 0; }
  .navbar { min-height: 68px; }
  .nav-links { top: 68px; }
  .brand-copy span { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .hero { min-height: auto; }
  .hero-grid { padding: 66px 0 90px; gap: 35px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 16vw, 4.5rem); }
  .hero-console { padding: 12px; border-radius: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cards-3, .cards-4, .bot-dashboard-grid, .metric-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cta-panel { padding: 28px 22px; }
  .auth-panel { padding: 28px 18px; align-items: start; }
  .auth-card { padding-top: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .portal-content { padding: 16px; }
  .portal-topbar { padding: 0 14px; min-height: 68px; }
  .portal-topbar p { display: none; }
  .page-intro { flex-direction: column; }
  .page-intro .btn { width: 100%; }
  .quick-actions { grid-template-columns: 1fr; }
  .project-top { flex-direction: column; }
  .project-stages { grid-template-columns: repeat(5, minmax(28px, 1fr)); }
  .ticket-card { grid-template-columns: 1fr; }
  #toast-root { right: 12px; bottom: 12px; }
}

/* ==============================================================
   Phase 2 – Backend-Zustände
   ============================================================== */
.backend-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 22px;
  padding: 9px 12px;
  border: 1px solid rgba(116, 132, 185, .22);
  border-radius: 999px;
  color: #8fa0c6;
  background: rgba(9, 15, 38, .72);
  font-size: .72rem;
  letter-spacing: .035em;
}

.backend-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.backend-badge.live {
  color: #65efc6;
  border-color: rgba(101, 239, 198, .24);
  background: rgba(28, 123, 98, .09);
}

.backend-badge.demo {
  color: #ffd16d;
  border-color: rgba(255, 209, 109, .22);
  background: rgba(133, 91, 14, .09);
}

.empty-state {
  min-height: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(99, 135, 211, .25);
  border-radius: 16px;
  background: rgba(7, 13, 31, .45);
}

.empty-state strong {
  color: #dbe8ff;
  font-size: .92rem;
}

.empty-state span {
  max-width: 520px;
  color: #7586ab;
  font-size: .78rem;
  line-height: 1.6;
}

.notification-entry {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(91, 112, 165, .16);
}

.notification-entry:last-child {
  border-bottom: 0;
}

.notification-entry strong {
  color: #e1ebff;
}

.notification-entry span {
  color: #8495bb;
  font-size: .8rem;
  line-height: 1.55;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 154, 255, .16), transparent 30%),
    radial-gradient(circle at 54% 58%, rgba(124, 56, 255, .14), transparent 34%),
    #030611;
}

.loading-screen img {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(55, 182, 255, .24);
}

.loading-screen h1 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  letter-spacing: .13em;
}

.loading-screen p {
  color: #7385ad;
  font-size: .82rem;
}

.loading-ring {
  width: 34px;
  height: 34px;
  margin-top: 4px;
  border: 3px solid rgba(87, 112, 170, .18);
  border-top-color: #53d7ff;
  border-radius: 50%;
  animation: sdx-spin .8s linear infinite;
}

@keyframes sdx-spin {
  to { transform: rotate(360deg); }
}

/* ==============================================================
   Kunden-, Bot- und Projektverwaltung
   ============================================================== */
.modal { width: min(760px, 100%); }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn-danger-soft {
  background: rgba(255, 79, 111, .1);
  border-color: rgba(255, 91, 120, .32);
  color: #ff9eb0;
}

.btn-danger-soft:hover {
  background: rgba(255, 79, 111, .17);
  border-color: rgba(255, 113, 137, .52);
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.detail-list {
  display: grid;
  gap: 2px;
  margin: 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(89, 119, 181, .12);
}

.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: #7182a8; font-size: .76rem; }
.detail-list dd { margin: 0; color: #dce7ff; font-size: .84rem; overflow-wrap: anywhere; }

.management-list {
  display: grid;
  gap: 10px;
}

.management-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(84, 119, 193, .16);
  border-radius: 13px;
  background: rgba(8, 14, 34, .52);
}

.management-list-item strong {
  display: block;
  color: #edf4ff;
  font-size: .86rem;
}

.management-list-item span:not(.status-pill) {
  display: block;
  margin-top: 4px;
  color: #7182a8;
  font-size: .74rem;
}

.management-list-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.project-description {
  margin: 12px 0 16px;
  color: #8292b5;
  font-size: .8rem;
  line-height: 1.55;
}

.project-admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: #7182a7;
  font-size: .75rem;
}

.confirm-box {
  padding: 18px;
  border: 1px solid rgba(255, 187, 80, .26);
  border-radius: 15px;
  background: rgba(255, 173, 54, .08);
}

.confirm-box.success {
  border-color: rgba(65, 223, 167, .28);
  background: rgba(48, 211, 157, .08);
}

.confirm-box strong {
  display: block;
  margin-bottom: 8px;
  color: #f1f6ff;
}

.confirm-box p {
  margin: 0;
  color: #9aabd0;
  line-height: 1.65;
}

.restricted-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 36%, rgba(51, 176, 255, .17), transparent 28%),
    radial-gradient(circle at 50% 66%, rgba(131, 62, 255, .13), transparent 32%),
    #030611;
}

.restricted-card {
  width: min(620px, 100%);
  padding: 38px;
  border: 1px solid rgba(78, 181, 255, .26);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13, 22, 52, .94), rgba(5, 9, 24, .96));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .58);
  text-align: center;
}

.restricted-card img {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 0 38px rgba(61, 187, 255, .24);
}

.restricted-card h1 {
  margin: 13px 0 12px;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.restricted-card p {
  margin: 0 auto;
  max-width: 510px;
  color: #91a1c5;
  line-height: 1.75;
}

.restricted-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

@media (max-width: 900px) {
  .customer-detail-grid { grid-template-columns: 1fr; }
  .page-actions { width: 100%; justify-content: stretch; }
  .page-actions .btn { flex: 1 1 220px; }
}

@media (max-width: 620px) {
  .detail-list > div { grid-template-columns: 1fr; gap: 5px; }
  .management-list-item { align-items: flex-start; flex-direction: column; }
  .management-list-actions { width: 100%; justify-content: space-between; }
  .project-admin-footer { align-items: flex-start; flex-direction: column; }
  .restricted-card { padding: 28px 20px; }
}

.page-intro .back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8ea1c9;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}

.page-intro .back-link:hover { color: #5ee4ff; }

/* ==============================================================
   Erweiterte Rechnungsverwaltung
   ============================================================== */
.compact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.compact-stats .stat-card {
  padding: 18px;
  border: 1px solid rgba(82, 125, 213, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 25, 57, .84), rgba(7, 12, 31, .82));
}

.compact-stats .stat-card span,
.compact-stats .stat-card small {
  display: block;
  color: #7182a8;
  font-size: .75rem;
}

.compact-stats .stat-card strong {
  display: block;
  margin: 7px 0 5px;
  color: #f4f8ff;
  font-size: 1.45rem;
}

.form-section-title {
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(81, 121, 204, .18);
  color: #dce8ff;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-section-title:first-child { margin-top: 0; }

.invoice-item-head,
.invoice-item-row {
  display: grid;
  grid-template-columns: 42px minmax(210px, 1fr) 90px 130px 40px;
  gap: 9px;
  align-items: center;
}

.invoice-item-head {
  padding: 0 4px 8px;
  color: #6f80a5;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.invoice-item-row { margin-bottom: 9px; }

.invoice-item-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(82, 125, 213, .18);
  border-radius: 10px;
  background: rgba(9, 16, 39, .72);
  color: #83dcff;
  font-size: .76rem;
  font-weight: 900;
}

.invoice-item-remove {
  color: #ff9eb0;
  border-color: rgba(255, 91, 120, .25);
}

@media (min-width: 900px) {
  .modal:has(#invoice-form) { width: min(1040px, 100%); }
}

@media (max-width: 800px) {
  .compact-stats { grid-template-columns: 1fr; }
  .invoice-item-head { display: none; }
  .invoice-item-row {
    grid-template-columns: 40px 1fr 40px;
    padding: 12px;
    border: 1px solid rgba(82, 125, 213, .16);
    border-radius: 14px;
    background: rgba(8, 14, 34, .52);
  }
  .invoice-item-row input[name="itemDescription"] { grid-column: 2 / 3; }
  .invoice-item-row input[name="itemQuantity"],
  .invoice-item-row input[name="itemUnitPrice"] { grid-column: 2 / 3; }
  .invoice-item-remove { grid-column: 3; grid-row: 1; }
}

/* ==============================================================
   SDX Support Center
   ============================================================== */

.modal-wide {
  width: min(1180px, 100%);
  max-height: calc(100vh - 32px);
}

.ticket-detail-shell {
  display: grid;
  gap: 20px;
}

.ticket-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 23px;
  border: 1px solid rgba(72, 193, 255, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(145, 73, 255, 0.15),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(15, 27, 67, 0.88),
      rgba(7, 12, 33, 0.84)
    );
}

.ticket-detail-head h2 {
  margin: 15px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.ticket-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ticket-detail-statuses {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.ticket-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid rgba(120, 151, 225, 0.25);
  border-radius: 999px;
  background: rgba(18, 28, 65, 0.78);
  color: #b9c7e7;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticket-priority-niedrig {
  color: #98a7ca;
}

.ticket-priority-normal {
  color: #77c8ff;
  border-color: rgba(102, 183, 255, 0.26);
  background: rgba(102, 183, 255, 0.08);
}

.ticket-priority-hoch {
  color: #ffd27b;
  border-color: rgba(255, 200, 90, 0.3);
  background: rgba(255, 200, 90, 0.09);
}

.ticket-priority-dringend {
  color: #ff8da2;
  border-color: rgba(255, 102, 127, 0.34);
  background: rgba(255, 102, 127, 0.11);
  box-shadow: 0 0 22px rgba(255, 102, 127, 0.1);
}

.ticket-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ticket-overview-grid > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(81, 122, 211, 0.19);
  border-radius: 14px;
  background: rgba(7, 13, 33, 0.65);
}

.ticket-overview-grid span {
  display: block;
  margin-bottom: 6px;
  color: #7183aa;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ticket-overview-grid strong {
  display: block;
  overflow: hidden;
  color: #eef4ff;
  font-size: 0.88rem;
  text-overflow: ellipsis;
}

.ticket-management-panel {
  border-color: rgba(165, 90, 255, 0.24);
}

.ticket-management-panel .panel-header {
  background: linear-gradient(
    90deg,
    rgba(120, 68, 255, 0.09),
    transparent
  );
}

.ticket-message-list {
  display: grid;
  gap: 14px;
}

.ticket-message {
  width: min(84%, 780px);
  padding: 16px;
  border: 1px solid rgba(73, 121, 218, 0.2);
  border-radius: 16px 16px 16px 5px;
  background: linear-gradient(
    145deg,
    rgba(12, 21, 51, 0.88),
    rgba(7, 12, 30, 0.8)
  );
}

.ticket-message-own {
  margin-left: auto;
  border-color: rgba(55, 207, 255, 0.27);
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(
    145deg,
    rgba(20, 91, 144, 0.24),
    rgba(28, 44, 104, 0.32)
  );
}

.ticket-message-internal {
  width: 100%;
  border-color: rgba(177, 91, 255, 0.35);
  border-style: dashed;
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(93, 40, 151, 0.22),
      rgba(29, 18, 67, 0.38)
    );
}

.ticket-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

.ticket-message-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-message-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 207, 255, 0.29);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(32, 216, 255, 0.16),
    rgba(159, 80, 255, 0.18)
  );
  color: #dff8ff;
  font-size: 0.76rem;
  font-weight: 900;
}

.ticket-message-author strong,
.ticket-message-author span {
  display: block;
}

.ticket-message-author strong {
  color: #eef5ff;
  font-size: 0.88rem;
}

.ticket-message-author span {
  margin-top: 3px;
  color: #7f91ba;
  font-size: 0.7rem;
}

.ticket-message-head time {
  color: #65779f;
  font-size: 0.7rem;
  white-space: nowrap;
}

.ticket-message-body {
  color: #c1cdea;
  font-size: 0.88rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.ticket-message-internal .ticket-message-body {
  color: #dcc9f6;
}

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

.ticket-attachment {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(80, 134, 232, 0.21);
  border-radius: 14px;
  background: rgba(8, 15, 38, 0.68);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.ticket-attachment:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 214, 255, 0.43);
  background: rgba(12, 25, 59, 0.86);
}

.ticket-attachment-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(32, 216, 255, 0.1);
  color: var(--cyan);
  font-size: 1.1rem;
}

.ticket-attachment strong,
.ticket-attachment small {
  display: block;
}

.ticket-attachment strong {
  max-width: 350px;
  overflow: hidden;
  color: #eaf2ff;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-attachment small {
  margin-top: 4px;
  color: #7284aa;
  font-size: 0.7rem;
}

.ticket-no-attachments {
  color: #7688ad;
  font-size: 0.82rem;
}

.ticket-reply-textarea {
  min-height: 150px;
  resize: vertical;
}

.ticket-internal-check {
  align-items: flex-start;
  margin: 4px 0 18px;
  padding: 13px;
  border: 1px dashed rgba(171, 91, 255, 0.31);
  border-radius: 13px;
  background: rgba(107, 54, 166, 0.09);
}

.ticket-internal-check span {
  color: #d3c0eb;
  font-weight: 800;
}

.ticket-internal-check small {
  display: block;
  margin-top: 4px;
  color: #967eb6;
  font-weight: 500;
  line-height: 1.45;
}

.ticket-detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-closed-note {
  padding: 16px;
  border: 1px solid rgba(126, 143, 181, 0.2);
  border-radius: 14px;
  background: rgba(110, 124, 161, 0.07);
  color: #98a6c7;
  text-align: center;
  line-height: 1.6;
}

.ticket-loading {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #a9b8d9;
}

.ticket-loading .loading-ring {
  width: 42px;
  height: 42px;
}

.status-waiting_customer,
.status-warning {
  color: var(--warning);
  background: rgba(255, 200, 90, 0.1);
}

.status-waiting_sdx,
.status-open,
.status-in_progress,
.status-progress {
  color: var(--info);
  background: rgba(102, 183, 255, 0.1);
}

.status-resolved,
.status-complete {
  color: var(--success);
  background: rgba(56, 229, 161, 0.1);
}

.status-closed {
  color: #8997b7;
  background: rgba(131, 144, 177, 0.1);
}

@media (max-width: 900px) {
  .ticket-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticket-attachments {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .modal-wide {
    max-height: calc(100vh - 16px);
  }

  .ticket-detail-head {
    flex-direction: column;
    padding: 17px;
  }

  .ticket-detail-statuses {
    justify-content: flex-start;
  }

  .ticket-overview-grid {
    grid-template-columns: 1fr;
  }

  .ticket-message {
    width: 100%;
  }

  .ticket-message-head {
    flex-direction: column;
  }

  .ticket-message-head time {
    padding-left: 48px;
  }

  .ticket-detail-actions .btn {
    width: 100%;
  }
}

/* ==============================================================
   SDX Support Dashboard & Notification Center
   ============================================================== */

.notification-button {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #080d22;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff667f, #b74cff);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 102, 127, 0.45);
}

.support-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.support-kpi-grid-customer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.support-kpi-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(81, 125, 220, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12, 21, 51, 0.82), rgba(7, 12, 31, 0.75));
}

.support-kpi-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -42px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(102, 183, 255, 0.12);
  filter: blur(3px);
}

.support-kpi-card > * {
  position: relative;
  z-index: 1;
}

.support-kpi-card span,
.support-kpi-card strong,
.support-kpi-card small {
  display: block;
}

.support-kpi-card span {
  color: #8293ba;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-kpi-card strong {
  margin: 9px 0 6px;
  overflow: hidden;
  color: #f4f7ff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-overflow: ellipsis;
}

.support-kpi-card small {
  color: #7586ad;
  font-size: 0.72rem;
  line-height: 1.45;
}

.support-kpi-info { border-color: rgba(69, 184, 255, 0.28); }
.support-kpi-info::after { background: rgba(69, 184, 255, 0.18); }
.support-kpi-warning { border-color: rgba(255, 200, 90, 0.3); }
.support-kpi-warning::after { background: rgba(255, 200, 90, 0.16); }
.support-kpi-danger { border-color: rgba(255, 102, 127, 0.32); }
.support-kpi-danger::after { background: rgba(255, 102, 127, 0.18); }
.support-kpi-success { border-color: rgba(56, 229, 161, 0.25); }
.support-kpi-success::after { background: rgba(56, 229, 161, 0.14); }
.support-kpi-violet { border-color: rgba(159, 80, 255, 0.3); }
.support-kpi-violet::after { background: rgba(159, 80, 255, 0.18); }

.support-filter-panel {
  border-color: rgba(67, 194, 255, 0.2);
}

.support-filter-form {
  display: grid;
  gap: 14px;
}

.support-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.support-filter-grid-admin {
  grid-template-columns: minmax(250px, 2fr) repeat(5, minmax(145px, 1fr));
}

.support-filter-form .form-group {
  margin: 0;
  min-width: 0;
}

.support-filter-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 2px;
}

.support-ticket-card {
  position: relative;
  align-items: stretch;
  padding: 17px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.support-ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 207, 255, 0.35);
  background: rgba(10, 20, 48, 0.8);
}

.support-ticket-urgent {
  border-color: rgba(255, 102, 127, 0.34);
  box-shadow: inset 3px 0 0 rgba(255, 102, 127, 0.75);
}

.support-ticket-main {
  min-width: 0;
}

.support-ticket-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.support-ticket-title-row h4 {
  margin: 5px 0 0;
  font-size: 0.98rem;
}

.support-ticket-number {
  color: #6edfff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.support-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 12px;
  color: #7889ae;
  font-size: 0.73rem;
}

.support-ticket-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.notification-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  color: #8293b8;
  font-size: 0.78rem;
}

.notification-center-list {
  display: grid;
  gap: 9px;
}

.notification-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(81, 130, 226, 0.2);
  border-radius: 14px;
  background: rgba(8, 15, 38, 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notification-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 210, 255, 0.38);
  background: rgba(12, 25, 59, 0.88);
}

.notification-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(32, 216, 255, 0.13), rgba(159, 80, 255, 0.15));
  color: #8cecff;
}

.notification-card-copy,
.notification-card-copy strong,
.notification-card-copy span,
.notification-card-copy small {
  display: block;
  min-width: 0;
}

.notification-card-copy strong {
  color: #edf4ff;
  font-size: 0.84rem;
}

.notification-card-copy span {
  margin-top: 4px;
  color: #8999bd;
  font-size: 0.76rem;
  line-height: 1.5;
}

.notification-card-copy small {
  margin-top: 5px;
  color: #64769d;
  font-size: 0.67rem;
}

.notification-card-arrow {
  color: #58dfff;
  font-size: 1.35rem;
}

@media (max-width: 1280px) {
  .support-filter-grid-admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-filter-search {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .support-kpi-grid,
  .support-kpi-grid-customer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-filter-grid,
  .support-filter-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .support-kpi-grid,
  .support-kpi-grid-customer,
  .support-filter-grid,
  .support-filter-grid-admin {
    grid-template-columns: 1fr;
  }

  .support-filter-search {
    grid-column: auto;
  }

  .support-filter-actions,
  .support-ticket-actions,
  .notification-center-head {
    align-items: stretch;
    flex-direction: column;
  }

  .support-filter-actions .btn,
  .support-ticket-actions .btn,
  .notification-center-head .btn {
    width: 100%;
  }

  .support-ticket-title-row {
    flex-direction: column;
  }

  .notification-card {
    grid-template-columns: 38px 1fr;
  }

  .notification-card-arrow {
    display: none;
  }
}

/* ==============================================================
   SDX Project Management V2
   ============================================================== */

.project-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.project-kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 19px;
  border: 1px solid rgba(83, 126, 219, .2);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(12, 21, 52, .86), rgba(7, 12, 31, .76));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
}

.project-kpi-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 196, 255, .14), transparent 67%);
}

.project-kpi-card > span,
.project-kpi-card > strong,
.project-kpi-card > small {
  position: relative;
  z-index: 1;
  display: block;
}

.project-kpi-card > span {
  color: #8092ba;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-kpi-card > strong {
  margin: 15px 0 8px;
  color: #f2f7ff;
  font-size: 2.05rem;
  line-height: 1;
}

.project-kpi-card > small {
  color: #7486ad;
  font-size: .76rem;
  line-height: 1.45;
}

.project-kpi-info { border-color: rgba(56, 195, 255, .28); }
.project-kpi-success { border-color: rgba(56, 229, 161, .25); }
.project-kpi-warning { border-color: rgba(255, 200, 90, .28); }
.project-kpi-danger { border-color: rgba(255, 102, 127, .28); }
.project-kpi-neutral { border-color: rgba(140, 153, 190, .22); }

.project-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(170px, .62fr)) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 13px;
  border: 1px solid rgba(75, 115, 202, .17);
  border-radius: 15px;
  background: rgba(6, 12, 31, .6);
}

.project-filter-bar select,
.project-filter-search {
  min-height: 42px;
  border: 1px solid rgba(91, 130, 213, .21);
  border-radius: 11px;
  background: rgba(10, 17, 41, .8);
  color: #dfe8fb;
}

.project-filter-bar select {
  padding: 0 11px;
}

.project-filter-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.project-filter-search span { color: #5fdfff; }
.project-filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef5ff;
}

.project-filter-search input::placeholder { color: #64769d; }

.project-v2-list {
  display: grid;
  gap: 14px;
}

.project-v2-card {
  padding: 19px;
  border-color: rgba(73, 121, 216, .22);
  background:
    radial-gradient(circle at 94% 8%, rgba(134, 71, 255, .1), transparent 27%),
    linear-gradient(145deg, rgba(10, 18, 46, .9), rgba(7, 12, 31, .8));
}

.project-card-needs-approval {
  border-color: rgba(255, 198, 86, .32);
  box-shadow: 0 0 26px rgba(255, 190, 66, .06);
}

.project-number {
  display: inline-block;
  margin-bottom: 7px;
  color: #66e1ff;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-v2-card .project-top p {
  max-width: 760px;
  margin-top: 7px;
  color: #8292b5;
  line-height: 1.55;
}

.project-card-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 17px 0;
}

.project-card-meta > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(74, 112, 198, .16);
  border-radius: 11px;
  background: rgba(6, 12, 31, .55);
}

.project-card-meta span,
.project-card-meta strong {
  display: block;
}

.project-card-meta span {
  margin-bottom: 5px;
  color: #6c7da4;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-card-meta strong {
  overflow: hidden;
  color: #dce6fa;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-attention-text { color: #ffd17a !important; }

.project-v2-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(71, 102, 175, .18);
}

.project-v2-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #20d8ff, #557dff 55%, #9f50ff);
  box-shadow: 0 0 18px rgba(55, 199, 255, .32);
  transition: width .35s ease;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  color: #6f80a6;
  font-size: .72rem;
}

.project-detail-shell {
  display: grid;
  gap: 18px;
}

.project-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 25px;
  border: 1px solid rgba(68, 199, 255, .27);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 8%, rgba(151, 70, 255, .17), transparent 35%),
    radial-gradient(circle at 8% 90%, rgba(30, 211, 255, .1), transparent 32%),
    linear-gradient(145deg, rgba(12, 23, 59, .94), rgba(6, 11, 29, .88));
}

.project-detail-hero h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -.035em;
}

.project-detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #9aa9c9;
  line-height: 1.72;
}

.project-detail-hero-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.project-decision-alert {
  padding: 8px 12px;
  border: 1px solid rgba(255, 201, 89, .29);
  border-radius: 999px;
  background: rgba(255, 193, 69, .08);
  color: #ffd27d;
  font-size: .72rem;
  font-weight: 900;
}

.project-progress-panel {
  padding: 18px;
  border: 1px solid rgba(73, 121, 216, .19);
  border-radius: 16px;
  background: rgba(7, 13, 34, .72);
}

.project-progress-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.project-progress-copy > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.project-progress-copy span {
  color: #8596bb;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.project-progress-copy strong { font-size: 1.55rem; }
.project-progress-copy small { color: #7183a9; }
.project-v2-progress-large { height: 11px; }

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-overview-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(75, 112, 198, .17);
  border-radius: 13px;
  background: rgba(7, 13, 33, .66);
}

.project-overview-grid span,
.project-overview-grid strong { display: block; }
.project-overview-grid span {
  margin-bottom: 6px;
  color: #7182a8;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.project-overview-grid strong {
  overflow: hidden;
  color: #e4ecfc;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-management-actions,
.project-detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.project-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 18px;
  align-items: start;
}

.project-detail-main,
.project-detail-sidebar {
  display: grid;
  gap: 18px;
}

.project-editor-panel {
  border-color: rgba(126, 74, 231, .24);
}

.project-editor-panel > .panel-header {
  background: linear-gradient(90deg, rgba(125, 70, 231, .09), transparent);
}

.project-milestone-list {
  display: grid;
  gap: 11px;
}

.project-milestone-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(76, 117, 208, .2);
  border-radius: 14px;
  background: rgba(7, 14, 36, .7);
}

.project-milestone-completed { border-color: rgba(56, 229, 161, .25); }
.project-milestone-in_progress { border-color: rgba(64, 198, 255, .28); }
.project-milestone-blocked { border-color: rgba(255, 102, 127, .28); }
.project-milestone-cancelled { opacity: .66; }

.project-milestone-order {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 209, 255, .25);
  border-radius: 12px;
  background: rgba(40, 184, 231, .08);
  color: #86ebff;
  font-weight: 900;
}

.project-milestone-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-milestone-heading h4 { margin: 0 0 4px; }
.project-milestone-heading span { color: #7284aa; font-size: .7rem; }
.project-milestone-content > p {
  margin: 10px 0 0;
  color: #a5b2d0;
  font-size: .82rem;
  line-height: 1.58;
}

.project-state-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(113, 143, 211, .22);
  border-radius: 999px;
  background: rgba(86, 107, 163, .09);
  color: #a9b7d7;
  font-size: .66rem;
  font-weight: 900;
  white-space: nowrap;
}

.project-state-in_progress { color: #7bddff; border-color: rgba(69, 200, 255, .27); }
.project-state-completed,
.project-state-approved { color: #6ff0b7; border-color: rgba(56, 229, 161, .28); }
.project-state-blocked { color: #ff91a5; border-color: rgba(255, 102, 127, .28); }
.project-state-pending { color: #ffd17b; border-color: rgba(255, 200, 90, .26); }
.project-state-changes_requested { color: #ffd17b; border-color: rgba(255, 200, 90, .26); }
.project-state-withdrawn,
.project-state-cancelled { color: #8c9abb; }

.project-milestone-status-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 8px;
  margin-top: 12px;
}

.project-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.project-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 18px;
  width: 1px;
  background: linear-gradient(#31d6ff, rgba(111, 82, 236, .2));
}

.project-timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.project-timeline-marker {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 202, 255, .28);
  border-radius: 12px;
  background: #0a1535;
  color: #74e7ff;
}

.project-timeline-card {
  padding: 14px;
  border: 1px solid rgba(79, 118, 202, .18);
  border-radius: 13px;
  background: rgba(7, 13, 33, .66);
}

.project-timeline-internal .project-timeline-card {
  border-style: dashed;
  border-color: rgba(167, 89, 255, .31);
  background: rgba(77, 37, 131, .12);
}

.project-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-update-type {
  color: #72dff6;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.project-timeline-head h4 { margin: 5px 0 0; }
.project-timeline-head time { color: #697ba1; font-size: .68rem; white-space: nowrap; }
.project-timeline-card p { color: #a7b4d1; line-height: 1.65; }
.project-timeline-card > small { color: #6f80a6; }

.project-internal-option {
  margin: 8px 0 16px;
  padding: 11px;
  border: 1px dashed rgba(164, 85, 255, .27);
  border-radius: 11px;
  background: rgba(99, 48, 158, .08);
}

.project-approval-list,
.project-file-list,
.project-comment-list,
.project-linked-list {
  display: grid;
  gap: 10px;
}

.project-approval-card {
  padding: 14px;
  border: 1px solid rgba(84, 123, 207, .19);
  border-radius: 14px;
  background: rgba(7, 14, 35, .72);
}

.project-approval-pending { border-color: rgba(255, 199, 88, .28); }
.project-approval-approved { border-color: rgba(56, 229, 161, .25); }
.project-approval-changes_requested { border-color: rgba(255, 159, 76, .29); }

.project-approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-approval-head > div > span {
  color: #72daf1;
  font-size: .64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.project-approval-head h4 { margin: 5px 0 0; }
.project-approval-card > p { color: #9eacc9; line-height: 1.58; }

.project-approval-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: #7082a7;
  font-size: .68rem;
}

.project-response-box {
  margin-top: 12px;
  padding: 11px;
  border-left: 3px solid #6fdcb0;
  border-radius: 8px;
  background: rgba(56, 229, 161, .06);
}

.project-response-box p { color: #aab9d3; line-height: 1.55; }
.project-response-box small { color: #7183a8; }
.project-approval-actions { align-items: stretch; }

.project-file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(78, 120, 208, .18);
  border-radius: 12px;
  background: rgba(7, 13, 33, .67);
}

.project-file-internal {
  border-style: dashed;
  border-color: rgba(164, 85, 255, .28);
}

.project-file-open {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-file-open > span:last-child { min-width: 0; }
.project-file-open strong,
.project-file-open small { display: block; }
.project-file-open strong {
  overflow: hidden;
  color: #e2ebfb;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-file-open small { margin-top: 4px; color: #7082a7; font-size: .66rem; }

.project-file-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(47, 195, 238, .09);
  color: #69e3fb;
}

.project-file-delete { margin-right: 8px; }

.project-comment {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(77, 116, 202, .18);
  border-radius: 13px;
  background: rgba(7, 13, 33, .62);
}

.project-comment-internal {
  border-style: dashed;
  border-color: rgba(167, 87, 255, .29);
  background: rgba(77, 37, 131, .11);
}

.project-comment-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(65, 201, 255, .26);
  border-radius: 11px;
  background: rgba(47, 190, 232, .08);
  color: #b9f3ff;
  font-size: .69rem;
  font-weight: 900;
}

.project-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.project-comment-head strong { color: #e3ebfb; font-size: .8rem; }
.project-comment-head span { color: #697ba1; font-size: .65rem; }
.project-comment p { margin: 8px 0 0; color: #a4b1ce; line-height: 1.6; }
.project-comment-form { margin-top: 16px; }

.project-linked-section + .project-linked-section { margin-top: 18px; }
.project-linked-section > strong {
  display: block;
  margin-bottom: 9px;
  color: #7e90b6;
  font-size: .69rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-linked-card {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(76, 116, 202, .17);
  border-radius: 11px;
  background: rgba(7, 13, 33, .61);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-linked-card > span:first-child {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(48, 190, 232, .08);
  color: #65dcf6;
}

.project-linked-card strong,
.project-linked-card small { display: block; }
.project-linked-card strong { color: #dce6f8; font-size: .72rem; }
.project-linked-card small { margin-top: 3px; color: #6f81a8; font-size: .64rem; }

.project-linked-invoice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.project-linked-invoice > button:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-linked-empty { color: #697ba1; font-size: .72rem; }
.project-loading {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #9eadd0;
}

@media (max-width: 1180px) {
  .project-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-filter-search { grid-column: 1 / -1; }
  .project-detail-columns { grid-template-columns: 1fr; }
  .project-detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-sidebar > .panel { min-width: 0; }
}

@media (max-width: 840px) {
  .project-card-meta,
  .project-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-sidebar { grid-template-columns: 1fr; }
  .project-detail-hero { flex-direction: column; }
  .project-detail-hero-side { align-items: flex-start; }
  .project-progress-copy { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .project-kpi-grid,
  .project-filter-bar,
  .project-card-meta,
  .project-overview-grid { grid-template-columns: 1fr; }

  .project-filter-search { grid-column: auto; }
  .project-filter-bar .btn { width: 100%; }
  .project-card-footer { align-items: stretch; flex-direction: column; }
  .project-card-footer .table-actions { width: 100%; }
  .project-card-footer .btn { flex: 1; }
  .project-milestone-card { grid-template-columns: 1fr; }
  .project-milestone-heading,
  .project-timeline-head,
  .project-approval-head,
  .project-comment-head { flex-direction: column; }
  .project-milestone-status-form { grid-template-columns: 1fr; }
  .project-timeline-head time { margin-top: 4px; }
  .project-management-actions .btn,
  .project-detail-actions .btn,
  .project-approval-actions .btn { width: 100%; }
}

/* ==============================================================
   Dokumenten- & Vertragscenter
   ============================================================== */
.document-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.document-stat.warning { border-color: rgba(255, 200, 90, .3); }
.document-stat.success { border-color: rgba(56, 229, 161, .24); }
.document-stat.danger { border-color: rgba(255, 102, 127, .3); }

.document-list { display: grid; gap: 14px; margin-top: 18px; }
.document-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(82, 128, 220, .2);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(10, 18, 45, .82), rgba(6, 11, 29, .72));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.document-card:hover { transform: translateY(-2px); border-color: rgba(59, 210, 255, .36); background: rgba(11, 22, 52, .9); }
.document-card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(68, 206, 255, .24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(32, 216, 255, .11), rgba(159, 80, 255, .13));
  color: #9cefff;
  font-size: 1.25rem;
}
.document-card-main { min-width: 0; }
.document-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.document-card-head h3 { margin: 10px 0 4px; font-size: 1.04rem; }
.document-card-main > p { margin: 8px 0 12px; color: #91a2c6; line-height: 1.55; font-size: .83rem; }
.document-card-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.document-card-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(97, 128, 198, .16);
  border-radius: 999px;
  background: rgba(10, 18, 42, .62);
  color: #7f91b9;
  font-size: .68rem;
}
.document-card-actions { display: flex; flex-direction: column; gap: 8px; min-width: 128px; }

.document-detail-shell { display: grid; gap: 18px; }
.document-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(66, 200, 255, .27);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 5%, rgba(150, 75, 255, .18), transparent 35%),
    linear-gradient(145deg, rgba(13, 26, 65, .9), rgba(7, 12, 33, .86));
}
.document-detail-hero h2 { margin: 14px 0 8px; font-size: clamp(1.5rem, 3vw, 2.35rem); }
.document-detail-hero p { margin: 0; color: #9aabd0; line-height: 1.65; max-width: 780px; }
.document-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.document-detail-grid > div {
  padding: 14px;
  border: 1px solid rgba(82, 119, 199, .18);
  border-radius: 13px;
  background: rgba(7, 13, 33, .65);
}
.document-detail-grid span { display: block; margin-bottom: 5px; color: #7385ad; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.document-detail-grid strong { display: block; color: #edf4ff; font-size: .86rem; overflow-wrap: anywhere; }
.document-primary-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(54, 210, 255, .25);
  border-radius: 15px;
  background: rgba(27, 134, 184, .08);
}
.document-primary-file strong, .document-primary-file span { display: block; }
.document-primary-file span { margin-top: 4px; color: #7f91b7; font-size: .75rem; }
.document-version-list { display: grid; gap: 10px; }
.document-version-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(82, 124, 212, .18);
  border-radius: 13px;
  background: rgba(7, 14, 35, .68);
}
.document-version-row strong, .document-version-row span, .document-version-row small { display: block; }
.document-version-row span { margin-top: 4px; color: #9bacca; font-size: .77rem; }
.document-version-row small { margin-top: 4px; color: #6f81a6; font-size: .68rem; }
.document-event-list { display: grid; gap: 12px; margin-top: 14px; }
.document-event { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: flex-start; }
.document-event-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(32, 216, 255, .65); }
.document-event strong, .document-event small { display: block; }
.document-event strong { font-size: .82rem; }
.document-event small { margin-top: 3px; color: #7587ae; font-size: .68rem; }
.document-acceptance-summary { padding: 13px; border: 1px solid rgba(151, 93, 255, .22); border-radius: 13px; background: rgba(104, 57, 173, .08); }
.document-acceptance-summary strong, .document-acceptance-summary span { display: block; }
.document-acceptance-summary span { margin-top: 4px; color: #8d9dc0; font-size: .72rem; }
.document-acceptance-summary p { margin: 10px 0 0; color: #c6b8df; line-height: 1.55; }
.document-decision-panel { border-color: rgba(255, 200, 90, .3); }
.document-decision-actions, .document-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

@media (max-width: 1050px) {
  .document-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .document-card { grid-template-columns: auto minmax(0, 1fr); }
  .document-card-actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
}

@media (max-width: 720px) {
  .document-stats-grid, .document-detail-grid { grid-template-columns: 1fr; }
  .document-card { grid-template-columns: 1fr; }
  .document-card-icon { width: 44px; height: 44px; }
  .document-card-head, .document-detail-hero, .document-primary-file, .document-version-row { flex-direction: column; }
  .document-card-actions, .document-decision-actions, .document-admin-actions { flex-direction: column; }
  .document-card-actions .btn, .document-decision-actions .btn, .document-admin-actions .btn, .document-primary-file .btn, .document-version-row .btn { width: 100%; }
}

/* ==============================================================
   SDX Bot Management V2
   ============================================================== */

.bot-v2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.bot-v2-kpi {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(78, 147, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 22, 53, 0.82), rgba(7, 11, 29, 0.76));
  box-shadow: var(--shadow);
}

.bot-v2-kpi span,
.bot-v2-kpi strong,
.bot-v2-kpi small { display: block; }
.bot-v2-kpi span { color: #8293b9; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.bot-v2-kpi strong { margin: 9px 0 5px; font-size: 1.85rem; }
.bot-v2-kpi small { color: #8293b9; line-height: 1.45; }
.bot-v2-kpi-info { border-color: rgba(102, 183, 255, .27); }
.bot-v2-kpi-success { border-color: rgba(56, 229, 161, .25); }
.bot-v2-kpi-warning { border-color: rgba(255, 200, 90, .29); }
.bot-v2-kpi-danger { border-color: rgba(255, 102, 127, .3); }
.bot-v2-kpi-success strong { color: var(--success); }
.bot-v2-kpi-warning strong { color: var(--warning); }
.bot-v2-kpi-danger strong { color: var(--danger); }

.bot-v2-filter {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(150px, .65fr)) auto auto;
  gap: 10px;
  margin-bottom: 20px;
}

.bot-v2-filter:has(select[name="owner"]) {
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(140px, .62fr)) auto auto;
}

.bot-v2-filter-search { position: relative; }
.bot-v2-filter-search > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #7185b1; z-index: 1; }
.bot-v2-filter-search input { padding-left: 38px; }

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

.bot-v2-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding: 21px;
  border: 1px solid rgba(75, 129, 230, .22);
  border-radius: 19px;
  background:
    radial-gradient(circle at 95% 4%, rgba(32, 216, 255, .09), transparent 31%),
    linear-gradient(145deg, rgba(11, 20, 49, .9), rgba(6, 10, 27, .82));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.bot-v2-card-warning {
  border-color: rgba(255, 200, 90, .3);
  background:
    radial-gradient(circle at 95% 4%, rgba(255, 200, 90, .11), transparent 31%),
    linear-gradient(145deg, rgba(20, 23, 47, .92), rgba(8, 11, 28, .84));
}

.bot-v2-card-head { display: flex; align-items: center; gap: 13px; }
.bot-v2-card-head img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 15px; box-shadow: 0 0 24px rgba(32, 216, 255, .18); }
.bot-v2-card-head > div:nth-child(2) { min-width: 0; }
.bot-v2-card-head h3 { margin: 3px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-v2-card-head p { margin: 0; color: #8190b4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-v2-card-status { margin-left: auto; align-self: flex-start; }
.bot-v2-env { color: #72dff9; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }

.bot-v2-status-message,
.bot-v2-detail-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 200, 90, .25);
  border-radius: 13px;
  background: rgba(255, 200, 90, .075);
  color: #e4c47e;
  line-height: 1.5;
}

.bot-v2-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.bot-v2-card-grid > div,
.bot-v2-overview-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(79, 127, 220, .17);
  border-radius: 13px;
  background: rgba(5, 11, 29, .56);
}

.bot-v2-card-grid span,
.bot-v2-overview-grid span { display: block; color: #7183aa; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bot-v2-card-grid strong,
.bot-v2-overview-grid strong { display: block; margin-top: 5px; overflow: hidden; color: #eef4ff; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.bot-v2-overview-grid small { display: block; margin-top: 4px; color: #7183aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bot-v2-card-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; color: #7e90b6; font-size: .76rem; }
.bot-v2-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.bot-v2-alert { color: #ff9bac; font-size: .74rem; font-weight: 800; }
.bot-v2-ok { color: #64dca9; font-size: .74rem; font-weight: 800; }

.bot-v2-detail-shell { display: grid; gap: 20px; }
.bot-v2-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(70, 205, 255, .29);
  border-radius: 21px;
  background:
    radial-gradient(circle at 90% 10%, rgba(159, 80, 255, .18), transparent 36%),
    linear-gradient(145deg, rgba(13, 26, 64, .93), rgba(6, 11, 31, .9));
}

.bot-v2-detail-brand { display: flex; align-items: center; min-width: 0; gap: 18px; }
.bot-v2-detail-brand img { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 21px; box-shadow: 0 0 35px rgba(32, 216, 255, .22); }
.bot-v2-detail-brand h2 { margin: 14px 0 7px; font-size: clamp(1.7rem, 4vw, 2.65rem); }
.bot-v2-detail-brand p { margin: 0; max-width: 690px; color: #a7b4d5; line-height: 1.65; }
.bot-v2-detail-status { display: grid; justify-items: end; gap: 12px; }
.bot-v2-detail-status strong { font-size: 1.15rem; color: #9beeff; }
.bot-v2-detail-alert strong,
.bot-v2-detail-alert span { display: block; }
.bot-v2-detail-alert strong { color: #f7d999; }
.bot-v2-detail-alert span { margin-top: 3px; color: #c7ae78; }

.bot-v2-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.bot-v2-management-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.bot-v2-detail-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .72fr); gap: 18px; align-items: start; }
.bot-v2-detail-main,
.bot-v2-detail-sidebar { display: grid; gap: 18px; }

.bot-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bot-module-card { padding: 15px; border: 1px solid rgba(76, 131, 229, .2); border-radius: 15px; background: rgba(7, 14, 35, .66); }
.bot-module-active { border-color: rgba(56, 229, 161, .22); }
.bot-module-maintenance { border-color: rgba(255, 200, 90, .28); }
.bot-module-deprecated { opacity: .72; }
.bot-module-head,
.bot-maintenance-head,
.bot-incident-head,
.bot-release-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.bot-module-head span:first-child,
.bot-maintenance-head span:first-child,
.bot-incident-head span:first-child,
.bot-release-head span { color: #7688b0; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.bot-module-head h4,
.bot-maintenance-head h4,
.bot-incident-head h4,
.bot-release-head h4 { margin: 4px 0 0; }
.bot-module-state,
.bot-operation-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: rgba(102, 183, 255, .09); color: #91ccff; font-size: .68rem; font-weight: 900; }
.bot-module-card p,
.bot-maintenance-card p,
.bot-incident-card p,
.bot-release-card p { color: #a3b0cf; line-height: 1.6; font-size: .82rem; }
.bot-module-meta { display: flex; justify-content: space-between; gap: 10px; color: #7384aa; font-size: .72rem; }
.bot-module-status-form,
.bot-maintenance-status-form,
.bot-incident-status-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bot-module-status-form .form-control,
.bot-maintenance-status-form .form-control,
.bot-incident-status-form .form-control { min-width: 140px; width: auto; flex: 1 1 150px; }

.bot-release-list { position: relative; display: grid; gap: 13px; }
.bot-release-entry { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.bot-release-dot { width: 10px; height: 10px; margin: 18px auto 0; border-radius: 50%; background: #4b78b9; box-shadow: 0 0 12px rgba(75, 120, 185, .4); }
.bot-release-current .bot-release-dot { background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.bot-release-card { padding: 14px 15px; border: 1px solid rgba(72, 123, 222, .19); border-radius: 14px; background: rgba(7, 13, 33, .66); }
.bot-release-current .bot-release-card { border-color: rgba(32, 216, 255, .28); }
.bot-release-head time { color: #7081a8; font-size: .7rem; white-space: nowrap; }

.bot-operation-list { display: grid; gap: 11px; }
.bot-maintenance-card,
.bot-incident-card { padding: 14px; border: 1px solid rgba(77, 127, 221, .18); border-radius: 14px; background: rgba(7, 13, 33, .62); }
.bot-maintenance-in_progress { border-color: rgba(255, 200, 90, .33); }
.bot-maintenance-completed,
.bot-incident-resolved { opacity: .73; }
.bot-incident-major { border-color: rgba(255, 200, 90, .28); }
.bot-incident-critical { border-color: rgba(255, 102, 127, .36); background: rgba(255, 102, 127, .055); }
.bot-maintenance-time { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 12px; color: #7486ae; font-size: .7rem; }

.bot-v2-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bot-v2-admin-panel { margin: 0; border-color: rgba(159, 80, 255, .22); }
.bot-checkbox-stack { display: grid; align-content: center; gap: 9px; }
.bot-v2-admin-panel .checkbox-row { margin: 8px 0 15px; }

@media (max-width: 1100px) {
  .bot-v2-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-v2-filter,
  .bot-v2-filter:has(select[name="owner"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-v2-filter-search { grid-column: 1 / -1; }
  .bot-v2-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-v2-detail-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bot-v2-grid,
  .bot-v2-admin-grid,
  .bot-module-grid { grid-template-columns: 1fr; }
  .bot-v2-detail-hero { align-items: flex-start; flex-direction: column; }
  .bot-v2-detail-status { justify-items: start; }
  .bot-v2-card-footer { align-items: flex-start; flex-direction: column; }
  .bot-v2-card-footer .table-actions { width: 100%; }
  .bot-v2-card-footer .btn { flex: 1; }
}

@media (max-width: 560px) {
  .bot-v2-kpi-grid,
  .bot-v2-filter,
  .bot-v2-filter:has(select[name="owner"]),
  .bot-v2-overview-grid { grid-template-columns: 1fr; }
  .bot-v2-filter-search { grid-column: auto; }
  .bot-v2-detail-brand { align-items: flex-start; flex-direction: column; }
  .bot-v2-detail-brand img { width: 62px; height: 62px; flex-basis: 62px; }
  .bot-v2-card-grid { grid-template-columns: 1fr; }
  .bot-release-head { flex-direction: column; }
}

/* ==============================================================
   SDX Benachrichtigungs- & E-Mail-Center
   ============================================================== */

.notification-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 20px;
  align-items: start;
}

.notification-filter-form,
.notification-admin-filter-form {
  grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(160px, 1fr)) auto;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(77, 122, 217, .14);
  margin-bottom: 18px;
}

.notification-filter-form .filter-actions,
.notification-admin-filter-form .filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.notification-center-list-full {
  display: grid;
  gap: 13px;
}

.notification-center-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
  padding: 17px;
  border: 1px solid rgba(79, 127, 221, .19);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(10, 18, 44, .86), rgba(6, 11, 28, .78));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.notification-center-card:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 211, 255, .36);
  background: linear-gradient(145deg, rgba(13, 26, 59, .92), rgba(8, 14, 34, .86));
}

.notification-center-card.is-unread {
  border-color: rgba(32, 216, 255, .35);
  box-shadow: inset 3px 0 0 rgba(32, 216, 255, .8), 0 14px 36px rgba(4, 12, 36, .22);
}

.notification-center-card.priority-high {
  border-color: rgba(255, 200, 90, .34);
}

.notification-center-card.priority-urgent {
  border-color: rgba(255, 102, 127, .42);
  box-shadow: inset 3px 0 0 rgba(255, 102, 127, .82), 0 14px 36px rgba(46, 8, 20, .18);
}

.notification-center-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(71, 195, 255, .25);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(32, 216, 255, .13), rgba(159, 80, 255, .14));
  color: #91efff;
  font-size: 1.1rem;
}

.notification-center-card-copy {
  min-width: 0;
}

.notification-center-card-copy h3 {
  margin: 8px 0 7px;
  color: #f2f6ff;
  font-size: 1rem;
}

.notification-center-card-copy p {
  margin: 0;
  color: #9cacca;
  font-size: .82rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.notification-center-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  color: #6f82aa;
  font-size: .68rem;
  font-weight: 700;
}

.notification-category,
.notification-unread-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 208, 255, .22);
  background: rgba(32, 216, 255, .07);
  color: #8cecff;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.notification-unread-label {
  border-color: rgba(159, 80, 255, .3);
  background: rgba(159, 80, 255, .1);
  color: #d1a7ff;
}

.notification-center-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 112px;
}

.notification-delivery-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #7889ad;
  font-size: .72rem;
}

.notification-delivery-inline .status-pill {
  padding: 4px 8px;
  font-size: .65rem;
}

.notification-preferences-panel {
  position: sticky;
  top: 96px;
  border-color: rgba(159, 80, 255, .25);
}

.notification-master-toggle {
  padding: 14px;
  margin-bottom: 17px;
  border: 1px solid rgba(65, 199, 255, .2);
  border-radius: 14px;
  background: rgba(22, 91, 143, .08);
}

.notification-master-toggle span,
.notification-master-toggle strong,
.notification-master-toggle small {
  display: block;
}

.notification-master-toggle strong {
  color: #edf5ff;
  font-size: .84rem;
}

.notification-master-toggle small {
  margin-top: 4px;
  color: #7789ae;
  font-size: .72rem;
  font-weight: 500;
}

.notification-category-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 17px 0;
  padding: 14px;
  border: 1px solid rgba(78, 126, 222, .16);
  border-radius: 14px;
  background: rgba(7, 13, 33, .54);
}

.notification-category-toggles .checkbox-row {
  margin: 0;
}

.notification-delivery-panel {
  margin-top: 20px;
}

.notification-delivery-list {
  display: grid;
  gap: 9px;
}

.notification-delivery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(75, 120, 214, .16);
  border-radius: 12px;
  background: rgba(7, 13, 33, .58);
}

.notification-delivery-row div {
  min-width: 0;
}

.notification-delivery-row strong,
.notification-delivery-row span {
  display: block;
}

.notification-delivery-row strong {
  overflow: hidden;
  color: #dfe8fa;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-delivery-row span {
  margin-top: 4px;
  color: #7182a8;
  font-size: .67rem;
}

.delivery-error {
  max-width: 360px;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 102, 127, .08);
  color: #ff9caf;
  font-size: .68rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notification-admin-filter-form {
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .notification-center-layout {
    grid-template-columns: 1fr;
  }

  .notification-preferences-panel {
    position: static;
  }

  .notification-filter-form,
  .notification-admin-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .notification-center-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .notification-center-card-icon {
    width: 44px;
    height: 44px;
  }

  .notification-center-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .notification-center-card-actions .btn {
    flex: 1 1 130px;
  }
}

@media (max-width: 620px) {
  .notification-filter-form,
  .notification-admin-filter-form,
  .notification-category-toggles {
    grid-template-columns: 1fr;
  }

  .notification-filter-form .filter-actions,
  .notification-admin-filter-form .filter-actions,
  .notification-delivery-row {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-filter-form .filter-actions .btn,
  .notification-admin-filter-form .filter-actions .btn {
    width: 100%;
  }
}

.notification-center-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .notification-center-head-actions,
  .notification-center-head-actions .btn {
    width: 100%;
  }
}

/* ========================================================================== 
   Discord Integration V1
   ========================================================================== */

.discord-customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.discord-connection-panel,
.discord-preferences-panel,
.discord-admin-settings {
  border-color: rgba(88, 101, 242, .28);
  background:
    radial-gradient(circle at 94% 4%, rgba(88, 101, 242, .13), transparent 34%),
    linear-gradient(145deg, rgba(13, 22, 53, .86), rgba(7, 11, 29, .78));
}

.discord-preferences-panel {
  position: sticky;
  top: 96px;
}

.discord-link-intro,
.discord-account-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discord-link-intro p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.discord-logo-orb,
.discord-account-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 139, 255, .42);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(88, 101, 242, .28), rgba(159, 80, 255, .17));
  color: #dbe0ff;
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(88, 101, 242, .2);
}

.discord-link-code-card {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(115, 128, 255, .35);
  border-radius: 17px;
  background: rgba(20, 25, 66, .66);
  text-align: center;
}

.discord-link-code-card > span {
  color: #8c9ad0;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.discord-link-code-card > strong {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: .17em;
  text-shadow: 0 0 28px rgba(111, 125, 255, .48);
}

.discord-link-code-card code {
  justify-self: center;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(115, 128, 255, .22);
  border-radius: 10px;
  background: rgba(4, 7, 22, .72);
  color: #bfc8ff;
  overflow-wrap: anywhere;
}

.discord-link-code-card small {
  color: #7d8db5;
  line-height: 1.55;
}

.discord-account-card img,
.discord-account-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 20px;
}

.discord-account-card img {
  object-fit: cover;
  border: 1px solid rgba(126, 139, 255, .42);
  box-shadow: 0 0 30px rgba(88, 101, 242, .23);
}

.discord-account-card strong,
.discord-account-card span,
.discord-account-card small {
  display: block;
}

.discord-account-card strong {
  color: #f5f6ff;
  font-size: 1.08rem;
}

.discord-account-card span {
  margin-top: 4px;
  color: #aab3e8;
}

.discord-account-card small {
  margin-top: 5px;
  color: #7180a8;
}

.discord-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(7, 12, 34, .56);
  color: #7d8db5;
  font-size: .72rem;
}

.discord-master-toggle {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(115, 128, 255, .24);
  border-radius: 14px;
  background: rgba(88, 101, 242, .08);
}

.discord-master-toggle span,
.discord-master-toggle strong,
.discord-master-toggle small {
  display: block;
}

.discord-master-toggle small {
  margin-top: 4px;
  color: #7f8db3;
  font-size: .72rem;
  font-weight: 500;
}

.discord-category-toggles {
  border-color: rgba(88, 101, 242, .2);
  background: rgba(14, 18, 48, .55);
}

.discord-delivery-list {
  display: grid;
  gap: 10px;
}

.discord-delivery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(91, 109, 213, .18);
  border-radius: 13px;
  background: rgba(7, 13, 34, .6);
}

.discord-delivery-row > div {
  min-width: 0;
}

.discord-delivery-row strong,
.discord-delivery-row span,
.discord-delivery-row small {
  display: block;
}

.discord-delivery-row strong {
  color: #e7ebff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-delivery-row span {
  margin-top: 5px;
  color: #7787ae;
  font-size: .72rem;
}

.discord-delivery-row small {
  margin-top: 7px;
}

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

.discord-filter-form {
  grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .7fr) minmax(170px, .7fr) auto;
}

@media (max-width: 1180px) {
  .discord-customer-layout {
    grid-template-columns: 1fr;
  }

  .discord-preferences-panel {
    position: static;
  }

  .discord-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discord-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .discord-channel-grid,
  .discord-filter-form,
  .discord-category-toggles {
    grid-template-columns: 1fr;
  }

  .discord-delivery-row {
    align-items: stretch;
    flex-direction: column;
  }

  .discord-link-intro,
  .discord-account-card {
    align-items: flex-start;
  }

  .discord-link-code-card > strong {
    letter-spacing: .1em;
  }
}

/* ================================================================
   SDX Agent V1
   ================================================================ */

.agent-node-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.agent-node-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(145deg, rgba(13, 22, 53, .86), rgba(6, 10, 28, .9));
  box-shadow: var(--shadow);
}

.agent-node-online { border-color: rgba(56, 229, 161, .35); }
.agent-node-offline { border-color: rgba(255, 102, 127, .34); }

.agent-node-head,
.agent-process-main,
.agent-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.agent-node-head span,
.agent-node-meta,
.agent-node-footer,
.agent-process-title span,
.agent-link-note,
.agent-command-row > div > span {
  color: var(--muted);
  font-size: .82rem;
}

.agent-node-head h3 {
  margin: 5px 0 0;
  font-size: 1.16rem;
}

.agent-node-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}

.agent-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.agent-resource-grid > div,
.agent-process-stats > div,
.agent-live-strip > div {
  border: 1px solid rgba(93, 138, 233, .18);
  background: rgba(5, 10, 29, .58);
  border-radius: 13px;
  padding: 12px;
}

.agent-resource-grid span,
.agent-process-stats span,
.agent-live-strip span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.agent-resource-grid strong,
.agent-process-stats strong,
.agent-live-strip strong {
  display: block;
  margin-top: 5px;
  font-size: .96rem;
}

.agent-resource-grid small,
.agent-live-strip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.agent-node-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 131, 220, .14);
}

.agent-process-list,
.agent-command-list {
  display: grid;
  gap: 13px;
}

.agent-process-row,
.agent-command-row {
  border: 1px solid rgba(87, 133, 235, .2);
  border-radius: 16px;
  padding: 18px;
  background: rgba(5, 10, 29, .55);
}

.agent-process-title strong { display: block; font-size: 1.02rem; }
.agent-process-title span { display: block; margin-top: 4px; }

.agent-process-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.agent-link-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.agent-link-form .form-group { margin: 0; }
.agent-link-note { align-self: center; }

.agent-process-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.agent-command-row > div { min-width: 0; }
.agent-command-head strong { font-size: .94rem; }

.agent-command-output {
  margin-top: 12px;
  border: 1px solid rgba(95, 141, 238, .18);
  border-radius: 12px;
  overflow: hidden;
}

.agent-command-output summary {
  padding: 11px 13px;
  cursor: pointer;
  font-weight: 800;
  color: #c7d7fa;
  background: rgba(31, 59, 119, .16);
}

.agent-command-output h5 {
  margin: 13px 13px 6px;
  color: #a9bde8;
}

.agent-command-output pre {
  margin: 0 13px 13px;
  max-height: 360px;
  overflow: auto;
  padding: 13px;
  border-radius: 10px;
  background: #02040d;
  color: #dce8ff;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .78rem;
  line-height: 1.55;
}

.agent-command-error {
  margin: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 102, 127, .1);
  color: #ff9aac;
}

.agent-live-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(32, 216, 255, .28);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(20, 160, 210, .08), rgba(81, 65, 190, .08));
}

@media (max-width: 1050px) {
  .agent-node-grid { grid-template-columns: 1fr; }
  .agent-process-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-live-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .agent-resource-grid,
  .agent-process-stats,
  .agent-live-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-link-form { grid-template-columns: 1fr; }
  .agent-node-footer { flex-direction: column; }
}

/* Notification detail modal */
.notification-detail {
  display: grid;
  gap: 18px;
}

.notification-detail-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(77, 126, 222, .16);
}

.notification-detail-heading p {
  margin: 8px 0 0;
  color: #7f91b6;
  font-size: .78rem;
}

.notification-detail-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(71, 195, 255, .28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(32, 216, 255, .14), rgba(159, 80, 255, .16));
  color: #91efff;
  font-size: 1.2rem;
  box-shadow: 0 12px 30px rgba(7, 19, 54, .28);
}

.notification-detail-message {
  padding: 18px;
  border: 1px solid rgba(79, 127, 221, .18);
  border-radius: 15px;
  background: rgba(6, 12, 31, .66);
  color: #c1cce4;
  font-size: .9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

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

.notification-detail-info {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(77, 126, 222, .16);
  border-radius: 13px;
  background: rgba(7, 13, 33, .5);
}

.notification-detail-info-wide {
  grid-column: 1 / -1;
}

.notification-detail-info > span {
  display: block;
  margin-bottom: 7px;
  color: #7385ab;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.notification-detail-info strong {
  color: #e4ecfb;
  font-size: .82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notification-detail-error {
  color: #ff9caf !important;
}

.notification-detail-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

@media (max-width: 620px) {
  .notification-detail-grid {
    grid-template-columns: 1fr;
  }

  .notification-detail-info-wide {
    grid-column: auto;
  }

  .notification-detail-actions .btn {
    width: 100%;
  }
}
