/* ============================================
   SECURE CHAT - HACKER UI v0.1.2
   ============================================ */

#sc-app, #sc-app * { box-sizing: border-box; }

#sc-app {
  --sc-bg: #000000;
  --sc-bg-alt: #050d05;
  --sc-bg-panel: #0a1a0a;
  --sc-green: #00ff41;
  --sc-green-dim: #00b82e;
  --sc-green-dark: #006b1a;
  --sc-green-faint: #003d0d;
  --sc-amber: #ffb000;
  --sc-red: #ff003c;
  --sc-cyan: #00f0ff;
  --sc-text: #00ff41;
  --sc-text-dim: #00b82e;
  --sc-text-faint: #006b1a;
  --sc-border: #00ff4133;
  --sc-border-strong: #00ff41;
  --sc-mono: 'Courier New', 'Cascadia Code', 'Consolas', 'Lucida Console', monospace;
}

#sc-app {
  font-family: var(--sc-mono);
  background: var(--sc-bg);
  color: var(--sc-text);
  min-height: 600px;
  height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sc-border-strong);
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 0 2px var(--sc-green-dim);
}

#sc-app::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03) 0px,
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

@keyframes sc-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.95; }
  98% { opacity: 1; }
  99% { opacity: 0.92; }
}
#sc-app { animation: sc-flicker 4s infinite; }

/* HEADER */
.sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: var(--sc-bg-alt);
  border-bottom: 1px solid var(--sc-border-strong);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 30;
}
.sc-header-left, .sc-header-right { display: flex; align-items: center; gap: 8px; }
.sc-blink { color: var(--sc-green); animation: sc-blink-anim 1s step-end infinite; }
@keyframes sc-blink-anim { 50% { opacity: 0; } }
.sc-mono { font-weight: bold; letter-spacing: 2px; }
.sc-dim { color: var(--sc-text-faint); }
.sc-id { color: var(--sc-cyan); }
.sc-status-online { color: var(--sc-green); }

/* HAMBURGER */
.sc-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--sc-green);
  color: var(--sc-green);
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--sc-mono);
  line-height: 1;
  padding: 0;
}
.sc-hamburger:active { background: var(--sc-green-faint); }

.sc-sidebar-close {
  display: none;
  background: transparent;
  border: 1px solid var(--sc-red);
  color: var(--sc-red);
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sc-mono);
  padding: 0;
  margin-left: 8px;
  float: right;
}

/* MAIN LAYOUT */
.sc-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* SIDEBAR */
.sc-sidebar {
  background: var(--sc-bg-alt);
  border-right: 1px solid var(--sc-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sc-sidebar-header {
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--sc-border);
  text-transform: uppercase;
}
.sc-prompt { color: var(--sc-green); font-weight: bold; }
.sc-pull-right { float: right; }

.sc-dialer {
  padding: 12px;
  border-bottom: 1px solid var(--sc-border);
  background: var(--sc-bg);
}
.sc-dialer .sc-prompt {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--sc-text-dim);
}
.sc-dial-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.sc-input {
  width: 100%;
  background: var(--sc-bg);
  border: 1px solid var(--sc-border-strong);
  color: var(--sc-green);
  padding: 8px 10px;
  font-family: var(--sc-mono);
  font-size: 13px;
  outline: none;
  letter-spacing: 1px;
}
.sc-input:focus {
  border-color: var(--sc-cyan);
  box-shadow: 0 0 8px var(--sc-cyan);
}
.sc-input::placeholder { color: var(--sc-text-faint); }

.sc-btn {
  background: var(--sc-bg);
  border: 1px solid var(--sc-green);
  color: var(--sc-green);
  padding: 8px 14px;
  font-family: var(--sc-mono);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.sc-btn:hover {
  background: var(--sc-green-faint);
  box-shadow: 0 0 10px var(--sc-green-dim);
}
.sc-btn:active { transform: translateY(1px); }
.sc-btn-call { font-size: 11px; padding: 6px 8px; }
.sc-btn-accept {
  border-color: var(--sc-green);
  color: var(--sc-green);
  background: rgba(0, 255, 65, 0.1);
  font-size: 16px;
  padding: 14px 28px;
  font-weight: bold;
  text-shadow: 0 0 4px var(--sc-green);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}
.sc-btn-accept:hover {
  background: rgba(0, 255, 65, 0.25);
  box-shadow: 0 0 18px var(--sc-green);
}
.sc-btn-reject {
  border-color: var(--sc-red);
  color: var(--sc-red);
  background: rgba(255, 0, 60, 0.1);
  font-size: 16px;
  padding: 14px 28px;
  font-weight: bold;
  text-shadow: 0 0 4px var(--sc-red);
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.3);
}
.sc-btn-reject:hover {
  background: rgba(255, 0, 60, 0.25);
  box-shadow: 0 0 18px var(--sc-red);
}

/* CONTACT LIST - vylepšené tlačidlá pri kontakte */
.sc-contact-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.sc-contact {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sc-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.sc-contact:hover { background: var(--sc-green-faint); }
.sc-contact.active { background: var(--sc-green-faint); border-left: 3px solid var(--sc-green); padding-left: 9px; }
.sc-contact-online { color: var(--sc-green); font-size: 8px; }
.sc-contact-offline { color: var(--sc-text-faint); font-size: 8px; }
.sc-contact-info { flex: 1; min-width: 0; cursor: pointer; }
.sc-contact-name { font-size: 13px; color: var(--sc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-contact-alias { font-size: 11px; color: var(--sc-cyan); }
.sc-contact-actions {
  display: flex;
  gap: 4px;
}
.sc-contact-btn {
  background: var(--sc-bg);
  border: 1px solid var(--sc-green);
  color: var(--sc-green);
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--sc-mono);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.sc-contact-btn:hover {
  background: var(--sc-green-faint);
  box-shadow: 0 0 8px var(--sc-green);
}
.sc-contact-btn:active { transform: translateY(1px); }

.sc-loading {
  padding: 20px 12px;
  color: var(--sc-text-dim);
  font-size: 12px;
}

/* CHAT AREA */
.sc-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sc-bg);
  min-width: 0;
}
.sc-chat-header {
  padding: 10px 16px;
  background: var(--sc-bg-alt);
  border-bottom: 1px solid var(--sc-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.sc-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--sc-text-dim);
  font-size: 12px;
  text-align: center;
}
.sc-empty pre { white-space: pre; line-height: 1.2; }

.sc-msg {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-left: 2px solid var(--sc-green);
  max-width: 75%;
  word-wrap: break-word;
}
.sc-msg.sc-msg-mine {
  margin-left: auto;
  border-left: none;
  border-right: 2px solid var(--sc-cyan);
  text-align: right;
}
.sc-msg-meta { font-size: 10px; color: var(--sc-text-faint); margin-bottom: 2px; letter-spacing: 1px; }
.sc-msg-mine .sc-msg-meta { color: var(--sc-cyan); opacity: 0.6; }
.sc-msg-text { color: var(--sc-text); font-size: 14px; }

.sc-chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--sc-border);
  background: var(--sc-bg-alt);
  position: relative;
  align-items: center;
}
.sc-chat-input-wrap .sc-input { flex: 1; min-width: 0; }

/* LOCKED / SETUP */
.sc-locked, .sc-setup {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
  background: var(--sc-bg);
  color: var(--sc-text);
  font-family: var(--sc-mono);
  border: 1px solid var(--sc-border-strong);
}
.sc-locked-box, .sc-setup-box {
  text-align: center;
  max-width: 480px;
}
.sc-locked-icon, .sc-setup-title {
  color: var(--sc-amber);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: bold;
}
.sc-locked-text, .sc-setup-text {
  text-align: left;
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.sc-setup-box .sc-input { margin-bottom: 12px; }
.sc-error { color: var(--sc-red); font-size: 12px; margin-top: 8px; }

/* CALL SCREEN - FULLSCREEN cez celý viewport, mimo WP layoutu */
.sc-call-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--sc-bg);
  z-index: 999999;
  display: flex;
  flex-direction: column;
}
/* Pridaj scanlines aj na call screen ale za obsahom */
.sc-call-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03) 0px,
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}
.sc-call-screen > * {
  position: relative;
  z-index: 2;
}

.sc-incoming {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  padding: 20px;
}
.sc-incoming-pulse {
  width: 200px;
  height: 200px;
  border: 2px solid var(--sc-green);
  border-radius: 50%;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: sc-pulse 1.5s ease-out infinite;
  pointer-events: none;
  z-index: 1;
}
.sc-incoming-pulse::before, .sc-incoming-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--sc-green);
  border-radius: 50%;
  animation: sc-pulse 1.5s ease-out infinite;
  pointer-events: none;
}
.sc-incoming-pulse::before { animation-delay: 0.5s; }
.sc-incoming-pulse::after { animation-delay: 1s; }
@keyframes sc-pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
.sc-incoming-text {
  text-align: center;
  z-index: 5;
  position: relative;
  background: var(--sc-bg);
  padding: 20px 30px;
  border: 1px solid var(--sc-border-strong);
}
.sc-incoming-from { font-size: 28px; color: var(--sc-cyan); margin-top: 12px; letter-spacing: 2px; }
.sc-incoming-type { font-size: 14px; color: var(--sc-text-dim); margin-top: 6px; letter-spacing: 1px; }

/* Tlačidlá ACCEPT/REJECT - VEĽKÉ a ŤAŽKO MINÚŤ */
.sc-incoming-actions {
  display: flex;
  gap: 30px;
  z-index: 5;
  position: relative;
}
.sc-btn-accept, .sc-btn-reject {
  font-size: 18px !important;
  padding: 20px 40px !important;
  min-width: 160px;
  min-height: 64px;
  font-weight: bold;
  letter-spacing: 3px;
  border-width: 2px !important;
}
.sc-btn-accept {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}
.sc-btn-accept:hover, .sc-btn-accept:active {
  background: var(--sc-green-faint);
  box-shadow: 0 0 20px var(--sc-green);
}
.sc-btn-reject {
  background: rgba(255, 0, 60, 0.1);
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.3);
}

/* Skrytý log - video sa rozšíri na celú obrazovku */
.sc-call-active.sc-log-hidden {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
}
.sc-call-active.sc-log-hidden .sc-call-right {
  display: none;
}

/* AKTÍVNY HOVOR - default landscape layout */
.sc-call-active {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
}
.sc-call-left, .sc-call-right { display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; }
.sc-call-right { border-left: 1px solid var(--sc-border-strong); }

/* PORTRAIT layout - aplikované JS cez data-orientation atribút (najspoľahlivejšie) */
.sc-call-screen[data-orientation="portrait"] .sc-call-active:not(.sc-log-hidden) {
  grid-template-columns: 1fr !important;
  grid-template-rows: 65fr 35fr !important;
}
.sc-call-screen[data-orientation="portrait"] .sc-call-right {
  border-left: none !important;
  border-top: 1px solid var(--sc-border-strong) !important;
}

.sc-call-header, .sc-log-header {
  padding: 10px 14px;
  background: var(--sc-bg-alt);
  border-bottom: 1px solid var(--sc-border);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sc-video-wrap {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  z-index: 2;
}
.sc-video-remote {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  position: relative;
  z-index: 3;
}
.sc-video-local {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 120px;
  height: 90px;
  border: 1px solid var(--sc-green);
  background: #000;
  object-fit: cover;
  z-index: 10;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
}

.sc-audio-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--sc-bg);
}
.sc-audio-avatar { position: relative; width: 200px; height: 200px; }
.sc-audio-circle {
  position: absolute;
  inset: 0;
  border: 1px solid var(--sc-green);
  border-radius: 50%;
  animation: sc-audio-pulse 2s ease-out infinite;
}
.sc-audio-circle:nth-child(2) { animation-delay: 0.66s; }
.sc-audio-circle:nth-child(3) { animation-delay: 1.33s; }
@keyframes sc-audio-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
.sc-audio-alias {
  font-size: 36px;
  color: var(--sc-cyan);
  letter-spacing: 4px;
  text-shadow: 0 0 10px var(--sc-cyan);
}

.sc-call-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: var(--sc-bg-alt);
  border-top: 1px solid var(--sc-border);
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}
.sc-ctrl-btn {
  background: var(--sc-bg);
  border: 1px solid var(--sc-green);
  color: var(--sc-green);
  padding: 12px 18px;
  font-size: 18px;
  font-family: var(--sc-mono);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 56px;
  min-height: 48px;
  position: relative;
  z-index: 11;
}
.sc-ctrl-btn:hover, .sc-ctrl-btn:active { background: var(--sc-green-faint); box-shadow: 0 0 10px var(--sc-green); }
.sc-ctrl-btn.active { background: var(--sc-amber); color: var(--sc-bg); border-color: var(--sc-amber); }
.sc-ctrl-end {
  border-color: var(--sc-red);
  color: var(--sc-red);
  font-weight: bold;
  letter-spacing: 1px;
  background: rgba(255, 0, 60, 0.1);
  min-width: 80px;
}
.sc-ctrl-end:hover, .sc-ctrl-end:active { background: rgba(255, 0, 60, 0.3); box-shadow: 0 0 15px var(--sc-red); }

.sc-log-output {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.4;
  background: var(--sc-bg);
  font-family: var(--sc-mono);
}
.sc-log-line {
  margin: 0;
  padding: 1px 0;
  white-space: pre-wrap;
  word-break: break-all;
  animation: sc-log-fade-in 0.2s;
}
@keyframes sc-log-fade-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}
.sc-log-time { color: #4a8b3a; }
.sc-log-tag { color: var(--sc-amber); font-weight: bold; }
.sc-log-ok { color: var(--sc-green); }
.sc-log-info { color: var(--sc-cyan); }
.sc-log-warn { color: var(--sc-amber); }
.sc-log-err { color: var(--sc-red); }
.sc-log-dim { color: #6b9b3a; }

/* SCROLLBAR */
#sc-app *::-webkit-scrollbar { width: 6px; height: 6px; }
#sc-app *::-webkit-scrollbar-track { background: var(--sc-bg); }
#sc-app *::-webkit-scrollbar-thumb { background: var(--sc-green-dark); }
#sc-app *::-webkit-scrollbar-thumb:hover { background: var(--sc-green-dim); }

.sc-hide-mobile { display: inline; }

/* ============================================
   MOBIL / úzke obrazovky
   ============================================ */
@media (max-width: 900px) {
  #sc-app {
    height: 90vh;
    height: 90dvh;
    min-height: 500px;
    font-size: 13px;
  }

  .sc-hide-mobile { display: none; }
  .sc-hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .sc-sidebar-close { display: inline-block; }

  .sc-header { padding: 8px 12px; }

  /* Sidebar je schovaný, otvára sa cez hamburger */
  .sc-main { grid-template-columns: 1fr; }
  .sc-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 255, 65, 0.15);
  }
  .sc-sidebar.sc-mobile-open { transform: translateX(0); }

  .sc-sidebar-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 40;
  }
  .sc-sidebar-overlay.active { display: block; }

  /* Hovor: layout sa rieši cez @media (orientation:portrait) vyššie */
  /* Lokálne video menšie a lepšie umiestnené */
  .sc-video-local {
    width: 80px;
    height: 60px;
    bottom: 8px;
    right: 8px;
  }
  .sc-audio-alias { font-size: 24px; }

  .sc-call-controls {
    padding: 12px 8px;
    gap: 6px;
  }
  .sc-ctrl-btn {
    padding: 12px 10px;
    font-size: 16px;
    min-width: 50px;
    min-height: 48px;
  }
  .sc-ctrl-end {
    min-width: 70px !important;
  }

  .sc-incoming-from { font-size: 22px; }
  .sc-incoming-actions {
    gap: 16px;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .sc-btn-accept, .sc-btn-reject {
    width: 80% !important;
    max-width: 280px;
    min-width: 240px !important;
    min-height: 72px !important;
    font-size: 20px !important;
  }
  .sc-incoming-pulse {
    width: 160px;
    height: 160px;
    top: 25%;
  }
}

/* Veľmi malé obrazovky */
@media (max-width: 380px) {
  #sc-app { font-size: 12px; }
  .sc-header { font-size: 10px; }
  .sc-mono { letter-spacing: 1px; }
}

/* ============================================
   CONNECTION OVERLAY - efektné animácie pri zdvihnutí a ukončení
   ============================================ */

.sc-conn-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: all;
  overflow: hidden;
}
.sc-conn-overlay.sc-conn-fadeout {
  animation: sc-conn-fadeout 0.5s forwards ease-out;
}
@keyframes sc-conn-fadeout {
  to { opacity: 0; transform: scale(1.1); }
}

/* Tunelový "matrix" efekt - rotujúce kruhy */
.sc-conn-rings {
  position: absolute;
  width: 80vmin;
  height: 80vmin;
  max-width: 600px;
  max-height: 600px;
  pointer-events: none;
}
.sc-conn-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--sc-green);
  border-radius: 50%;
  opacity: 0;
  animation: sc-ring-expand 2s linear infinite;
}
.sc-conn-ring:nth-child(1) { animation-delay: 0s; border-color: var(--sc-green); }
.sc-conn-ring:nth-child(2) { animation-delay: 0.4s; border-color: var(--sc-cyan); }
.sc-conn-ring:nth-child(3) { animation-delay: 0.8s; border-color: var(--sc-green); }
.sc-conn-ring:nth-child(4) { animation-delay: 1.2s; border-color: var(--sc-cyan); }
.sc-conn-ring:nth-child(5) { animation-delay: 1.6s; border-color: var(--sc-green); }
@keyframes sc-ring-expand {
  0% { transform: scale(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* Skenujúca čiara */
.sc-conn-scan {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sc-green) 50%, transparent);
  box-shadow: 0 0 20px var(--sc-green);
  animation: sc-scan 1.5s linear infinite;
}
@keyframes sc-scan {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* Hexagónový padajúci background - matrix style */
.sc-conn-matrix {
  position: absolute;
  inset: 0;
  font-family: var(--sc-mono);
  font-size: 14px;
  color: var(--sc-green-dark);
  overflow: hidden;
  opacity: 0.3;
  pointer-events: none;
}
.sc-conn-matrix-col {
  position: absolute;
  top: -100%;
  white-space: pre;
  animation: sc-matrix-fall linear infinite;
  text-shadow: 0 0 5px var(--sc-green-dim);
}
@keyframes sc-matrix-fall {
  to { top: 110%; }
}

/* Stredový obsah - text + status */
.sc-conn-content {
  position: relative;
  z-index: 10;
  text-align: center;
  font-family: var(--sc-mono);
  color: var(--sc-green);
  padding: 30px;
  max-width: 90%;
}

.sc-conn-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: inline-block;
  animation: sc-conn-pulse 1s ease-in-out infinite alternate;
}
@keyframes sc-conn-pulse {
  from { text-shadow: 0 0 10px var(--sc-green); transform: scale(1); }
  to { text-shadow: 0 0 30px var(--sc-green), 0 0 50px var(--sc-cyan); transform: scale(1.05); }
}

.sc-conn-title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--sc-green);
  text-shadow: 0 0 10px var(--sc-green-dim);
}

.sc-conn-status {
  font-size: 14px;
  color: var(--sc-cyan);
  letter-spacing: 2px;
  margin-bottom: 24px;
  min-height: 1.4em;
}
.sc-conn-status::after {
  content: '_';
  animation: sc-blink-anim 0.5s step-end infinite;
}

.sc-conn-progress-track {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: var(--sc-green-faint);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sc-green-dark);
}
.sc-conn-progress-bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--sc-green-dim), var(--sc-green), var(--sc-cyan));
  box-shadow: 0 0 10px var(--sc-green);
  transition: right 0.1s linear;
}

.sc-conn-steps {
  margin-top: 20px;
  font-size: 11px;
  color: var(--sc-text-faint);
  text-align: left;
  display: inline-block;
  min-width: 280px;
}
.sc-conn-step {
  padding: 2px 0;
  letter-spacing: 1px;
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}
.sc-conn-step.active {
  opacity: 1;
  color: var(--sc-green);
}
.sc-conn-step.done {
  opacity: 0.7;
  color: var(--sc-green-dim);
}

/* SUCCESS state - po pripojení */
.sc-conn-overlay.sc-conn-success .sc-conn-icon {
  color: var(--sc-green);
  animation: sc-success-pop 0.6s ease-out forwards;
}
@keyframes sc-success-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; text-shadow: 0 0 40px var(--sc-green), 0 0 80px var(--sc-cyan); }
}
.sc-conn-overlay.sc-conn-success .sc-conn-title {
  color: var(--sc-green);
  animation: sc-success-glow 0.6s ease-out;
}
@keyframes sc-success-glow {
  from { text-shadow: 0 0 5px var(--sc-green); letter-spacing: 4px; }
  to { text-shadow: 0 0 25px var(--sc-green), 0 0 50px var(--sc-cyan); letter-spacing: 6px; }
}

/* Bezpečnostné lock-icons rotujúce okolo */
.sc-conn-orbit {
  position: absolute;
  width: 50vmin;
  height: 50vmin;
  max-width: 400px;
  max-height: 400px;
  animation: sc-orbit 8s linear infinite;
  pointer-events: none;
}
@keyframes sc-orbit {
  to { transform: rotate(360deg); }
}
.sc-conn-orbit-item {
  position: absolute;
  font-size: 18px;
  color: var(--sc-cyan);
  text-shadow: 0 0 10px var(--sc-cyan);
}
.sc-conn-orbit-item:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, -50%); }
.sc-conn-orbit-item:nth-child(2) { top: 50%; right: 0; transform: translate(50%, -50%); }
.sc-conn-orbit-item:nth-child(3) { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.sc-conn-orbit-item:nth-child(4) { top: 50%; left: 0; transform: translate(-50%, -50%); }

/* GLITCH efekt na text */
.sc-glitch {
  position: relative;
  display: inline-block;
}
.sc-glitch::before, .sc-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}
.sc-glitch::before {
  animation: sc-glitch-1 0.5s infinite;
  color: var(--sc-cyan);
  z-index: -1;
}
.sc-glitch::after {
  animation: sc-glitch-2 0.5s infinite;
  color: var(--sc-red);
  z-index: -2;
}
@keyframes sc-glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(-1px, -1px); }
  60% { transform: translate(1px, 2px); }
  80% { transform: translate(2px, -1px); }
}
@keyframes sc-glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -1px); }
  40% { transform: translate(1px, 1px); }
  60% { transform: translate(-1px, -2px); }
  80% { transform: translate(-2px, 1px); }
}

/* DISCONNECT overlay (pri ukončení) */
.sc-disconnect-overlay {
  position: absolute;
  inset: 0;
  background: var(--sc-bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sc-mono);
  text-align: center;
  animation: sc-disconnect-fade 1.2s forwards ease-out;
}
@keyframes sc-disconnect-fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
.sc-disconnect-text {
  font-size: 18px;
  color: var(--sc-red);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--sc-red);
  animation: sc-disconnect-pulse 0.4s infinite alternate;
}
@keyframes sc-disconnect-pulse {
  to { opacity: 0.6; }
}
.sc-disconnect-line {
  width: 80%;
  max-width: 400px;
  height: 2px;
  background: var(--sc-red);
  margin: 12px auto;
  box-shadow: 0 0 10px var(--sc-red);
  animation: sc-disconnect-line 0.6s linear;
}
@keyframes sc-disconnect-line {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Push button v headere */
.sc-push-btn {
  background: transparent;
  border: 1px solid var(--sc-green-dim);
  color: var(--sc-green);
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--sc-mono);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.sc-push-btn:hover {
  background: var(--sc-green-faint);
  box-shadow: 0 0 8px var(--sc-green-dim);
}
.sc-push-btn.sc-push-active {
  border-color: var(--sc-green);
  color: var(--sc-green);
  box-shadow: 0 0 8px var(--sc-green-dim);
}
.sc-push-btn.sc-push-denied {
  border-color: var(--sc-red);
  color: var(--sc-red);
}

/* Push banner - pekný hacker štýl */
.sc-push-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(0,255,65,0.08), rgba(0,255,65,0.02));
  border-bottom: 1px solid var(--sc-green-dark);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.sc-push-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 20px,
    rgba(0, 255, 65, 0.05) 20px,
    rgba(0, 255, 65, 0.05) 21px
  );
  pointer-events: none;
}

.sc-push-banner-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 2;
}

.sc-push-banner input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--sc-green);
  background: var(--sc-bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}
.sc-push-banner input[type="checkbox"]:checked {
  background: var(--sc-green);
  box-shadow: 0 0 8px var(--sc-green);
}
.sc-push-banner input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-bg);
  font-weight: bold;
  font-size: 16px;
}

.sc-push-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
  animation: sc-bell-shake 2s ease-in-out infinite;
}
@keyframes sc-bell-shake {
  0%, 90%, 100% { transform: rotate(0); }
  92%, 96% { transform: rotate(-12deg); }
  94%, 98% { transform: rotate(12deg); }
}
.sc-push-banner.sc-push-active .sc-push-banner-icon {
  animation: none;
  color: var(--sc-green);
  text-shadow: 0 0 8px var(--sc-green);
}

.sc-push-banner-text {
  display: flex;
  flex-direction: column;
  font-family: var(--sc-mono);
  color: var(--sc-green);
  line-height: 1.3;
}
.sc-push-banner-text strong {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.sc-push-banner-text small {
  font-size: 10px;
  color: var(--sc-text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

.sc-push-banner-close {
  background: transparent;
  border: 1px solid var(--sc-green-dark);
  color: var(--sc-green-dim);
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sc-mono);
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.sc-push-banner-close:hover {
  border-color: var(--sc-red);
  color: var(--sc-red);
}

@media (max-width: 600px) {
  .sc-push-banner-text strong { font-size: 11px; }
  .sc-push-banner-text small { font-size: 9px; }
}

/* Drag-gable lokálne video */
.sc-video-local {
  cursor: move;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.sc-video-local:hover {
  border-color: var(--sc-cyan);
  box-shadow: 0 0 12px var(--sc-cyan);
}
.sc-video-local.sc-dragging {
  cursor: grabbing;
  border-color: var(--sc-amber);
  box-shadow: 0 0 20px var(--sc-amber);
  transition: none;
  opacity: 0.85;
}

/* Indikátor že video je drag-gable - rožok s úchytkou */
.sc-video-local::after {
  content: '⋮⋮';
  position: absolute;
  top: 2px;
  left: 2px;
  color: var(--sc-green);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 0 3px;
  pointer-events: none;
  opacity: 0.6;
  letter-spacing: -2px;
}


/* ============================================
   PINK CYBERPUNK THEME (pre Maru) 💖
   Aktivuje sa cez data-theme="pink" na #sc-app
   ============================================ */
#sc-app[data-theme="pink"] {
  --sc-bg: #0a0008;
  --sc-bg-alt: #1a0510;
  --sc-bg-panel: #2a0820;
  --sc-green: #ff2d92;
  --sc-green-dim: #cc1f73;
  --sc-green-dark: #66103a;
  --sc-green-faint: #2d0518;
  --sc-amber: #ffb84d;
  --sc-red: #ff003c;
  --sc-cyan: #ff8fc8;
  --sc-text: #ff66b3;
  --sc-text-dim: #d1448a;
  --sc-text-faint: #66103a;
  --sc-border: #ff2d9233;
  --sc-border-strong: #ff2d92;
}

#sc-app[data-theme="pink"] {
  text-shadow: 0 0 3px rgba(255, 45, 146, 0.5);
}

#sc-app[data-theme="pink"]::before {
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 45, 146, 0.04) 0px,
    rgba(255, 45, 146, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

#sc-app[data-theme="pink"] .sc-call-screen::before {
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 45, 146, 0.04) 0px,
    rgba(255, 45, 146, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

#sc-app[data-theme="pink"] .sc-push-banner {
  background: linear-gradient(90deg, rgba(255,45,146,0.1), rgba(255,45,146,0.02));
}
#sc-app[data-theme="pink"] .sc-push-banner::before {
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 20px,
    rgba(255, 45, 146, 0.06) 20px,
    rgba(255, 45, 146, 0.06) 21px
  );
}


/* Fingerprint badge */
.sc-fingerprint-btn {
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  padding: 2px 6px;
  border: 1px solid var(--sc-green-dim);
  font-size: 12px;
  transition: all 0.15s;
}
.sc-fingerprint-btn:hover {
  background: var(--sc-green-faint);
  border-color: var(--sc-green);
}


/* ============================================
   FILE ATTACHMENT UI v0.4.0
   ============================================ */

.sc-attach-btn {
  background: var(--sc-bg);
  border: 1px solid var(--sc-green-dim);
  color: var(--sc-green);
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--sc-mono);
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.sc-attach-btn:hover {
  background: var(--sc-green-faint);
  border-color: var(--sc-green);
  box-shadow: 0 0 8px var(--sc-green-dim);
}

.sc-attach-menu {
  position: absolute;
  bottom: 60px;
  left: 8px;
  background: var(--sc-bg);
  border: 1px solid var(--sc-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
  z-index: 100;
  min-width: 180px;
  flex-direction: column;
}
.sc-attach-menu.open {
  display: flex !important;
}

.sc-attach-option {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sc-green-dark);
  color: var(--sc-green);
  padding: 12px 14px;
  font-family: var(--sc-mono);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.1s;
}
.sc-attach-option:last-child {
  border-bottom: 0;
}
.sc-attach-option:hover {
  background: var(--sc-green-faint);
}

.sc-attach-icon {
  font-size: 18px;
}

.sc-attach-label {
  flex: 1;
}

/* Image v správe */
.sc-msg-image {
  max-width: 280px;
  max-height: 300px;
  border: 1px solid var(--sc-green-dim);
  cursor: pointer;
  display: block;
  margin: 4px 0;
  background: #000;
  object-fit: cover;
}
.sc-msg-image:hover {
  border-color: var(--sc-green);
  box-shadow: 0 0 8px var(--sc-green-dim);
}
.sc-msg-image-placeholder {
  width: 200px;
  height: 150px;
  background: var(--sc-bg-alt);
  border: 1px dashed var(--sc-green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-green-dim);
  font-family: var(--sc-mono);
  font-size: 11px;
  letter-spacing: 1px;
}

.sc-msg-image-encrypting {
  position: relative;
  opacity: 0.7;
}
.sc-msg-image-encrypting::after {
  content: '🔒 ŠIFRUJEM...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--sc-amber);
  font-family: var(--sc-mono);
  font-size: 11px;
  letter-spacing: 2px;
}

/* Image lightbox - po kliku zväčší obrázok */
.sc-img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  cursor: pointer;
  padding: 20px;
}
.sc-img-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--sc-green);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}
.sc-img-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--sc-bg);
  border: 1px solid var(--sc-red);
  color: var(--sc-red);
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  font-family: var(--sc-mono);
}

/* Upload progress overlay */
.sc-upload-progress {
  position: absolute;
  bottom: 70px;
  left: 8px;
  right: 8px;
  background: var(--sc-bg);
  border: 1px solid var(--sc-amber);
  padding: 10px 14px;
  font-family: var(--sc-mono);
  font-size: 12px;
  color: var(--sc-amber);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-upload-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--sc-bg-alt);
  position: relative;
  overflow: hidden;
}
.sc-upload-progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--sc-amber), transparent);
  animation: sc-progress-slide 1.5s linear infinite;
}
@keyframes sc-progress-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Mobile - menšia max-width pre obrázky v správe */
@media (max-width: 600px) {
  .sc-msg-image {
    max-width: 220px;
    max-height: 240px;
  }
  .sc-attach-menu {
    bottom: 56px;
    left: 4px;
    min-width: 160px;
  }
}


/* ============================================
   FULLSCREEN HOST OVERRIDES v0.4.1
   Apka sa premiestňuje do .sc-fullscreen-host pri load (pozri PHP)
   ============================================ */
.sc-fullscreen-host #sc-app {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  border: none !important;
  width: 100% !important;
}

.sc-fullscreen-host #sc-app .sc-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

@media (max-width: 900px) {
  .sc-fullscreen-host {
    overscroll-behavior: none;
  }
}


/* ============================================
   v0.4.2 - Call screen ako direct child of body
   (premiestnené pri fullscreen activation)
   ============================================ */
body > .sc-call-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999999 !important;
}

html.sc-fullscreen-active body > #sc-call-screen,
html.sc-fullscreen-active body > .sc-call-screen {
  display: none;
}
html.sc-fullscreen-active body > #sc-call-screen[style*="display: flex"],
html.sc-fullscreen-active body > .sc-call-screen[style*="display: flex"] {
  display: flex !important;
}


/* ============================================
   v0.4.3 - Úplná izolácia od WordPress CSS
   ============================================ */

/* Host - najvyšší z-index a fixed pozícia, neprenikne nič */
.sc-fullscreen-host {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  z-index: 2147483640 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  font-family: 'Courier New', 'Cascadia Code', 'Consolas', monospace;
  color: #00ff41;
  isolation: isolate;
  contain: layout style paint;
  pointer-events: auto;
}

/* Reset pre všetky deti hosta - žiadny WP theme reset zhora */
.sc-fullscreen-host *,
.sc-fullscreen-host *::before,
.sc-fullscreen-host *::after {
  box-sizing: border-box;
  font-family: inherit;
}

/* Akýkoľvek p, h*, ul, li v .sc-fullscreen-host nech nedostávajú default browser margin */
.sc-fullscreen-host h1,
.sc-fullscreen-host h2,
.sc-fullscreen-host h3,
.sc-fullscreen-host h4,
.sc-fullscreen-host h5,
.sc-fullscreen-host h6,
.sc-fullscreen-host p,
.sc-fullscreen-host ul,
.sc-fullscreen-host ol,
.sc-fullscreen-host li,
.sc-fullscreen-host pre {
  margin: 0;
  padding: 0;
}

.sc-fullscreen-host a {
  text-decoration: none;
}

/* Force že sc-app vnútri hosta nemá žiadne external paddings */
.sc-fullscreen-host #sc-app {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--sc-bg, #000) !important;
}

/* Tlačidlá a inputs - reset len font-family/size, NIE FARBA (tlačidlá majú vlastné farby) */
.sc-fullscreen-host button,
.sc-fullscreen-host input,
.sc-fullscreen-host textarea,
.sc-fullscreen-host select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Body keď je fullscreen - skry overflow */
html.sc-fullscreen-active,
html.sc-fullscreen-active body {
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #000 !important;
}


/* ============================================
   v0.4.6 - Force farby všetkých tlačidiel
   ============================================ */

.sc-ctrl-btn {
  background: #050d05 !important;
  border: 1px solid #00ff41 !important;
  color: #00ff41 !important;
  text-shadow: 0 0 4px #00ff41 !important;
  font-weight: bold !important;
  opacity: 1 !important;
}

.sc-ctrl-btn:hover {
  background: rgba(0, 255, 65, 0.15) !important;
  box-shadow: 0 0 14px #00ff41 !important;
}

.sc-ctrl-end {
  border: 2px solid #ff003c !important;
  color: #ff003c !important;
  background: rgba(255, 0, 60, 0.15) !important;
  text-shadow: 0 0 6px #ff003c !important;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.5) !important;
  font-weight: 900 !important;
}

.sc-ctrl-end:hover {
  background: rgba(255, 0, 60, 0.35) !important;
  box-shadow: 0 0 20px #ff003c !important;
}

.sc-btn-accept {
  border: 2px solid #00ff41 !important;
  color: #00ff41 !important;
  background: rgba(0, 255, 65, 0.15) !important;
  text-shadow: 0 0 6px #00ff41 !important;
  box-shadow: 0 0 14px rgba(0, 255, 65, 0.5) !important;
  font-weight: 900 !important;
}

.sc-btn-reject {
  border: 2px solid #ff003c !important;
  color: #ff003c !important;
  background: rgba(255, 0, 60, 0.15) !important;
  text-shadow: 0 0 6px #ff003c !important;
  box-shadow: 0 0 14px rgba(255, 0, 60, 0.5) !important;
  font-weight: 900 !important;
}

/* SECURITY_MONITOR log - jasnejšie farby */
.sc-log-output {
  color: #00ff41 !important;
  background: #000 !important;
}

.sc-log-line {
  color: #00ff41 !important;
  opacity: 1 !important;
}

.sc-log-time { color: #5fb748 !important; }
.sc-log-tag { color: #ffb000 !important; font-weight: bold !important; }
.sc-log-ok { color: #00ff41 !important; }
.sc-log-info { color: #00f0ff !important; }
.sc-log-warn { color: #ffb000 !important; }
.sc-log-err { color: #ff003c !important; }
.sc-log-dim { color: #7fb748 !important; }

.sc-log-header {
  color: #00ff41 !important;
  background: rgba(0, 255, 65, 0.08) !important;
  border-bottom: 1px solid #00ff41 !important;
  font-weight: bold !important;
}

.sc-call-status { color: #00ff41 !important; }
.sc-incoming-from { color: #00f0ff !important; }
.sc-incoming-type { color: #ffb000 !important; }


/* ============================================
   v0.4.7 - Force connect animation viditeľnosť
   ============================================ */

.sc-conn-overlay {
  background: #000 !important;
}

.sc-conn-title {
  color: #00ff41 !important;
  text-shadow: 0 0 12px #00ff41, 0 0 4px #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #00ff41 !important;
}

.sc-conn-status {
  color: #00f0ff !important;
  text-shadow: 0 0 8px #00f0ff !important;
  opacity: 1 !important;
}

.sc-conn-status::after {
  color: #00f0ff !important;
}

.sc-conn-icon {
  color: #00ff41 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px #00ff41);
}

.sc-conn-steps {
  color: #6b9b3a !important;
  opacity: 1 !important;
}

.sc-conn-step {
  color: #6b9b3a !important;
  opacity: 0.7 !important;
}
.sc-conn-step.active {
  color: #00ff41 !important;
  opacity: 1 !important;
  text-shadow: 0 0 6px #00ff41 !important;
  font-weight: bold !important;
}
.sc-conn-step.done {
  color: #5fb748 !important;
  opacity: 0.9 !important;
}

.sc-conn-progress-track {
  background: rgba(0, 255, 65, 0.1) !important;
  border: 1px solid #00ff41 !important;
}

.sc-conn-progress-bar {
  background: linear-gradient(90deg, #00b82e, #00ff41, #00f0ff) !important;
  box-shadow: 0 0 14px #00ff41 !important;
}

.sc-conn-overlay.sc-conn-success .sc-conn-title {
  color: #00ff41 !important;
  text-shadow: 0 0 14px #00ff41 !important;
}

.sc-conn-overlay.sc-conn-success .sc-conn-icon {
  color: #00ff41 !important;
}

/* Orbit emoji - jasnejšie */
.sc-conn-orbit-item {
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.5));
}

/* Rings - viditeľné */
.sc-conn-ring {
  border-color: #00ff41 !important;
  opacity: 0.6 !important;
}


/* v0.4.7 - Override backdrop-filter (Edge ho zle renderuje a stmaví text) */
.sc-conn-overlay {
  background: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* ============================================
   v0.5.0 - Message tickets, typing, menu
   ============================================ */

/* Tickets (✓ ✓✓) */
.sc-msg-ticket {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  letter-spacing: -2px;
  font-weight: bold;
}
.sc-ticket-pending { color: #5fb748 !important; opacity: 0.5 !important; letter-spacing: 0; }
.sc-ticket-sent { color: #5fb748 !important; opacity: 0.75 !important; }
.sc-ticket-delivered { color: #5fb748 !important; opacity: 0.85 !important; }
.sc-ticket-read { color: #00f0ff !important; opacity: 1 !important; text-shadow: 0 0 4px #00f0ff !important; }

/* Typing indicator */
.sc-typing-indicator {
  padding: 6px 16px;
  font-size: 11px;
  color: var(--sc-text-dim);
  letter-spacing: 1px;
  font-family: var(--sc-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sc-bg-alt);
  border-top: 1px dashed var(--sc-border);
  animation: sc-typing-fade-in 0.2s;
}
@keyframes sc-typing-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sc-typing-dots {
  display: inline-flex;
  gap: 3px;
}
.sc-typing-dots span {
  width: 4px;
  height: 4px;
  background: var(--sc-green);
  border-radius: 50%;
  animation: sc-typing-bounce 1.2s infinite;
}
.sc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.sc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sc-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.sc-typing-text {
  color: var(--sc-green);
  letter-spacing: 1.5px;
}
.sc-typing-cursor {
  animation: sc-blink-anim 0.6s step-end infinite;
}

/* Chat menu (kebab) */
.sc-chat-menu-btn {
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  padding: 2px 8px;
  border: 1px solid var(--sc-green-dim);
  font-size: 14px;
  transition: all 0.15s;
  color: var(--sc-green);
}
.sc-chat-menu-btn:hover {
  background: var(--sc-green-faint);
  border-color: var(--sc-green);
}

.sc-chat-menu {
  background: var(--sc-bg);
  border: 1px solid var(--sc-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
  min-width: 220px;
  font-family: var(--sc-mono);
}
.sc-chat-menu-item {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sc-green-dark);
  color: var(--sc-green);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.sc-chat-menu-item:last-child {
  border-bottom: 0;
}
.sc-chat-menu-item:hover {
  background: var(--sc-green-faint);
}


/* Unread badge in contact list */
.sc-contact-unread {
  display: inline-block;
  margin-left: 8px;
  background: var(--sc-red);
  color: var(--sc-bg);
  padding: 1px 6px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(255, 0, 60, 0.5);
}

.sc-contact-has-unread .sc-contact-name {
  color: var(--sc-green) !important;
  font-weight: bold;
  text-shadow: 0 0 4px var(--sc-green);
}


/* ============================================
   v0.6.0 - Message Actions
   ============================================ */

/* Kontext menu - hacker terminál štýl */
.sc-msg-context-menu {
  position: fixed !important;
  background: #050d05 !important;
  border: 1px solid #00ff41 !important;
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.5) !important;
  min-width: 220px !important;
  font-family: var(--sc-mono) !important;
  z-index: 2147483645 !important;
  animation: sc-ctx-fade-in 0.15s ease-out;
}
@keyframes sc-ctx-fade-in {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Riadok emoji reakcií v hornej časti menu */
.sc-ctx-reactions {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: rgba(0, 255, 65, 0.05);
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  justify-content: space-around;
}
.sc-ctx-reaction {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 22px;
  padding: 6px 8px;
  transition: all 0.1s;
  border-radius: 4px;
}
.sc-ctx-reaction:hover {
  background: rgba(0, 255, 65, 0.2) !important;
  border-color: #00ff41 !important;
  transform: scale(1.2);
  box-shadow: 0 0 10px #00ff41;
}

/* Položky menu */
.sc-ctx-item {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
  color: #00ff41 !important;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.sc-ctx-item:last-child { border-bottom: 0; }
.sc-ctx-item:hover {
  background: rgba(0, 255, 65, 0.12) !important;
}
.sc-ctx-danger {
  color: #ff003c !important;
  border-top: 1px solid rgba(255, 0, 60, 0.3);
}
.sc-ctx-danger:hover {
  background: rgba(255, 0, 60, 0.15) !important;
}

/* Reply preview nad input */
.sc-reply-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 255, 65, 0.08);
  border-top: 1px solid var(--sc-green-dim);
  border-left: 3px solid #00ff41;
  font-family: var(--sc-mono);
  font-size: 12px;
  animation: sc-reply-slide-in 0.2s ease-out;
}
@keyframes sc-reply-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sc-reply-icon { font-size: 16px; }
.sc-reply-text {
  flex: 1;
  color: var(--sc-text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: italic;
}
.sc-reply-cancel {
  background: transparent;
  border: 1px solid var(--sc-green-dim);
  color: var(--sc-green);
  font-size: 14px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
}
.sc-reply-cancel:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: #00ff41;
}

/* Reply quote v správe */
.sc-msg-quote {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: rgba(0, 255, 65, 0.06);
  padding: 6px 8px;
  margin: 4px 0;
  cursor: pointer;
  border-radius: 2px;
  font-size: 11px;
  transition: background 0.15s;
}
.sc-msg-quote:hover {
  background: rgba(0, 255, 65, 0.12);
}
.sc-msg-quote-bar {
  width: 3px;
  background: #00ff41;
  flex-shrink: 0;
  border-radius: 2px;
}
.sc-msg-quote-text {
  color: var(--sc-text-dim);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  padding: 2px 0;
}

.sc-msg-mine .sc-msg-quote {
  background: rgba(0, 255, 65, 0.1);
}

/* Forwarded badge */
.sc-msg-forwarded {
  font-size: 10px;
  color: #ffb000;
  padding: 2px 0 4px 0;
  font-style: italic;
  letter-spacing: 1px;
}

/* Reactions row pod správou */
.sc-reactions-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.sc-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: #00ff41;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-family: var(--sc-mono);
  cursor: pointer;
  transition: all 0.15s;
}
.sc-reaction-pill:hover {
  background: rgba(0, 255, 65, 0.18);
  border-color: #00ff41;
  transform: translateY(-1px);
}
.sc-reaction-pill.sc-reaction-mine {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}
.sc-reaction-emoji {
  font-size: 14px;
}
.sc-reaction-count {
  font-weight: bold;
  letter-spacing: 0;
}

/* Deleted message */
.sc-msg-deleted .sc-msg-meta {
  opacity: 0.5;
}
.sc-msg-deleted-placeholder {
  font-style: italic;
  color: var(--sc-text-faint);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 0;
}

/* Flash animácia pri scrollnutí na cieľ reply */
.sc-msg-flash {
  animation: sc-msg-flash-anim 1.5s ease-out;
}
@keyframes sc-msg-flash-anim {
  0%, 100% { background: transparent; }
  20%, 60% { background: rgba(0, 255, 65, 0.25); }
}

/* Forward dialog */
.sc-forward-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-forward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.sc-forward-panel {
  position: relative;
  background: #050d05;
  border: 1px solid #00ff41;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
  max-width: 460px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sc-mono);
  color: #00ff41;
  animation: sc-fwd-pop-in 0.2s ease-out;
}
@keyframes sc-fwd-pop-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.sc-forward-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  font-weight: bold;
  letter-spacing: 2px;
}
.sc-forward-close {
  background: transparent;
  border: 1px solid var(--sc-green-dim);
  color: #00ff41;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 8px;
  font-family: inherit;
}
.sc-forward-close:hover {
  background: rgba(0, 255, 65, 0.15);
}
.sc-forward-preview {
  padding: 10px 16px;
  background: rgba(0, 255, 65, 0.05);
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
  font-size: 12px;
  color: var(--sc-text-dim);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-forward-preview-img {
  color: #00f0ff;
}
.sc-forward-label {
  padding: 10px 16px 4px;
  font-size: 11px;
  color: var(--sc-text-dim);
  letter-spacing: 1px;
}
.sc-forward-contacts {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.sc-forward-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  color: #00ff41;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: background 0.1s;
}
.sc-forward-contact:hover {
  background: rgba(0, 255, 65, 0.12);
}
.sc-forward-contact-dot {
  font-size: 8px;
}
.sc-forward-contact-name { flex: 1; }
.sc-forward-contact-alias {
  color: var(--sc-text-dim);
  font-size: 11px;
}
.sc-forward-empty {
  padding: 24px;
  text-align: center;
  color: var(--sc-text-dim);
  font-style: italic;
}


/* ============================================
   v0.7.0 - Media Upload II
   ============================================ */

/* GIF - vyzerá rovnako ako image ale s indicator */
.sc-msg-gif {
  position: relative;
}
.sc-msg-gif::before {
  content: 'GIF';
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #00ff41;
  padding: 1px 4px;
  font-size: 9px;
  font-family: var(--sc-mono);
  letter-spacing: 1px;
  pointer-events: none;
}

/* File attachment (PDF, DOCX, ...) */
.sc-msg-file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 65, 0.06);
  border: 1px solid rgba(0, 255, 65, 0.3);
  padding: 10px 12px;
  margin: 2px 0;
  min-width: 220px;
  max-width: 340px;
  font-family: var(--sc-mono);
  transition: all 0.15s;
}
.sc-msg-file:hover {
  background: rgba(0, 255, 65, 0.12);
  border-color: #00ff41;
}
.sc-msg-file-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.sc-msg-file-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.sc-msg-file-name {
  color: #00ff41;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}
.sc-msg-file-meta {
  font-size: 10px;
  color: var(--sc-text-dim);
  margin-top: 2px;
  letter-spacing: 0.5px;
}
.sc-msg-file-download {
  background: rgba(0, 255, 65, 0.15);
  border: 1px solid #00ff41;
  color: #00ff41 !important;
  padding: 6px 10px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none !important;
  font-weight: bold;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sc-msg-file-download:hover {
  background: rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 12px #00ff41;
  text-shadow: 0 0 4px #00ff41;
}

/* Location pin */
.sc-msg-location {
  width: 280px;
  max-width: 100%;
  border: 1px solid rgba(0, 255, 65, 0.3);
  background: rgba(0, 255, 65, 0.05);
  overflow: hidden;
}
.sc-msg-location-map {
  width: 100%;
  height: 180px;
  border: 0;
  background: #0a0;
  filter: hue-rotate(40deg) saturate(0.8);
}
.sc-msg-location-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 255, 65, 0.3);
  font-family: var(--sc-mono);
}
.sc-msg-location-icon {
  font-size: 20px;
}
.sc-msg-location-coords {
  flex: 1;
  font-size: 11px;
  color: #00ff41;
  letter-spacing: 0.5px;
}
.sc-msg-location-acc {
  color: var(--sc-text-dim);
  font-size: 10px;
}
.sc-msg-location-links {
  display: flex;
  gap: 4px;
}
.sc-msg-location-links a {
  display: inline-block;
  background: rgba(0, 255, 65, 0.15);
  border: 1px solid #00ff41;
  color: #00ff41 !important;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 22px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none !important;
  transition: all 0.15s;
}
.sc-msg-location-links a:hover {
  background: rgba(0, 255, 65, 0.35);
  box-shadow: 0 0 8px #00ff41;
}

/* Attach menu - bigger */
.sc-attach-menu {
  min-width: 220px;
}
.sc-attach-option {
  padding: 12px 14px !important;
  font-size: 13px !important;
}


/* ============================================
   v0.7.1 - Emoji Picker
   ============================================ */

/* Emoji tlačidlo vedľa attach button */
.sc-emoji-btn {
  background: transparent;
  border: 1px solid var(--sc-green-dim);
  color: #00ff41 !important;
  cursor: pointer;
  font-size: 18px;
  padding: 6px 8px;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
}
.sc-emoji-btn:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
  transform: scale(1.08);
}
.sc-emoji-btn:active {
  transform: scale(0.95);
}

/* Emoji picker panel */
.sc-emoji-picker {
  position: fixed !important;
  background: #050d05 !important;
  border: 1px solid #00ff41 !important;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.6) !important;
  width: 340px;
  max-width: 92vw;
  font-family: var(--sc-mono);
  z-index: 2147483647 !important;
  display: flex;
  flex-direction: column;
  animation: sc-emoji-fade-in 0.18s ease-out;
}
@keyframes sc-emoji-fade-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Záložky kategórií */
.sc-emoji-tabs {
  display: flex;
  background: rgba(0, 255, 65, 0.05);
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}
.sc-emoji-tab {
  flex: 1;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(0, 255, 65, 0.15);
  color: #00ff41;
  padding: 10px 0;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
}
.sc-emoji-tab:last-child { border-right: 0; }
.sc-emoji-tab:hover {
  background: rgba(0, 255, 65, 0.12);
}
.sc-emoji-tab.active {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: inset 0 -2px 0 #00ff41;
}

/* Grid emoji */
.sc-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  background: #000;
}
.sc-emoji-cell {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 22px;
  padding: 6px 4px;
  transition: all 0.1s;
  line-height: 1;
  font-family: inherit;
}
.sc-emoji-cell:hover {
  background: rgba(0, 255, 65, 0.18) !important;
  border-color: rgba(0, 255, 65, 0.5) !important;
  transform: scale(1.25);
  z-index: 1;
}

/* Footer s názvom kategórie */
.sc-emoji-footer {
  padding: 6px 10px;
  font-size: 10px;
  color: var(--sc-text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(0, 255, 65, 0.05);
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  text-align: center;
}

/* Quick reactions v context menu - rozšírené na 13 (12 + plus button) */
.sc-msg-context-menu .sc-ctx-reactions {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 6px 6px;
}
.sc-ctx-reaction {
  font-size: 20px;
  padding: 6px 4px !important;
  line-height: 1;
}
.sc-ctx-reaction-more {
  color: #ffb000 !important;
  font-weight: bold;
}
.sc-ctx-reaction-more:hover {
  background: rgba(255, 176, 0, 0.2) !important;
  border-color: #ffb000 !important;
  box-shadow: 0 0 10px #ffb000 !important;
}

/* Mobile - užší grid */
@media (max-width: 480px) {
  .sc-emoji-picker {
    width: 96vw;
  }
  .sc-emoji-grid {
    grid-template-columns: repeat(7, 1fr);
  }
  .sc-emoji-cell {
    font-size: 24px;
  }
  .sc-msg-context-menu .sc-ctx-reactions {
    grid-template-columns: repeat(7, 1fr);
  }
}


/* ============================================
   v0.7.4 - Blob storage placeholders
   ============================================ */

/* Pending blob image - rozmazaný thumbnail kým sa stiahne plný */
.sc-msg-image.sc-msg-blob[data-pending-load="1"] {
  filter: blur(8px);
  transition: filter 0.4s ease-out;
  cursor: wait;
  min-width: 120px;
  min-height: 120px;
  background: rgba(0, 255, 65, 0.05);
}

/* Po načítaní - smooth fade-in */
.sc-msg-image.sc-msg-blob.sc-blob-loaded {
  filter: none;
  cursor: pointer;
}

/* Chyba načítania */
.sc-msg-image.sc-blob-error {
  filter: none;
  opacity: 0.5;
  border: 1px dashed var(--sc-red);
  padding: 20px;
  background: rgba(255, 0, 60, 0.1);
}

/* File blob - download button */
.sc-msg-file.sc-msg-blob .sc-blob-download {
  background: rgba(0, 255, 65, 0.15);
  border: 1px solid #00ff41;
  color: #00ff41 !important;
  padding: 6px 10px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.15s;
  flex-shrink: 0;
  min-width: 36px;
}
.sc-msg-file.sc-msg-blob .sc-blob-download:hover:not(:disabled) {
  background: rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 12px #00ff41;
}
.sc-msg-file.sc-msg-blob .sc-blob-download:disabled {
  opacity: 0.7;
  cursor: wait;
}


/* v0.7.4 Fáza 3 - Lazy load enhanced */

/* Image v stave loading (download zo siete) - subtle loading hint */
.sc-msg-image.sc-msg-blob[data-loading="1"] {
  position: relative;
}
.sc-msg-image.sc-msg-blob[data-loading="1"]::after {
  content: "⏳";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  animation: sc-spin 1.5s linear infinite;
}
@keyframes sc-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ============================================
   v0.7.5 - Wipe Conversation Dialog
   Native HTML5 <dialog> element s hacker styling
   ============================================ */

/* Dialog reset + hacker theme */
dialog.sc-wipe-dialog {
  background: #050d05;
  border: 2px solid #ff003c;
  box-shadow: 0 0 60px rgba(255, 0, 60, 0.5), 0 0 100px rgba(0, 255, 65, 0.2);
  color: #00ff41;
  font-family: var(--sc-mono);
  padding: 0;
  max-width: 500px;
  width: 90%;
  border-radius: 0;
  animation: sc-wipe-shake 0.3s ease-out;
}

dialog.sc-wipe-dialog::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

@keyframes sc-wipe-shake {
  0% { transform: scale(0.85) translateX(0); opacity: 0; }
  25% { transform: scale(1.02) translateX(-3px); }
  50% { transform: scale(1.02) translateX(3px); }
  75% { transform: scale(1.02) translateX(-2px); }
  100% { transform: scale(1) translateX(0); opacity: 1; }
}

.sc-wipe-form {
  margin: 0;
  padding: 0;
}

.sc-wipe-header {
  background: linear-gradient(135deg, rgba(255, 0, 60, 0.2), rgba(255, 0, 60, 0.05));
  border-bottom: 1px solid rgba(255, 0, 60, 0.4);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-wipe-icon {
  font-size: 28px;
  animation: sc-wipe-pulse 1.5s ease-in-out infinite;
}

@keyframes sc-wipe-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.sc-wipe-header h2 {
  margin: 0;
  font-size: 18px;
  color: #ff003c;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--sc-mono);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 0, 60, 0.5);
}

.sc-wipe-body {
  padding: 18px 20px;
}

.sc-wipe-warning {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: #00ff41;
}

.sc-wipe-peer {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(0, 255, 65, 0.12);
  border: 1px solid rgba(0, 255, 65, 0.4);
  color: #00ff41;
}

.sc-wipe-details {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid #ff003c;
  padding: 12px 14px;
  margin: 14px 0;
}

.sc-wipe-stage {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: rgba(0, 255, 65, 0.85);
}
.sc-wipe-stage:last-child {
  margin-bottom: 0;
}

.sc-wipe-bullet {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: -2px;
}

.sc-wipe-scope {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 0;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 65, 0.2);
  transition: all 0.15s;
  font-size: 13px;
}

.sc-wipe-scope:hover {
  background: rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.5);
}

.sc-wipe-scope input[type="radio"] {
  accent-color: #00ff41;
  cursor: pointer;
}

.sc-wipe-typehere {
  margin: 18px 0 6px;
  font-size: 13px;
  color: rgba(0, 255, 65, 0.85);
}

.sc-wipe-typehere code {
  background: rgba(255, 0, 60, 0.2);
  color: #ff003c;
  padding: 2px 8px;
  font-family: var(--sc-mono);
  letter-spacing: 2px;
  font-weight: bold;
  border: 1px solid rgba(255, 0, 60, 0.5);
}

.sc-wipe-confirm-input {
  width: 100%;
  background: #000;
  border: 1px solid rgba(0, 255, 65, 0.4);
  color: #00ff41;
  font-family: var(--sc-mono);
  font-size: 16px;
  letter-spacing: 4px;
  padding: 10px 14px;
  text-transform: uppercase;
  text-align: center;
  box-sizing: border-box;
  caret-color: #00ff41;
  outline: none;
  transition: all 0.2s;
}

.sc-wipe-confirm-input:focus {
  border-color: #00ff41;
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
}

.sc-wipe-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  margin-top: 14px;
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.3);
  font-size: 12px;
  color: #00ff41;
}

.sc-wipe-progress-icon {
  font-size: 18px;
  animation: sc-spin 1.5s linear infinite;
}

.sc-wipe-actions {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 0, 60, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.sc-wipe-cancel,
.sc-wipe-confirm {
  flex: 1;
  padding: 12px;
  font-family: var(--sc-mono);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  text-transform: uppercase;
  transition: all 0.15s;
}

.sc-wipe-cancel {
  border-color: rgba(0, 255, 65, 0.5);
  color: #00ff41;
}

.sc-wipe-cancel:hover:not(:disabled) {
  background: rgba(0, 255, 65, 0.1);
  border-color: #00ff41;
}

.sc-wipe-confirm {
  border-color: rgba(255, 0, 60, 0.4);
  color: rgba(255, 0, 60, 0.5);
  cursor: not-allowed;
}

.sc-wipe-confirm.sc-wipe-ready {
  background: rgba(255, 0, 60, 0.15);
  border-color: #ff003c;
  color: #ff003c;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.4);
  animation: sc-wipe-ready-pulse 1.5s ease-in-out infinite;
}

@keyframes sc-wipe-ready-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 0, 60, 0.4); }
  50% { box-shadow: 0 0 20px rgba(255, 0, 60, 0.7), 0 0 40px rgba(255, 0, 60, 0.3); }
}

.sc-wipe-confirm.sc-wipe-ready:hover:not(:disabled) {
  background: rgba(255, 0, 60, 0.3);
  color: #fff;
}

/* Danger položka v chat menu */
.sc-chat-menu-danger {
  color: #ff003c !important;
  border-top: 1px solid rgba(255, 0, 60, 0.3) !important;
  margin-top: 4px;
}

.sc-chat-menu-danger:hover {
  background: rgba(255, 0, 60, 0.15) !important;
}


/* ============================================
   v0.8.0 - VELO SPLASH SCREEN
   Modern CSS features:
   - @property typed custom properties for animation
   - conic-gradient animated swirl
   - backdrop-filter blur
   - mask-image shimmer text
   - prefers-reduced-motion respected
   ============================================ */

/* Typed custom property pre animated conic gradient angle */
@property --velo-conic-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --velo-shimmer-x {
  syntax: '<percentage>';
  initial-value: -100%;
  inherits: false;
}

.velo-splash {
  position: fixed !important;
  inset: 0;
  z-index: 2147483647;
  background: #0a0a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Background swirl - conic gradient ktorý sa otáča */
.velo-splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.velo-splash-conic {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from var(--velo-conic-angle),
    #5b8df7 0deg,
    #a557d5 90deg,
    #5b8df7 180deg,
    #6dd9ff 270deg,
    #5b8df7 360deg
  );
  filter: blur(80px);
  opacity: 0.35;
  animation: velo-spin 8s linear infinite;
}

@keyframes velo-spin {
  to { --velo-conic-angle: 360deg; }
}

.velo-splash-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(40px);
  background: radial-gradient(circle at 50% 50%,
    rgba(91, 141, 247, 0.08) 0%,
    rgba(10, 10, 26, 0.4) 60%,
    rgba(10, 10, 26, 0.95) 100%
  );
}

/* Content stack */
.velo-splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Logo */
.velo-splash-logo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.velo-splash-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(91, 141, 247, 0.6))
          drop-shadow(0 0 48px rgba(165, 87, 213, 0.3));
  animation: velo-logo-entry 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes velo-logo-entry {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-30deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Glowing pulse za logom */
.velo-splash-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 141, 247, 0.6) 0%, transparent 70%);
  animation: velo-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes velo-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* Text "VELO" so shimmer efektom cez mask-image */
.velo-splash-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: velo-text-entry 0.8s ease-out 0.4s both;
}

@keyframes velo-text-entry {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.velo-splash-name {
  font-family: 'Courier New', monospace;
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 12px;
  color: #fff;
  text-shadow: 0 0 24px rgba(91, 141, 247, 0.8),
               0 0 48px rgba(91, 141, 247, 0.4);
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 40%,
    #6dd9ff 50%,
    #ffffff 60%,
    #ffffff 100%
  );
  background-size: 200% 100%;
  background-position: var(--velo-shimmer-x) 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: velo-shimmer 2.4s ease-in-out infinite;
}

@keyframes velo-shimmer {
  0%, 100% { --velo-shimmer-x: -100%; }
  50% { --velo-shimmer-x: 100%; }
}

.velo-splash-tagline {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Loader bar */
.velo-splash-loader {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  animation: velo-text-entry 0.8s ease-out 0.6s both;
}

.velo-splash-loader-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #5b8df7,
    #a557d5,
    transparent
  );
  animation: velo-loader 1.5s ease-in-out infinite;
}

@keyframes velo-loader {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Exit animation */
.velo-splash.velo-splash-exit {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

/* Reduced motion - dôležité pre accessibility */
@media (prefers-reduced-motion: reduce) {
  .velo-splash-conic,
  .velo-splash-pulse,
  .velo-splash-name,
  .velo-splash-loader-bar,
  .velo-splash-logo {
    animation: none !important;
  }
  .velo-splash-name {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }
}

.velo-splash-reduced .velo-splash-name {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .velo-splash-logo-wrap {
    width: 120px;
    height: 120px;
  }
  .velo-splash-name {
    font-size: 36px;
    letter-spacing: 8px;
  }
  .velo-splash-tagline {
    font-size: 10px;
    letter-spacing: 3px;
  }
}


/* ============================================
   v0.9.0 - HLASOVÉ SPRÁVY
   ============================================ */

/* Recording overlay */
.sc-voice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sc-voice-fadein 0.2s ease-out;
}

@keyframes sc-voice-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sc-voice-card {
  background: #050d05;
  border: 2px solid #5b8df7;
  box-shadow: 0 0 40px rgba(91, 141, 247, 0.5);
  padding: 24px;
  max-width: 90%;
  width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-voice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #00ff41;
  font-family: var(--sc-mono);
  font-size: 14px;
}

.sc-voice-indicator {
  color: #ff003c;
  font-size: 20px;
  animation: sc-voice-blink 1s ease-in-out infinite;
}

@keyframes sc-voice-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.sc-voice-label {
  flex: 1;
}

.sc-voice-time {
  font-family: var(--sc-mono);
  font-weight: bold;
  color: #5b8df7;
  font-size: 16px;
  letter-spacing: 1px;
}

.sc-voice-canvas {
  width: 100%;
  height: 80px;
  background: rgba(91, 141, 247, 0.05);
  border: 1px solid rgba(91, 141, 247, 0.3);
}

.sc-voice-hint {
  font-size: 11px;
  color: rgba(0, 255, 65, 0.6);
  text-align: center;
  font-family: var(--sc-mono);
}

.sc-voice-buttons {
  display: flex;
  gap: 12px;
}

.sc-voice-cancel,
.sc-voice-send {
  flex: 1;
  padding: 12px;
  font-family: var(--sc-mono);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  text-transform: uppercase;
  transition: all 0.15s;
}

.sc-voice-cancel {
  border-color: rgba(255, 0, 60, 0.5);
  color: #ff003c;
}

.sc-voice-cancel:hover {
  background: rgba(255, 0, 60, 0.15);
  border-color: #ff003c;
}

.sc-voice-send {
  border-color: #5b8df7;
  color: #5b8df7;
  background: rgba(91, 141, 247, 0.1);
  box-shadow: 0 0 12px rgba(91, 141, 247, 0.4);
}

.sc-voice-send:hover {
  background: rgba(91, 141, 247, 0.25);
  color: #fff;
}

/* Send progress toast */
.sc-voice-send-progress {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #5b8df7;
  color: #5b8df7;
  padding: 10px 18px;
  font-family: var(--sc-mono);
  font-size: 12px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-voice-send-icon {
  animation: sc-spin 1.5s linear infinite;
}

/* Voice message in chat - player */
.sc-msg-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 141, 247, 0.08);
  border: 1px solid rgba(91, 141, 247, 0.3);
  padding: 10px 12px;
  border-radius: 4px;
  max-width: 320px;
  min-width: 280px;
}

.sc-voice-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5b8df7;
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.sc-voice-play:hover:not(:disabled) {
  background: #6da0ff;
  box-shadow: 0 0 12px rgba(91, 141, 247, 0.5);
}

.sc-voice-play:disabled {
  opacity: 0.6;
  cursor: wait;
}

.sc-voice-waveform {
  flex: 1;
  height: 36px;
  cursor: pointer;
  border-radius: 2px;
}

.sc-msg-voice .sc-voice-time {
  font-size: 11px;
  color: rgba(0, 255, 65, 0.8);
  font-family: var(--sc-mono);
  min-width: 36px;
  text-align: right;
}

.sc-voice-speed {
  width: 32px;
  height: 28px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.4);
  color: #00ff41;
  font-family: var(--sc-mono);
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.sc-voice-speed:hover {
  background: rgba(0, 255, 65, 0.2);
}

.sc-msg-voice.sc-voice-error {
  opacity: 0.5;
  border-color: rgba(255, 0, 60, 0.4);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .sc-msg-voice {
    min-width: 240px;
    max-width: 280px;
  }
  .sc-voice-card {
    padding: 16px;
  }
  .sc-voice-canvas {
    height: 60px;
  }
}


/* v0.9.2 - Direct wipe button v hlavičke chatu */
.sc-chat-wipe-btn {
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
  padding: 2px 8px;
  border: 1px solid rgba(255, 0, 60, 0.5);
  font-size: 14px;
  transition: all 0.15s;
  color: #ff003c;
  user-select: none;
}
.sc-chat-wipe-btn:hover {
  background: rgba(255, 0, 60, 0.2);
  border-color: #ff003c;
  box-shadow: 0 0 8px rgba(255, 0, 60, 0.5);
}

/* v0.9.2 - Fix z-index pre dialog (musí byť nad .sc-fullscreen-host = 2147483640) */
dialog.sc-wipe-dialog {
  z-index: 2147483647;
}

/* Wipe dialog tiež môže byť skrytý za fullscreen - appendovať treba do .sc-fullscreen-host */

/* Fix menu pozícionovania ak je v .sc-fullscreen-host */
.sc-fullscreen-host .sc-chat-menu {
  position: fixed;
  z-index: 2147483647 !important;
}


/* ============================================
   v0.10.0 - VIDEO NOTES (Telegram-style round)
   ============================================ */

/* Recording overlay */
.sc-videonote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sc-voice-fadein 0.2s ease-out;
}

.sc-videonote-card {
  background: #050d05;
  border: 2px solid #5b8df7;
  box-shadow: 0 0 40px rgba(91, 141, 247, 0.5);
  padding: 20px;
  max-width: 90%;
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sc-videonote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #00ff41;
  font-family: var(--sc-mono);
  font-size: 13px;
}

.sc-videonote-time {
  color: #5b8df7;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Circle live preview */
.sc-videonote-circle-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}

.sc-videonote-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
  background: #000;
}

/* Pulsing ring during recording */
.sc-videonote-rec-ring {
  position: absolute;
  inset: -6px;
  border: 3px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.3s;
}

.sc-videonote-rec-ring.recording {
  border-color: #ff003c;
  animation: sc-videonote-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(255, 0, 60, 0.6);
}

@keyframes sc-videonote-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

.sc-videonote-hint {
  font-size: 11px;
  color: rgba(0, 255, 65, 0.6);
  text-align: center;
  font-family: var(--sc-mono);
}

.sc-videonote-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.sc-videonote-cancel,
.sc-videonote-switch,
.sc-videonote-rec {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: 1px solid;
  background: transparent;
  transition: all 0.15s;
  font-family: inherit;
}

.sc-videonote-cancel {
  border-color: rgba(255, 0, 60, 0.5);
  color: #ff003c;
}
.sc-videonote-cancel:hover {
  background: rgba(255, 0, 60, 0.2);
  border-color: #ff003c;
}

.sc-videonote-switch {
  border-color: rgba(0, 255, 65, 0.5);
  color: #00ff41;
}
.sc-videonote-switch:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: #00ff41;
  transform: rotate(180deg);
}

.sc-videonote-rec {
  width: 64px;
  height: 64px;
  border-color: #ff003c;
  color: #ff003c;
  background: rgba(255, 0, 60, 0.1);
  font-size: 28px;
  box-shadow: 0 0 16px rgba(255, 0, 60, 0.4);
}
.sc-videonote-rec:hover {
  background: rgba(255, 0, 60, 0.3);
  transform: scale(1.05);
}
.sc-videonote-rec.recording {
  background: #ff003c;
  color: #fff;
  animation: sc-videonote-pulse 1.2s ease-in-out infinite;
}

/* Send progress toast */
.sc-videonote-send-progress {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #5b8df7;
  color: #5b8df7;
  padding: 10px 18px;
  font-family: var(--sc-mono);
  font-size: 12px;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-videonote-send-icon {
  animation: sc-spin 1.5s linear infinite;
}

/* ============================================
   VIDEO NOTE v správe (round circle player)
   ============================================ */

.sc-msg-videonote {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: #050d05;
  box-shadow: 0 0 20px rgba(91, 141, 247, 0.3);
  cursor: pointer;
}

.sc-videonote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Play overlay - mizne keď user klikne */
.sc-videonote-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(91, 141, 247, 0.8);
  pointer-events: auto;
}

.sc-msg-videonote.sc-videonote-playing .sc-videonote-overlay-play {
  opacity: 0;
  pointer-events: none;
}

/* Mute button v rohu */
.sc-videonote-mute {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* Duration v ľavom dolnom rohu */
.sc-videonote-duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-family: var(--sc-mono);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.sc-msg-videonote.sc-videonote-error {
  border: 2px dashed #ff003c;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .sc-videonote-circle-wrap {
    width: 220px;
    height: 220px;
  }
  .sc-msg-videonote {
    width: 180px;
    height: 180px;
  }
  .sc-videonote-overlay-play {
    font-size: 44px;
  }
  .sc-videonote-card {
    padding: 14px;
  }
}


/* ============================================
   v0.11.0 - SEARCH + PIN
   ============================================ */

/* ── Search bar ─────────────────────────────── */
.sc-search-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #050d05;
  border: 1px solid #00ff41;
  box-shadow: 0 4px 24px rgba(0, 255, 65, 0.3);
  padding: 6px 10px;
  z-index: 2147483646;
  max-width: 600px;
  width: 90%;
  animation: sc-search-slide 0.2s ease-out;
}

@keyframes sc-search-slide {
  from { transform: translate(-50%, -30px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.sc-search-icon {
  color: #00ff41;
  font-size: 14px;
  flex-shrink: 0;
}

.sc-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #00ff41;
  font-family: var(--sc-mono);
  font-size: 14px;
  padding: 4px 6px;
  caret-color: #00ff41;
}

.sc-search-input::placeholder {
  color: rgba(0, 255, 65, 0.4);
}

.sc-search-counter {
  font-family: var(--sc-mono);
  font-size: 11px;
  color: rgba(0, 255, 65, 0.7);
  white-space: nowrap;
  padding: 2px 6px;
  border: 1px solid rgba(0, 255, 65, 0.3);
  min-width: 50px;
  text-align: center;
}

.sc-search-counter.sc-search-empty {
  color: #ff003c;
  border-color: rgba(255, 0, 60, 0.4);
}

.sc-search-prev,
.sc-search-next,
.sc-search-close {
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: #00ff41;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.15s;
  font-family: var(--sc-mono);
}

.sc-search-prev:hover,
.sc-search-next:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: #00ff41;
}

.sc-search-close:hover {
  background: rgba(255, 0, 60, 0.2);
  border-color: #ff003c;
  color: #ff003c;
}

/* Match highlight v texte */
mark.sc-search-mark {
  background: #00ff41;
  color: #000;
  padding: 0 2px;
  font-weight: bold;
  border-radius: 2px;
}

/* Current match - kompletná správa zvýraznená */
.sc-msg.sc-search-current {
  outline: 2px solid #00ff41;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.6);
  transition: all 0.2s;
}

/* ── Pinned banner ──────────────────────────── */
.sc-pinned-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(91, 141, 247, 0.1);
  border-bottom: 1px solid rgba(91, 141, 247, 0.3);
  border-left: 3px solid #5b8df7;
  color: #00ff41;
  font-family: var(--sc-mono);
  cursor: pointer;
  font-size: 12px;
  animation: sc-pinned-slide 0.3s ease-out;
}

@keyframes sc-pinned-slide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sc-pinned-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.sc-pinned-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.sc-pinned-label {
  font-size: 10px;
  color: #5b8df7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.sc-pinned-count {
  background: #5b8df7;
  color: #000;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: bold;
}

.sc-pinned-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(0, 255, 65, 0.9);
}

.sc-pinned-list-btn,
.sc-pinned-close {
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: #00ff41;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.sc-pinned-list-btn:hover {
  background: rgba(0, 255, 65, 0.15);
}

.sc-pinned-close:hover {
  background: rgba(255, 0, 60, 0.2);
  color: #ff003c;
}

/* Pinned message v chate - subtle indicator */
.sc-msg.sc-msg-pinned {
  border-left: 2px solid #5b8df7;
}

.sc-msg-pin-badge {
  display: inline-block;
  font-size: 9px;
  opacity: 0.7;
}

/* Highlight pri scroll k pinned */
.sc-msg.sc-msg-highlight {
  animation: sc-msg-highlight-flash 2s ease-out;
}

@keyframes sc-msg-highlight-flash {
  0% { background: rgba(91, 141, 247, 0.4); box-shadow: 0 0 20px rgba(91, 141, 247, 0.6); }
  100% { background: transparent; box-shadow: none; }
}

/* ── Pinned dialog (zoznam) ─────────────────── */
.sc-pinned-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sc-voice-fadein 0.2s ease-out;
}

.sc-pinned-dialog-card {
  background: #050d05;
  border: 2px solid #5b8df7;
  box-shadow: 0 0 40px rgba(91, 141, 247, 0.4);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.sc-pinned-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(91, 141, 247, 0.15);
  border-bottom: 1px solid rgba(91, 141, 247, 0.3);
  color: #5b8df7;
  font-family: var(--sc-mono);
  font-weight: bold;
}

.sc-pinned-dialog-close {
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: #00ff41;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-family: inherit;
}

.sc-pinned-dialog-close:hover {
  background: rgba(255, 0, 60, 0.2);
  color: #ff003c;
}

.sc-pinned-dialog-list {
  overflow-y: auto;
  flex: 1;
}

.sc-pinned-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  cursor: pointer;
  transition: background 0.15s;
}

.sc-pinned-item:hover {
  background: rgba(0, 255, 65, 0.08);
}

.sc-pinned-item-text {
  flex: 1;
  color: #00ff41;
  font-family: var(--sc-mono);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-pinned-item-meta {
  font-size: 10px;
  color: rgba(0, 255, 65, 0.5);
  font-family: var(--sc-mono);
  flex-shrink: 0;
}

.sc-pinned-item-unpin {
  background: transparent;
  border: 1px solid rgba(255, 0, 60, 0.3);
  color: #ff003c;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

.sc-pinned-item-unpin:hover {
  background: rgba(255, 0, 60, 0.2);
}

