@import url("../theme.php");
@import url("portal-v3.css");
:root {
  --bg: var(--configured-bg, #080a12);
  --surface: var(--configured-surface, #111522);
  --surface-2: var(--configured-surface-2, #171c2b);
  --surface-3: var(--configured-surface-3, #20273a);
  --line: var(--configured-line, rgba(255, 255, 255, 0.09));
  --text: var(--configured-text, #f7f8ff);
  --muted: var(--configured-muted, #9da8bd);
  --accent: var(--configured-accent, #806cff);
  --accent-2: var(--configured-accent-2, #32d6b2);
  --danger: #ff6b7a;
  --shadow: var(--configured-shadow, 0 20px 80px rgba(0, 0, 0, 0.35));
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 85% -20%, #302674 0, transparent 31%),
    radial-gradient(circle at 8% 0, #11394b 0, transparent 25%), var(--bg);
  color: var(--text);
  font:
    15px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: #b6abff;
  text-decoration: none;
}
a:hover {
  color: #e1ddff;
}
button {
  appearance: none;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #a054e8);
  box-shadow: 0 9px 22px rgba(100, 80, 235, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 10px 14px;
  transition:
    0.18s transform,
    0.18s filter;
}
button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(128, 108, 255, 0.68);
  outline-offset: 2px;
}
.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card {
  margin: 14px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(27, 32, 48, 0.94),
    rgba(16, 19, 31, 0.94)
  );
  box-shadow: var(--shadow);
}
label {
  display: block;
  margin: 13px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0e18;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.notice {
  margin: 14px 0;
  padding: 11px 13px;
  border: 1px solid rgba(50, 214, 178, 0.3);
  border-radius: 11px;
  background: rgba(50, 214, 178, 0.1);
  color: #d4fff6;
}
.error {
  border-color: rgba(255, 107, 122, 0.3);
  background: rgba(255, 107, 122, 0.1);
  color: #ffdbe0;
}
.install {
  width: min(680px, calc(100% - 32px));
  margin: 55px auto;
}
.wide {
  width: min(1100px, calc(100% - 32px));
}
.auth {
  display: grid;
  grid-template-columns: 1.25fr minmax(330px, 440px);
  gap: 55px;
  align-items: center;
  min-height: 100vh;
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
.brand {
  position: relative;
}
.brand:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70px;
  left: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(128, 108, 255, 0.25);
  filter: blur(25px);
}
.brand h1 {
  max-width: 700px;
  margin: 0.2em 0;
  font-size: clamp(43px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}
.brand > p:last-of-type {
  max-width: 440px;
  color: var(--muted);
  font-size: 17px;
}
.hub {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 310px;
  min-height: 100vh;
}
.hub > aside {
  border-right: 1px solid var(--line);
  background: rgba(10, 13, 22, 0.76);
  backdrop-filter: blur(18px);
}
.hub > aside:first-child {
  padding: 24px 15px;
}
.hub h1 {
  margin: 4px 9px 26px;
  font-size: 23px;
  letter-spacing: -0.04em;
}
.hub nav {
  display: grid;
  gap: 3px;
}
.hub nav:before {
  content: "RÄUME";
  margin: 0 10px 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.hub nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  color: #b2bdd0;
  font-weight: 650;
}
.hub nav a:before {
  content: "#";
  color: var(--accent-2);
}
.hub nav a:hover,
.hub nav a.active {
  background: linear-gradient(
    90deg,
    rgba(128, 108, 255, 0.2),
    rgba(128, 108, 255, 0.04)
  );
  color: #fff;
}
.aside-bottom {
  display: grid;
  gap: 5px;
  margin: 32px 9px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.aside-bottom strong {
  font-size: 14px;
}
.aside-bottom small {
  margin-bottom: 5px;
  color: var(--muted);
  text-transform: capitalize;
}
.aside-bottom a {
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
}
.hub main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}
main > header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 15, 25, 0.72);
  backdrop-filter: blur(20px);
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 15px var(--accent-2);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-actions a,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  color: var(--text);
  font-size: 12px;
  padding: 8px 10px;
}
.chat {
  height: calc(100vh - 65px);
  display: grid;
  grid-template-rows: 1fr auto;
}
.chat > #messages {
  overflow: auto;
  padding: 26px max(25px, 6vw);
}
.message {
  position: relative;
  max-width: 760px;
  margin: 0 0 13px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(30, 36, 53, 0.8),
    rgba(18, 22, 34, 0.8)
  );
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.1);
}
.message:hover {
  border-color: rgba(128, 108, 255, 0.3);
}
.message p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.message time,
.role {
  color: var(--muted);
  font-size: 10px;
}
.role {
  margin-left: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reply-quote {
  margin: 9px 0;
  padding: 7px 9px;
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: rgba(128, 108, 255, 0.09);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.reaction-chip,
.message-link {
  box-shadow: none;
  padding: 4px 7px;
  border-radius: 7px;
  background: #232b3f;
  font-size: 11px;
}
.reaction-chip.mine {
  outline: 1px solid var(--accent-2);
  color: #d9fff6;
}
.message-link {
  background: transparent;
  color: var(--muted);
}
.chat form {
  margin: 0;
  padding: 13px max(18px, 6vw) 17px;
  border-top: 1px solid var(--line);
  background: rgba(10, 13, 22, 0.86);
  backdrop-filter: blur(18px);
}
.chat textarea {
  min-height: 58px;
  margin: 0;
  border-radius: 13px;
  background: #111725;
}
.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}
.reactions {
  display: flex;
  gap: 5px;
}
.reactions button {
  padding: 5px 7px;
  background: #232b3f;
  box-shadow: none;
}
.live-panel {
  padding: 23px 16px;
  border-left: 1px solid var(--line);
  background: rgba(10, 13, 22, 0.58);
}
.live-panel iframe {
  width: 100%;
  height: 205px;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0f18;
}
.team-call {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.team-call p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.member {
  margin: 7px 0;
  font-size: 12px;
}
.member small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}
.admin-tabs a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.admin-tabs a.active {
  background: rgba(128, 108, 255, 0.2);
  color: #fff;
}
.admin-grid,
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.member-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.member-card {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--text);
}
.member-card small {
  color: var(--muted);
}
.metric {
  font-size: 34px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.admin-row > div,
.admin-row > span {
  flex: 1;
}
.admin-row select {
  width: auto;
  min-width: 130px;
  margin: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.check input {
  width: auto;
  margin: 0;
}
.avatar {
  width: 76px;
  height: 76px;
  border: 2px solid var(--accent);
  border-radius: 24px;
  object-fit: cover;
  background: #1c2231;
}
.avatar.small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}
.profile-card {
  min-height: 180px;
}
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}
.conversation {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.conversation small {
  color: var(--muted);
}
.thread {
  max-height: 430px;
  overflow: auto;
}
.thread .own {
  margin-left: auto;
  background: rgba(128, 108, 255, 0.16);
}
#reply-context {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: #1a2030;
  color: var(--muted);
  font-size: 12px;
}
#reply-context button {
  float: right;
  padding: 1px 6px;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 1050px) {
  .hub {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .live-panel {
    display: none;
  }
  .auth {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 55px 0;
  }
  .brand {
    display: none;
  }
}
@media (max-width: 700px) {
  .hub {
    display: block;
  }
  .hub > aside:first-child {
    display: none;
  }
  .chat {
    height: calc(100vh - 65px);
  }
  main > header {
    padding: 13px 15px;
  }
  .header-actions a:last-child {
    display: none;
  }
  .chat > #messages {
    padding: 15px;
  }
  .chat form {
    padding: 11px 15px;
  }
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-row {
    flex-wrap: wrap;
  }
  .admin-row select {
    width: 100%;
  }
  .inbox-layout {
    grid-template-columns: 1fr;
  }
  .install {
    margin: 28px auto;
  }
  .header-actions {
    gap: 4px;
  }
}
