@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --accent:       rgba(255, 255, 255, 0.90);
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --glass-active: rgba(255, 255, 255, 0.10);
  --text:         #f0f0f5;
  --text-muted:   rgba(240, 240, 245, 0.45);
  --text-4:       rgba(240, 240, 245, 0.25);
  --bg-base:      #0a0a0f;
  --surface:      rgba(255, 255, 255, 0.035);
  --radius:       16px;
  --radius-sm:    10px;
  --font:         'Outfit', sans-serif;
  --mono:         'JetBrains Mono', monospace;
}

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  overflow: hidden;
}

body {
  background: var(--bg-base);
}

#bg-iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  
}

.bg-overlay {
  position: fixed;
  inset: 0;
  display: none; background: none;
  z-index: 1;
  pointer-events: none;
}

.app {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.window {
  width: 100%;
  max-width: 1080px;
  height: calc(100vh - 32px);
  max-height: 780px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
}

.window::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 45%, rgba(255,255,255,0.05));
  z-index: -1;
  pointer-events: none;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 58px;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: none;
  flex-shrink: 0;
}

.topbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
  display: block;

}

.topbar-branding {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar-branding-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.topbar-branding-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.topbar-branding-sub a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  font-weight: bold;
}

.topbar-chat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--glass-border);
}

.topbar-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--glass);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.topbar-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.topbar-chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

.topbar-footer {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-auth-info {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.sidebar-auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-auth-btn:hover {
  color: var(--text);
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.view {
  display: none;
  flex: 1;
  overflow: hidden;
}

.view.active {
  display: flex;
}

#view-auth {
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: none;
  border-radius: 24px;
  padding: 40px;
  width: 420px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 45%);
  z-index: -1;
  pointer-events: none;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo .logo-mark {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}

.auth-logo .logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.field input {
  background: rgba(0,0,0,0.3);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus {
  border-color: rgba(255,255,255,0.25);
}

.btn-primary {
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.error-msg {
  font-size: 13px;
  color: rgba(255, 120, 120, 0.9);
  text-align: center;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}

.error-msg.visible {
  opacity: 1;
}

#view-app {
  flex-direction: row;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  min-width: 280px;
  height: 100%;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.sidebar-header {
  display: none;
}

.site-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.site-footer a {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--text);
}

.search-area {
  padding: 14px 16px;
  border-bottom: none;
  display: flex;
  gap: 8px;
  position: relative;
}

.search-input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: rgba(255,255,255,0.2);
}

.search-icon-btn {
  background: var(--glass);
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.search-icon-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  background: var(--glass-hover);
}

.search-results {
  position: absolute;
  top: calc(100% - 4px);
  left: 16px;
  right: 16px;
  background: rgba(14, 14, 20, 0.97);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: var(--radius-sm);
  z-index: 10;
  overflow: hidden;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
  color: var(--text-muted);
}

.search-result-item:hover {
  background: var(--glass-hover);
  color: var(--text);
}

.search-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.conversations-list::-webkit-scrollbar {
  width: 4px;
}

.conversations-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.conv-item:hover {
  background: var(--glass-hover);
}

.conv-item.active {
  background: var(--glass-active);
}

.conv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

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

.conv-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-last-msg {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.conv-unread {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conv-menu-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  margin-left: auto;
  flex-shrink: 0;
}

.conv-item:hover .conv-menu-btn {
  opacity: 1;
}

.conv-menu-btn:hover {
  background: var(--glass-hover);
  color: var(--text);
}

.conv-item.blocked {
  opacity: 0.5;
}

.conv-item.blocked .conv-avatar {
  
}

.blocked-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,100,100,0.8);
  background: rgba(255,100,100,0.08);
  border: 1px solid rgba(255,100,100,0.18);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
}

.chat-placeholder .placeholder-icon {
  font-size: 40px;
  color: rgba(255,255,255,0.15);
}

.chat-placeholder p {
  font-size: 14px;
}

.chat-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s;
}

.presence-dot.online {
  background: rgba(120, 220, 140, 0.9);
  box-shadow: 0 0 5px rgba(120, 220, 140, 0.5);
}

.e2e-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--glass);
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  letter-spacing: 0.3px;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.messages::-webkit-scrollbar {
  width: 4px;
}

.messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.message {
  display: flex;
  max-width: 68%;
  animation: msgIn 0.2s ease;
}

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

.message.mine {
  align-self: flex-end;
}

.message.theirs {
  align-self: flex-start;
}

.bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
  cursor: default;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.message.mine .bubble {
  background: rgba(255,255,255,0.10);
  border: none;
  border-bottom-right-radius: 4px;
}

.message.theirs .bubble {
  background: var(--glass);
  border: none;
  border-bottom-left-radius: 4px;
}

.message:hover .bubble {
  filter: brightness(1.08);
}

.msg-time {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--mono);
}

.disappear-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-left: 6px;
}

.decrypt-fail {
  color: var(--text-muted);
  font-size: 13px;
}

.typing-indicator {
  padding: 6px 24px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s;
  min-height: 24px;
}

.typing-indicator.visible {
  opacity: 1;
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-4px); opacity: 1; }
}

.input-area {
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.input-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-bottom: 2px;
}

.icon-btn {
  background: var(--glass);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
}

.disappear-select {
  background: var(--glass);
  border: none;
  border-radius: 8px;
  padding: 0 10px;
  height: 36px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
}

.disappear-select:focus {
  border-color: rgba(255,255,255,0.2);
}

.message-input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  resize: none;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.message-input::placeholder {
  color: var(--text-muted);
}

.message-input:focus {
  border-color: rgba(255,255,255,0.22);
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.25);
}

.send-btn:active {
  transform: scale(0.93);
}

.ctx-menu {
  position: fixed;
  z-index: 1000;
  background: rgba(14, 14, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  border-radius: 10px;
  padding: 4px;
  min-width: 180px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: ctxIn 0.12s ease;
}

@keyframes ctxIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.ctx-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.ctx-item:hover {
  background: var(--glass-hover);
}

.ctx-item.danger {
  color: rgba(255, 100, 100, 0.85);
}

.ctx-item.danger i {
  color: rgba(255, 100, 100, 0.7);
}

.ctx-item.danger:hover {
  background: rgba(255, 80, 80, 0.08);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(14, 14, 20, 0.97);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--text);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-info {
  border-color: rgba(255,255,255,0.15);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdropIn 0.18s ease;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  animation: modalIn 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
  overflow: hidden;
  background: rgba(18, 18, 26, 0.98);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.modal-glass {
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  position: relative;
}

.modal-glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 50%, rgba(255,255,255,0.04));
  z-index: -1;
  pointer-events: none;
}

.modal-card-sm {
  max-width: 400px;
}

.modal-card-lg {
  max-width: 720px;
  height: 80vh;
  max-height: 640px;
  display: flex;
  flex-direction: column;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title i {
  color: var(--text-muted);
  font-size: 15px;
}

.modal-close {
  background: var(--glass);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--glass-hover);
  color: var(--text);
}

.modal-body {
  padding: 20px 24px 24px;
}

.modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 24px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.modal-scroll::-webkit-scrollbar {
  width: 4px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.modal-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 18px 0;
}

.account-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.account-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.account-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--mono);
}

.e2e-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 200, 80, 0.06);
  border: 1px solid rgba(255, 200, 80, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.e2e-notice i {
  color: rgba(255, 200, 80, 0.8);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.e2e-notice strong {
  color: rgba(255, 210, 100, 0.9);
  font-weight: 600;
}

.danger-zone {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.danger-zone-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 100, 100, 0.6);
  margin-bottom: 2px;
}

.danger-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-danger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 100, 100, 0.9);
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}

.btn-danger:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.35);
  color: rgba(255, 130, 130, 1);
}

.btn-danger-full {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.btn-danger-full:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#account-btn {
  border: 1px solid var(--glass-border);
}

#account-btn:hover {
  border-color: rgba(255,255,255,0.18);
}

.modal-card-lg {
  display: flex;
  flex-direction: column;
}

.doc-content {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.doc-updated {
  font-size: 11px;
  color: var(--text-4);
  font-family: var(--mono);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.doc-content h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  margin: 22px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
}

.doc-content h2:first-of-type {
  margin-top: 0;
}

.doc-content p {
  margin-bottom: 10px;
  color: rgba(240, 240, 245, 0.55);
}

.doc-content p:last-child {
  margin-bottom: 0;
}

.doc-content strong {
  color: var(--text);
  font-weight: 600;
}

.doc-content a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.doc-content a:hover {
  color: var(--text);
}