/* rtcMessenger Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* ── Panel Layout ─────────────────────────── */

.messenger-panel {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    color: white;
    font-family: Inter, system-ui, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Top Bar ─────────────────────────────── */

.top-bar {
    padding: 8px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-title {
    font-size: 0.9rem;
    font-weight: bold;
}

.connection-status {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.connection-status.connected {
    color: #22c55e;
}

.connection-status.disconnected {
    color: #ef4444;
}

/* ── Main Content (sidebar + chat) ───────── */

.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ── Sidebar ─────────────────────────────── */

.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #334155;
    background: #0f172a;
}

/* ── Chat Area ───────────────────────────── */

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #0f172a;
}

/* ── Chat Header ─────────────────────────── */

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.chat-header-status {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
}

.chat-header-status.status-online {
    color: #22c55e;
}

.chat-header-status.status-offline {
    color: #64748b;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.call-btn {
    background: #334155;
    border: none;
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.call-btn:hover {
    background: #475569;
}

/* ── Call Bar (visible during active calls) ── */

.call-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #166534;
    border-bottom: 1px solid #22c55e;
    flex-shrink: 0;
    animation: fade-in 0.2s ease;
}

.call-bar-info {
    font-size: 0.85rem;
    color: #dcfce7;
}

.call-bar-name {
    font-weight: 600;
}

.call-bar-actions {
    display: flex;
    gap: 8px;
}

.call-bar-actions .btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: #dcfce7;
    cursor: pointer;
    transition: background 0.15s;
}

.call-bar-actions .btn:hover {
    background: rgba(255,255,255,0.2);
}

.call-bar-actions .btn.active {
    background: #22c55e;
    color: #052e16;
}

.call-bar-end {
    background: #dc2626 !important;
    color: white !important;
    border-color: #ef4444 !important;
}

.call-bar-end:hover {
    background: #ef4444 !important;
}

/* ── Contacts List ────────────────────────── */

.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.panel-footer {
    padding: 10px;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.my-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.my-name-display {
    color: #e2e8f0;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
    transition: color 0.15s;
}

.my-name-display:hover {
    color: #6366f1;
}

.rename-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.rename-btn:hover {
    opacity: 1;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Rename Dialog ───────────────────────── */

.rename-dialog {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fade-in 0.15s ease;
}

.rename-dialog-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.rename-dialog-title {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.rename-input {
    width: 100%;
    padding: 8px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.rename-input:focus {
    border-color: #6366f1;
}

.rename-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.rename-cancel,
.rename-save {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
}

.rename-cancel {
    background: #334155;
    color: #94a3b8;
}

.rename-cancel:hover {
    background: #475569;
}

.rename-save {
    background: #6366f1;
    color: #fff;
}

.rename-save:hover {
    background: #4f46e5;
}

.rename-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Delete Confirmation ─────────────────── */

.delete-confirm-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    background: #dc2626;
    color: #fff;
}

.delete-confirm-btn:hover {
    background: #b91c1c;
}

.delete-chat-warning {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

/* ── Hub Toggle ───────────────────────────── */

.hub-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
    background: #1e293b;
    border: 1px solid #334155;
    font-size: 0.8rem;
    transition: border-color 0.15s, color 0.15s;
}

.hub-toggle-label:hover {
    border-color: #475569;
    color: #cbd5e1;
}

.hub-toggle-label input[type="checkbox"] {
    accent-color: #22c55e;
}

#hub-label {
    font-size: 0.75rem;
}

.hub-label-active {
    color: #22c55e !important;
}

/* ── Contact Item ─────────────────────────── */

.contact-item {
    padding: 10px 12px;
    border-bottom: 1px solid #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}

.contact-item:hover {
    background: #1e293b;
}

.contact-item.selected {
    background: #334155;
}

.contact-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.contact-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.contact-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.contact-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.contact-time {
    font-size: 0.65rem;
    color: #64748b;
    flex-shrink: 0;
}

.contact-preview {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-badges {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Unread Badge ─────────────────────────── */

.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background-color: #3b82f6;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Chat Messages ────────────────────────── */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    animation: msg-in 0.2s ease-out;
}

.msg-remote {
    align-self: flex-start;
    background-color: #334155;
    border-bottom-left-radius: 2px;
}

.msg-self {
    align-self: flex-end;
    background-color: #4f46e5;
    border-bottom-right-radius: 2px;
}

.msg-system {
    align-self: center;
    background-color: transparent;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.85rem;
}

.msg-meta {
    font-size: 0.7rem;
    margin-bottom: 2px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Search Bar ───────────────────────────── */

.search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #334155;
    background: #1e293b;
    flex-shrink: 0;
}

.search-icon {
    font-size: 0.85rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 0.85rem;
    outline: none;
    padding: 4px 0;
}

.search-input::placeholder {
    color: #64748b;
}

.search-clear {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.search-clear:hover {
    color: #e2e8f0;
}

.search-highlight {
    background: #eab308;
    color: #0f172a;
    border-radius: 2px;
    padding: 0 1px;
}

/* ── Chat Controls ────────────────────────── */

.chat-controls {
    padding: 10px;
    border-top: 1px solid #334155;
    background: #1e293b;
    flex-shrink: 0;
}

.media-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.media-buttons {
    display: flex;
    gap: 5px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.media-btn {
    font-size: 1rem;
    padding: 6px 10px;
    background: #334155;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.media-btn:hover {
    background: #475569;
}

.media-btn.active {
    background: #ef4444;
    color: white;
}

.file-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-input-row {
    display: flex;
    gap: 5px;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #475569;
    background: #0f172a;
    color: white;
    font-size: inherit;
}

.chat-input:focus {
    outline: 2px solid #6366f1;
    border-color: transparent;
}

.send-btn {
    padding: 0 15px;
    background: #3b82f6;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.send-btn:hover {
    background: #2563eb;
}

/* ── Video Overlay (fullscreen) ──────────── */

.video-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75%;
    z-index: 500;
    background: #000;
    flex-direction: column;
    border-bottom: 2px solid #334155;
    border-radius: 0 0 12px 12px;
}

.video-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    background: #020617;
    position: relative;
}

.video-container {
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.video-container.remote {
    flex: 1;
    min-width: 300px;
    height: 100%;
    border-radius: 0;
}

.video-container.local {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 180px;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    z-index: 20;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    pointer-events: none;
}

.video-controls {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-shrink: 0;
}

.btn-video {
    font-size: 1rem;
    padding: 10px 20px;
    background: #334155;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

.btn-video:hover {
    background: #475569;
}

.btn-video.active {
    background: #ef4444;
}

.btn-end-call {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.btn-end-call:hover {
    background: #dc2626;
}

.video-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #475569;
}

.video-empty-state svg {
    opacity: 0.4;
}

.video-empty-state span {
    font-size: 0.9rem;
}

/* ── Audio Controls (Web Audio API) ───────── */

.audio-controls {
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid #334155;
    display: none;
    flex-direction: column;
    gap: 6px;
}

.audio-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.audio-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.audio-label {
    font-size: 0.75rem;
    color: #94a3b8;
    min-width: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vu-meter {
    flex: 1;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
    min-width: 40px;
}

.vu-meter-fill {
    height: 100%;
    width: 0%;
    background: #22c55e;
    border-radius: 3px;
    transition: width 0.05s linear;
}

.volume-slider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #334155;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    border: 2px solid #0f172a;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    border: 2px solid #0f172a;
}

.volume-slider:hover::-webkit-slider-thumb {
    background: #818cf8;
}

.volume-slider:hover::-moz-range-thumb {
    background: #818cf8;
}

/* ── Unmute Overlay Button ───────────────── */

.unmute-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* ── Call Notification ────────────────────── */

.call-notification {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #334155;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
    border: 1px solid #475569;
    animation: call-pop 0.25s ease-out;
}

.call-text {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    color: white;
}

.call-actions {
    display: flex;
    gap: 15px;
}

.call-accept,
.call-decline {
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.call-accept {
    background: #22c55e;
}

.call-accept:hover {
    background: #16a34a;
}

.call-decline {
    background: #ef4444;
}

.call-decline:hover {
    background: #dc2626;
}

/* ── File Attachments ─────────────────────── */

.file-attachment {
    color: #64748b;
}

.file-attachment a {
    color: #3b82f6;
}

.file-size {
    color: #64748b;
    font-size: 0.8em;
}

.file-decrypt-failed {
    color: #ef4444;
}

.chat-img {
    max-width: 200px;
    border-radius: 4px;
    margin-top: 5px;
}

/* ── Avatar ───────────────────────────────── */

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

.avatar-sm {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
}

/* ── Copy ID Button ───────────────────────── */

.copy-id-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s;
}

.copy-id-btn:hover {
    color: #e2e8f0;
}

/* ── Invite Link Button ──────────────────── */

.invite-link-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: border-color 0.15s, color 0.15s;
}

.invite-link-btn:hover {
    border-color: #6366f1;
    color: #e2e8f0;
}

.invite-link-btn:active {
    background: #334155;
}

/* ── Delivery Status ──────────────────────── */

.status-queued { color: #64748b; }
.status-sent { color: #94a3b8; }
.status-hub { color: #eab308; }
.status-delivered { color: #3b82f6; }
.status-read { color: #22c55e; }

/* ── Scrollbar ────────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

/* ── Focus Visible ────────────────────────── */

.btn:focus-visible,
.chat-input:focus-visible,
.media-btn:focus-visible,
.contact-item:focus-visible,
.btn-video:focus-visible,
.btn-end-call:focus-visible,
.call-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ── Typing Indicator ─────────────────────── */

.typing-indicator {
    font-size: 0.8rem;
    color: #94a3b8;
    padding: 6px 12px;
}

.typing-dots span {
    animation: typing-bounce 1.2s infinite;
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── Chat Empty State ─────────────────────── */

.chat-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* ── File Progress Bar ────────────────────── */

.file-progress {
    align-self: flex-end;
    width: 60%;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    overflow: hidden;
    margin: 2px 0;
}

.file-progress .progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.15s ease;
}

/* ── Toast Notifications ──────────────────── */

.toast-container {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.25s ease-out, toast-out 0.3s ease-in forwards;
    max-width: 90%;
    text-align: center;
    word-break: break-word;
}

.toast-error { background: #dc2626; }
.toast-warning { background: #d97706; }
.toast-info { background: #2563eb; }
.toast-success { background: #16a34a; }

/* ── Animations ───────────────────────────── */

@keyframes msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes call-pop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes typing-bounce {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    0%, 75% { opacity: 1; transform: translateY(0); }
    100%    { opacity: 0; transform: translateY(-10px); }
}

/* ── Context Menu ─────────────────────────── */

.context-menu {
    position: fixed;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 4px 0;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 100000;
    animation: ctx-pop 0.12s ease-out;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #e2e8f0;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: #475569;
}

.context-menu-item.danger {
    color: #ef4444;
}

.context-menu-item.danger:hover {
    background: #7f1d1d;
}

@keyframes ctx-pop {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Responsive (mobile) ─────────────────── */

@media (max-width: 600px) {
    .sidebar {
        width: 64px;
    }
    .contact-info,
    .contact-badges,
    .panel-footer {
        display: none;
    }
    .contact-item {
        justify-content: center;
        padding: 8px;
    }
}
