/* ==========================================================================
   BOKITCORD DESIGN SYSTEM — DISCORD THEME SPECIFICATION
   ========================================================================== */

:root {
  --bg-primary: #313338;
  --bg-secondary: #2b2d31;
  --bg-secondary-alt: #232428;
  --bg-tertiary: #1e1f22;
  --bg-accent: #383a40;
  --bg-floating: #232428;
  --bg-modifier-hover: rgba(255, 255, 255, 0.06);
  --bg-modifier-active: rgba(255, 255, 255, 0.1);
  --bg-modifier-selected: rgba(255, 255, 255, 0.08);

  --brand-blurple: #5865f2;
  --brand-blurple-hover: #4752c4;
  --status-green: #57f287;
  --status-yellow: #fee75c;
  --status-red: #ed4245;
  --status-red-hover: #da373c;
  --status-fuchsia: #eb459e;
  --status-sky: #00b0f4;

  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --text-header: #f2f3f5;
  --text-link: #00a8fc;
  --text-positive: #57f287;
  --text-danger: #fa777c;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --font-primary: 'gg sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-primary);
  background-color: var(--bg-tertiary);
  color: var(--text-normal);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

#app-root {
  width: 100%;
  height: 100%;
  position: relative;
}

.view-screen {
  width: 100%;
  height: 100%;
  display: flex;
}

.hidden {
  display: none !important;
}

/* Custom Discord Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: var(--radius-full);
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #111214;
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  transition: all 0.15s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.17s ease, transform 0.1s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-block {
  width: 100%;
}
.btn-blurple {
  background-color: var(--brand-blurple);
  color: #ffffff;
}
.btn-blurple:hover {
  background-color: var(--brand-blurple-hover);
}
.btn-secondary {
  background-color: #4e5058;
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #6d6f78;
}
.btn-danger {
  background-color: var(--status-red);
  color: #ffffff;
}
.btn-danger:hover {
  background-color: var(--status-red-hover);
}
.btn-success {
  background-color: #248046;
  color: #ffffff;
}
.btn-success:hover {
  background-color: #1a6334;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.icon-btn:hover {
  background-color: var(--bg-modifier-hover);
  color: var(--text-header);
}

/* ==========================================================================
   AUTHENTICATION & REGISTRATION SCREEN
   ========================================================================== */
#auth-view {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e1f22;
  position: relative;
  overflow-y: auto;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}
.auth-glow-1 {
  width: 480px;
  height: 480px;
  background: var(--brand-blurple);
  top: -100px;
  left: -100px;
}
.auth-glow-2 {
  width: 520px;
  height: 520px;
  background: #57f287;
  bottom: -150px;
  right: -150px;
  opacity: 0.15;
}

.auth-layout-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 1080px;
  padding: 40px 24px;
  margin: auto;
}

@media (max-width: 920px) {
  .auth-layout-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    gap: 24px;
  }
}

.auth-card-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.auth-educational-overview {
  flex: 1;
  max-width: 540px;
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.edu-overview-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 101, 242, 0.15);
  color: #7983f5;
  border: 1px solid rgba(88, 101, 242, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.edu-overview-title {
  color: var(--text-header);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.edu-overview-subtitle {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.edu-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.edu-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--bg-secondary-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.edu-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.edu-card-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.edu-card-body {
  flex: 1;
}

.edu-card-heading {
  color: var(--text-header);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.edu-card-text {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.edu-overview-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}


.auth-brand {
  text-align: center;
  margin-bottom: 20px;
}
.auth-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: var(--brand-blurple);
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}
.auth-brand-title {
  color: var(--text-header);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.auth-brand-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}
.auth-brand-subtitle strong {
  color: var(--brand-blurple);
}

.auth-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.auth-tabs {
  display: flex;
  background: var(--bg-secondary-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}
.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  text-align: center;
}
.auth-tab-btn.active {
  background: var(--brand-blurple);
  color: #ffffff;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.required-star {
  color: var(--status-red);
}
.field-tip {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-xs);
  color: var(--text-normal);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-blurple);
}
.form-group textarea {
  resize: vertical;
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}
.input-with-prefix input {
  padding-left: 28px;
}

/* 200 Character Note Counter */
.label-with-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.label-with-counter label {
  margin-bottom: 0;
}
.char-counter {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.char-counter.counter-warn {
  color: var(--status-yellow);
}
.char-counter.counter-limit {
  color: var(--status-red);
  font-weight: 700;
}
.badge-optional {
  display: inline-block;
  background: rgba(88, 101, 242, 0.15);
  color: var(--brand-blurple);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  margin-left: 6px;
}

.field-subtext {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Auth Alert Box */
.auth-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideDown 0.2s ease;
}
.auth-alert.alert-pending {
  background: rgba(254, 231, 92, 0.1);
  border: 1px solid rgba(254, 231, 92, 0.4);
  color: #fff6a9;
}
.auth-alert.alert-rejected {
  background: rgba(237, 66, 69, 0.12);
  border: 1px solid rgba(237, 66, 69, 0.45);
  color: #ffb4b6;
}
.auth-alert.alert-error {
  background: rgba(237, 66, 69, 0.12);
  border: 1px solid rgba(237, 66, 69, 0.45);
  color: #ffb4b6;
}
.auth-alert.alert-success {
  background: rgba(87, 242, 135, 0.12);
  border: 1px solid rgba(87, 242, 135, 0.4);
  color: #c9ffda;
}
.auth-alert-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-alert-content {
  flex: 1;
  line-height: 1.45;
}
.auth-alert-content strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.auth-alert-quote {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid currentColor;
  border-radius: 3px;
  font-style: italic;
  font-size: 12.5px;
}

.auth-demo-hint {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.auth-demo-hint code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-normal);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DISCORD WORKSPACE: 3-PANE LAYOUT
   ========================================================================== */
#discord-view {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-primary);
}

/* 1. SERVER NAVIGATION RAIL */
.server-rail {
  width: 72px;
  height: 100%;
  background-color: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  flex-shrink: 0;
}

.server-icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.server-pill {
  position: absolute;
  left: -12px;
  width: 4px;
  height: 8px;
  background: #ffffff;
  border-radius: 0 4px 4px 0;
  transition: all 0.18s ease;
  opacity: 0;
}
.server-icon-btn:hover .server-pill {
  opacity: 1;
  height: 20px;
}
.server-icon-btn.active .server-pill {
  opacity: 1;
  height: 40px;
}
.server-icon-inner {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-normal);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
}
.server-icon-btn:hover .server-icon-inner {
  border-radius: 16px;
  background-color: var(--brand-blurple);
  color: #ffffff;
}
.server-icon-btn.active .server-icon-inner {
  border-radius: 16px;
  background-color: var(--brand-blurple);
  color: #ffffff;
}
.brand-icon {
  background-color: var(--brand-blurple);
  color: #ffffff;
}
.community-icon {
  background-color: #383a40;
}
.admin-icon {
  background-color: #2b2d31;
  color: var(--status-yellow);
}
.admin-rail-btn:hover .admin-icon {
  background-color: var(--status-yellow);
  color: #111214;
}

.rail-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background-color: var(--status-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 3px solid var(--bg-tertiary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.rail-separator {
  width: 32px;
  height: 2px;
  background-color: var(--border-subtle);
  border-radius: 1px;
  margin: 4px 0;
}

/* 2. CHANNELS & DM SIDEBAR */
.channels-sidebar {
  width: 240px;
  height: 100%;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.sidebar-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.sidebar-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-header);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}
.sidebar-section {
  margin-bottom: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.channel-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
}
.channel-item:hover {
  background-color: var(--bg-modifier-hover);
  color: var(--text-normal);
}
.channel-item.active {
  background-color: var(--bg-modifier-selected);
  color: var(--text-header);
}
.channel-hash {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
}
.channel-item.active .channel-hash {
  color: var(--text-header);
}

/* Direct Messages Sidebar Items */
.dm-item-wrapper {
  position: relative;
  list-style: none;
}
.dm-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  transition: background-color 0.12s ease, color 0.12s ease;
  position: relative;
}
.dm-item:hover {
  background-color: var(--bg-modifier-hover);
  color: var(--text-normal);
}
.dm-item.active {
  background-color: var(--bg-modifier-selected);
  color: var(--text-header);
}
.dm-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.dm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.dm-avatar-wrap .status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}
.dm-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.dm-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-item.active .dm-name {
  color: var(--text-header);
}
.dm-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 5px;
  font-size: 11px;
  border-radius: 3px;
  line-height: 1;
  flex-shrink: 0;
}
.dm-item:hover .dm-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-close-btn:hover {
  color: var(--text-header);
  background: var(--bg-modifier-hover);
}
.dm-unread-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-red);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--status-red);
}

/* Discord DM Avatar Notification Badge (Matches Reference Design) */
.dm-avatar-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background-color: var(--status-red);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5px;
  border: 2.5px solid var(--bg-secondary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  line-height: 1;
  pointer-events: none;
  z-index: 5;
  box-sizing: border-box;
  animation: badge-pop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* DM Row Count Pill */
.dm-item-badge {
  background-color: var(--status-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: auto;
  margin-right: 4px;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Top Navbar Chat Tab Badge */
.chat-tab-badge {
  background-color: var(--status-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: 6px;
  line-height: 1;
}
.chat-tab-badge.hidden {
  display: none;
}

/* Desktop Notification Request Banner */
.dm-notification-banner {
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.18), rgba(43, 45, 49, 0.98));
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 8px;
  margin: 12px 16px 8px 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  animation: slideDownBanner 0.25s ease-out;
}
.dm-notification-banner.hidden {
  display: none;
}
@keyframes slideDownBanner {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.banner-bell-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.banner-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.banner-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}
.banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-navbar-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-navbar-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-navbar-icon.active {
  color: var(--brand-blurple);
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.15);
}
.dm-chat-action-btn {
  background-color: var(--bg-secondary-alt);
  color: var(--text-normal);
  transition: all 0.15s ease;
}
.dm-chat-action-btn:hover {
  background-color: var(--brand-blurple);
  color: #fff;
  transform: translateY(-1px);
}

/* User Panel Bar */
.user-panel {
  height: 52px;
  background-color: var(--bg-secondary-alt);
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blurple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.status-indicator {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary-alt);
}
.status-indicator.online { background-color: var(--status-green); }
.status-indicator.idle { background-color: var(--status-yellow); }
.status-indicator.dnd { background-color: var(--status-red); }
.status-indicator.offline { background-color: #80848e; }

.user-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.user-info:hover .user-displayname {
  text-decoration: underline;
}
.user-displayname {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-header);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-username {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. MAIN CHAT & HEADER AREA */
.main-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  min-width: 0;
  height: 100%;
}

.chat-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 5;
}
.channel-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.channel-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-header);
}
.header-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border-subtle);
  margin: 0 4px;
}
.channel-topic {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-admin-alert {
  background: rgba(254, 231, 92, 0.15);
  border: 1px solid rgba(254, 231, 92, 0.4);
  color: var(--status-yellow);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulseGlow 2.5s infinite;
}
.btn-admin-alert:hover {
  background: rgba(254, 231, 92, 0.25);
}
.count-pill {
  background: var(--status-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(254, 231, 92, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(254, 231, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 231, 92, 0); }
}

/* Chat Inner View */
.chat-inner-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.message-stream {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Message Entry */
.chat-message {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.1s ease;
}
.chat-message:hover {
  background-color: rgba(2, 2, 2, 0.08);
}
.chat-message.mentioned {
  background-color: rgba(240, 178, 50, 0.08);
  border-left: 2px solid #f0b232;
  padding-left: 6px;
}
.chat-message.mentioned:hover {
  background-color: rgba(240, 178, 50, 0.12);
}
.mention-everyone {
  background-color: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mention-everyone:hover {
  background-color: #5865F2;
  color: #ffffff;
}
.msg-actions {
  position: absolute;
  top: -10px;
  right: 16px;
  display: none;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 2px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.chat-message:hover .msg-actions {
  display: flex;
}
.msg-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.msg-action-btn:hover {
  color: var(--text-header);
  background-color: var(--bg-modifier-hover);
}
.msg-action-btn.msg-delete-btn:hover {
  color: var(--status-red);
  background-color: rgba(237, 66, 69, 0.15);
}
.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-blurple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.msg-content-wrap {
  flex: 1;
  min-width: 0;
}
.msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.msg-displayname {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-header);
  cursor: pointer;
}
.msg-displayname:hover {
  text-decoration: underline;
}
.msg-username-tag {
  font-size: 12px;
  color: var(--text-muted);
}
.role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}
.role-badge.admin {
  background: rgba(237, 66, 69, 0.2);
  color: var(--status-red);
}
.role-badge.bot {
  background: var(--brand-blurple);
  color: #fff;
}
.msg-timestamp {
  font-size: 11.5px;
  color: var(--text-muted);
}
.msg-text {
  font-size: 14.5px;
  color: var(--text-normal);
  word-break: break-word;
  line-height: 1.45;
}

/* ==========================================================================
   DISCORD RICH EMBEDS
   ========================================================================== */
.discord-embed {
  margin-top: 8px;
  max-width: 520px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xs);
  border-left: 4px solid var(--brand-blurple);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.embed-grid {
  flex: 1;
  min-width: 0;
}
.embed-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-header);
}
.embed-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.embed-title a {
  color: var(--text-link);
  text-decoration: none;
}
.embed-title a:hover {
  text-decoration: underline;
}
.embed-description {
  font-size: 13.5px;
  color: var(--text-normal);
  line-height: 1.45;
  margin-bottom: 8px;
  word-break: break-word;
}
.embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.embed-field-col {
  min-width: 0;
}
.embed-field-col.full-width {
  grid-column: 1 / -1;
}
.embed-field-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-header);
  margin-bottom: 2px;
}
.embed-field-value {
  font-size: 13px;
  color: var(--text-normal);
  word-break: break-word;
}
.embed-banner-wrap {
  margin-top: 8px;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.embed-banner-wrap img {
  max-width: 100%;
  max-height: 280px;
  display: block;
  border-radius: var(--radius-xs);
  object-fit: cover;
}
.embed-thumb-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.embed-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.embed-footer-row {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Typing Indicator */
.typing-indicator {
  height: 24px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.typing-indicator strong {
  color: #ffffff;
  font-weight: 600;
}
.typing-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--text-muted);
  border-radius: 50%;
  margin-right: 2px;
  animation: wave 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Chat Input Bar */
.chat-input-container {
  padding: 0 16px 24px;
  flex-shrink: 0;
  position: relative;
}

/* Discord-style Mention Autocomplete Popup */
.mention-autocomplete-popup {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 16px;
  right: 16px;
  max-width: 480px;
  background-color: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 8px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mention-autocomplete-popup.hidden {
  display: none !important;
}
.mention-autocomplete-header {
  font-size: 11px;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px 6px;
}
.mention-autocomplete-header .mention-query {
  color: #ffffff;
}
.mention-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s ease;
  user-select: none;
}
.mention-autocomplete-item:hover,
.mention-autocomplete-item.active {
  background-color: rgba(255, 255, 255, 0.08);
}
.mention-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #5865F2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.mention-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mention-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}
.mention-item-desc {
  font-size: 12px;
  color: #949ba4;
}

.chat-input-form {
  background-color: var(--bg-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 2px 14px;
  gap: 12px;
}
.input-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-normal);
  font-size: 12px;
  font-weight: 600;
}
.input-action-btn:hover {
  background: var(--brand-blurple);
  color: #ffffff;
}
.chat-input-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-header);
  font-size: 15px;
  font-family: inherit;
  padding: 10px 0;
}
.chat-input-form input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: var(--text-muted);
}
.btn-send-msg {
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-xs);
}
.btn-send-msg:hover:not(:disabled) {
  color: var(--brand-blurple);
}
.btn-send-msg:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==========================================================================
   4. MEMBERS SIDEBAR
   ========================================================================== */
.members-sidebar {
  width: 240px;
  height: 100%;
  background-color: var(--bg-secondary);
  padding: 16px 10px;
  overflow-y: auto;
  flex-shrink: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}
.member-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 4px 8px;
  margin-top: 8px;
}
.member-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.member-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.member-card-item:hover {
  background-color: var(--bg-modifier-hover);
}
.member-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blurple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.member-details {
  flex: 1;
  min-width: 0;
}
.member-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-display {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-card-item:hover .member-display {
  color: var(--text-header);
}
.member-tag {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   FRIENDS VIEW (ONLINE / ALL / ADD FRIEND BY USERNAME ONLY)
   ========================================================================== */
.friends-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}
.friends-subnav {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.friends-subnav-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.bold-title {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text-header);
}
.subnav-divider {
  width: 1px;
  height: 18px;
  background-color: var(--border-subtle);
  margin: 0 4px;
}
.subnav-tab {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.subnav-tab:hover {
  background-color: var(--bg-modifier-hover);
  color: var(--text-normal);
}
.subnav-tab.active {
  background-color: var(--bg-modifier-selected);
  color: var(--text-header);
}
.subnav-tab.tab-add-friend {
  color: var(--status-green);
}
.subnav-tab.tab-add-friend.active {
  background-color: rgba(87, 242, 135, 0.15);
  color: var(--status-green);
}
.badge-mini {
  background: var(--status-red);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
}

.friends-content-area {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.friend-tab-pane {
  max-width: 800px;
}

.add-friend-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-header);
  margin-bottom: 4px;
}
.add-friend-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.strict-rule-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(254, 231, 92, 0.1);
  border: 1px solid rgba(254, 231, 92, 0.3);
  border-radius: var(--radius-sm);
  color: #fff4a3;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.add-friend-input-wrap {
  display: flex;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
}
.add-friend-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-normal);
  font-size: 15px;
  padding: 8px 12px;
}
.add-friend-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 13.5px;
  margin-bottom: 20px;
  animation: slideDown 0.2s ease;
}
.add-friend-feedback.success {
  background: rgba(87, 242, 135, 0.15);
  border: 1px solid rgba(87, 242, 135, 0.3);
  color: #a4ffc0;
}
.add-friend-feedback.error {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.4);
  color: #ffa1a4;
}

.friend-quick-guide {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  margin-top: 24px;
}
.friend-quick-guide h4 {
  font-size: 13px;
  color: var(--text-header);
  margin-bottom: 6px;
}
.friend-quick-guide p {
  font-size: 13px;
  color: var(--text-muted);
}
.friend-quick-guide code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-blurple);
}

/* Friend Cards Grid */
.friends-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.friend-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}
.friend-row-card:hover {
  background-color: var(--bg-accent);
}
.friend-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.friend-row-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-blurple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.friend-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   MODALS (ADMIN REQUESTS, EMBED BUILDER, PROFILE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-header.danger-header {
  border-left: 4px solid var(--status-red);
}
.modal-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-header-icon.admin-crown {
  background: rgba(254, 231, 92, 0.15);
  color: var(--status-yellow);
}
.modal-header-icon.embed-icon {
  background: rgba(88, 101, 242, 0.15);
  color: var(--brand-blurple);
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-header);
}
.modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--text-header);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}
.modal-footer {
  padding: 14px 20px;
  background: var(--bg-secondary-alt);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* Bokit Admin Modal */
.modal-admin-card {
  width: 100%;
  max-width: 680px;
  height: 600px;
}
.modal-tabs {
  display: flex;
  background: var(--bg-secondary-alt);
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-tab-btn {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.modal-tab-btn.active {
  color: var(--text-header);
  border-bottom-color: var(--brand-blurple);
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.request-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.request-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.request-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-blurple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.request-names {
  display: flex;
  flex-direction: column;
}
.request-display {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-header);
}
.request-username {
  font-size: 12.5px;
  color: var(--text-muted);
}
.request-date {
  font-size: 12px;
  color: var(--text-muted);
}

.request-note-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--brand-blurple);
  padding: 10px 14px;
  border-radius: 4px;
}
.request-note-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.request-note-content {
  font-size: 13.5px;
  color: var(--text-normal);
  line-height: 1.4;
  word-break: break-word;
}

.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}
.status-badge.approved {
  background: rgba(87, 242, 135, 0.15);
  color: var(--status-green);
}
.status-badge.rejected {
  background: rgba(237, 66, 69, 0.15);
  color: var(--status-red);
}
.status-badge.owner-badge {
  background: rgba(88, 101, 242, 0.2);
  color: #7983f5;
  border: 1px solid rgba(88, 101, 242, 0.4);
}
.status-badge.member-badge {
  background: rgba(148, 155, 164, 0.15);
  color: var(--text-muted);
}
.protected-account-note {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #5865F2;
  padding: 6px 12px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 4px;
}
.manage-account-card {
  transition: background 0.15s ease, border-color 0.15s ease;
}
.manage-account-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Modal Small Reject Dialog */
.modal-small-card {
  width: 100%;
  max-width: 480px;
}
.reject-prompt-text {
  font-size: 13.5px;
  color: var(--text-normal);
  margin-bottom: 16px;
}

/* Rich Embed Builder Modal */
.modal-embed-card {
  width: 100%;
  max-width: 960px;
  height: 640px;
}
.embed-builder-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.embed-inputs-column {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
}
.embed-preview-column {
  width: 440px;
  background: var(--bg-primary);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.preview-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.discord-message-preview {
  display: flex;
  gap: 12px;
}
.preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blurple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.preview-message-content {
  flex: 1;
  min-width: 0;
}
.preview-user-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.preview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-header);
}
.preview-badge {
  background: var(--brand-blurple);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}
.preview-time {
  font-size: 11px;
  color: var(--text-muted);
}

.color-palette-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.color-dot:hover {
  transform: scale(1.15);
}
.color-dot.active {
  border-color: #ffffff;
  transform: scale(1.15);
}
#embed-custom-color {
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 12px;
}
.form-row .form-group {
  flex: 1;
}

.fields-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.btn-text-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blurple);
}
.btn-text-action:hover {
  text-decoration: underline;
}
.embed-fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 8px;
  border-radius: var(--radius-xs);
}
.field-edit-row input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-normal);
  padding: 6px 8px;
  font-size: 13px;
}
.field-inline-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* User Profile Flyout */
.modal-profile-card {
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.profile-banner {
  height: 90px;
  background: linear-gradient(135deg, #5865f2, #eb459e);
}
.profile-avatar-row {
  position: relative;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -40px;
}
.profile-avatar-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-avatar-large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--brand-blurple);
  border: 6px solid var(--bg-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-sizing: border-box;
}
.profile-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease-in-out;
  border: 6px solid transparent;
  box-sizing: border-box;
  user-select: none;
}
.profile-avatar-overlay svg {
  margin-bottom: 2px;
}
.profile-avatar-wrapper.can-edit {
  cursor: pointer;
}
.profile-avatar-wrapper.can-edit:hover .profile-avatar-overlay:not(.hidden) {
  opacity: 1;
}
.badge-role {
  background: var(--bg-secondary-alt);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}
.profile-details {
  padding: 16px;
}
.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-header);
}
.username-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  margin: 8px 0 14px;
}
.profile-username {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-normal);
}
.btn-copy-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-blurple);
}
.btn-copy-tag:hover {
  text-decoration: underline;
}
.profile-bio-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-xs);
  padding: 10px;
  margin-bottom: 16px;
}
.bio-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.bio-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-edit-bio {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--brand-blurple, #5865f2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}
.btn-edit-bio:hover {
  text-decoration: underline;
  color: #7983f5;
  background: rgba(88, 101, 242, 0.1);
}
.bio-text {
  font-size: 13px;
  color: var(--text-normal);
  line-height: 1.4;
  word-break: break-word;
}
.profile-bio-edit-wrap {
  margin-top: 6px;
}
.input-profile-bio {
  width: 100%;
  background: var(--bg-primary, #1e1f22);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-xs);
  color: var(--text-normal, #dbdee1);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 64px;
  max-height: 140px;
  box-sizing: border-box;
  outline: none;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}
.input-profile-bio:focus {
  border-color: var(--brand-blurple, #5865f2);
}
.bio-edit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.bio-char-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #949ba4);
}
.bio-char-count.warning {
  color: var(--danger, #ed4245);
}
.bio-edit-buttons {
  display: flex;
  gap: 6px;
}
.btn-xs {
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}
.profile-bio-status {
  font-size: 11.5px;
  margin-top: 6px;
  font-weight: 500;
  min-height: 16px;
}
.profile-bio-status.error {
  color: var(--danger, #ed4245);
}
.profile-bio-status.success {
  color: var(--status-green, #57f287);
}
.profile-bio-status.loading {
  color: var(--brand-blurple, #5865f2);
}
.profile-avatar-actions {
  background: var(--bg-tertiary);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}
.avatar-actions-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.avatar-buttons-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-danger-outline {
  background: transparent;
  color: var(--danger, #ed4245);
  border: 1px solid var(--danger, #ed4245);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-danger-outline:hover {
  background: var(--danger, #ed4245);
  color: #ffffff;
}
.profile-avatar-status {
  font-size: 11.5px;
  margin-top: 6px;
  font-weight: 500;
  min-height: 16px;
}
.profile-avatar-status.error {
  color: var(--danger, #ed4245);
}
.profile-avatar-status.success {
  color: var(--status-green, #57f287);
}
.profile-avatar-status.loading {
  color: var(--brand-blurple, #5865f2);
}

/* ==========================================================================
   TELEGRAM-STYLE END-TO-END ENCRYPTION (E2EE) STYLES
   ========================================================================== */
.btn-telegram-e2ee {
  background: rgba(87, 242, 135, 0.12);
  border: 1px solid rgba(87, 242, 135, 0.35);
  color: var(--status-green);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-telegram-e2ee:hover {
  background: rgba(87, 242, 135, 0.22);
  border-color: var(--status-green);
  box-shadow: 0 0 12px rgba(87, 242, 135, 0.25);
}

.modal-telegram-crypto {
  width: 100%;
  max-width: 500px;
}
.telegram-header .telegram-icon {
  background: rgba(87, 242, 135, 0.15);
  color: var(--status-green);
}

.crypto-hero-card {
  background: linear-gradient(135deg, rgba(87, 242, 135, 0.08), rgba(88, 101, 242, 0.08));
  border: 1px solid rgba(87, 242, 135, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.crypto-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(87, 242, 135, 0.2);
  color: var(--status-green);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.crypto-explainer {
  font-size: 13px;
  color: var(--text-normal);
  line-height: 1.45;
}

.telegram-fingerprint-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.fingerprint-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.crypto-emojis-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 38px;
  margin: 6px 0 12px;
  user-select: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: emojiPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes emojiPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.fingerprint-subtext {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.crypto-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.spec-row:last-child {
  border-bottom: none;
}
.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}
.spec-val {
  color: var(--text-header);
  font-weight: 600;
  text-align: right;
}
.spec-code {
  font-family: 'Consolas', monospace;
  background: var(--bg-secondary);
  color: var(--status-green);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.msg-encrypted-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--status-green);
  background: rgba(87, 242, 135, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}

/* ==========================================================================
   GLOBAL TOP NAVIGATION BAR
   ========================================================================== */
.global-navbar {
  height: 42px;
  background-color: #111214;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 50;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-spark {
  background: var(--brand-blurple);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.brand-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-header);
  letter-spacing: -0.2px;
}
.navbar-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(87, 242, 135, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}
.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-green);
}
.status-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--status-green);
}

.navbar-center-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.navbar-tab:hover {
  background-color: var(--bg-modifier-hover);
  color: var(--text-normal);
}
.navbar-tab.active {
  background-color: var(--brand-blurple);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
}
.badge-proxy-tag {
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 700;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wisp-quick-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 176, 244, 0.12);
  border: 1px solid rgba(0, 176, 244, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--status-sky);
}
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  transition: background 0.15s ease;
}
.nav-user-chip:hover {
  background: var(--bg-modifier-hover, rgba(255, 255, 255, 0.07));
}
.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-blurple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-normal);
}

/* Global Avatar Image Scaling */
.user-avatar,
.nav-user-avatar,
.msg-avatar,
.member-avatar,
.dm-avatar,
.friend-row-avatar,
.profile-avatar-large,
.request-avatar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   WEB PROXY VIEW (SCRAMJET & LIBCURL & WISP)
   ========================================================================== */
#proxy-view {
  width: 100%;
  height: calc(100vh - 42px);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}
.proxy-app-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.proxy-control-bar {
  height: 52px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  flex-shrink: 0;
}
.proxy-nav-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.proxy-omnibox-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2px 10px;
  transition: border-color 0.2s ease;
}
.proxy-omnibox-form:focus-within {
  border-color: var(--brand-blurple);
}
.omnibox-badge {
  color: var(--status-green);
  display: flex;
  align-items: center;
}
.proxy-omnibox-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-header);
  font-size: 14px;
  padding: 8px 0;
}
.adblock-shield-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(35, 165, 89, 0.15);
  border: 1px solid rgba(35, 165, 89, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #57f287;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.3px;
  box-shadow: 0 0 10px rgba(35, 165, 89, 0.2);
}
.adblock-shield-badge .shield-icon {
  font-size: 12px;
}
.btn-proxy-go {
  padding: 6px 16px;
  font-size: 13px;
}

.proxy-top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proxy-select {
  background: var(--bg-tertiary);
  color: var(--text-normal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.proxy-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-accent);
}
.proxy-select:focus {
  border-color: var(--brand-blurple);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}
.proxy-select option {
  background: #1e1f22;
  color: var(--text-normal);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

/* Wisp Diagnostics Drawer */
.wisp-diagnostics-drawer {
  background-color: #1a1b1e;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  animation: slideDown 0.2s ease;
}
.wisp-drawer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wisp-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--status-sky);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.wisp-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.wisp-code {
  background: var(--bg-secondary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 12px;
}
.wisp-ping-result {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-normal);
}
.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ping-dot.ready { background: var(--text-muted); }
.ping-dot.success { background: var(--status-green); box-shadow: 0 0 8px var(--status-green); }
.ping-dot.loading { background: var(--status-yellow); animation: wave 1s infinite; }
.ping-dot.error { background: var(--status-red); }

/* ==========================================================================
   PETEZAH GAMES UI (petezah://newtab)
   ========================================================================== */

.pz-newtab-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url('https://images.unsplash.com/photo-1519692933481-e162a57d6721?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  user-select: none;
  font-family: inherit;
}

.pz-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(12, 19, 32, 0.58) 0%, rgba(5, 9, 17, 0.88) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 1;
}

.pz-rain-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 2;
}

/* Header & Top Bar */
.pz-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 36px 12px 36px;
}

.pz-top-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* Floating Dock */
.pz-dock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 25, 42, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.pz-dock:hover {
  background: rgba(24, 34, 56, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.45);
}

.pz-dock-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.pz-dock-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px) scale(1.08);
}

.pz-dock-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Pill Buttons */
.pz-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 25, 42, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.pz-pill-btn:hover {
  background: rgba(30, 42, 68, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.pz-pill-btn:active {
  transform: translateY(0);
}

.pz-pill-trending {
  background: rgba(22, 30, 50, 0.6);
}

.pz-pill-trending .pz-pill-icon {
  font-size: 15px;
}

.pz-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Center Stage */
.pz-center-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 20px 24px 20px;
}

.pz-brand-title {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin: 0 0 26px 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.25);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

/* Central Search Bar */
.pz-search-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(13, 20, 36, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 8px 14px 8px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pz-search-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(18, 28, 48, 0.78);
}

.pz-search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(20, 32, 54, 0.88);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pz-search-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.pz-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

.pz-search-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.pz-shortcut-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  flex-shrink: 0;
}

.pz-kbd {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Category Quick-Actions Row */
.pz-category-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pz-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px;
}

.pz-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 29, 48, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.pz-cat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.pz-cat-btn:hover .pz-cat-icon {
  background: rgba(35, 50, 80, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.12);
}

.pz-cat-btn:hover .pz-cat-label {
  color: #ffffff;
}

.pz-cat-btn:active .pz-cat-icon {
  transform: translateY(-1px) scale(1.02);
}

/* User Custom Shortcuts */
.pz-custom-shortcuts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pz-custom-shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 25, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pz-custom-shortcut-pill:hover {
  background: rgba(30, 42, 68, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.pz-custom-shortcut-remove {
  font-size: 14px;
  color: #94a3b8;
  margin-left: 2px;
  cursor: pointer;
}

.pz-custom-shortcut-remove:hover {
  color: #ff5555;
}

/* Engine Selector Pill Dropdown */
.pz-engine-wrapper {
  position: relative;
  margin-top: 24px;
}

.pz-engine-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 25, 42, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  outline: none;
}

.pz-engine-pill:hover {
  background: rgba(30, 42, 68, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.pz-engine-globe {
  font-size: 14px;
}

.pz-engine-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.pz-engine-wrapper.open .pz-engine-arrow {
  transform: rotate(180deg);
}

.pz-engine-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 21, 37, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  z-index: 100;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
  animation: fadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.pz-engine-option {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.pz-engine-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.pz-engine-option.active {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
  font-weight: 600;
}

/* Bottom Status Footer */
.pz-footer-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(8, 14, 24, 0.68);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  font-size: 13px;
  color: #94a3b8;
}

.pz-footer-left,
.pz-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pz-footer-sep {
  color: rgba(255, 255, 255, 0.2);
}

.pz-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
}

.pz-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5865f2;
}

.pz-footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.18s ease;
}

.pz-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.pz-footer-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.18s ease;
}

.pz-footer-btn:hover {
  color: #ffffff;
}

.pz-status-indicator.online {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57f287;
  box-shadow: 0 0 8px #57f287;
}

.pz-footer-clock {
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* PeteZah Custom Modals */
.pz-modal-card {
  max-width: 640px;
  width: 90%;
  background: rgba(15, 23, 40, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border-radius: 16px;
}

.pz-modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.pz-modal-body {
  padding: 16px 20px 24px 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.pz-modal-sub {
  color: #94a3b8;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.pz-trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.pz-trend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(22, 33, 56, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.pz-trend-card:hover {
  background: rgba(32, 48, 80, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pz-trend-icon {
  font-size: 26px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.pz-trend-info {
  flex: 1;
  min-width: 0;
}

.pz-trend-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.pz-trend-desc {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pz-btn-play {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(88, 101, 242, 0.3);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.pz-btn-play:hover {
  background: #5865f2;
  border-color: #5865f2;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
}

/* PeteZah Links List */
.pz-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pz-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(22, 33, 56, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.pz-link-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pz-link-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.pz-link-url {
  font-size: 12px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  user-select: all;
}

/* Active Browsing Bar Glassmorphism Override */
.proxy-control-bar {
  background: rgba(10, 16, 28, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proxy-control-bar .proxy-omnibox-form {
  background: rgba(18, 26, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 2px 14px;
}

.proxy-control-bar .proxy-omnibox-form:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.25);
}

/* Proxy Viewport Iframe */
.proxy-viewport-container {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #ffffff;
  transition: all 0.25s ease;
}
.proxy-viewport-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Discord Empty Channel State */
.empty-channel-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 16px 20px;
  animation: fadeIn 0.2s ease;
}
.empty-hash-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #4e5058;
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.empty-channel-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-header);
  margin-bottom: 6px;
}
.empty-channel-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   COMMUNITY UPDATE REQUESTS & CODE PLAYGROUND
   ========================================================================== */

/* Navbar Badges */
.badge-updates-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  background: #5865F2;
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.badge-editor-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  background: #E67E22;
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

/* ================= UPDATE REQUESTS VIEW ================= */
#updates-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  background: #1e1f22;
  overflow: hidden;
}

#updates-view.hidden {
  display: none !important;
}

.updates-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(88, 101, 242, 0.08) 0%, rgba(14, 16, 22, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.updates-content-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px 36px 60px;
}

.updates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.updates-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.updates-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5865F2 0%, #3b45c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.updates-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.updates-main-title {
  font-size: 22px;
  font-weight: 800;
  color: #f2f3f5;
  margin: 0;
}

.updates-core-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(88, 101, 242, 0.2);
  color: #5865F2;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.updates-main-subtitle {
  font-size: 13px;
  color: #949ba4;
  margin: 4px 0 0;
}

.updates-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.updates-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.updates-stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-width: 56px;
}

.updates-stat-chip .stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
}

.updates-stat-chip .stat-value {
  font-size: 14px;
  font-weight: 800;
  color: #f2f3f5;
}

.updates-stat-chip.stat-completed .stat-value {
  color: #57F287;
}

.updates-stat-chip.stat-planned .stat-value {
  color: #00B0F4;
}

.btn-updates-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-updates-submit:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

/* Controls Bar */
.updates-controls-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.updates-search-wrapper {
  flex: 1;
  min-width: 200px;
}

.updates-search-input {
  width: 100%;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f2f3f5;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.updates-search-input:focus {
  border-color: #5865F2;
}

.updates-category-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.category-pill {
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b5bac1;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-pill:hover {
  background: #35373c;
  color: #f2f3f5;
}

.category-pill.active {
  background: #5865F2;
  border-color: #5865F2;
  color: #ffffff;
}

.updates-selects-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.updates-dropdown-select {
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f2f3f5;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

/* Updates Grid & Cards */
.updates-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-card {
  display: flex;
  gap: 16px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.update-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.update-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-upvote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 54px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #b5bac1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-upvote:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: #5865F2;
  color: #5865F2;
}

.btn-upvote.upvoted {
  background: #5865F2;
  border-color: #5865F2;
  color: #ffffff;
}

.upvote-icon {
  font-size: 16px;
  line-height: 1;
}

.upvote-count {
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}

.update-card-content {
  flex: 1;
  min-width: 0;
}

.update-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.update-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #f2f3f5;
  margin: 0;
  word-break: break-word;
}

.update-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.update-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-pending {
  background: rgba(148, 155, 164, 0.15);
  color: #949ba4;
  border: 1px solid rgba(148, 155, 164, 0.3);
}

.status-under_review {
  background: rgba(254, 231, 92, 0.15);
  color: #FEE75C;
  border: 1px solid rgba(254, 231, 92, 0.3);
}

.status-planned {
  background: rgba(0, 176, 244, 0.15);
  color: #00B0F4;
  border: 1px solid rgba(0, 176, 244, 0.3);
}

.status-in_progress {
  background: rgba(155, 89, 182, 0.15);
  color: #9B59B6;
  border: 1px solid rgba(155, 89, 182, 0.3);
}

.status-completed {
  background: rgba(87, 242, 135, 0.15);
  color: #57F287;
  border: 1px solid rgba(87, 242, 135, 0.3);
}

.status-declined {
  background: rgba(237, 66, 69, 0.15);
  color: #ED4245;
  border: 1px solid rgba(237, 66, 69, 0.3);
}

.update-category-badge {
  font-size: 11px;
  font-weight: 600;
  background: #1e1f22;
  color: #b5bac1;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.update-card-desc {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.5;
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.update-admin-response {
  background: rgba(88, 101, 242, 0.1);
  border-left: 3px solid #5865F2;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.update-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #5865F2;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.update-admin-text {
  font-size: 13px;
  color: #f2f3f5;
  margin: 0;
}

.update-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #949ba4;
}

.update-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.update-author-name {
  font-weight: 600;
  color: #dbdee1;
}

.update-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-card-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b5bac1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background: #35373c;
  color: #f2f3f5;
}

.btn-card-action.admin-mod-btn {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  color: #5865F2;
}

.btn-card-action.admin-mod-btn:hover {
  background: #5865F2;
  color: #ffffff;
}

.updates-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #949ba4;
  text-align: center;
}

.updates-empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.updates-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 6px;
}

/* Updates Modals */
.updates-modal-card {
  max-width: 520px;
  width: 92%;
  background: #313338;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.updates-modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.updates-modal-icon {
  font-size: 24px;
}

.field-char-count {
  font-size: 11px;
  color: #949ba4;
  font-variant-numeric: tabular-nums;
}

.field-char-count.warning {
  color: #ED4245;
  font-weight: 700;
}

/* ================= HTML & JS CODE EDITOR VIEW ================= */
#editor-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #1e1f22;
  overflow: hidden;
}

#editor-view.hidden {
  display: none !important;
}

.editor-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Editor Toolbar */
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  z-index: 10;
}

.editor-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.editor-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #f2f3f5;
  letter-spacing: 0.3px;
}

.editor-file-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #1e1f22;
  padding: 3px;
  border-radius: 8px;
}

.editor-file-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  background: transparent;
  color: #949ba4;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editor-file-tab:hover {
  color: #f2f3f5;
  background: rgba(255, 255, 255, 0.05);
}

.editor-file-tab.active {
  background: #2b2d31;
  color: #f2f3f5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-html { background: #E44D26; }
.dot-css { background: #264DE4; }
.dot-js { background: #F7DF1E; }

.editor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-select-template {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f3f5;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.btn-editor-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b5bac1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-tool:hover {
  background: #35373c;
  color: #f2f3f5;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-editor-tool.active {
  background: rgba(87, 242, 135, 0.15);
  border-color: rgba(87, 242, 135, 0.4);
  color: #57F287;
}

.btn-editor-run {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #57F287;
  color: #111214;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-run:hover {
  background: #47cf73;
  transform: translateY(-1px);
}

/* Split Workspace */
.editor-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.editor-code-pane {
  display: flex;
  flex-direction: column;
  width: 50%;
  min-width: 280px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #1e1f22;
}

.editor-textarea-wrapper {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

.code-textarea {
  width: 100%;
  height: 100%;
  background: #1e1f22;
  color: #f2f3f5;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 16px;
  border: none;
  outline: none;
  resize: none;
  tab-size: 2;
  white-space: pre;
}

.editor-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
  background: #18191c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #949ba4;
}

/* Preview Pane */
.editor-preview-pane {
  display: flex;
  flex-direction: column;
  width: 50%;
  min-width: 280px;
  background: #111214;
  position: relative;
}

.editor-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57F287;
  box-shadow: 0 0 8px rgba(87, 242, 135, 0.6);
}

.preview-label {
  font-size: 12px;
  font-weight: 700;
  color: #f2f3f5;
}

.preview-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-preview-action {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b5bac1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-preview-action:hover {
  background: #35373c;
  color: #f2f3f5;
}

.console-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  background: #ED4245;
  color: #fff;
  border-radius: 10px;
}

.editor-preview-frame-container {
  flex: 1;
  min-height: 0;
  background: #ffffff;
  position: relative;
}

.editor-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Console Drawer */
.editor-console-panel {
  display: flex;
  flex-direction: column;
  height: 150px;
  min-height: 100px;
  max-height: 50%;
  background: #18191c;
  border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.editor-console-panel.hidden {
  display: none !important;
}

.console-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  background: #232428;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: #949ba4;
  text-transform: uppercase;
}

.btn-clear-console {
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 11px;
  cursor: pointer;
}

.btn-clear-console:hover {
  color: #f2f3f5;
}

.editor-console-logs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
}

.console-empty-tip {
  color: #6d6f78;
  font-style: italic;
}

.console-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.console-time {
  color: #6d6f78;
  font-size: 10px;
  flex-shrink: 0;
}

.console-msg {
  white-space: pre-wrap;
  word-break: break-all;
  flex: 1;
}

.console-log-info .console-msg { color: #dbdee1; }
.console-log-warn .console-msg { color: #FEE75C; }
.console-log-error .console-msg { color: #ED4245; }

/* ==========================================================================
   URL ACCESSIBILITY DIAGNOSTICS VIEW
   ========================================================================== */

.badge-scanner-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  background: #00b0f4;
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

#scanner-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  overflow-y: auto;
  position: relative;
}

#scanner-view.hidden {
  display: none !important;
}

.scanner-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.scanner-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scanner-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 176, 244, 0.12);
  color: #00b0f4;
  border: 1px solid rgba(0, 176, 244, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.scanner-title {
  color: var(--text-header);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.scanner-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 720px;
}

/* Input Card */
.scanner-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scanner-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .scanner-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.scanner-input-group {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.scanner-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.scanner-input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-header);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scanner-input:focus {
  border-color: var(--brand-blurple);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.25);
}

.btn-scanner-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.btn-scanner-clear:hover {
  color: var(--text-header);
}

.scanner-actions {
  display: flex;
  gap: 10px;
}

.btn-scanner-run {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.btn-scanner-reset {
  height: 46px;
  padding: 0 16px;
  background: var(--bg-accent);
  color: var(--text-normal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-scanner-reset:hover {
  background: var(--bg-modifier-hover);
  color: var(--text-header);
}

/* Quick Test Pills */
.scanner-quick-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 4px;
}

.quick-pills-label {
  font-weight: 500;
}

.quick-pill-btn {
  background: var(--bg-secondary-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-normal);
  padding: 3px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-pill-btn:hover {
  background: var(--bg-modifier-hover);
  border-color: var(--brand-blurple);
  color: var(--text-header);
}

/* Loading / Progress State */
.scanner-loading-state {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { border-color: rgba(88, 101, 242, 0.3); }
  50% { border-color: rgba(88, 101, 242, 0.7); }
}

.scanner-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(88, 101, 242, 0.2);
  border-top-color: var(--brand-blurple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.scanner-loading-target {
  color: var(--text-header);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.scanner-loading-sub {
  color: var(--text-muted);
  font-size: 13px;
}

/* Error Alert */
.scanner-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(237, 66, 69, 0.1);
  border: 1px solid rgba(237, 66, 69, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--status-red);
  font-size: 14px;
  line-height: 1.45;
}

.scanner-alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Results Panel */
.scanner-results-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scanner-verdict-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.verdict-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.verdict-headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verdict-kicker {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.verdict-domain {
  color: var(--text-header);
  font-size: 24px;
  font-weight: 700;
  word-break: break-all;
}

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.verdict-badge.badge-passed {
  background: rgba(87, 242, 135, 0.15);
  color: var(--status-green);
  border: 1px solid rgba(87, 242, 135, 0.35);
}

.verdict-badge.badge-warning {
  background: rgba(254, 231, 92, 0.15);
  color: var(--status-yellow);
  border: 1px solid rgba(254, 231, 92, 0.35);
}

.verdict-badge.badge-failed {
  background: rgba(237, 66, 69, 0.15);
  color: var(--status-red);
  border: 1px solid rgba(237, 66, 69, 0.35);
}

.verdict-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (max-width: 640px) {
  .verdict-controls {
    align-items: flex-start;
    width: 100%;
  }
}

.scan-timestamp {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-rescan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  height: 34px;
}

/* Summary Bar */
.scanner-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.summary-metric {
  background: var(--bg-secondary-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-header);
}

.metric-value.passed {
  color: var(--status-green);
}

/* Results Table */
.scanner-table-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.table-card-title {
  color: var(--text-header);
  font-size: 16px;
  font-weight: 600;
}

.table-summary-tag {
  font-size: 12px;
  color: var(--text-muted);
}

.scanner-table-wrapper {
  overflow-x: auto;
}

.scanner-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.scanner-table th {
  background: var(--bg-secondary-alt);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.scanner-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.scanner-table tbody tr:last-child td {
  border-bottom: none;
}

.scanner-table tbody tr:hover {
  background: var(--bg-modifier-hover);
}

.check-name-cell {
  font-weight: 600;
  color: var(--text-header);
  white-space: nowrap;
}

.check-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.check-details-cell {
  color: var(--text-normal);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Technical Details Accordion */
.scanner-tech-details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tech-details-summary {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.15s;
}

.tech-details-summary:hover {
  color: var(--text-header);
}

.scanner-tech-details[open] .tech-details-summary {
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-header);
}

.tech-details-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-normal);
  background: var(--bg-secondary-alt);
}

.tech-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-detail-key {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tech-detail-val {
  font-family: monospace;
  background: var(--bg-tertiary);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  word-break: break-all;
}



