/* Fortress Secure WebChat Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;800&display=swap');

:root {
  --bg-dark: #070b12;
  --bg-panel: #0d131f;
  --bg-card: rgba(15, 23, 42, 0.85);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(0, 245, 160, 0.3);
  --accent-cyan: #00f5a0;
  --accent-blue: #00d9f5;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --bubble-out: #005c4b;
  --bubble-in: #1f2c34;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-main);
  color: var(--text-primary);
  font-size: 15px;
}

.chat-app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

/* Header */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(11, 16, 26, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shield-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.35);
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.shield-indicator.shield-connected {
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.4);
}

.target-identity-block {
  min-width: 0;
}

.target-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.target-title-row h2 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.badge-line {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.target-subtitle {
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--accent-cyan); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-head-action {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-save-quick:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-destruct-quick:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn-end-session {
  width: 30px;
  padding: 0;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-end-session:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--accent-red);
  color: #fff;
}

/* Privacy Ribbon */
.privacy-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 245, 160, 0.05);
  border-bottom: 1px solid rgba(0, 245, 160, 0.18);
  padding: 5px 14px;
  font-size: 0.68rem;
  color: #94a3b8;
  gap: 10px;
  flex-shrink: 0;
}

.ribbon-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-identity-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(0, 245, 160, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Messages Stream */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at 50% 10%, rgba(15, 23, 42, 0.4), transparent 80%), #070b12;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.chat-loading {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 245, 160, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

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

.messages-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.welcome-card {
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin: 10px auto 16px;
  max-width: 440px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.welcome-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.welcome-card h3 {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 4px;
}

.welcome-rules {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 245, 160, 0.05);
  padding: 8px;
  border-radius: 6px;
  border: 1px dashed rgba(0, 245, 160, 0.2);
}

/* Message Bubbles */
.msg-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.35;
  word-wrap: break-word;
  position: relative;
  animation: popIn 0.18s ease-out;
}

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

.msg-out {
  align-self: flex-end;
  background: var(--bubble-out);
  color: #e9edef;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.msg-in {
  align-self: flex-start;
  background: var(--bubble-in);
  color: #d1d7db;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.msg-sender-tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 2px;
  display: block;
}

.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.msg-ticks {
  color: var(--accent-blue);
  font-weight: 800;
}

.msg-dlp-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  font-size: 0.6rem;
  padding: 1px 4px;
  margin-top: 4px;
  display: inline-block;
}

/* Clickable WebChat links */
.chat-clickable-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: 6px;
  margin: 3px 0;
  word-break: break-all;
  transition: all 0.18s ease;
  cursor: pointer;
  vertical-align: middle;
}

.chat-clickable-link:hover {
  background: rgba(56, 189, 248, 0.35);
  color: #fff !important;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
  text-decoration: underline;
}

.chat-clickable-link .link-icon {
  font-size: 0.72rem;
}

.chat-clickable-link .link-arrow {
  font-size: 0.78rem;
  opacity: 0.8;
  transition: transform 0.15s ease;
}

.chat-clickable-link:hover .link-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-size: 0.7rem;
  color: var(--accent-blue);
  background: rgba(11, 16, 26, 0.8);
  flex-shrink: 0;
}

.typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-right: 2px;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Bar */
.chat-input-bar {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

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

.input-group {
  flex: 1;
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 160, 0.2);
}

.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  resize: none;
  max-height: 100px;
  line-height: 1.35;
}

.input-group textarea::placeholder {
  color: #64748b;
  font-size: 0.8rem;
}

.btn-send {
  background: linear-gradient(135deg, #00f5a0, #00d9f5);
  color: #050d1a;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.5);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-card {
  background: #0d131f;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.modal-badge-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.modal-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.modal-prompt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-choice-save {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-choice-save:hover {
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.btn-choice-destruct {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-choice-destruct:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.choice-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.choice-content strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.choice-content span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.btn-cancel-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s ease;
}

.btn-cancel-modal:hover {
  color: #fff;
}

/* Toast Notification */
.toast-popup {
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 120;
  white-space: nowrap;
}

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

/* High Security Access Denied Enclave */
.access-denied-card {
  margin: auto;
  max-width: 480px;
  width: 92%;
  background: linear-gradient(180deg, rgba(20, 10, 15, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.18);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: deniedFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.access-denied-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
}

@keyframes deniedFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.denied-shield-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.denied-shield-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
  z-index: 2;
  position: relative;
}

.denied-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.4);
  animation: deniedPulse 2s infinite ease-out;
}

@keyframes deniedPulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.denied-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.denied-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.denied-reason {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 20px;
}

.denied-protocol-box {
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.protocol-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.protocol-row .p-lbl {
  color: #64748b;
  font-weight: 600;
}

.protocol-row .p-val {
  color: #cbd5e1;
  font-weight: 700;
}

.denied-hint {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid #38bdf8;
  text-align: left;
}

/* Incoming Call Modal Styles */
.incoming-call-card {
  max-width: 360px;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 50px rgba(16, 185, 129, 0.25);
  animation: callPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes callPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.incoming-pulse-box {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring-call {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  animation: callRingPulse 2s ease-out infinite;
}

.pulse-ring-call.delay {
  animation-delay: 0.8s;
}

@keyframes callRingPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.incoming-avatar-badge {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}

.call-badge-sec {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.incoming-call-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn-inc-action {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-inc-action:active {
  transform: scale(0.95);
}

.btn-inc-decline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-inc-decline:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-inc-answer {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-inc-answer:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 4px 22px rgba(16, 185, 129, 0.6);
}

/* ==========================================
   EPHEMERAL MEDIA & AUTO-BURN STYLES
   ========================================== */

.btn-attach {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-attach:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.btn-attach:active {
  transform: scale(0.92);
}

.ephemeral-media-wrapper {
  margin-top: 6px;
  margin-bottom: 6px;
  border-radius: 12px;
  overflow: hidden;
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  max-width: 320px;
}

.ephemeral-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.ephemeral-blur {
  filter: blur(28px) brightness(0.6);
  pointer-events: none;
  user-select: none;
}

.ephemeral-reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(8, 12, 20, 0.65);
  backdrop-filter: blur(8px);
  padding: 16px;
  text-align: center;
}

.btn-reveal-media {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-reveal-media:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.ephemeral-burn-bar-container {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.ephemeral-burn-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  transition: width 1s linear;
}

.ephemeral-timer-text {
  font-size: 11px;
  color: #fbbf24;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
}

.ephemeral-burned-card {
  padding: 18px 14px;
  text-align: center;
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #f87171;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Ring Permission Alert Banner */
.ring-permission-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(16, 185, 129, 0.2));
  border-bottom: 1.5px solid rgba(0, 245, 160, 0.4);
  box-shadow: 0 4px 18px rgba(0, 245, 160, 0.15);
  animation: pulse-border 2.5s infinite;
  z-index: 15;
}

@keyframes pulse-border {
  0%, 100% { border-bottom-color: rgba(0, 245, 160, 0.4); }
  50% { border-bottom-color: rgba(56, 189, 248, 0.8); }
}

.ring-alert-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ring-bell-icon {
  font-size: 24px;
  animation: ring-shake 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes ring-shake {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(14deg); }
  90% { transform: rotate(-14deg); }
  95% { transform: rotate(10deg); }
}

.ring-alert-text {
  font-size: 0.8rem;
  line-height: 1.35;
}

.ring-alert-text strong {
  display: block;
  color: #38bdf8;
  font-size: 0.85rem;
}

.ring-alert-text span {
  color: #cbd5e1;
  font-size: 0.74rem;
}

.btn-enable-ring {
  background: linear-gradient(135deg, #00f5a0, #00d9f5);
  color: #051a0d;
  font-weight: 800;
  font-size: 0.82rem;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 245, 160, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.btn-enable-ring:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 245, 160, 0.5);
}

/* Lines Directory Item */
.line-directory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.line-directory-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
}

.line-info-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.line-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.line-num-badge {
  background: rgba(0, 245, 160, 0.15);
  color: #00f5a0;
  border: 1px solid rgba(0, 245, 160, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.line-name-txt {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
}

.line-id-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.line-actions-row {
  display: flex;
  gap: 6px;
}

.btn-line-act {
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-line-act:hover {
  transform: translateY(-1px);
}

.btn-line-chat {
  background: rgba(2, 132, 199, 0.85);
  color: #fff;
}

.btn-line-call {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}




