/* Paste Warning Modal / Protection (Item 5) */
.paste-modal {
position: fixed;
inset: 0;
z-index: 25000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(5, 2, 12, 0.85);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
animation: msg-appear 0.2s ease-out;
}

.paste-modal.hidden {
display: none !important;
}

.paste-modal-card {
width: 90%;
max-width: 480px;
padding: 22px;
border-radius: 16px;
background: rgba(16, 8, 32, 0.96);
border: 1.5px solid rgba(168, 85, 247, 0.6);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.3);
font-family: ui-monospace, monospace;
}

.paste-modal-title {
font-size: 1.05rem;
font-weight: 700;
color: #c084fc;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 8px;
}

.paste-modal-body {
font-size: 0.85rem;
color: #e2e8f0;
line-height: 1.5;
margin-bottom: 16px;
}

.paste-modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}


/* ─── 4. Client-Side Search HUD & Highlights (#11) ─── */
.search-hud-bar {
position: fixed;
top: 24px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
background: rgba(12, 6, 26, 0.97);
border: 1.5px solid rgba(168, 85, 247, 0.6);
box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(168, 85, 247, 0.4);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-radius: 9999px;
z-index: 15000;
font-family: ui-monospace, monospace;
font-size: 0.85rem;
animation: msg-appear 0.2s ease-out;
}
.search-hud-bar.hidden { display: none !important; }
.search-hud-input {
background: transparent;
border: none;
outline: none;
color: #ffffff;
font-family: inherit;
font-size: 0.9rem;
width: 180px;
caret-color: #34d399;
}
.search-hud-input::placeholder { color: rgba(192, 132, 252, 0.4); }
.search-hud-count {
color: #fbbf24;
font-weight: 700;
font-size: 0.75rem;
white-space: nowrap;
}
.search-nav-btn {
background: rgba(168, 85, 247, 0.15);
border: 1px solid rgba(168, 85, 247, 0.35);
border-radius: 6px;
color: #e9d5ff;
cursor: pointer;
padding: 2px 7px;
font-size: 0.75rem;
transition: all 0.2s;
}
.search-nav-btn:hover {
background: rgba(52, 211, 153, 0.25);
border-color: #34d399;
color: #34d399;
}
.search-highlight {
background: rgba(251, 191, 36, 0.4);
color: #fef08a;
border-bottom: 2px solid #fbbf24;
border-radius: 2px;
box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
padding: 0 1px;
}
.search-highlight.focused-match {
background: rgba(52, 211, 153, 0.65);
color: #ffffff;
border-bottom-color: #34d399;
box-shadow: 0 0 14px rgba(52, 211, 153, 0.9);
}

/* ─── 5. Starred & Pinned Messages Drawer (#21) ─── */
.pinned-drawer {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 320px;
max-width: 85vw;
background: rgba(10, 5, 22, 0.97);
border-left: 1.5px solid rgba(168, 85, 247, 0.5);
box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.25);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
z-index: 14000;
display: flex;
flex-direction: column;
transform: translateX(100%);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
font-family: ui-monospace, monospace;
}
.pinned-drawer.open {
transform: translateX(0);
}
.pinned-drawer-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
border-bottom: 1px solid rgba(168, 85, 247, 0.3);
font-size: 0.95rem;
font-weight: 700;
color: #fbbf24;
}
.pinned-drawer-list {
flex: 1;
overflow-y: auto;
padding: 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.pinned-item-card {
padding: 10px;
border-radius: 10px;
background: rgba(18, 10, 36, 0.85);
border: 1px solid rgba(168, 85, 247, 0.35);
cursor: pointer;
transition: all 0.2s;
}
.pinned-item-card:hover {
background: rgba(28, 14, 52, 0.95);
border-color: #fbbf24;
box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}
.pinned-item-meta {
display: flex;
justify-content: space-between;
font-size: 0.7rem;
color: #c084fc;
margin-bottom: 4px;
}
.pinned-item-text {
font-size: 0.8rem;
color: #e2e8f0;
line-height: 1.35;
}

/* Discord-Style Cyberpunk File Upload Confirmation Modal */
.upload-confirm-modal {
position: fixed;
inset: 0;
z-index: 24000;
display: flex;
align-items: center;
justify-content: center;
animation: msg-appear 0.2s ease-out;
}
.upload-confirm-modal.hidden {
display: none !important;
}
.upload-confirm-backdrop {
position: absolute;
inset: 0;
background: rgba(4, 2, 10, 0.88);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.upload-confirm-card {
position: relative;
width: 92%;
max-width: 520px;
background: rgba(14, 7, 30, 0.97);
border: 1.5px solid rgba(168, 85, 247, 0.6);
border-radius: 18px;
box-shadow: 0 10px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.3);
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
z-index: 1;
font-family: ui-monospace, monospace;
}
.upload-confirm-header {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(168, 85, 247, 0.25);
padding-bottom: 12px;
}
.upload-confirm-title {
font-size: 1.05rem;
font-weight: 700;
color: #34d399;
display: flex;
align-items: center;
gap: 8px;
}
.upload-preview-list {
display: flex;
flex-direction: column;
gap: 10px;
max-height: 280px;
overflow-y: auto;
}
.upload-preview-list.is-album-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
gap: 8px;
}
.upload-preview-item {
position: relative;
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
border-radius: 12px;
background: rgba(8, 4, 18, 0.9);
border: 1px solid rgba(168, 85, 247, 0.3);
}
.upload-preview-item.is-thumb {
flex-direction: column;
align-items: stretch;
padding: 6px;
gap: 6px;
}
.upload-preview-item.is-thumb .upload-preview-thumb {
width: 100%;
height: 88px;
}
.upload-preview-item.is-thumb .upload-preview-meta {
width: 100%;
}
.upload-preview-remove {
position: absolute;
top: 6px;
right: 6px;
width: 22px;
height: 22px;
border-radius: 50%;
border: 1px solid rgba(244, 63, 94, 0.55);
background: rgba(7, 3, 16, 0.88);
color: #f43f5e;
font-size: 0.72rem;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
z-index: 2;
}
.upload-preview-remove:hover {
background: #f43f5e;
color: #fff;
}
.upload-preview-thumb {
width: 64px;
height: 64px;
border-radius: 8px;
object-fit: cover;
border: 1px solid rgba(52, 211, 153, 0.4);
background: #000;
}
.upload-preview-video {
width: 96px;
height: 64px;
border-radius: 8px;
object-fit: cover;
background: #000;
border: 1px solid rgba(52, 211, 153, 0.4);
}
.upload-preview-item .ghost-waveform-player {
max-width: 240px;
margin-top: 0;
padding: 6px 8px;
}
.upload-preview-icon {
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
color: #34d399;
background: rgba(52, 211, 153, 0.12);
border-radius: 10px;
border: 1px solid rgba(52, 211, 153, 0.35);
box-shadow: 0 0 14px rgba(52, 211, 153, 0.2);
flex-shrink: 0;
}
.upload-preview-meta {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
}
.upload-preview-name {
font-size: 0.88rem;
font-weight: 700;
color: #ffffff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.upload-preview-size {
font-size: 0.74rem;
color: #c084fc;
}
.upload-caption-box {
width: 100%;
}
.upload-caption-input {
width: 100%;
padding: 10px 14px;
background: rgba(7, 3, 16, 0.95);
border: 1px solid rgba(168, 85, 247, 0.5);
border-radius: 10px;
color: #ffffff;
font-family: inherit;
font-size: 0.9rem;
outline: none;
transition: all 0.2s ease;
box-sizing: border-box;
}
.upload-caption-input:focus {
border-color: #34d399;
box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}
.upload-confirm-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding-top: 8px;
border-top: 1px solid rgba(168, 85, 247, 0.2);
}
.upload-confirm-btns {
display: flex;
align-items: center;
gap: 8px;
}

.upload-confirm-btns .msg-edit-btn,
.paste-modal-actions .msg-edit-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 6px 14px;
font-size: 0.8rem;
border-radius: 8px;
}

/* ─── Recording Cancel / Discard Button ─── */
.rec-cancel-btn {
width: 18px;
height: 18px;
border-radius: 50%;
background: rgba(244, 63, 94, 0.2);
border: 1px solid rgba(244, 63, 94, 0.5);
color: #f43f5e;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 9px;
padding: 0;
cursor: pointer;
margin-left: 4px;
transition: all 0.15s ease;
}
.rec-cancel-btn:hover {
background: #f43f5e;
color: #fff;
transform: scale(1.15);
}

/* ─── Cyberpunk Webcam / Camera HUD Modal ─── */
.camera-modal {
position: fixed;
inset: 0;
z-index: 28000;
display: flex;
align-items: center;
justify-content: center;
animation: msg-appear 0.2s ease-out;
}
.camera-modal.hidden {
display: none !important;
}
.camera-modal-backdrop {
position: absolute;
inset: 0;
background: rgba(5, 2, 14, 0.88);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.camera-modal-card {
position: relative;
z-index: 2;
width: 92%;
max-width: 580px;
background: rgba(14, 7, 28, 0.98);
border: 1.5px solid rgba(168, 85, 247, 0.6);
box-shadow: 0 12px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(168, 85, 247, 0.25);
border-radius: 16px;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
font-family: ui-monospace, monospace;
}
.camera-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.camera-modal-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
font-weight: 700;
color: #c084fc;
letter-spacing: 0.06em;
}
.camera-live-pulse {
width: 8px;
height: 8px;
border-radius: 50%;
background: #34d399;
box-shadow: 0 0 10px #34d399;
animation: admin-rec-blink 1.5s infinite;
}
.camera-rec-badge {
background: rgba(244, 63, 94, 0.18);
border: 1px solid rgba(244, 63, 94, 0.6);
color: #f43f5e;
font-size: 0.75rem;
padding: 2px 8px;
border-radius: 6px;
font-weight: 700;
letter-spacing: 0.05em;
}
.camera-header-tools {
display: flex;
align-items: center;
gap: 6px;
}
.camera-tool-btn {
background: rgba(168, 85, 247, 0.15);
border: 1px solid rgba(168, 85, 247, 0.4);
color: #e2e8f0;
font-size: 0.75rem;
font-family: inherit;
padding: 3px 8px;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
}
.camera-tool-btn:hover {
background: rgba(168, 85, 247, 0.35);
color: #fff;
}
.camera-viewport-wrap {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
background: #000;
border-radius: 12px;
overflow: hidden;
border: 1px solid rgba(168, 85, 247, 0.35);
box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}
.camera-video-preview {
width: 100%;
height: 100%;
object-fit: cover;
transform: scaleX(-1);
}
.camera-hud-overlay {
position: absolute;
inset: 0;
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
}
.camera-corner {
position: absolute;
width: 16px;
height: 16px;
border-color: rgba(52, 211, 153, 0.8);
border-style: solid;
}
.corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.corner-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.camera-crosshair {
color: rgba(52, 211, 153, 0.4);
font-size: 1.5rem;
font-weight: 300;
}
.camera-modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 8px;
padding-top: 4px;
}
.camera-action-btn {
font-family: inherit;
font-size: 0.8rem;
font-weight: 600;
padding: 7px 14px;
border-radius: 8px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.15s ease;
border: 1px solid transparent;
}
.camera-action-btn.cancel {
background: rgba(255, 255, 255, 0.05);
color: #94a3b8;
border-color: rgba(255, 255, 255, 0.15);
}
.camera-action-btn.cancel:hover {
background: rgba(244, 63, 94, 0.15);
color: #f43f5e;
border-color: rgba(244, 63, 94, 0.4);
}
.camera-action-btn.photo {
background: rgba(52, 211, 153, 0.15);
color: #34d399;
border-color: rgba(52, 211, 153, 0.4);
}
.camera-action-btn.photo:hover {
background: rgba(52, 211, 153, 0.3);
color: #fff;
box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}
.camera-action-btn.record {
background: rgba(244, 63, 94, 0.2);
color: #f43f5e;
border-color: rgba(244, 63, 94, 0.5);
}
.camera-action-btn.record:hover {
background: rgba(244, 63, 94, 0.35);
color: #fff;
box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}
.camera-action-btn.finish {
background: linear-gradient(135deg, #a855f7, #7e22ce);
color: #fff;
border-color: rgba(168, 85, 247, 0.7);
box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}
.camera-action-btn.finish:hover {
background: linear-gradient(135deg, #c084fc, #a855f7);
}
