:root {
  --bg: #02040a;
  --accent: #00ffcc;
  --accent-soft: rgba(0, 255, 204, 0.1);
  --text: #f5f7ff;
  --muted: #9ca3af;
  --border: #12202b;
  --danger: #ff4d7a;
}

/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: #000;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* MATRIX BACKGROUND */
.matrix-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(0, 255, 153, 0.16) 0, transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(0, 255, 255, 0.16) 0, transparent 60%),
    #02040a;
  pointer-events: none;
  z-index: 0;
}

.matrix-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(180deg, rgba(0, 255, 128, 0.35) 0, transparent 40%),
    repeating-linear-gradient(
      180deg,
      rgba(0, 255, 128, 0.22) 0px,
      rgba(0, 255, 128, 0.22) 2px,
      transparent 2px,
      transparent 6px
    );
  background-size: 100% 40px, 100% 24px;
  mix-blend-mode: screen;
  animation: matrix-fall 14s linear infinite;
}

@keyframes matrix-fall {
  0% { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

/* LOADING SCREEN */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.glitch {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);
  animation: glitch 1.8s infinite;
}

@keyframes glitch {
  0% { text-shadow: 0 0 4px var(--accent); }
  50% { text-shadow: 0 0 14px var(--accent); }
  100% { text-shadow: 0 0 6px var(--accent); }
}

.loader-sub {
  margin-top: 10px;
  color: #00ffcc;
  font-size: 14px;
}
.loader-sub-2 {
  margin-top: 4px;
  color: #00d4aa;
  font-size: 12px;
}

.loader-bar {
  width: 220px;
  height: 4px;
  margin-top: 18px;
  border-radius: 3px;
  background: rgba(0,255,153,0.15);
  overflow: hidden;
}
.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: #00ff99;
  animation: load 2.0s forwards;
}
@keyframes load {
  from { width: 0%; }
  to { width: 100%; }
}

.loader-wave {
  margin-top: 18px;
  width: 260px;
  height: 40px;
  position: relative;
  overflow: hidden;
}
.loader-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 50%, rgba(0,255,153,0.8) 0, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(0,255,153,0.9) 0, transparent 55%),
    radial-gradient(circle at 100% 50%, rgba(0,255,153,0.8) 0, transparent 55%);
  background-size: 80px 40px;
  background-repeat: repeat-x;
  animation: wave 1.6s linear infinite;
  opacity: 0.8;
}
@keyframes wave {
  from { transform: translateX(0); }
  to { transform: translateX(-80px); }
}

.loader-footer {
  margin-top: 14px;
  color: #0affd9;
  font-size: 13px;
  letter-spacing: 0.18em;
}

/* APP SHELL */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 12px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 30% 0, #00ffb7 0, #02040a 70%);
  border: 1px solid rgba(0, 255, 153, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 18px rgba(0, 255, 204, 0.7),
    0 0 40px rgba(0, 0, 0, 1);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 16px;
  text-transform: uppercase;
}

.brand-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand-subtitle {
  font-size: 11px;
  color: var(--muted);
}

/* TOP RIGHT STATUS */
.top-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.backend-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 153, 0.4);
  background: rgba(2, 8, 14, 0.9);
  font-size: 11px;
  backdrop-filter: blur(12px);
}
.backend-label {
  color: var(--muted);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}
.dot-off {
  background: radial-gradient(circle, #ff9b9b 0, #ff4040 70%);
  box-shadow: 0 0 10px rgba(255, 64, 64, 0.9);
}
.dot-ok {
  background: radial-gradient(circle, #7dffb7 0, #00b86f 70%);
  box-shadow: 0 0 10px rgba(0, 255, 166, 0.9);
}

/* MAIN COLUMN */
.main-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* SECTIONS */
.section {
  background:
    linear-gradient(145deg, rgba(1, 8, 12, 0.96), rgba(1, 18, 12, 0.98));
  border-radius: 14px;
  border: 1px solid rgba(9, 40, 36, 0.96);
  padding: 12px 12px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at 0 0, rgba(0, 255, 153, 0.12) 0, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(0, 255, 255, 0.12) 0, transparent 45%);
  opacity: 0.7;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.section > * {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 8px;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
}
.section-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* FIELDS */
.field-block {
  margin-top: 8px;
}
.field-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.field-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(25, 48, 60, 0.96);
  background: linear-gradient(135deg, #02050b, #040611);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.08s, box-shadow 0.08s, background 0.08s;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(0, 255, 153, 0.4),
    0 0 18px rgba(0, 255, 153, 0.3);
  background: linear-gradient(135deg, #040814, #050916);
}

/* BUTTONS */
.btn-main {
  margin-top: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00ff99, #1bffdd);
  color: #02060b;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 18px 40px rgba(0, 255, 153, 0.3);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.08s;
}
.btn-main:hover {
  filter: brightness(1.05);
  box-shadow: 0 22px 50px rgba(0, 255, 153, 0.35);
}
.btn-main:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.96);
}

/* пульсація */
.btn-main-pulse {
  position: relative;
  overflow: hidden;
}
.btn-main-pulse::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0, rgba(0,255,153,0.32), transparent 60%);
  opacity: 0.4;
  animation: btnPulse 2.2s ease-in-out infinite;
}
@keyframes btnPulse {
  0% { opacity: 0.15; transform: translateY(6px); }
  50% { opacity: 0.7; transform: translateY(0); }
  100% { opacity: 0.15; transform: translateY(6px); }
}

/* Ghost button */
.btn-ghost {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  border: 1px solid rgba(40, 54, 72, 0.96);
  background: rgba(5, 8, 14, 0.95);
  color: var(--text);
  cursor: pointer;
  transition: background 0.08s, border-color 0.08s, transform 0.08s;
}
.btn-ghost:hover {
  border-color: rgba(0, 255, 153, 0.6);
  background: rgba(4, 14, 16, 0.96);
}
.btn-ghost:active {
  transform: translateY(1px);
}

/* ICON BUTTONS */
.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(32, 46, 66, 0.96);
  background: rgba(5, 8, 15, 0.96);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.08s, box-shadow 0.08s, background 0.08s, border-color 0.08s, filter 0.08s;
}
.btn-icon.primary {
  background: linear-gradient(135deg, #00ff99, #1bffdd);
  color: #02060b;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(0, 255, 153, 0.25);
}
.btn-icon:hover {
  border-color: rgba(0, 255, 153, 0.5);
  background: rgba(4, 10, 18, 0.96);
  box-shadow: 0 0 14px rgba(0, 255, 153, 0.35);
}
.btn-icon:active {
  transform: translateY(1px) scale(0.97);
}

/* CALL BUTTONS */
.call-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-call {
  border-color: rgba(0,255,153,0.8);
  box-shadow: 0 0 14px rgba(0,255,153,0.5);
}
.btn-hangup {
  border-color: rgba(255,77,122,0.8);
  background: radial-gradient(circle at 30% 0, #ff4d7a 0, #2b000d 70%);
  box-shadow: 0 0 14px rgba(255,77,122,0.65);
}
.btn-hangup[disabled] {
  opacity: 0.35;
  box-shadow: none;
}

/* ME BOX */
.me-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(3, 10, 18, 0.98);
  border: 1px solid rgba(38, 50, 70, 0.96);
  margin-top: 8px;
}
.me-avatar {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 0, #1bffdd 0, #02050c 70%);
  border: 1px solid rgba(0, 255, 172, 0.7);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 255, 172, 0.35);
}
.me-main {
  font-size: 12px;
  font-weight: 500;
}
.me-sub {
  font-size: 10px;
  color: var(--muted);
}

/* LISTS */
.list-box {
  border-radius: 12px;
  border: 1px solid rgba(26, 34, 49, 0.96);
  background: rgba(2, 6, 12, 0.96);
  padding: 4px;
  max-height: 170px;
  overflow-y: auto;
  font-size: 12px;
}
.list-box.small {
  max-height: 120px;
}
.list-item {
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 3px;
  border: 1px solid transparent;
  transition: border-color 0.08s, background 0.08s, transform 0.08s;
}
.list-item:hover {
  border-color: var(--accent);
  background: rgba(1, 12, 16, 0.96);
  transform: translateY(-1px);
}

/* CHAT */
.chat-window {
  border-radius: 12px;
  border: 1px solid rgba(25, 33, 48, 0.96);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 153, 0.12) 0, rgba(1, 4, 10, 0.98) 55%);
  padding: 8px;
  min-height: 140px;
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 10px;
}

.msg {
  max-width: 80%;
  padding: 7px 9px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.35;
  background: rgba(3, 9, 18, 0.96);
  border: 1px solid rgba(24, 34, 50, 0.96);
  animation: fade-up 0.16s ease-out forwards;
  opacity: 0;
  transform: translateY(4px);
}
.msg.me {
  margin-left: auto;
  background: linear-gradient(135deg, #00ff99, #1bffdd);
  color: #02070a;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0, 255, 153, 0.25);
}
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
.msg-header {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}
.msg-body {
  display: inline-block;
  background: rgba(0, 255, 153, 0.15);
  border: 1px solid rgba(0, 255, 153, 0.25);
  color: #00ffcc;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;

  /* КОМПАКТНИЙ БЛОК ПІД ТЕКСТ */
  width: auto;
  max-width: 80%;
}

.msg-meta {
  margin-top: 3px;
  font-size: 9px;
  opacity: 0.7;
}

/* INPUT ROW */
.input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* STATUS */
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.status-pill {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.98);
  border: 1px solid rgba(26, 32, 46, 0.96);
}
.status-pill-strong {
  border-color: rgba(0, 255, 153, 0.8);
  background: rgba(0, 255, 153, 0.08);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(40, 54, 72, 0.96);
  background: rgba(3, 6, 14, 0.96);
}
.pill-off {
  color: var(--muted);
}

/* ZION STATUS CARD */
.zion-status-card {
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(2, 8, 14, 0.72);
  border: 1px solid rgba(0, 255, 153, 0.25);
  font-size: 10px;
  color: var(--muted);
  max-width: 100%;
  backdrop-filter: blur(10px);
}
.zion-status-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8affd7;
  margin-bottom: 3px;
}

/* FINGERPRINT */
.fingerprint-value {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  margin-top: 4px;
  letter-spacing: 0.08em;
  color: #a7ffef;
  word-break: break-word;
}
.fingerprint-status {
  margin-top: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.fingerprint-status-unverified {
  color: #ffb2c4;
}
.fingerprint-status-verified {
  color: #00ffb7;
}
.fingerprint-hint {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

/* INFO BLOCKS */
.info-block {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(2, 6, 12, 0.96);
  border: 1px solid rgba(24, 32, 48, 0.96);
}
.info-block.small {
  font-size: 11px;
}
.info-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
}
.info-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.info-list li {
  margin-bottom: 2px;
}

.crypto-section {
  opacity: 0.9;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.modal.hidden {
  display: none;
}
.modal-content {
  width: min(420px, 100% - 32px);
  background: #050810;
  border-radius: 16px;
  border: 1px solid rgba(28, 38, 55, 0.96);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.95);
  padding: 10px 12px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.modal-title {
  font-size: 14px;
  font-weight: 600;
}
.modal-body {
  font-size: 11px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(4, 8, 16, 0.98);
  border: 1px solid rgba(26, 34, 51, 0.96);
  font-size: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 60;
}
.toast.show {
  display: inline-flex;
}
.toast.error {
  border-color: rgba(255, 100, 130, 0.95);
  color: #ffb2c4;
}

/* UTIL */
.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .app-shell {
    padding: 10px 8px 20px;
  }
}
/* CHAT WINDOW – MATRIX CONSOLE STYLE */
.chat-window.console {
  border-radius: 10px;
  border: 1px solid #00442e;
  background: #020403;
  padding: 10px 8px;
  min-height: 190px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #00ff9c;
}

/* Окремий рядок повідомлення у стилі консолі */
.msg {
  white-space: pre-wrap;
  word-break: break-word;
  color: #00ff9c;
}
.msg.me {
  color: #e5fff4;
}
.msg-prefix {
  color: #00c777;
}

/* typing-рядок з курсором */
.msg.typing::after {
  content: " ▌";
  animation: blink-caret 1s steps(2, start) infinite;
}

@keyframes blink-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
/* ===== MATRIX CONSOLE CHAT ===== */

#chat-window {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* компактні повідомлення */
.msg {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.35;
  color: #00ff9c;
  background: transparent !important;
  padding: 0;
  margin: 0;
  border: none !important;
}

/* моє повідомлення */
.msg.me {
  color: #eafff5;
}

/* префікс типу user> */
.msg-prefix {
  color: #00c777;
  margin-right: 4px;
}

/* текст повідомлення */
.msg-body {
  display: inline;
}

/* прибираємо старі bubble-стилі */
.msg .msg-meta,
.msg .msg-body {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* typing ефект */
.msg.typing::after {
  content: " ▌";
  animation: blink-caret 1s steps(2, start) infinite;
}

@keyframes blink-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
/* MATRIX TYPING CURSOR */
.cursor {
  color: #00ff7b;
  text-shadow: 0 0 6px #00ff7b;
  animation: blink-caret 0.75s steps(2, start) infinite;
}

@keyframes blink-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
/* ========================= */
/*   MATRIX TERMINAL MODE    */
/* ========================= */

#chat-window {
  background: #000 !important;
  border: 1px solid #003b22;
  box-shadow: inset 0 0 14px rgba(0, 255, 90, 0.25);
  padding: 12px 8px;
  min-height: 260px;
  max-height: 360px;
  overflow-y: auto;
}

/* REMOVE ALL BUBBLE STYLES */
.msg,
.msg.me,
.msg.peer {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 6px 0 !important;
  border-radius: 0 !important;
}

/* TEXT STYLING */
.msg {
  font-family: "SF Mono", monospace;
  font-size: 16px;
  color: #00ff7b;
  text-shadow: 0 0 6px #00ff7b;
  white-space: pre-wrap;
}

.msg.me {
  color: #c8ffe3;
  text-shadow: 0 0 6px #bafff2;
}

/* PREFIX (you> / peer>) */
.msg-prefix {
  color: #00ff9c;
  text-shadow: 0 0 6px #00ff9c;
}

/* BODY */
.msg-body {
  color: inherit;
}

/* TYPING CURSOR */
.cursor {
  color: #00ff7b;
  text-shadow: 0 0 8px #00ff7b;
  animation: blink-terminal 0.7s infinite;
}

@keyframes blink-terminal {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

/* MATRIX CRT Glow */
.msg-body, .msg-prefix {
  color: #00ff88;
  text-shadow:
    0 0 6px #00ff88,
    0 0 12px #00ff55,
    0 0 18px #00ff44;
}

/* курсор */
.cursor {
  color: #00ff88;
  text-shadow: 0 0 10px #00ff88;
  animation: blink-terminal 0.75s infinite;
}

@keyframes blink-terminal {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* легке мерехтіння як CRT monitor */
#chat-window {
  animation: crtFlicker 3s infinite;
}

@keyframes crtFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
}
.msg {
  font-size: 17px;
  color: #00ffcc;
  margin: 6px 0;
  font-family: "Consolas", "Courier New", monospace;
  white-space: pre-wrap;
  display: flex;
  align-items: center;
}

.msg-prefix {
  margin-right: 6px;
  color: #00ff99;
}

.cursor {
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  color: #00ffcc;
}

@keyframes blink {
  50% { opacity: 0; }
}

.cursor {
  margin-left: 4px;
  color: #00ffcc;
  animation: blink 0.75s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.msg {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 18px;
  color: #00ffa0;
  margin: 4px 0;
  display: flex;
  align-items: center;
}

.msg-prefix {
  color: #00ffcc;
  margin-right: 6px;
}
#chat-window .msg {
  font-size: 12px;     /* або 12px якщо хочеш ще менше */
  line-height: 1.35;
}
.avatar-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(15,118,110,0.28), rgba(15,23,42,0.95));
  border: 1px solid rgba(45,212,191,0.35);
  box-shadow: 0 0 18px rgba(34,197,235,0.25);
  align-items: center;
}

.avatar-svg-box {
  width: 90px;
  min-width: 90px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-svg-box svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(45,212,191,0.8));
}

.avatar-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.avatar-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e0fdfa;
  text-transform: uppercase;
}

.avatar-sub {
  font-size: 11px;
  color: #a5b4fc;
}

.avatar-hint {
  margin-top: 6px;
  font-size: 10px;
  color: #64748b;
}

.avatar-hint code {
  font-family: monospace;
  font-size: 10px;
  color: #22d3ee;
}
    .zion-global-panel {
      margin-top: 10px;
      padding: 8px;
      border-radius: 12px;
      border: 1px solid rgba(0,255,255,0.16);
      background: radial-gradient(circle at top right, rgba(0,255,255,0.12), transparent);
      font-size: 11px;
    }
    .zion-global-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }
    .zion-global-title {
      text-transform: uppercase;
      letter-spacing: 0.08em;
      opacity: 0.9;
      font-size: 10px;
    }
    .zion-global-body {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
      gap: 8px;
    }
    .zion-column-title {
      font-size: 10px;
      margin-bottom: 4px;
      opacity: 0.8;
    }
    .zion-names-list {
      max-height: 140px;
      overflow-y: auto;
      padding-right: 4px;
    }
    .zion-name-row {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      padding: 2px 0;
      border-bottom: 1px dashed rgba(0,255,255,0.12);
    }
    .zion-name-tag {
      color: #00f2ff;
      font-weight: 500;
    }
    .zion-name-meta {
      opacity: 0.6;
      font-size: 9px;
    }
    .zion-chat-column {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .zion-chat-log {
      max-height: 140px;
      overflow-y: auto;
      padding: 4px 6px;
      border-radius: 8px;
      border: 1px solid rgba(0,255,255,0.16);
      background: rgba(0,0,0,0.35);
      font-family: "JetBrains Mono", "Fira Code", monospace;
      font-size: 10px;
    }
    .zion-chat-row {
      margin-bottom: 2px;
    }
    .zion-chat-row.own .zion-chat-name {
      color: #00f2ff;
    }
    .zion-chat-time {
      opacity: 0.6;
      margin-right: 4px;
    }
    .zion-chat-name {
      font-weight: 600;
      margin-right: 4px;
    }
    .zion-chat-text {
      opacity: 0.95;
    }
    .zion-chat-input-row {
      display: flex;
      gap: 4px;
      margin-top: 2px;
    }
    .btn-primary.tiny,
    .btn-ghost.tiny {
      padding: 3px 8px;
      font-size: 9px;
      border-radius: 999px;
    }
    
    
  /* Плаваючий таб пожертв */
.zion-donate-tab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;   /* поки не готово */
  opacity: 0;             /* ховаємо поки завантаження */
  transition: opacity 0.35s ease-out;
}

/* коли app готовий */
body.zion-ready .zion-donate-tab {
  opacity: 1;
  pointer-events: auto;
}

/* КНОПКА ПОЖЕРТВ */
.zion-donate-btn {
  background: #00f6b6;
  color: #001510;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 255, 180, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zion-donate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 255, 180, 0.8);
}

.zion-donate-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(0, 255, 180, 0.5);
}

/* ПАНЕЛЬ РЕКВІЗИТІВ */
.zion-donate-panel {
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 260px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #04291f, #020811 70%);
  box-shadow: 0 0 22px rgba(0, 255, 180, 0.35);
  border: 1px solid rgba(0, 255, 180, 0.35);
  font-size: 11px;
  line-height: 1.4;
  display: none;
}

.zion-donate-tab.open .zion-donate-panel {
  display: block;
}
 

.room-item {
  padding: 10px;
  background: rgba(0,255,150,0.05);
  border: 1px solid rgba(0,255,150,0.2);
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.room-item:hover {
  background: rgba(0,255,150,0.12);
}

.room-options {
  margin: 8px 0;
  font-size: 13px;
}

.section-divider {
  border: 0;
  border-bottom: 1px solid rgba(0,255,150,0.15);
  margin: 14px 0;
}
  
/* Кнопка внизу */
.secure-info-wrapper {
  display: flex;
  justify-content: center;
  margin: 18px 0 24px;
}

.secure-info-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.6);
  background: radial-gradient(circle at top, rgba(0,255,255,0.15), rgba(0,0,0,0.9));
  color: #e5f7ff;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.secure-info-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0,255,255,0.45);
  background: radial-gradient(circle at top, rgba(0,255,255,0.25), rgba(0,0,0,0.95));
}

/* Модалка */
.zion-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zion-modal.hidden {
  display: none;
}

.zion-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.9), #000);
  backdrop-filter: blur(6px);
}

.zion-modal-box {
  position: relative;
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,255,255,0.35);
  background: radial-gradient(circle at top, rgba(0,255,255,0.12), rgba(0,0,0,0.96));
  color: #e5f7ff;
  box-shadow: 0 0 40px rgba(0,255,255,0.35);
  font-size: 13px;
}

.zion-modal-title {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zion-modal-text {
  margin: 0 0 10px;
  font-size: 12px;
  opacity: 0.9;
}

.zion-modal-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.zion-modal-list li {
  margin-bottom: 4px;
}

.zion-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #77f9ff;
  cursor: pointer;
  font-size: 16px;
}
/* CRYPTO INFOGRAPHIC */
.crypto-infographic {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.crypto-tile {
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0,255,255,0.18);
  text-align: center;
  backdrop-filter: blur(4px);
  transition: 0.25s;
}

.crypto-tile:hover {
  background: rgba(0,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,255,255,0.25);
}

.crypto-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.crypto-title {
  font-size: 13px;
  font-weight: bold;
  color: #00f2ff;
  margin-bottom: 3px;
}

.crypto-sub {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 4px;
  font-family: "SF Mono", monospace;
}

.crypto-desc {
  font-size: 10px;
  opacity: 0.65;
}

/* Neon title */
.neon-title {
  text-shadow: 0 0 8px #00f2ff, 0 0 16px #00f2ff;
}

/* Crypto list */
.crypto-list li {
  margin: 4px 0;
}
/* ============================================
   GLOBAL DARKENING FILTER FOR ENTIRE THEME
   ZION · Neo-Dark Premium Skin
   ============================================ */

/* Загальний фон */
body {
  background: #020507 !important;
  color: #dce9ef !important;
}

/* Контейнери */
.card, 
.card-soft,
.zion-global-panel,
.zion-identity-panel,
.crypto-flow-container {
  background: rgba(5, 12, 18, 0.78) !important;
  border-color: rgba(0, 255, 200, 0.08) !important;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.05) !important;
}

/* Верхні панелі */
header,
.section-header {
  background: rgba(3, 10, 15, 0.65) !important;
}

/* Поля вводу */
.field-input,
input {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(0,255,200,0.10) !important;
  color: #eaf6ff !important;
}

/* Кнопки */
.btn-primary {
  background: linear-gradient(180deg, #00bfae, #00998e) !important;
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.25) !important;
}

.btn-secondary {
  background: rgba(0, 255, 200, 0.12) !important;
  border: 1px solid rgba(0, 255, 200, 0.18) !important;
  color: #ccf9f5 !important;
}

/* Текст: приглушити зелене світіння */
.section-title,
.section-subtitle,
.recovery-title,
.col-title,
.name-tag,
.chat-name {
  color: #86f2e3 !important;
  text-shadow: 0 0 4px rgba(0,255,200,0.18) !important;
}

/* Іконки онлайн */
.dot.on {
  background: #00e4c9 !important;
  box-shadow: 0 0 6px rgba(0,255,200,0.3) !important;
}
.dot.off {
  background: #333 !important;
}

/* Лог чату */
.chat-log {
  background: rgba(0,0,0,0.55) !important;
  border-color: rgba(0,255,200,0.12) !important;
}

/* Рядки чату */
.chat-row {
  background: rgba(0, 255, 200, 0.03) !important;
}
.chat-row.own {
  background: rgba(0, 255, 200, 0.08) !important;
}

/* Аватарний блок */
.avatar-card,
.avatar-engine {
  background: rgba(0,0,0,0.45) !important;
  border-color: rgba(0,255,200,0.12) !important;
}

/* Світіння аватарів */
.avatar-img {
  filter: drop-shadow(0 0 10px rgba(0,255,200,0.18)) !important;
}

/* Загальні кнопки */
button {
  backdrop-filter: blur(12px) !important;
}

/* Нейтралізація надто яскравого неону */
:root {
  --accent: #00d4be !important;
  --accent-soft: rgba(0,255,200,0.16) !important;
  --accent-dim: rgba(0,255,200,0.08) !important;
}
/* ============================================
   ZION COMPACT MODE — All UI compacted except chat
   ============================================ */

/*** ❗НЕ ЧІПАЄМО ГЛОБАЛЬНИЙ ЧАТ І CHAT-WINDOW ***/
/* Ці селектори пропускаємо:
   .zion-chat-log
   .zion-chat-row
   .zion-chat-column
   .chat-window
   .zion-global-panel
   .zion-names-list
*/

/* ========== Секції ========== */
.section {
  padding: 12px 0 !important;
  margin-bottom: 14px !important;
}

/* ========== Заголовки секцій ========== */
.section-header {
  margin-bottom: 6px !important;
}

.section-title {
  font-size: 15px !important;
  margin-bottom: 2px !important;
}

.section-subtitle {
  font-size: 11px !important;
  opacity: 0.75;
  margin-bottom: 4px !important;
}

/* ========== Поля вводу та блоки під ними ========== */
.field-block {
  margin-bottom: 8px !important;
}

.field-input {
  padding: 6px 10px !important;
  font-size: 13px !important;
}

/* ========== Компактні картки ========== */
.avatar-card,
.me-box,
.zion-status-card,
.fingerprint-card {
  padding: 10px !important;
  margin-bottom: 10px !important;
}

/* ========== Кнопки ========== */
.btn-main,
.btn-primary,
.btn-ghost {
  padding: 6px 12px !important;
  font-size: 13px !important;
  margin-top: 6px !important;
}

/* ========== Стиснуті статус-пілли ========== */
.status-row {
  gap: 4px !important;
  margin-bottom: 6px !important;
}

.status-pill {
  padding: 3px 6px !important;
  font-size: 11px !important;
}

/* ========== Списки, rooms, recent ========== */
.list-box {
  margin-top: 6px !important;
  padding: 6px !important;
}

.section-divider {
  margin: 10px 0 !important;
}

/* ========== ROOM UI ========== */
.room-options {
  margin: 4px 0 !important;
}

/* ========== Secure info button ========== */
.secure-info-wrapper {
  margin-top: 8px !important;
}

.secure-info-btn {
  padding: 6px 12px !important;
  font-size: 13px !important;
}

/* ========== Crypto modal ========== */
.zion-modal-box {
  padding: 14px !important;
}

.crypto-infographic {
  gap: 8px !important;
}

.crypto-tile {
  padding: 8px !important;
}
/* ====== GLOBAL COMPACT MODE (NO LARGE GAPS) ====== */
.section {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Всі заголовки */
.section-header {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

/* Блок "Пошук агента" */
.zion-search-section,
.zion-agent-search,
.zion-identity-panel,
.zion-global-panel {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

/* Менше відступів між інпутами */
.field-block,
.field-input {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* Менше простору всередині секцій */
.section .section-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

/* Менше відступів у параграфів */
.section p {
  margin: 4px 0 !important;
}

/* Зменшені блоки кімнат (rooms) */
.room-create-block,
.rooms-list {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* Глобальний пошук */
.zion-search-input {
  margin: 2px 0 !important;
}

/* Прибираємо зайві пустоти між секціями */
.main-column > * {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}
.zion-help-box {
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 15, 10, 0.7);
  border: 1px solid rgba(0,255,180,0.15);
  box-shadow: 0 0 18px rgba(0,255,100,0.15);
  max-height: 260px;
  overflow-y: auto;
}

.zion-help-pre {
  margin: 0;
  padding: 0;
  color: #00ffbf;
  font-family: "SF Mono", "Roboto Mono", monospace;
  font-size: 11px;
  line-height: 1.25rem;
  white-space: pre-wrap;
  text-shadow: 0 0 4px rgba(0,255,180,0.4);
}
/* ZION FEED MODE */

#feed-mode {
  width: 100%;
  height: 100%;
  display: flex;
  background: #000a0f;
  color: #00ffe0;
  font-family: "SF Mono", monospace;
}

/* SIDEBAR */
#feed-sidebar {
  width: 220px;
  background: rgba(0,20,30,0.85);
  border-right: 1px solid rgba(0,255,200,0.15);
  display: flex;
  flex-direction: column;
  padding: 10px;
}

#feed-sidebar-title {
  font-size: 14px;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,255,200,0.2);
}

#feed-room-list {
  flex-grow: 1;
  overflow-y: auto;
}

.feed-room-item {
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(0,255,200,0.05);
  border: 1px solid rgba(0,255,200,0.15);
  transition: 0.15s;
}

.feed-room-item:hover {
  background: rgba(0,255,200,0.15);
}

.feed-room-active {
  background: rgba(0,255,200,0.25) !important;
}

#feed-create-room {
  background: rgba(0,255,200,0.15);
  border: 1px solid rgba(0,255,200,0.3);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

/* MAIN FEED */
#feed-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#feed-header {
  padding: 10px;
  border-bottom: 1px solid rgba(0,255,200,0.15);
  font-size: 15px;
  letter-spacing: 1px;
}

#feed-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px;
}

/* message bubble */
.feed-msg {
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(0,255,200,0.08);
  border: 1px solid rgba(0,255,200,0.2);
  border-radius: 8px;
  max-width: 90%;
  line-height: 1.3rem;
}

.feed-msg-name {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 2px;
}

/* input zone */
#feed-input-zone {
  display: flex;
  padding: 8px;
  border-top: 1px solid rgba(0,255,200,0.15);
}

#feed-input {
  flex-grow: 1;
  background: rgba(0,255,200,0.05);
  border: 1px solid rgba(0,255,200,0.15);
  color: #00ffe0;
  padding: 8px;
  border-radius: 6px;
  height: 45px;
  resize: none;
}

#feed-send {
  width: 60px;
  margin-left: 8px;
  background: rgba(0,255,200,0.25);
  border: 1px solid rgba(0,255,200,0.35);
  border-radius: 6px;
  cursor: pointer;
}
#feed-mode {
  width: 100%;
  height: 100vh;
  display: none;
  flex-direction: row;
  position: relative;
  z-index: 50;
  background: #000; /* або будь-який фон, щоб пересилити matrix-bg */
}

#feed-sidebar {
  width: 30%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
}

#feed-main {
  width: 70%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

#btn-feed-back {
  padding: 6px 12px;
  background: rgba(0,255,0,0.1);
  border: 1px solid #0f0;
  border-radius: 4px;
  color: #0f0;
  cursor: pointer;
}
.zion-donate-tab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999 !important;
}

.zion-donate-panel {
    z-index: 10000 !important;
}
/* Базовий рівень */
.app-shell {
    position: relative;
    z-index: 1;
}

/* Feed mode поверх messenger */
#feed-mode {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(0,0,0,0.35); /* легкий фон */
    backdrop-filter: blur(4px);
}

/* Модалки — поверх feed */
.zion-modal {
    position: fixed !important;
    z-index: 500 !important;
}

/* Donate tab — поверх усього */
.zion-donate-tab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999 !important;
}

.zion-donate-panel {
    z-index: 10000 !important;
}
/* ==== FIX: small Messenger button in FEED mode ==== */
#feed-mode #btn-open-main {
    padding: 6px 14px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    height: auto !important;
    line-height: 1.2 !important;
    background: rgba(0, 255, 180, 0.18) !important;
    backdrop-filter: blur(4px);
}
.donate-panel {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 255, 120, 0.07);
  border: 1px solid rgba(0,255,180,0.3);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.donate-title {
  font-size: 16px;
  font-weight: 600;
  color: #00ffcc;
  margin-bottom: 4px;
}

.donate-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.donate-address-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,255,180,0.08);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.donate-label {
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
}

.donate-wallet {
  font-family: monospace;
  font-size: 12px;
  flex: 1;
  overflow-x: auto;
}

.donate-copy {
  background: rgba(0,255,150,0.2);
  border: 1px solid rgba(0,255,150,0.4);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: #00ffcc;
}
.zion-donate-box {
  padding: 20px;
  background: rgba(0, 255, 140, 0.09);
  border: 1px solid rgba(0,255,140,0.4);
  box-shadow: 0 0 12px #00ff90a0;
  border-radius: 12px;
  max-width: 380px;
}

.donate-block {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid rgba(0,255,140,0.3);
  border-radius: 10px;
  background: rgba(0,255,110,0.06);
}

.donate-label {
  font-size: 14px;
  color: #00ffcc;
  margin-bottom: 6px;
}

.donate-wallet {
  font-family: monospace;
  font-size: 13px;
  color: #aaffee;
  margin-bottom: 6px;
  word-break: break-all;
}

.btn-copy {
  padding: 6px 10px;
  background: #00ffbf30;
  border: 1px solid #00ffbf80;
  color: #00ffd0;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.btn-copy:hover {
  background: #00ffbf50;
}
.donate-float {
  position: fixed;
  right: 18px;
  bottom: 120px;
  width: 48px;
  height: 48px;
  background: rgba(0,255,180,0.18);
  border: 1px solid #00ffcc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9000;
  backdrop-filter: blur(4px);
  transition: 0.25s ease;
}

.donate-float:hover {
  background: rgba(0,255,180,0.35);
  transform: scale(1.14);
}

.hidden { display:none !important; }

.donate-box {
  padding: 20px;
  text-align: left;
}

.donate-line {
  margin-top: 14px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(0,255,180,0.06);
  border: 1px solid rgba(0,255,180,0.15);
}

.donate-value {
  font-family: monospace;
  font-size: 14px;
  margin: 6px 0;
  word-break: break-all;
}

.donate-copy {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0,255,180,0.15);
  border: 1px solid #00ffcc;
  color: #00ffcc;
  cursor: pointer;
}
.donate-float {
  position: fixed;
  right: 18px;
  bottom: 110px;
  width: 48px;
  height: 48px;
  background: rgba(0,255,200,0.12);
  border: 1px solid #00ffcc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease-out;
}

.donate-float:hover {
  background: rgba(0,255,200,0.22);
  transform: scale(1.12);
}

.hidden {
  display: none !important;
}

#btn-open-main.feed-active {
    display: none !important;
}
/* Feed sidebar — правильне вертикальне вирівнювання */
#feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Щоб кнопки CREATE не злипалися зі списком */
#feed-create-box {
  margin-bottom: 20px;
}

/* Щоб список кімнат починався строго під create-box */
#feed-room-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-main-small {
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    width: auto !important;
    min-width: 120px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
/* ====== FEED CENTER BUTTON ====== */
.mode-switcher {
    display: flex;
    justify-content: center;   /* Центруємо */
    align-items: center;
    padding: 0 !important;     /* Прибираємо відступи */
    margin: 0 !important;
}

.btn-feed-center {
    width: 140px;
    font-size: 15px;
    padding: 10px 0;
    border-radius: 14px;
}

/* Прибираємо все повітря між топбаром і першою секцією */
.topbar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.app-shell > .main-column,
.app-shell section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}



