/* ===== Emoji Picker ===== */
.emoji-picker {
    position: fixed;
    bottom: 70px;
    left: 30%;
    width: 350px;
    max-height: 350px;
    background: var(--bg-header);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.emoji-picker.hidden {
    display: none;
}

.emoji-categories {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 8px 4px;
    gap: 2px;
    overflow-x: auto;
}

.emoji-category-btn {
    background: none;
    border: none;
    font-size: 20px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.emoji-category-btn:hover,
.emoji-category-btn.active {
    background: var(--bg-active);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    overflow-y: auto;
    max-height: 280px;
}

.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.emoji-item {
    font-size: 24px;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    transition: background 0.1s;
    border: none;
    background: none;
    line-height: 1.2;
}

.emoji-item:hover {
    background: var(--bg-active);
    transform: scale(1.2);
}

/* ===== Call Overlay ===== */
.call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B141A 0%, #1A2C38 50%, #0B141A 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.call-overlay.hidden {
    display: none;
}

.call-content {
    text-align: center;
}

.call-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.call-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.call-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-avatar .avatar-placeholder {
    width: 140px;
    height: 140px;
    font-size: 48px;
}

.call-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    animation: callPulse 1.5s ease-out infinite;
}

@keyframes callPulse {
    0% { width: 140px; height: 140px; opacity: 1; }
    100% { width: 220px; height: 220px; opacity: 0; }
}

.call-name {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.call-status-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.call-timer {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-variant-numeric: tabular-nums;
}

.call-timer.hidden {
    display: none;
}

.call-actions {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.call-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
}

.call-btn:hover {
    transform: scale(1.1);
}

.end-call {
    background: var(--danger);
}

/* ===== Settings Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-modal);
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.setting-group input[type="password"],
.setting-group select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s;
}

.setting-group input[type="password"]:focus,
.setting-group select:focus {
    border-color: var(--accent);
}

.setting-group input[type="checkbox"] {
    accent-color: var(--accent);
    margin-right: 8px;
}

.setting-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
}

.setting-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* ===== Dropdown Menu ===== */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-header);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    z-index: 50;
    min-width: 200px;
    padding: 8px 0;
    margin-top: 4px;
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14.5px;
    font-family: var(--font);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

/* ===== Text Input (shared) ===== */
.text-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s;
}

.text-input:focus {
    border-color: var(--accent);
}

/* ===== Group Creation Modal ===== */
.group-member-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.group-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.group-member-item:hover {
    background: var(--bg-hover);
}

.group-member-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.group-member-item .avatar-img,
.group-member-item .avatar-placeholder {
    width: 36px;
    height: 36px;
}

.group-member-item .member-name {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}

.group-member-item .member-anime {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Group Chat Messages ===== */
.group-sender-name {
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 2px;
    padding-left: 2px;
}

.group-message-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    align-self: flex-start;
    max-width: 65%;
    margin-bottom: 2px;
    animation: fadeIn 0.2s ease;
}

.group-message-row.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.group-message-row .group-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 2px;
}

.group-message-row .group-msg-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Group avatar in contact list (stacked) */
.group-avatar-stack {
    width: 49px;
    height: 49px;
    position: relative;
    flex-shrink: 0;
}

.group-avatar-stack .avatar-img,
.group-avatar-stack .avatar-placeholder {
    width: 30px;
    height: 30px;
    position: absolute;
    border: 2px solid var(--bg-sidebar);
    font-size: 10px;
}

.group-avatar-stack .stack-0 { top: 0; left: 0; z-index: 3; }
.group-avatar-stack .stack-1 { top: 0; right: 0; z-index: 2; }
.group-avatar-stack .stack-2 { bottom: 0; left: 10px; z-index: 1; }

/* Group header avatar */
.group-header-avatar {
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
}

.group-header-avatar .avatar-img,
.group-header-avatar .avatar-placeholder {
    width: 24px;
    height: 24px;
    position: absolute;
    border: 2px solid var(--bg-header);
    font-size: 8px;
}

.group-header-avatar .stack-0 { top: 0; left: 0; z-index: 3; }
.group-header-avatar .stack-1 { top: 0; right: 0; z-index: 2; }
.group-header-avatar .stack-2 { bottom: 0; left: 8px; z-index: 1; }

/* ===== Roleplay Duplicate Button ===== */
.rp-duplicate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.rp-duplicate-btn:hover {
    background: var(--bg-active);
}

.rp-duplicate-btn.hidden {
    display: none !important;
}

/* ===== Contact Profile View ===== */
.contact-profile-content {
    max-width: 380px;
    overflow: hidden;
}

.contact-profile-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
}

.contact-profile-body {
    padding: 0 28px 28px;
    text-align: center;
}

.contact-profile-avatar {
    margin: 0 auto 16px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-profile-avatar .avatar-placeholder {
    width: 120px;
    height: 120px;
    font-size: 40px;
}

.contact-profile-name {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-profile-anime {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 6px;
}

.contact-profile-status-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.contact-profile-section {
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.contact-profile-section h4 {
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-profile-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Clickable avatars in contact list */
.contact-avatar {
    cursor: pointer;
}

/* Delete confirm styling */
.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger svg {
    color: var(--danger);
}

/* ===== Profile Modal ===== */
.profile-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.profile-big-avatar {
    width: 80px !important;
    height: 80px !important;
    font-size: 28px !important;
    border-radius: 50%;
}

/* ===== Model Browser ===== */
.model-browser {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
}

.model-current span {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.btn-secondary {
    background: var(--bg-active);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.model-browser-panel {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.model-browser-panel.hidden {
    display: none;
}

.model-search-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-input);
    z-index: 1;
}

.model-search-row .text-input {
    flex: 1;
    padding: 7px 10px;
    font-size: 13px;
}

.model-list {
    overflow-y: auto;
    flex: 1;
    max-height: 290px;
}

.model-list::-webkit-scrollbar {
    width: 5px;
}

.model-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.model-card {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.model-card:last-child {
    border-bottom: none;
}

.model-card:hover {
    background: var(--bg-hover);
}

.model-card.selected {
    background: rgba(0, 168, 132, 0.1);
    border-left: 3px solid var(--accent);
    padding-left: 9px;
}

.model-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.model-card-name {
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.model-badge-free {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 168, 132, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.model-card-id {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-card-meta {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.model-loading {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.model-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== Context Menu (Epic 3) ===== */
.msg-context-menu {
    position: fixed;
    z-index: 600;
    background: var(--bg-modal);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    min-width: 180px;
    overflow: hidden;
    animation: contextMenuIn 0.15s ease;
}

.msg-context-menu.hidden {
    display: none;
}

@keyframes contextMenuIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.1s;
}

.context-menu-item:hover {
    background: var(--bg-hover);
}

.context-menu-item.danger {
    color: var(--danger);
}

.context-menu-item svg {
    flex-shrink: 0;
}

/* ===== Mini Reaction Picker ===== */
.mini-reaction-picker {
    position: fixed;
    z-index: 610;
    background: var(--bg-modal);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 6px 8px;
    display: flex;
    gap: 2px;
    animation: contextMenuIn 0.12s ease;
}

.mini-reaction-picker.hidden {
    display: none;
}

.mini-reaction-btn {
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 5px;
    border-radius: 50%;
    transition: transform 0.1s, background 0.1s;
    line-height: 1;
}

.mini-reaction-btn:hover {
    background: var(--bg-active);
    transform: scale(1.25);
}

/* ===== Reply Preview Bar ===== */
.reply-preview {
    display: flex;
    align-items: center;
    background: var(--bg-header);
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    gap: 8px;
}

.reply-preview.hidden {
    display: none;
}

.reply-preview-content {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    background: var(--bg-input);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    overflow: hidden;
}

.reply-preview-content span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.reply-cancel-btn {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.reply-cancel-btn:hover {
    color: var(--text-primary);
}

/* ===== Reply Quote (inside bubble) ===== */
.msg-reply-quote {
    background: rgba(0,0,0,0.15);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
    cursor: pointer;
}

.msg-reply-quote-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1px;
}

.msg-reply-quote-text {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Reactions Bar ===== */
.msg-reactions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
    padding-left: 2px;
}

.msg-reaction-pill {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 14px;
    cursor: default;
    line-height: 1.4;
}

/* ===== Image Message ===== */
.msg-image-wrapper {
    max-width: 280px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2px;
}

.msg-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
}

.msg-image-caption {
    display: block;
    padding: 4px 0 0;
    font-size: 14.2px;
    line-height: 19px;
    color: var(--text-bubble);
    white-space: pre-wrap;
}

/* Image Viewer Overlay */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.image-viewer-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
}

/* ===== Voice Message (in bubble) ===== */
.msg-voice-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    padding: 4px 0;
}

.msg-voice-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.1s;
}

.msg-voice-play-btn:hover {
    transform: scale(1.08);
}

.msg-voice-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    height: 32px;
}

.msg-voice-bar {
    width: 3px;
    min-height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    transition: background 0.15s;
}

.msg-voice-bar.active {
    background: var(--accent);
}

.msg-voice-duration {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    min-width: 30px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ===== Voice Recording Overlay ===== */
.voice-recording-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-header);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.2s ease;
}

.voice-recording-overlay.hidden {
    display: none;
}

.voice-recording-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.voice-recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-recording-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    animation: recordPulse 1s ease-in-out infinite;
}

@keyframes recordPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.voice-recording-timer {
    font-size: 14px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.voice-recording-hint {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.voice-recording-cancel {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.15s;
}

.voice-recording-cancel:hover {
    background: rgba(234,67,53,0.15);
}

/* ===== Delete Chat Dialog ===== */
.delete-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.delete-dialog-overlay.visible {
    background: rgba(0, 0, 0, 0.6);
}

.delete-dialog {
    background: var(--bg-modal);
    border-radius: 14px;
    width: 340px;
    max-width: 90vw;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    padding: 24px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.delete-dialog-overlay.visible .delete-dialog {
    transform: scale(1);
    opacity: 1;
}

.delete-dialog-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.delete-dialog-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-dialog-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-dialog-avatar-placeholder {
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: var(--accent);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.delete-dialog-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.delete-dialog-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delete-dialog-type {
    font-size: 13px;
    color: var(--text-secondary);
}

.delete-dialog-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.delete-dialog-actions {
    display: flex;
    gap: 8px;
}

.delete-dialog-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.delete-dialog-btn:active {
    transform: scale(0.97);
}

.delete-dialog-btn.cancel {
    background: var(--bg-input);
    color: var(--text-primary);
}

.delete-dialog-btn.cancel:hover {
    background: var(--bg-active);
}

.delete-dialog-btn.clear {
    background: var(--bg-input);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.delete-dialog-btn.clear:hover {
    background: rgba(0, 168, 132, 0.1);
}

.delete-dialog-btn.danger {
    background: var(--danger);
    color: white;
}

.delete-dialog-btn.danger:hover {
    background: #d63a2e;
}
