/* Add at the beginning of the file - CSS Variables for theming */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-message-sent: #ffe8ef9e;
    --bg-message-received: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #ffe4e9;
    --accent-color: #e83e8c;
    --accent-light: #ff69b4;
    --shadow-color: rgba(232, 62, 140, 0.15);
    --message-shadow: 0 2px 5px rgb(198, 33, 101, 0.25);
    --chat-item-bg: white;
    --chat-item-active-bg: linear-gradient(135deg, #ff69b4 0%, #e83e8c 100%);
    --unread-bg: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    --abstract-bg: radial-gradient(circle at 20% 30%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 62, 140, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(30deg, transparent 0px, transparent 30px, rgba(255, 105, 180, 0.03) 30px, rgba(255, 105, 180, 0.03) 60px),
        repeating-linear-gradient(-30deg, transparent 0px, transparent 30px, rgba(232, 62, 140, 0.03) 30px, rgba(232, 62, 140, 0.03) 60px);
}

/* Dark theme variables */
.dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --bg-message-sent: #3a2a2f;
    --bg-message-received: #2c2c2c;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --border-color: #444;
    --accent-color: #ff69b4;
    --accent-light: #e83e8c;
    --shadow-color: rgba(255, 105, 180, 0.2);
    --message-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    --chat-item-bg: #2c2c2c;
    --chat-item-active-bg: linear-gradient(135deg, #ff69b4 0%, #e83e8c 100%);
    --unread-bg: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    --abstract-bg: radial-gradient(circle at 20% 30%, rgba(255, 105, 180, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 62, 140, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(30deg, transparent 0px, transparent 30px, rgba(255, 105, 180, 0.05) 30px, rgba(255, 105, 180, 0.05) 60px),
        repeating-linear-gradient(-30deg, transparent 0px, transparent 30px, rgba(232, 62, 140, 0.05) 30px, rgba(232, 62, 140, 0.05) 60px);
}

/* Update existing styles to use variables */
html,
body,
.wrapper,
.page-wrap,
.main-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    height: 100%;
    overflow: hidden;
}

.container-fluid {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.nav-pills {
    flex: 0 0 auto;
    width: 100%;
    z-index: 10;
    /* Optional: background to cover content scrolling behind */
    background: transparent;
    display: flex;
    align-items: center;
}

/* Theme toggle button in nav-pills */
.theme-toggle-btn {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(232, 62, 140, 0.1) 100%);
    border: 2px solid rgba(232, 62, 140, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-left: 10px;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.theme-toggle-btn:hover::before {
    width: 100px;
    height: 100px;
}

.theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2) 0%, rgba(232, 62, 140, 0.2) 100%);
    border-color: rgba(232, 62, 140, 0.5);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
}

.theme-toggle-btn:active {
    transform: scale(0.95) rotate(0deg);
}

.theme-toggle-btn i {
    font-size: 20px;
    color: #e83e8c;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.theme-toggle-btn:hover i {
    color: #ff69b4;
    transform: rotate(-15deg) scale(1.1);
}

/* Dark theme icon change */
.dark .theme-toggle-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.dark .theme-toggle-btn::before {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}

.dark .theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.dark .theme-toggle-btn i {
    color: #ffd700;
}

.dark .theme-toggle-btn:hover i {
    color: #ffa500;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
    gap: clamp(1.5dvh, 1.5dvw, 2dvw);
    border-radius: 15px;
    position: relative;
    overflow-y: auto;
    height: 100vh;
    scrollbar-width: none;
}

.profile-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-images {
    position: relative;
    height: 400px;
}

.profile-images img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.profile-flag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.25) 0%, rgba(255, 192, 203, 0.25) 100%);
    /*backdrop-filter: blur(8px);*/
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    animation: softGlow 2s infinite alternate;
}

@keyframes softGlow {
    from {
        box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }

    to {
        box-shadow: 0 4px 20px rgba(255, 182, 193, 0.3),
            inset 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.profile-flag:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.35) 0%, rgba(255, 192, 203, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.3);
}

.profile-flag img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.profile-flag:hover img {
    transform: scale(1.05) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.9);
}

.profile-flag .age {
    color: white;
    font-weight: 500;
    font-size: 1.15em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    padding-right: 4px;
    transition: all 0.4s ease;
}

.profile-flag:hover .age {
    transform: scale(1.05);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.profile-info {
    padding: 15px;
    background: white;
}

.profile-card .text-muted {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.profile-card .text-muted.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.profile-actions {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #444;
}

.profile-actions .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.profile-actions .btn-icon.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.profile-actions .btn-icon.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.profile-actions .btn-icon.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.profile-actions .btn-icon.btn-outline-primary:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.profile-actions .btn-icon.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.profile-actions .btn-icon.btn-outline-success:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

.profile-actions .btn-icon i {
    font-size: 1.2em;
}

/* ========== Moderation Card Styles ========== */
.moderation-card-wrapper {
    max-width: 900px;
    margin: 0 auto;
    /*padding: 20px;*/
}

.moderation-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(232, 62, 140, 0.1);
}

/* Avatar Section (Top) */
.moderation-avatar-section {
    position: relative;
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgb(175 0 239 / 46%) 0%, rgba(255, 105, 180, 0.6) 100%);
    border-bottom: 2px solid rgba(232, 62, 140, 0.1);
}

.moderation-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.moderation-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e83e8c;
    box-shadow: 0 8px 24px rgba(232, 62, 140, 0.3);
    transition: transform 0.3s ease;
}

.moderation-avatar:hover {
    transform: scale(1.05);
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e83e8c 0%, #ff69b4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #e83e8c;
    box-shadow: 0 8px 24px rgba(232, 62, 140, 0.3);
}

.avatar-placeholder i {
    font-size: 80px;
    color: white;
}

/* Moderation Flag Badge (bottom-left) */
.moderation-flag {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.25) 0%, rgba(255, 192, 203, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    animation: softGlow 2s infinite alternate;
}

.moderation-flag:hover {
    transform: translateX(-100px) translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.35) 0%, rgba(255, 192, 203, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.3);
}

.moderation-flag img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.moderation-flag:hover img {
    transform: scale(1.05) rotate(5deg);
}

/* Moderation Rating Badge (bottom-right) */
.moderation-rating-badge {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(20px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.25) 0%, rgba(255, 215, 0, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    animation: softGlowGold 2s infinite alternate;
}

.moderation-rating-badge:hover {
    transform: translateX(20px) translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.35) 0%, rgba(255, 215, 0, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.3);
}

.moderation-rating-badge i {
    color: #ffd700;
    font-size: 1.1em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.moderation-rating-badge .count {
    color: white;
    font-weight: 500;
    font-size: 1.15em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.moderation-user-name {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.moderation-user-meta {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

.moderation-section-title {
    color: #e83e8c;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(232, 62, 140, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.moderation-section-title i {
    font-size: 1.2em;
}

/* Photos section */
.moderation-photos {
    padding: 30px 20px;
    border-bottom: 2px solid rgba(232, 62, 140, 0.1);
}

.moderation-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.moderation-photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.moderation-photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(232, 62, 140, 0.2);
}

.moderation-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.moderation-photo-checkbox {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.moderation-photo-checkbox:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(232, 62, 140, 0.3);
}

.moderation-photo-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e83e8c;
}

.moderation-photo-checkbox .checkbox-label {
    font-weight: 700;
    color: #333;
    font-size: 0.95em;
    user-select: none;
}

/* Info section */
.moderation-info {
    padding: 30px 20px;
    border-bottom: 2px solid rgba(232, 62, 140, 0.1);
}

.moderation-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.moderation-info-item {
    display: flex;
    flex-direction: column;
}

.moderation-info-item.full-width {
    grid-column: 1 / -1;
}

.moderation-info-item label {
    font-weight: 700;
    color: #e83e8c;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.moderation-info-value {
    padding: 15px;
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.03) 0%, rgba(255, 105, 180, 0.03) 100%);
    border-radius: 12px;
    color: #333;
    font-size: 1em;
    line-height: 1.6;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.moderation-info-value:hover {
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.05) 0%, rgba(255, 105, 180, 0.05) 100%);
    border-color: rgba(232, 62, 140, 0.2);
}

/* Actions section */
.moderation-actions {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    background: #f8f9fa;
}

.btn-moderation {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-moderation:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-moderation i {
    font-size: 1.2em;
}

.btn-decline {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-decline:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.btn-apply {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.btn-perfect {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-perfect:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Dark theme support for moderation card */
.dark .moderation-card {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-color: rgba(255, 105, 180, 0.2);
}

.dark .moderation-avatar-section {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(232, 62, 140, 0.4) 100%);
    border-bottom-color: rgba(255, 105, 180, 0.2);
}

.dark .moderation-user-name {
    color: #e0e0e0;
}

.dark .moderation-user-meta {
    color: #b0b0b0;
}

.dark .moderation-section-title {
    color: #ff69b4;
}

.dark .moderation-photos,
.dark .moderation-info {
    border-bottom-color: rgba(255, 105, 180, 0.2);
}

.dark .moderation-info-item label {
    color: #ff69b4;
}

.dark .moderation-info-value {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05) 0%, rgba(232, 62, 140, 0.05) 100%);
    color: #e0e0e0;
    border-color: rgba(255, 105, 180, 0.15);
}

.dark .moderation-info-value:hover {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.08) 0%, rgba(232, 62, 140, 0.08) 100%);
    border-color: rgba(255, 105, 180, 0.25);
}

.dark .moderation-actions {
    background: #1a1a1a;
}

.dark .moderation-photo-checkbox {
    background: rgba(44, 44, 44, 0.95);
}

.dark .moderation-photo-checkbox .checkbox-label {
    color: #e0e0e0;
}


.interest-tag {
    display: inline-block;
    padding: 8px 18px;
    margin: 4px;
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.15) 0%, rgba(147, 112, 219, 0.15) 100%);
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
    color: #e83e8c;
    border: 1px solid rgba(232, 62, 140, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(232, 62, 140, 0.1);
}

.interest-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.interest-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.25) 0%, rgba(147, 112, 219, 0.25) 100%);
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.2);
}

.interest-tag:hover::before {
    left: 100%;
}

.interest-tag.selected {
    background: linear-gradient(135deg, #ff69b4 0%, #9370db 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.interest-tag.selected:hover {
    background: linear-gradient(135deg, #ff4fa7 0%, #8560d0 100%);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.4);
}

.interests-container {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(232, 62, 140, 0.1);
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.05);
}

.interests-title {
    font-size: 0.95em;
    color: #e83e8c;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(232, 62, 140, 0.1);
}

.interests-error {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 8px;
    display: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.1);
}

.online-status {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #97ff00;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(184, 224, 210, 0.3);
    z-index: 2;
}

.profile-images .online-status {
    right: 10px;
    top: 10px;
}

.chat-avatar .online-status {
    bottom: 5px;
    right: 5px;
}

.photo-count {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(157, 157, 167, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    z-index: 2;
    /*backdrop-filter: blur(4px);*/
}

.nav-pills .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link .tab-text {
    display: none;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active .tab-text {
    display: inline;
}

.nav-pills .nav-link i {
    font-size: 1.2em;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.nav-pills .nav-link:not(.active) {
    color: #6c757d;
    background: transparent;
}

.nav-pills .nav-link:not(.active):hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.tab-content {
    border-radius: 15px;
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    scrollbar-width: none;
}

.tab-content::-webkit-scrollbar {
    display: none;
}

#messages {
    height: 100%;
}


.profile-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.owl-nav button span {
    color: #333;
}

.profile-carousel .owl-prev,
.profile-carousel .owl-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.8) !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.profile-carousel .owl-prev {
    left: 10px;
}

.profile-carousel .owl-next {
    right: 10px;
}

.profile-carousel .owl-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.chat-messages {
    flex: 1;
    padding: clamp(6px, 1.5dvw, 15px);
    overflow-y: auto;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 105, 180, 0.05) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(232, 62, 140, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(30deg, transparent 0px, transparent 30px, rgba(255, 105, 180, 0.03) 30px, rgba(255, 105, 180, 0.03) 60px),
        repeating-linear-gradient(-30deg, transparent 0px, transparent 30px, rgba(232, 62, 140, 0.03) 30px, rgba(232, 62, 140, 0.03) 60px);
    background-size: 100% 1px, 1px 100%, 100% 100%, 100% 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    scrollbar-width: none;
}

.message {
    display: flex;
    align-items: flex-start;
    max-width: 80%;
    position: relative;
    animation: messageAppear 0.3s ease-out;
}

@keyframes messageAppear {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.message.system {
    align-self: center;
    max-width: 70%;
}

.message.sent {
    margin-left: auto;
    align-self: flex-end;
}

.message-text {
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
}

.message-content {
    padding: clamp(6px, 1.2dvw, 10px);
    border-radius: 15px;
    box-shadow: 0 2px 5px rgb(198, 33, 101, 0.25);
}

.message.sent .message-content {
    /*background: #ffe8ef9e;*/
    background: #ffe8ef9e;
    border-bottom-right-radius: 0;
    color: #000000b0;
}

.message.received .message-content {
    background: #fff;
    color: #000000b0;
    border-bottom-left-radius: 0;
}

.message.system .message-content {
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.08) 0%, rgba(255, 105, 180, 0.12) 100%);
    color: #00000098;
    border-radius: 20px;
    font-style: italic;
    text-align: center;
    border-color: rgba(255, 105, 180, 1);
}

.message.system .message-text {
    font-weight: 700;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.message.sent .message-time {
    color: #e83e8c;
}

.message-time i {
    font-size: 14px;
}

.message-status {
    display: flex;
    align-items: center;
    gap: 2px;
}

.message-status i {
    font-size: 12px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 15px;
    width: fit-content;
    margin-left: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #e83e8c;
    border-radius: 50%;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

}

.message-reactions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.reaction {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: #fff0f5;
    border-radius: 10px;
    font-size: 12px;
    color: #e83e8c;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction:hover {
    background: #ffe4e9;
    transform: translateY(-1px);
}

.reaction i {
    font-size: 14px;
}

.dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.profile-carousel {
    position: relative;
    z-index: 1;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating .stars {
    color: #ffd700;
    font-size: 0.9em;
    margin-right: 8px;
}

.rating .stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #957186;
    font-size: 0.85em;
    padding: 4px 8px;
    background: rgba(243, 233, 244, 0.5);
    border-radius: 12px;
}

.rating .total-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating .total-stars i {
    color: #ffd700;
    font-size: 0.9em;
}

.rating i {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating .stars i:hover {
    transform: scale(1.2);
}

.crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.crop-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    background: #000;
}

.crop-image {
    max-width: 100%;
    max-height: 100%;
}

.crop-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 12px;
    width: max-content;
    max-width: 95vw;
    /*backdrop-filter: blur(8px);*/
}

.crop-controls button {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-controls button:hover {
    background: #fff;
    transform: translateY(-2px);
}

.crop-controls button.save {
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
}

.crop-controls button.save:hover {
    background: #007bff;
}

.crop-controls .control-group {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.crop-controls .control-group:last-child {
    border-right: none;
}

.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-modal.show {
    opacity: 1;
}

.photo-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal-content img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photo-modal-prev {
    left: 20px;
}

.photo-modal-next {
    right: 20px;
}

.photo-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.25) 0%, rgba(255, 215, 0, 0.25) 100%);
    /*backdrop-filter: blur(8px);*/
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 223, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    animation: softGlowGold 2s infinite alternate;
}

@keyframes softGlowGold {

    from {
        box-shadow: 0 4px 15px rgba(255, 223, 0, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }

    to {
        box-shadow: 0 4px 20px rgba(255, 223, 0, 0.3),
            inset 0 0 25px rgba(255, 255, 255, 0.3);
    }

}

.rating-badge:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.35) 0%, rgba(255, 215, 0, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.3),
        inset 0 0 25px rgba(255, 255, 255, 0.3);
}

.rating-badge i {
    color: #ffd700;
    font-size: 1.1em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.rating-badge .count {
    color: white;
    font-weight: 500;
    font-size: 1.15em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.messages-container {
    display: flex;
    height: 100%;
    background: #fff;

    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chat-list {
    background: var(--bg-secondary);
    width: 350px;
    border-right: 1px solid #ffe4e9;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

.chat-list-header {
    padding: 20px 20px 21px 20px;
    border-bottom: 1px solid #ffe4e9;
}

.chat-list-header h5 {
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e83e8c;
}

.chat-list-header h5 i {
    font-size: 1.2em;
    color: #ff69b4;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid #ffe4e9;
    border-radius: 20px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    /*backdrop-filter: blur(10px);*/
    /*margin: 5px;*/

    background: white;
    box-shadow: 0 6px 6px rgba(232, 62, 140, 0.15),
        0 0 0 1px rgba(232, 62, 140, 0.3);
    margin: 6px;
}

.chat-item.active {
    background: linear-gradient(135deg, #ff69b4 0%, #e83e8c 100%);
    box-shadow: 0 8px 16px rgba(232, 62, 140, 0.3);
    border-color: transparent;
    margin: 10px;
}

.chat-avatar {
    position: relative;
    margin-right: 15px;
}

.chat-avatar img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(232, 62, 140, 0.2);
    transition: transform 0.3s ease;
}

.chat-item:hover .chat-avatar img {
    transform: scale(1.1) rotate(3deg);
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.chat-item.active .chat-name,
.chat-item.active .chat-time,
.chat-item.active .chat-message {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-time {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.chat-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.chat-message {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 10px;
    font-weight: 400;
}

.unread-count {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(255, 20, 147, 0.3);
}

.chat-item.active .unread-count {
    background: white;
    color: #ff1493;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-area .chat-header {
    border-bottom: 1px solid #ffe4e9;
}

.dark .chat-area .chat-header {
    border-bottom-color: var(--border-color);
}

.chat-user {
    display: flex;
    align-items: center;
}

.chat-user-info {
    margin-left: 15px;
    flex: 1;
}

.chat-user-info h6 {
    margin-bottom: 4px;
    font-weight: 600;
    color: #e83e8c;
}

.status {
    font-size: 12px;
    color: #ff69b4;
}

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

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: #ffe4e9;
    color: #e83e8c;
}

.chat-input {
    padding: clamp(6px, 1.5dvw, 15px);
    background: #fff;
    border-top: 1px solid #ffe4e9;
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.5dvw, 10px);
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: clamp(8px, 1.5dvw, 15px);
    padding-left: clamp(12px, 1.5dvw, 15px);
    border: 1px solid #ffe4e9;
    border-radius: 20px;
    font-size: 14px;
    background: #fff0f5;
}

.input-wrapper input:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

.send-btn {
    background: #ff69b4;
    color: #fff;
    transition: all 0.3s;
}

.send-btn:hover {
    background: #e83e8c;
    transform: scale(1.1);
}

.back-button {
    display: none;
}

.user-details {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.distance {
    font-size: 12px;
    color: #666;
}

.chat-actions .btn-icon {
    background: #fff0f5;
    color: #e83e8c;
}

.icon-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
}

.chat-actions .send-request-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    height: 32px;
    font-size: 14px;
    border-radius: 1.25rem;
    transition: all 0.3s ease-in-out;
}

.chat-actions .send-request-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: scale(1.15) rotate(3deg);
    margin-right: 5px;
}

.chat-actions .send-request-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: scale(1);
}

.chat-actions .send-request-btn i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-icon.is-loading {
    pointer-events: none;
}

.btn-icon.is-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.btn-icon.is-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

.message-translate {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(232, 62, 140, 0.3);
    position: relative;
}

.message.sent .message-translate {
    border-top-color: rgba(255, 105, 180, 0.3);
}

.translate-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.translate-divider i {
    font-size: 12px;
}

.message.received .translate-divider {
    color: #e83e8c;
}

.message.sent .translate-divider {
    color: #ff69b4;
}

.translate-text {
    font-size: 1rem;
    line-height: 1.4;
    font-style: italic;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(232, 62, 140, 0.08);
    position: relative;
    overflow: hidden;
}

.translate-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05) 0%, rgba(232, 62, 140, 0.05) 100%);
    pointer-events: none;
}

.message.received .translate-text {
    color: #666;
    background: rgba(232, 62, 140, 0.08);
}

.message.sent .translate-text {
    color: #e83e8c;
    background: rgba(255, 105, 180, 0.12);
}

@keyframes translateAppear {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.multiselect {
    position: relative;
    width: 100%;
}

.multiselect .select-header {
    background: #fff0f5;
    border: 1px solid #ffe4e9;
    border-radius: 20px;
    padding: 5px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 38px;
}

.multiselect .select-header:hover {
    border-color: #ff69b4;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

.multiselect .select-header.active {
    border-color: #ff69b4;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.multiselect .select-header .selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.multiselect .select-header .selected-tag {
    background: linear-gradient(135deg, #ff69b4 0%, #e83e8c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(232, 62, 140, 0.2);
}

.multiselect .select-header .selected-tag .remove-tag {
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.multiselect .select-header .selected-tag .remove-tag:hover {
    opacity: 1;
    transform: scale(1.1);
}

.multiselect .select-header .placeholder {
    color: #999;
    font-size: 0.9em;
}

.multiselect .select-header .arrow {
    color: #ff69b4;
    transition: transform 0.3s ease;
}

.multiselect .select-header.active .arrow {
    transform: rotate(180deg);
}

.multiselect .options-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ffe4e9;
    border-radius: 15px;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.multiselect .options-container.show {
    display: block;
}

.multiselect .option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.multiselect .option:hover {
    background: #fff0f5;
}

.multiselect .option.selected {
    background: #fff0f5;
    color: #e83e8c;
}

.multiselect .option .check-icon {
    color: #ff69b4;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.multiselect .option.selected .check-icon {
    opacity: 1;
}

.multiselect .search-box {
    padding: 10px;
    border-bottom: 1px solid #ffe4e9;
}

.multiselect .search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ffe4e9;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.multiselect .search-box input:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.dark .multiselect .select-header {
    background: #2c2c2c;
    border-color: #444;
}

.dark .multiselect .options-container {
    background: #2c2c2c;
    border-color: #444;
}

.dark .multiselect .option {
    color: #fff;
}

.dark .multiselect .option:hover {
    background: #444;
}

.dark .multiselect .option.selected {
    background: #222;
    color: var(--accent-light);
}

.dark .multiselect .search-box {
    border-color: #444;
}

.dark .multiselect .search-box input {
    background: #2c2c2c;
    border-color: #444;
    color: #fff;
}

.dark .multiselect .search-box input:focus {
    border-color: #ff69b4;
}

.dark .multiselect .placeholder {
    color: #888;
}

.select {
    position: relative;
}

.select .select-header {
    background: #fff0f5;
    border: 1px solid #ffe4e9;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.select .select-header:hover {
    border-color: #ff69b4;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

.select .select-header.active {
    border-color: #ff69b4;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.select .select-header .selected-item {
    color: #e83e8c;
    font-weight: 500;
}

.select .select-header .placeholder {
    color: #999;
    font-size: 0.9em;
}

.select .select-header .arrow {
    color: #ff69b4;
    transition: transform 0.3s ease;
}

.select .select-header.active .arrow {
    transform: rotate(180deg);
}

.select .options-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ffe4e9;
    border-radius: 15px;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.select .options-container.show {
    display: block;
}

.select .option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.select .option:hover {
    background: #fff0f5;
    color: #e83e8c;
}

.select .option.selected {
    background: #fff0f5;
    color: #e83e8c;
    font-weight: 500;
}

.dark .select .select-header {
    background: #2c2c2c;
    border-color: #444;
}

.dark .select .options-container {
    background: #2c2c2c;
    border-color: #444;
}

.dark .select .option {
    color: #fff;
}

.dark .select .option:hover {
    background: #444;
}

.dark .select .option.selected {
    background: #222;
    color: var(--accent-light);
}

.dark .select .placeholder {
    color: #888;
}

/* Dark theme updates using CSS variables */
.dark .profiles-grid {
    background: var(--bg-secondary);
}

.dark .profile-card {
    background: var(--bg-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-info {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.dark .profile-section .card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a1a1a 100%);
}

.dark .profile-section .card-header {
    background: linear-gradient(135deg, #3a2a2f 0%, #2c1f23 100%);
    border-color: rgba(232, 62, 140, 0.2);
}

.card .form-control {
    font-size: 1rem;
}

.dark .profile-section .form-control {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.profile-section .form-control.public-link-input {
    background: #fff;
}

.dark .profile-section .dropzone {
    background: linear-gradient(135deg, #3a2a2f 0%, var(--bg-secondary) 100%);
    border-color: var(--border-color);
}

.dark .profile-section .interests-container {
    background: linear-gradient(135deg, #3a2a2f 0%, var(--bg-secondary) 100%);
    border-color: var(--border-color);
}

.dark .profile-section .avatar-placeholder {
    background: linear-gradient(135deg, #3a2a2f 0%, var(--bg-secondary) 100%);
    border-color: var(--border-color);
}

.dark .profile-section .avatar-placeholder:hover {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #3a2a2f 100%);
    border-color: var(--accent-light);
}

.dark .profile-section #avatar_preview {
    border-color: var(--border-color);
}

.dark .profile-section #avatar_preview:hover {
    border-color: var(--accent-light);
}

/* Chat list dark theme */
.dark .messages-container {
    background: var(--bg-secondary);
}

.dark .chat-list {
    border-right-color: var(--border-color);
    background: var(--bg-secondary);
}

.dark .chat-item {
    background: var(--chat-item-bg);
    border-color: var(--border-color);
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border-color);
}

.dark .chat-item.active {
    background: var(--chat-item-active-bg);
    box-shadow: 0 8px 16px rgba(255, 105, 180, 0.3);
}

.dark .chat-name {
    color: var(--text-primary);
}

.dark .chat-time {
    color: var(--text-muted);
}

.dark .chat-message {
    color: var(--text-secondary);
}

.dark .chat-user-info h6 {
    color: var(--accent-light);
}

.dark .chat-actions .btn-icon {
    background: #3a2a2f;
    color: var(--accent-light);
}

.dark .chat-actions .btn-icon:hover {
    background: #4a3a3f;
    color: var(--accent-color);
}

/* Message dark theme with increased size */
.dark .chat-messages {
    background: var(--bg-secondary);
    background-image: var(--abstract-bg);
    background-size: 100% 1px, 1px 100%, 100% 100%, 100% 100%;
    background-blend-mode: normal, normal, normal, normal, normal, normal, normal;
}

.common-bot-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    height: 32px;
    font-size: 14px;
    border-radius: 1.25rem;
    transition: all 0.3s ease-in-out;
}

.dark .message-content {
    box-shadow: var(--message-shadow);
}

.dark .message.sent .message-content {
    background: linear-gradient(135deg, rgb(11, 0, 11, 0.6) 0%, rgb(44, 33, 88, 0.5) 100%);
    color: #ffffffc0;
}

.dark .message.received .message-content {
    background: linear-gradient(135deg, rgb(11, 0, 11, 0.6) 0%, rgb(99, 33, 66, 0.5) 100%);
    color: #ffffffc0;
}

/* Dark theme system messages */
.dark .message.system .message-content {
    background: linear-gradient(135deg, rgb(11, 0, 11, 0.6) 0%, rgb(33, 77, 99, 0.5) 100%);
    color: #ffffffc0;
}

.dark .message-time {
    color: var(--text-muted);
}

.dark .message.sent .message-time {
    color: var(--accent-light);
}

.dark .message-translate {
    border-top-color: rgba(232, 62, 140, 0.3);
}

.dark .message.sent .message-translate {
    border-top-color: rgba(255, 105, 180, 0.3);
}

.dark .translate-text {
    background: rgba(232, 62, 140, 0.1);
    color: var(--text-secondary);
}

.dark .message.received .translate-text {
    background: rgba(232, 62, 140, 0.1);
    color: var(--text-secondary);
}

.dark .message.sent .translate-text {
    background: rgba(255, 105, 180, 0.15);
    color: var(--accent-light);
}

/* Input dark theme */
.dark .chat-input {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

.dark .input-wrapper input {
    background: #3a2a2f;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark .input-wrapper input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

.dark .send-btn {
    background: var(--accent-light);
}

.dark .send-btn:hover {
    background: var(--accent-color);
}

/* Tab navigation dark theme */
.dark .nav-pills .nav-link:not(.active) {
    color: var(--text-muted);
    background: transparent;
}

.dark .nav-pills .nav-link:not(.active):hover {
    color: var(--accent-light);
    background: rgba(255, 105, 180, 0.1);
}

/* Modal dark theme */
.dark .modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dark .modal-header {
    border-bottom-color: var(--border-color);
}

.dark .modal-footer {
    border-top-color: var(--border-color);
}

.dark .modal-body {
    color: var(--text-primary);
}

/* Multiselect dark theme */
.dark .multiselect .select-header {
    background: #3a2a2f;
    border-color: var(--border-color);
}

.dark .multiselect .options-container {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark .multiselect .option {
    color: var(--text-primary);
}

.dark .multiselect .option:hover {
    background: #444;
}

.dark .multiselect .search-box {
    border-color: var(--border-color);
}

.dark .multiselect .search-box input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark .multiselect .search-box input:focus {
    border-color: var(--accent-light);
}

.dark .multiselect .placeholder {
    color: var(--text-muted);
}

/* Select dark theme */
.dark .select .select-header {
    background: #3a2a2f;
    border-color: var(--border-color);
}

.dark .select .options-container {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.dark .select .option {
    color: var(--text-primary);
}

.dark .select .option:hover {
    background: #444;
    color: var(--accent-light);
}

.dark .select .placeholder {
    color: var(--text-muted);
}

.profile-section .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.profile-section .card-header {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e9 100%);
    border-bottom: 1px solid rgba(232, 62, 140, 0.1);
    border-radius: 15px 15px 0 0 !important;
    padding: 20px 25px;
}

.profile-section .card-header h5 {
    color: #e83e8c;
    font-weight: 600;
    font-size: 1.2em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section .card-header h5::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #ff69b4 0%, #e83e8c 100%);
    border-radius: 2px;
}

.profile-section .card-body {
    padding: 25px;
}

.profile-section .form-group label {
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.profile-section .form-control {
    border: 1px solid #ffe4e9;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.profile-section .form-control:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.15);
    background: #fff;
}

.profile-section .dropzone {
    border: 2px dashed #ffe4e9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-section .dropzone:hover {
    border-color: #ff69b4;
    background: linear-gradient(135deg, #fff 0%, #fff0f5 100%);
    transform: translateY(-2px);
}

.profile-section .dropzone i {
    color: #ff69b4;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.profile-section .dropzone p {
    color: #666;
    margin-bottom: 5px;
}

.profile-section .dropzone small {
    color: #999;
}

.profile-section .photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 156px;
    min-height: 220px;
    padding: clamp(2px, 1dvw, 7px);
}

.profile-section .photo-container:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #df14393b;
    padding: 5px !important;
}

.profile-section .photo-container img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.profile-section .photo-container .btn-danger {
    opacity: 0;
    transform: translate(-8px, 10px);
    transition: all 0.3s ease;
}

.profile-section .photo-container:hover .btn-danger {
    opacity: 1;
    transform: translateY(0);
}

#photo_preview {
    justify-content: space-around;
}

.profile-section .btn-primary {
    background: linear-gradient(135deg, #ff69b4 0%, #e83e8c 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.3);
}

.profile-section .btn-primary i {
    font-size: 1.1em;
}

.profile-section .interests-container {
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    border: 1px solid #ffe4e9;
    border-radius: 15px;
    padding: 20px;
}

.profile-section .interests-title {
    color: #e83e8c;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.interest-tag {
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.15) 0%, rgba(147, 112, 219, 0.15) 100%);
    border: 1px solid rgba(232, 62, 140, 0.2);
    border-radius: 20px;
    padding: 8px 18px;
    margin: 4px;
    color: #e83e8c;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.interest-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.25) 0%, rgba(147, 112, 219, 0.25) 100%);
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.15);
}

.profile-section .interests-error {
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 10px;
    color: #dc3545;
    font-size: 0.9em;
    display: none;
}

.profile-section .avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-section .avatar-preview-container {
    position: relative;
    width: 180px;
    height: 180px;
    cursor: pointer;
}

.profile-section #avatar_preview {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffe4e9;
    box-shadow: 0 4px 20px rgba(232, 62, 140, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-section #avatar_preview:hover {
    border-color: #ff69b4;
    box-shadow: 0 6px 25px rgba(232, 62, 140, 0.3);
    transform: scale(1.02);
}

.profile-section .avatar-placeholder {
    width: 150px;
    height: 150px;
    border: 3px dashed #ffe4e9;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-section .avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05) 0%, rgba(232, 62, 140, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-section .avatar-placeholder:hover {
    border-color: #ff69b4;
    background: linear-gradient(135deg, #fff 0%, #fff0f5 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.15);
}

.profile-section .avatar-placeholder:hover::before {
    opacity: 1;
}

.profile-section .avatar-placeholder i {
    font-size: 3rem;
    color: #ff69b4;
    z-index: 1;
    transition: all 0.3s ease;
}

.profile-section .avatar-placeholder:hover i {
    transform: scale(1.1);
    color: #e83e8c;
}

.profile-section .avatar-placeholder::after {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    z-index: 1;
}

.dark .profile-section .avatar-placeholder {
    background: linear-gradient(135deg, #3a2a2f 0%, #2c2c2c 100%);
    border-color: #444;
}

.dark .profile-section .avatar-placeholder:hover {
    background: linear-gradient(135deg, #2c2c2c 0%, #3a2a2f 100%);
    border-color: #ff69b4;
}

.dark .profile-section #avatar_preview {
    border-color: #444;
}

.dark .profile-section #avatar_preview:hover {
    border-color: #ff69b4;
}

.dark .profile-section .card {
    background: linear-gradient(135deg, #2c2c2c 0%, #252525 100%);
}

.dark .profile-section .card-header {
    background: linear-gradient(135deg, #3a2a2f 0%, #2c1f23 100%);
    border-color: rgba(232, 62, 140, 0.2);
}

.dark .profile-section .form-control {
    background: #2c2c2c;
    border-color: #444;
    color: #fff;
}

.dark .profile-section .form-control:focus {
    background: #2c2c2c;
}

.dark .profile-section .dropzone {
    background: linear-gradient(135deg, #3a2a2f 0%, #2c2c2c 100%);
    border-color: #444;
}

.dark .profile-section .dropzone:hover {
    background: linear-gradient(135deg, #2c2c2c 0%, #3a2a2f 100%);
}

.dark .profile-section .interests-container {
    background: linear-gradient(135deg, #3a2a2f 0%, #2c2c2c 100%);
    border-color: #444;
}

.language-selector {
    margin-top: 15px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #9370db 0%, #8b5cf6 50%, #7c3aed 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.language-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    /*backdrop-filter: blur(10px);*/
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-option:hover::before {
    left: 100%;
}

.language-option.selected {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.language-option .flag {
    font-size: 1.8em;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.language-option .language-name {
    color: white;
    font-weight: 500;
    font-size: 0.95em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.dark .language-grid {
    background: linear-gradient(135deg, #6b46c1 0%, #5b21b6 50%, #4c1d95 100%);
}

.dark .language-option {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .language-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dark .language-option.selected {
    background: rgba(255, 255, 255, 0.25);
}

.circle-crop .cropper-view-box,
.circle-crop .cropper-face {
    border-radius: 50% !important;
}

@media (max-width: 768px) {

    /* Position nav-pills at bottom for mobile */
    .container-fluid {
        flex-direction: column-reverse;
        padding-bottom: 0;
    }

    .nav-pills {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        margin: 0 !important;
        padding: 8px 0;
        z-index: 1000;
        border-radius: 15px 15px 0 0;
    }

    .tab-content {
        margin-top: 0;
        margin-bottom: 60px;
        /* Space for fixed bottom nav */
        height: calc(100dvh - 70px);
    }

    .photo-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .photo-modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .chat-area {
        display: none;
    }

    .chat-area.active {
        display: flex;
    }

    .chat-user-info {
        margin-left: 0;
    }

    .back-button {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #e83e8c;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .back-button:hover {
        background: #fff0f5;
    }

    .back-button i {
        font-size: 18px;
    }

    .chat-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ffe4e9;
    }

    /*ul[role="tablist"]:has(+ .tab-content .chat-area.active) {*/
    /*    display: none;*/
    /*}*/

    .chat-list:has(+ .chat-area.active) {
        display: none;
    }

    /*.messages-container:has(.chat-area.active) {*/
    /*    height: calc(100dvh - 10px);*/
    /*}*/

    .tab-content:has(.chat-area.active) {
        margin-top: 5px;
    }
}

/* Public link container */
.public-link-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-link-input {
    flex: 1;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #ffe4e9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.public-link-input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.15);
}

.copy-link-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff69b4 0%, #e83e8c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.3);
}

.copy-link-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.copy-link-btn i {
    font-size: 1.2em;
}

/* Dark theme for public link */
.dark .public-link-input {
    background: #2c2c2c;
    border-color: #444;
    color: #fff;
}

.dark .public-link-input:focus {
    background: #2c2c2c;
    border-color: #ff69b4;
}

/* IconKit gallery */
.iconkit-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    padding: 20px 24px 24px;
    gap: 16px;
}

.iconkit-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.iconkit-search {
    position: relative;
    flex: 1 1 320px;
    max-width: 520px;
}

.iconkit-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.iconkit-search .form-control {
    padding-left: 38px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    height: 42px;
}

.iconkit-meta {
    color: var(--text-secondary);
    font-weight: 600;
}

.iconkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    overflow: auto;
    padding-right: 6px;
    scrollbar-width: none;
}

.iconkit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-align: center;
}

.iconkit-item i {
    font-size: 24px;
    color: var(--accent-color);
}

.iconkit-label {
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-word;
}

.iconkit-item:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 62, 140, 0.4);
    box-shadow: 0 6px 16px rgba(232, 62, 140, 0.15);
}

.iconkit-item.is-copied {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(232, 62, 140, 0.25);
}

.iconkit-loading,
.iconkit-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .iconkit-page {
        height: calc(100vh - 140px);
        padding: 16px;
    }

    .iconkit-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .iconkit-meta {
        text-align: right;
    }
}

/* ===== Location Pick Button ===== */
.btn-location-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 2px solid rgba(232, 62, 140, 0.35);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.08) 0%, rgba(232, 62, 140, 0.08) 100%);
    color: #e83e8c;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(232, 62, 140, 0.1);
}

.btn-location-pick::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(232, 62, 140, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-location-pick:hover::before {
    width: 300px;
    height: 300px;
}

.btn-location-pick:hover {
    border-color: rgba(232, 62, 140, 0.6);
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15) 0%, rgba(232, 62, 140, 0.15) 100%);
    color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.25);
}

.btn-location-pick:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(232, 62, 140, 0.15);
}

.btn-location-pick i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-location-pick:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* Dark mode */
.dark .btn-location-pick {
    border-color: rgba(255, 105, 180, 0.35);
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(232, 62, 140, 0.1) 100%);
    color: #ff69b4;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

.dark .btn-location-pick:hover {
    border-color: rgba(255, 105, 180, 0.6);
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2) 0%, rgba(232, 62, 140, 0.2) 100%);
    color: #ff9fd4;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

/* ========================================================
   Telegram Auth Overlay  (isWebApp === null)
   ======================================================== */

#tg-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: tgAuthFadeIn 0.6s ease both;
}

@keyframes tgAuthFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- animated dark background ---- */
.tg-auth-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1b2e 40%, #0e1625 70%, #060b14 100%);
    z-index: 0;
}

.tg-auth-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tg-auth-particles span {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, rgba(42, 171, 238, 0.6) 0%, transparent 70%);
    animation: tgParticleFloat linear infinite;
}

/* give each of the 10 spans a unique size / position / duration */
.tg-auth-particles span:nth-child(1) {
    width: 6px;
    height: 6px;
    left: 10%;
    animation-duration: 14s;
    animation-delay: 0s;
}

.tg-auth-particles span:nth-child(2) {
    width: 10px;
    height: 10px;
    left: 23%;
    animation-duration: 20s;
    animation-delay: 3s;
}

.tg-auth-particles span:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 38%;
    animation-duration: 12s;
    animation-delay: 1.5s;
}

.tg-auth-particles span:nth-child(4) {
    width: 8px;
    height: 8px;
    left: 55%;
    animation-duration: 18s;
    animation-delay: 0.8s;
}

.tg-auth-particles span:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 70%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.tg-auth-particles span:nth-child(6) {
    width: 12px;
    height: 12px;
    left: 82%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.tg-auth-particles span:nth-child(7) {
    width: 7px;
    height: 7px;
    left: 90%;
    animation-duration: 13s;
    animation-delay: 6s;
}

.tg-auth-particles span:nth-child(8) {
    width: 9px;
    height: 9px;
    left: 5%;
    animation-duration: 19s;
    animation-delay: 1s;
}

.tg-auth-particles span:nth-child(9) {
    width: 4px;
    height: 4px;
    left: 47%;
    animation-duration: 11s;
    animation-delay: 5s;
}

.tg-auth-particles span:nth-child(10) {
    width: 6px;
    height: 6px;
    left: 63%;
    animation-duration: 15s;
    animation-delay: 2.5s;
}

@keyframes tgParticleFloat {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(40px) scale(0.5);
    }
}

/* ---- glass card ---- */
.tg-auth-card {
    position: relative;
    z-index: 1;
    width: min(420px, 92vw);
    padding: 48px 40px 40px;
    border-radius: 28px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(42, 171, 238, 0.22);
    box-shadow:
        0 8px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: tgCardSlideUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes tgCardSlideUp {
    from {
        transform: translateY(30px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ---- Telegram logo icon ---- */
.tg-auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 20px rgba(42, 171, 238, 0.5));
    animation: tgLogoPulse 3s ease-in-out infinite;
}

.tg-auth-logo svg {
    width: 100%;
    height: 100%;
}

@keyframes tgLogoPulse {

    0%,
    100% {
        filter: drop-shadow(0 4px 20px rgba(42, 171, 238, 0.4));
    }

    50% {
        filter: drop-shadow(0 4px 32px rgba(42, 171, 238, 0.8));
    }
}

/* ---- headings ---- */
.tg-auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #ffffff 0%, #a8d8f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tg-auth-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 32px;
    line-height: 1.5;
}

/* ---- widget container ---- */
.tg-auth-widget-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(42, 171, 238, 0.06);
    border: 1px solid rgba(42, 171, 238, 0.18);
    margin-bottom: 24px;
    box-shadow: 0 0 24px rgba(42, 171, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: tgWidgetGlow 2.5s ease-in-out infinite;
}

@keyframes tgWidgetGlow {

    0%,
    100% {
        box-shadow: 0 0 24px rgba(42, 171, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    50% {
        box-shadow: 0 0 36px rgba(42, 171, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

/* ---- fine print ---- */
.tg-auth-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    line-height: 1.6;
}