/* CSS resets and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Strict Scrollbar Hiding for all scrollable wrappers */
.chat-list,
.chat-content,
.settings-content,
.profile-content,
.app-container,
html,
body,
* {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

.chat-list::-webkit-scrollbar,
.chat-content::-webkit-scrollbar,
.settings-content::-webkit-scrollbar,
.profile-content::-webkit-scrollbar,
.app-container::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%; /* Đổi từ 100dvh về 100% */
    overscroll-behavior-y: none;
    overflow: hidden;
    position: fixed; /* Bắt buộc để khoá cứng trang */
    top: 0;
    left: 0;
    background-color: #0b0c0e; 
}

body {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* App container centered on desktop, full screen on mobile */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    height: -webkit-fill-available;
    max-height: 960px;
    background: linear-gradient(110deg, #000000 0%, #060708 35%, #464a4f 100%);
    display: flex;
    flex-direction: column;
    padding: 0; /* Container has no padding, individual views handle padding */
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

@media (max-width: 480px) {
    body {
        background-color: #121212;
        display: block; /* Disable flex centering on mobile body */
    }

    .app-container {
        position: fixed;
        top: var(--visual-viewport-top, 0px);
        left: 0;
        right: 0;
        bottom: auto;
        width: 100vw;
        height: var(--visual-viewport-height, 100%);
        max-width: 100%;
        max-height: var(--visual-viewport-height, 100%) !important;
        border: none;
        box-shadow: none;
        padding: 0 !important;
    }
}

/* Header Layout */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: clamp(16px, 3.2dvh, 28px);
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Circular Search Button */
.btn-search {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-search svg {
    width: 18px;
    height: 18px;
}

@media (hover: hover) {
    .btn-search:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.04);
    }
}

.btn-search:active {
    transform: scale(0.96);
}

/* Pill profile button */
.btn-profile-pill {
    height: 38px;
    padding: 2px 10px 2px 2px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-profile-pill svg {
    width: 14px;
    height: 14px;
}

@media (hover: hover) {
    .btn-profile-pill:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.02);
    }
}

.btn-profile-pill:active {
    transform: scale(0.98);
}

.pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.pill-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease;
}

@media (hover: hover) {
    .btn-profile-pill:hover .pill-arrow {
        transform: translateX(3px);
    }
}

/* Chat List */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
    padding-right: 4px;
}


.chat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    padding: 8px 12px;
    margin: 0 -8px;
}

@media (hover: hover) {
    .chat-item:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(1.01) translateX(2px);
    }
}

.chat-item:active {
    transform: scale(0.98) translateX(0);
}

.chat-item.is-pinned {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (hover: hover) {
    .chat-item.is-pinned:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}


.avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Green status/outline border for HOA NHAT ANH avatar */
.chat-item.has-status-border .chat-avatar {
    border: 2px solid #ffffff;
    /* Deep teal/green border exactly like screenshot */
    padding: 1.5px;
    background-color: transparent;
}

.chat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    min-width: 0;
}

.chat-name {
    font-size: 19px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-last-msg {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Chat View Integration Styles --- */
.main-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    padding: calc(clamp(20px, 4dvh, 40px) + env(safe-area-inset-top, 0px)) 20px calc(clamp(28px, 6dvh, 52px) + env(safe-area-inset-bottom, 0px)) 20px;
    will-change: transform, opacity;
}

.app-container.chat-active .main-view,
.app-container.settings-active .main-view,
.app-container.profile-active .main-view,
.app-container.group-info-active .main-view,
.app-container.create-group-active .main-view,
.app-container.find-friends-active .main-view {
    transform: translateX(-12%) scale(0.97);
    opacity: 0;
    pointer-events: none;
}

.app-container.profile-active .settings-view,
.app-container.group-info-active #chat-view {
    transform: translateX(-12%) scale(0.97);
    opacity: 0;
    pointer-events: none;
}

.chat-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, #000000 0%, #060708 35%, #464a4f 100%);
    display: flex;
    flex-direction: column;
    padding: calc(clamp(20px, 4dvh, 40px) + env(safe-area-inset-top, 0px)) 20px calc(clamp(14px, 3dvh, 26px) + env(safe-area-inset-bottom, 0px)) 20px;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    box-sizing: border-box;
    will-change: transform;
}

.chat-view.active {
    transform: translateX(0);
    visibility: visible;
}

@media (max-width: 480px) {
    .main-view {
        padding: calc(20px + env(safe-area-inset-top, 16px)) 16px calc(16px + env(safe-area-inset-bottom, 12px)) 16px;
    }
    .chat-view {
        padding: calc(20px + env(safe-area-inset-top, 16px)) 16px calc(16px + env(safe-area-inset-bottom, 12px)) 16px;
    }
}

/* Chat view Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: clamp(16px, 4dvh, 32px);
    flex-shrink: 0;
}

/* Circular Back Button */
.btn-back {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

@media (hover: hover) {
    .btn-back:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.04);
    }
}

.btn-back:active {
    transform: scale(0.96);
}

/* Custom profile pill in Chat View */
.chat-view .btn-profile-pill {
    height: 46px;
    padding: 3px 14px 3px 3px;
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .chat-view .btn-profile-pill:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.02);
    }
}

.chat-view .btn-profile-pill:active {
    transform: scale(0.98);
}

.chat-view .pill-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-view .pill-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.2px;
    display: block;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-view-status {
    display: block;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Circular background for arrow inside pill */
.pill-arrow-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .chat-view .btn-profile-pill:hover .pill-arrow-circle {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.04);
    }
}

/* Chat Content area */
.chat-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    margin-bottom: 30px;
    padding-right: 4px;
}


/* Chat Bubbles */
.chat-bubble-placeholder {
    min-height: 52px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
    flex-shrink: 0;
    animation: bubbleAppear 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

@media (hover: hover) {
    .chat-bubble-placeholder:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Left-aligned bubble (Incoming) */
.bubble-left {
    max-width: 80%;
    width: fit-content;
    margin-right: auto;
    transform-origin: left bottom;
}

/* Right-aligned bubble (Outgoing) */
.bubble-right {
    max-width: 80%;
    width: fit-content;
    margin-left: auto;
    transform-origin: right bottom;
}

.chat-bubble-placeholder.bubble-right {
    background: rgba(255, 255, 255, 0.25);
}

@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(15px);
    }

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

/* Bottom Input Bar */
.bottom-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 999;
    flex-wrap: wrap;
}

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

.message-input {
    width: 100%;
    height: 44px;
    max-height: 120px;
    border-radius: 22px;
    border: 1.2px solid rgba(255, 255, 255, 0.38);
    background: transparent;
    padding: 11px 46px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    outline: none;
    resize: none;
    overflow-y: auto;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input-action-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

@media (hover: hover) {
    .input-action-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }
}

.input-action-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.btn-emoji {
    left: 6px;
}

.btn-attachment {
    right: 6px;
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.message-input:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

/* Plus Action Button */
.btn-plus {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.2px solid rgba(255, 255, 255, 0.38);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .btn-plus:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.6);
        transform: scale(1.05);
    }
}

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

/* --- Settings & Profile View Styles --- */

.btn-settings {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.2px solid rgba(255, 255, 255, 0.38);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.btn-settings svg {
    width: 18px;
    height: 18px;
}

@media (hover: hover) {
    .btn-settings:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.6);
        transform: scale(1.05) rotate(30deg);
    }
}

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

/* View Titles */
.view-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Settings Header Customization */
.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
}

.header-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.view-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
    font-weight: 400;
}

.btn-settings-back-custom {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-container.theme-light .view-subtitle {
    color: #737373;
}

.header-action-spacer {
    width: 44px;
}

/* Settings Content Layout */
.settings-content, .profile-content {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 4px;
    padding-bottom: 36px;
}

/* Premium Profile Card */
.settings-profile-card-premium {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 18px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 8px;
}

.profile-card-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.profile-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-online-ring {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #060708;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.profile-verified-badge {
    color: #ffffff;
    display: flex;
    align-items: center;
}

.profile-card-username {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.profile-edit-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    font-weight: 500;
}

.profile-card-arrow-custom {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    z-index: 2;
}

@media (hover: hover) {
    .settings-profile-card-premium:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .settings-profile-card-premium:hover .profile-card-avatar {
        transform: scale(1.03);
    }
    
    .settings-profile-card-premium:hover .profile-card-arrow-custom {
        color: #ffffff;
        transform: translateX(3px);
    }
}

.settings-profile-card-premium:active {
    opacity: 0.85;
}

/* Settings Group Container */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
    padding-left: 8px;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 8px;
}

/* Profile Form Card for Profile View Fields */
.profile-form-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

/* Premium Profile Sharing Card */
.share-profile-premium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.share-profile-premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.share-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.share-header-icon {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.share-header-info {
    display: flex;
    flex-direction: column;
}

.share-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.share-card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 1px;
}

.share-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.qr-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.qr-code-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-code-box:hover {
    transform: scale(1.04) rotate(1deg);
}

.qr-code-box img {
    border-radius: 8px;
}

.qr-glow-effect {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(24px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.qr-help-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-align: center;
}

.share-link-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent);
    width: 100%;
    margin: 4px 0;
    z-index: 2;
}

.share-link-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.share-link-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 4px;
}

.share-link-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 4px;
    align-items: center;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.share-link-input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.share-link-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    text-overflow: ellipsis;
}

.btn-share-copy-premium {
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.btn-share-copy-premium.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

@media (hover: hover) {
    .btn-share-copy-premium:hover {
        background: #333333;
        border-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

.btn-share-copy-premium:active {
    transform: scale(0.97);
    background: #1e1e1e;
}

/* Light Theme Overrides */
.app-container.theme-light .share-profile-premium-card {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.06) !important;
    box-shadow: 0 8px 32px rgba(10, 10, 10, 0.04) !important;
}
.app-container.theme-light .share-card-title {
    color: #0a0a0a;
}
.app-container.theme-light .share-card-subtitle {
    color: rgba(10, 10, 10, 0.5);
}
.app-container.theme-light .share-header-icon {
    color: #0a0a0a;
    background: rgba(10, 10, 10, 0.04);
    border-color: rgba(10, 10, 10, 0.08);
}
.app-container.theme-light .qr-help-text {
    color: rgba(10, 10, 10, 0.6);
}
.app-container.theme-light .share-link-label {
    color: rgba(10, 10, 10, 0.7);
}
.app-container.theme-light .share-link-input-group {
    background: rgba(10, 10, 10, 0.02);
    border-color: rgba(10, 10, 10, 0.08);
}
.app-container.theme-light .share-link-input {
    color: #0a0a0a;
}
.app-container.theme-light .btn-share-copy-premium {
    background: #f4f4f5;
    border-color: rgba(10, 10, 10, 0.1);
    color: #0a0a0a;
}
.app-container.theme-light .share-link-divider {
    background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.06) 20%, rgba(10, 10, 10, 0.06) 80%, transparent);
}

/* Neon Theme Overrides */
.app-container.theme-neon .share-profile-premium-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.03) !important;
}

/* Settings Items Premium */
.settings-item-premium {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.settings-item-premium.select-item {
    cursor: pointer;
}

.settings-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-left: 68px;
}

@media (hover: hover) {
    .settings-item-premium.select-item:hover,
    .settings-item-premium.action-item-danger:hover,
    .settings-item-premium.action-item-logout:hover {
        background: rgba(255, 255, 255, 0.04);
    }
}

.settings-item-premium:active {
    background: rgba(255, 255, 255, 0.06);
}

/* Icon Gradient Wrappers */
.settings-item-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.theme-icon-bg {
    background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
}

.dark-icon-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.wallpaper-icon-bg {
    background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
}

.sound-icon-bg {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.receipts-icon-bg {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.push-icon-bg {
    background: linear-gradient(135deg, #22d3ee 0%, #0369a1 100%);
}

.guide-icon-bg {
    background: linear-gradient(135deg, #f472b6 0%, #be185d 100%);
}

.server-icon-bg {
    background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
}

.danger-icon-bg {
    background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%);
}

.logout-icon-bg {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
}

/* Item Labels */
.settings-item-label {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.label-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.1px;
}

.settings-item-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.settings-item-value {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Custom switch button style */
.switch-custom {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.switch-custom input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-custom {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.12);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-custom:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

input:checked + .slider-custom {
    background-color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
}

/* Neon Theme Toggle Switch Customizations */
.app-container.theme-neon input:checked + .slider-custom {
    background-color: var(--neon-accent, #00ffcc) !important;
    border-color: rgba(0, 255, 204, 0.3) !important;
}

.app-container.theme-neon input:checked + .slider-custom:before {
    background-color: #060708 !important;
}

.app-container.theme-neon .slider-custom {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.app-container.theme-neon .slider-custom:before {
    background-color: #888888;
}

input:checked + .slider-custom:before {
    transform: translateX(20px);
}

.slider-custom.round {
    border-radius: 26px;
}

.slider-custom.round:before {
    border-radius: 50%;
}

/* Chevron Arrows */
.chevron-arrow {
    color: rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.settings-item-premium.select-item:hover .chevron-arrow {
    color: #ffffff;
    transform: translateX(3px);
}

.settings-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Special Items Layout */
.toggle-item-layout {
    justify-content: space-between;
}

.push-item-layout {
    justify-content: space-between;
}

.push-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* Push notification badge */
#push-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.3s ease;
}

/* Push Notification Activation Button */
.btn-push-action {
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #bbbbbb 0%, #666666 100%);
    border: none;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.btn-push-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-push-action:active {
    transform: translateY(0);
}

/* Danger actions styles */
.action-item-danger {
    cursor: pointer;
    transition: all 0.25s ease;
}

.danger-text-custom {
    color: #ef4444 !important;
}

.danger-desc-custom {
    color: rgba(239, 68, 68, 0.55) !important;
}

.danger-arrow {
    color: rgba(239, 68, 68, 0.3) !important;
}

.settings-item-premium.action-item-danger:hover .danger-arrow {
    color: #ef4444 !important;
    transform: translateX(3px);
}

/* Logout actions styles */
.action-item-logout {
    cursor: pointer;
    transition: all 0.25s ease;
}

.logout-text-custom {
    color: #9ca3af !important;
}

.logout-desc-custom {
    color: rgba(156, 163, 175, 0.55) !important;
}

.logout-arrow {
    color: rgba(156, 163, 175, 0.3) !important;
}

.settings-item-premium.action-item-logout:hover .logout-arrow {
    color: #ffffff !important;
    transform: translateX(3px);
}

/* Theme Options Dots */
.theme-options {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.theme-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.theme-dot:hover {
    transform: scale(1.2);
}

.theme-dot.active {
    border-color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.theme-dark { background: #0b0c0e; }
.theme-light { background: #f3f4f6; border: 1.5px solid rgba(0,0,0,0.1); }
.theme-neon { background: linear-gradient(135deg, #000000, #888888); }

/* Light Theme support for Settings Premium */
.app-container.theme-light .settings-profile-card-premium {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.app-container.theme-light .profile-card-name {
    color: #0a0a0a !important;
}

.app-container.theme-light .profile-card-username {
    color: #737373 !important;
}

.app-container.theme-light .profile-edit-hint {
    color: #999999 !important;
}

.app-container.theme-light .profile-card-arrow-custom {
    color: #999999 !important;
}

.app-container.theme-light .group-title {
    color: #555555 !important;
}

.app-container.theme-light .settings-card {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.app-container.theme-light .settings-divider {
    background: rgba(10, 10, 10, 0.05) !important;
}

.app-container.theme-light .label-title {
    color: #0a0a0a !important;
}

.app-container.theme-light .settings-item-desc {
    color: #737373 !important;
}

.app-container.theme-light .settings-item-value {
    color: #737373 !important;
}

.app-container.theme-light .chevron-arrow {
    color: rgba(10, 10, 10, 0.3) !important;
}

.app-container.theme-light .slider-custom {
    background-color: #cccccc !important;
    border-color: rgba(10, 10, 10, 0.05) !important;
}

.app-container.theme-light input:checked + .slider-custom {
    background-color: #000000 !important;
}

.app-container.theme-light #push-status-badge {
    background: rgba(10, 10, 10, 0.04) !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
    color: #737373 !important;
}

.app-container.theme-light .logout-text-custom {
    color: #737373 !important;
}

.app-container.theme-light .logout-desc-custom {
    color: #999999 !important;
}

.app-container.theme-light .logout-arrow {
    color: rgba(10, 10, 10, 0.3) !important;
}

/* Neon Theme support for Settings Premium */
.app-container.theme-neon .settings-profile-card-premium {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.app-container.theme-neon .settings-card {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.app-container.theme-neon .settings-divider {
    background: rgba(255, 255, 255, 0.1) !important;
}

.app-container.theme-neon .theme-dot.active {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@media (hover: hover) {
    .app-container.theme-light .settings-item-premium.select-item:hover,
    .app-container.theme-light .settings-item-premium.action-item-danger:hover,
    .app-container.theme-light .settings-item-premium.action-item-logout:hover {
        background: #fcfcfc !important;
    }
    
    .app-container.theme-light .settings-profile-card-premium:hover {
        background: rgba(10, 10, 10, 0.03) !important;
    }
    
    .app-container.theme-light .settings-profile-card-premium:hover .profile-card-arrow-custom {
        color: #0a0a0a !important;
    }
    
    .app-container.theme-neon .settings-item-premium.select-item:hover,
    .app-container.theme-neon .settings-item-premium.action-item-danger:hover,
    .app-container.theme-neon .settings-item-premium.action-item-logout:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }
    
    .app-container.theme-neon .settings-profile-card-premium:hover {
        background: rgba(255, 255, 255, 0.04) !important;
    }
    
    .app-container.theme-neon .settings-profile-card-premium:hover .profile-card-arrow-custom {
        color: #ffffff !important;
    }
}

/* Legacy Settings Classes Compatibility (needed for other views like Group Info) */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding-left: 8px;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-item-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-item-label {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-item-label > span:first-child {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.settings-item-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.settings-item-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.select-item {
    cursor: pointer;
}

.action-item {
    cursor: pointer;
}

.app-container.theme-light .settings-item {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.06) !important;
}

.app-container.theme-neon .settings-item {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* --- Profile View UI CSS --- */
.profile-avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 10px 0 20px 0;
}

.avatar-edit-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
}

.profile-display-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.25s ease;
}

.avatar-edit-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6366f1; /* Premium Indigo background */
    border: 2.5px solid #060708;
    color: #ffffff; /* White camera icon */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-edit-badge svg {
    width: 16px;
    height: 16px;
}

@media (hover: hover) {
    .avatar-edit-badge:hover {
        transform: scale(1.1);
        background: #4f46e5;
    }
}

.profile-status-badge {
    position: absolute;
    bottom: 8px;
    left: calc(50% - 48px);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #060708;
    background: #4caf50; /* Default online green */
    transition: background-color 0.3s ease;
}

/* Light Theme overrides for Avatar and Badges */
.app-container.theme-light .profile-display-avatar {
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .avatar-edit-badge {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.app-container.theme-light .profile-status-badge {
    border-color: #ffffff !important;
}

/* Neon Theme overrides for Avatar and Badges */
.app-container.theme-neon .profile-display-avatar {
    border-color: var(--neon-accent, #00ffcc) !important;
}

.app-container.theme-neon .avatar-edit-badge {
    background: var(--neon-accent, #00ffcc) !important;
    border-color: #060708 !important;
    color: #060708 !important;
}

.app-container.theme-neon .profile-status-badge {
    border-color: #060708 !important;
}

/* Forms styling */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 4px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01);
}

.input-help-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    padding-left: 4px;
}

.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    pointer-events: none;
}

.prefix-input {
    padding-left: 32px;
}

.form-textarea {
    resize: none;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
    cursor: pointer;
}

.form-select option {
    background-color: #0b0c0e;
    color: white;
    padding: 12px;
}

.profile-action-buttons {
    margin-top: 10px;
}

.btn-profile-save {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #262626;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .btn-profile-save:hover {
        background: #333333;
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
}

.btn-profile-save:active {
    transform: translateY(0);
}

.btn-profile-save.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.btn-profile-save:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: default;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.btn-profile-logout {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .btn-profile-logout:hover {
        background: rgba(255, 59, 48, 0.2);
        border-color: rgba(255, 59, 48, 0.5);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 59, 48, 0.15);
    }
}

.btn-profile-logout:active {
    transform: translateY(0);
}

/* Contact actions (visible on other profiles) */
.contact-details-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
}

/* Contact Profile Layout Extensions */
.contact-profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4px;
}

.contact-display-name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.contact-username-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.contact-username-at {
    color: rgba(255, 255, 255, 0.4);
    margin-right: 1px;
}

.contact-bio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.contact-bio-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.contact-bio-text {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Light theme overrides for new components */
.app-container.theme-light .contact-display-name {
    color: #0a0a0a !important;
}

.app-container.theme-light .contact-username-badge {
    background: rgba(10, 10, 10, 0.04);
    border-color: rgba(10, 10, 10, 0.08);
    color: #4a4a4a !important;
}

.app-container.theme-light .contact-username-at {
    color: rgba(10, 10, 10, 0.35);
}

.app-container.theme-light .contact-bio-card {
    background: #ffffff;
    border-color: rgba(10, 10, 10, 0.06);
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.02);
}

.app-container.theme-light .contact-bio-card:hover {
    background: #fbfbfb;
    border-color: rgba(10, 10, 10, 0.1);
}

.app-container.theme-light .contact-bio-text {
    color: #262626 !important;
}

/* Neon Theme support */
.app-container.theme-neon .contact-username-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.app-container.theme-neon .contact-bio-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.contact-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 8px 0;
}

.contact-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 14px 6px;
    min-height: 82px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

@media (hover: hover) {
    .contact-action-btn:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        transform: translateY(-2px);
    }
}

.contact-action-btn:active {
    transform: translateY(0) scale(0.96);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.9);
}

.contact-action-btn:hover .action-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: scale(1.05);
}

.action-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.contact-action-btn:hover .action-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Theme light specifics for action grid */
.app-container.theme-light .contact-action-btn {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
    color: #0a0a0a !important;
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.02) !important;
}

.app-container.theme-light .contact-action-btn:hover {
    background: #fbfbfb !important;
    border-color: rgba(10, 10, 10, 0.15) !important;
}

.app-container.theme-light .contact-action-btn .action-icon {
    background: rgba(10, 10, 10, 0.04) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .contact-action-btn:hover .action-icon {
    background: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .contact-action-btn .action-label {
    color: rgba(10, 10, 10, 0.5) !important;
}

.app-container.theme-light .contact-action-btn:hover .action-label {
    color: #0a0a0a !important;
}

/* Theme neon specifics for action grid */
.app-container.theme-neon .contact-action-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.app-container.theme-neon .contact-action-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.app-container.theme-neon .contact-action-btn .action-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}

.app-container.theme-neon .contact-action-btn:hover .action-icon {
    background: rgba(255, 255, 255, 0.15) !important;
}

.contact-danger-zone {
    margin-top: 10px;
}

.danger-btn {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    border: 1.2px solid rgba(255, 59, 48, 0.4);
    background: transparent;
    color: #ff3b30;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .danger-btn:hover {
        background: rgba(255, 59, 48, 0.08);
        border-color: rgba(255, 59, 48, 0.8);
    }
}

.danger-btn:active {
    transform: scale(0.99);
}

/* --- Inline Search Header Styles --- */
.header {
    position: relative;
    overflow: visible;
}

.logo-text,
.btn-settings,
.btn-profile-pill,
.btn-search {
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), margin 0.28s cubic-bezier(0.4, 0, 0.2, 1), padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-container {
    position: absolute;
    left: 0;
    right: 56px;
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.search-input {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 0 40px 0 18px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.btn-clear-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    display: none;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .btn-clear-search:hover {
        color: #ffffff;
    }
}

/* Header searching active state styling */
.header.searching .logo-text {
    opacity: 0;
    transform: translateX(-15px) scale(0.95);
    pointer-events: none;
}

.header.searching .btn-settings,
.header.searching .btn-profile-pill,
.header.searching #btn-create-group {
    width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
    pointer-events: none;
}

.header.searching .header-search-container {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* --- Theme Modifications on .app-container --- */

/* Theme Light */
.app-container.theme-light {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #e5e5e5 100%);
    color: #0a0a0a;
    border: 1px solid rgba(10, 10, 10, 0.08);
}

.app-container.theme-light .logo-text,
.app-container.theme-light .chat-name,
.app-container.theme-light .view-title,
.app-container.theme-light .profile-card-name,
.app-container.theme-light .settings-item-label > span:first-child,
.app-container.theme-light .info-value,
.app-container.theme-light .form-input,
.app-container.theme-light .form-select,
.app-container.theme-light .form-textarea,
.app-container.theme-light .chat-view .pill-name,
.app-container.theme-light .reply-bar-title,
.app-container.theme-light .reply-sender,
.app-container.theme-light .multi-select-count,
.app-container.theme-light .context-menu-item,
.app-container.theme-light .glass-popup-modal h3,
.app-container.theme-light .glass-popup-modal label,
.app-container.theme-light .glass-popup-modal span {
    color: #0a0a0a !important;
}

.app-container.theme-light .chat-last-msg,
.app-container.theme-light .settings-item-desc,
.app-container.theme-light .settings-item-value,
.app-container.theme-light .profile-card-username,
.app-container.theme-light .form-label,
.app-container.theme-light .input-prefix,
.app-container.theme-light .input-help-text,
.app-container.theme-light .action-label,
.app-container.theme-light .info-label,
.app-container.theme-light .reply-bar-text {
    color: #737373 !important;
}

.app-container.theme-light .section-title {
    color: #555555 !important;
}

/* Dynamic slider colors in Light theme */
.app-container.theme-light .slider {
    background-color: #cccccc !important;
    border-color: rgba(10, 10, 10, 0.05) !important;
}
.app-container.theme-light input:checked + .slider {
    background-color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Theme Dot Active status in Light theme */
.app-container.theme-light .theme-dot.active {
    border-color: #0a0a0a !important;
}

/* Button & SVGs overrides */
.app-container.theme-light .btn-search,
.app-container.theme-light .btn-settings,
.app-container.theme-light .btn-profile-pill,
.app-container.theme-light .btn-back,
.app-container.theme-light .btn-plus,
.app-container.theme-light #btn-create-group,
.app-container.theme-light .chat-view .btn-profile-pill {
    border-color: rgba(10, 10, 10, 0.12) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(10, 10, 10, 0.04) !important;
}

.app-container.theme-light .btn-search svg,
.app-container.theme-light .btn-search svg *,
.app-container.theme-light .btn-settings svg,
.app-container.theme-light .btn-settings svg *,
.app-container.theme-light .btn-profile-pill svg,
.app-container.theme-light .btn-profile-pill svg *,
.app-container.theme-light .btn-back svg,
.app-container.theme-light .btn-back svg *,
.app-container.theme-light .btn-plus svg,
.app-container.theme-light .btn-plus svg *,
.app-container.theme-light #btn-create-group svg,
.app-container.theme-light #btn-create-group svg * {
    stroke: #0a0a0a !important;
}

@media (hover: hover) {
    .app-container.theme-light .btn-search:hover,
    .app-container.theme-light .btn-settings:hover,
    .app-container.theme-light .btn-profile-pill:hover,
    .app-container.theme-light .btn-back:hover,
    .app-container.theme-light .btn-plus:hover,
    .app-container.theme-light #btn-create-group:hover {
        background: #fcfcfc !important;
        border-color: rgba(10, 10, 10, 0.2) !important;
    }
}

/* Cards & items layout overrides */
.app-container.theme-light .settings-profile-card,
.app-container.theme-light .settings-profile-card-premium,
.app-container.theme-light .settings-card,
.app-container.theme-light .profile-form-card,
.app-container.theme-light .settings-item,
.app-container.theme-light .contact-action-btn,
.app-container.theme-light .contact-info-item,
.app-container.theme-light .chat-bubble-placeholder {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.06) !important;
    box-shadow: 0 4px 20px rgba(10, 10, 10, 0.03) !important;
}

.app-container.theme-light .settings-divider {
    background: rgba(10, 10, 10, 0.05) !important;
}

@media (hover: hover) {
    .app-container.theme-light .settings-profile-card:hover,
    .app-container.theme-light .settings-profile-card-premium:hover,
    .app-container.theme-light .settings-item:hover,
    .app-container.theme-light .contact-action-btn:hover {
        background: #fcfcfc !important;
        border-color: rgba(10, 10, 10, 0.12) !important;
        box-shadow: 0 6px 16px rgba(10, 10, 10, 0.05) !important;
    }

    .app-container.theme-light .settings-item-premium.select-item:hover,
    .app-container.theme-light .settings-item-premium.action-item-danger:hover,
    .app-container.theme-light .settings-item-premium.action-item-logout:hover {
        background: rgba(10, 10, 10, 0.03) !important;
    }
}

.app-container.theme-light .chat-item:hover {
    background: rgba(10, 10, 10, 0.04) !important;
}

.app-container.theme-light .chat-item.has-status-border .chat-avatar {
    border-color: #ffffff !important;
}

.app-container.theme-light .chat-bubble-placeholder {
    color: #0a0a0a !important;
}

.app-container.theme-light .chat-bubble-placeholder.bubble-left {
    background: #ffffff !important;
}

.app-container.theme-light .chat-bubble-placeholder.bubble-right {
    background: #888888 !important;
}

/* Input Fields overrides */
.app-container.theme-light .form-input,
.app-container.theme-light .form-select,
.app-container.theme-light .form-textarea {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.12) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .form-input:focus,
.app-container.theme-light .form-select:focus,
.app-container.theme-light .form-textarea:focus {
    background: #ffffff !important;
    border-color: #888888 !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}

.app-container.theme-light .btn-profile-save {
    background: #0a0a0a !important;
    color: #ffffff !important;
}

@media (hover: hover) {
    .app-container.theme-light .btn-profile-save:hover {
        background: #1a1a1a !important;
    }
}

.app-container.theme-light .btn-profile-save:disabled {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.app-container.theme-light .search-input {
    border-color: rgba(10, 10, 10, 0.15) !important;
    background: #ffffff !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .search-input:focus {
    border-color: #888888 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}

.app-container.theme-light .pill-arrow-circle {
    background: rgba(10, 10, 10, 0.05) !important;
}

@media (hover: hover) {
    .app-container.theme-light .chat-view .btn-profile-pill:hover .pill-arrow-circle {
        background: rgba(10, 10, 10, 0.1) !important;
    }
}

.app-container.theme-light .message-input {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.15) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .message-input:focus {
    border-color: #888888 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.app-container.theme-light .message-input::placeholder {
    color: #999999 !important;
}

.app-container.theme-light .input-action-btn {
    color: #737373 !important;
}

@media (hover: hover) {
    .app-container.theme-light .input-action-btn:hover {
        color: #0a0a0a !important;
        background: rgba(10, 10, 10, 0.05) !important;
    }
}

/* --- Added Light Theme Styling for Views & Components --- */
.app-container.theme-light .chat-view {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #e5e5e5 100%) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light #chat-view-status {
    color: #737373 !important;
}

.app-container.theme-light .pinned-message-banner {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(10, 10, 10, 0.06) !important;
    color: #0a0a0a !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.app-container.theme-light .pinned-message-text {
    color: #0a0a0a !important;
}

.app-container.theme-light .btn-unpin {
    color: #999999 !important;
}

.app-container.theme-light .btn-unpin:hover {
    color: #0a0a0a !important;
}

.app-container.theme-light .calling-overlay {
    background: rgba(10, 10, 10, 0.95) !important;
}

.app-container.theme-light .message-bubble-content {
    background: #ffffff !important;
    border: 1px solid rgba(10, 10, 10, 0.06) !important;
    color: #0a0a0a !important;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.03) !important;
}

.app-container.theme-light .bubble-left .message-bubble-content {
    background: #ffffff !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .bubble-right .message-bubble-content {
    background: linear-gradient(135deg, #888888 0%, #ffffff 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.app-container.theme-light .message-meta {
    color: #999999 !important;
}

.app-container.theme-light .bubble-right .message-meta {
    color: rgba(255, 255, 255, 0.7) !important;
}

.app-container.theme-light .message-status svg {
    color: #999999 !important;
}

.app-container.theme-light .bubble-right .message-status svg {
    color: rgba(255, 255, 255, 0.8) !important;
}

.app-container.theme-light .message-reply-preview {
    background: #f5f5f5 !important;
    border-left: 3px solid #cccccc !important;
    color: #555555 !important;
}

.app-container.theme-light .message-reply-preview .reply-sender {
    color: #0a0a0a !important;
}

.app-container.theme-light .bubble-right .message-reply-preview {
    background: rgba(255, 255, 255, 0.15) !important;
    border-left: 3px solid rgba(255, 255, 255, 0.8) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.app-container.theme-light .bubble-right .message-reply-preview .reply-sender {
    color: #ffffff !important;
}

.app-container.theme-light .message-date-badge {
    background: #ffffff !important;
    border: 1px solid rgba(10, 10, 10, 0.08) !important;
    color: #555555 !important;
    box-shadow: 0 2px 4px rgba(10, 10, 10, 0.02) !important;
}

.app-container.theme-light .message-hover-actions {
    background: #ffffff !important;
    border: 1px solid rgba(10, 10, 10, 0.08) !important;
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.06) !important;
}

.app-container.theme-light .hover-action-btn {
    color: #737373 !important;
}

.app-container.theme-light .hover-action-btn:hover {
    background: #f5f5f5 !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .reply-bar {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(10, 10, 10, 0.06) !important;
    box-shadow: 0 -2px 10px rgba(10, 10, 10, 0.02) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.app-container.theme-light .reply-bar-icon {
    color: #737373 !important;
}

.app-container.theme-light .reply-bar-close {
    color: #999999 !important;
}

.app-container.theme-light .reply-bar-close:hover {
    color: #0a0a0a !important;
}

.app-container.theme-light .reply-bar-media,
.app-container.theme-light .reply-media-preview {
    background: rgba(10, 10, 10, 0.05) !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .reply-bar-media svg,
.app-container.theme-light .reply-media-preview svg {
    color: rgba(10, 10, 10, 0.6) !important;
}

.app-container.theme-light .bottom-bar {
    background: transparent !important;
}

.app-container.theme-light .btn-plus {
    border-color: rgba(10, 10, 10, 0.15) !important;
    background: #ffffff !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .btn-plus svg path {
    stroke: #0a0a0a !important;
}

.app-container.theme-light .btn-plus:hover {
    background: #fcfcfc !important;
    border-color: rgba(10, 10, 10, 0.25) !important;
}

.app-container.theme-light .input-action-btn svg {
    stroke: #737373 !important;
}

.app-container.theme-light .multi-select-action-bar {
    background: #ffffff !important;
    border-top: 1px solid rgba(10, 10, 10, 0.08) !important;
    box-shadow: 0 -4px 16px rgba(10, 10, 10, 0.04) !important;
}

.app-container.theme-light .btn-multi-action {
    background: #f5f5f5 !important;
    border: 1px solid rgba(10, 10, 10, 0.06) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .btn-multi-action:hover {
    background: #e5e5e5 !important;
}

.app-container.theme-light .btn-multi-action.danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

.app-container.theme-light .btn-multi-action.danger:hover {
    background: rgba(239, 68, 68, 0.18) !important;
}

.app-container.theme-light .message-context-menu {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
    box-shadow: 0 10px 25px rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .message-context-menu .context-menu-item {
    color: #0a0a0a !important;
}

.app-container.theme-light .message-context-menu .context-menu-item:hover {
    background: #f5f5f5 !important;
}

.app-container.theme-light .message-context-menu .context-menu-item.danger {
    color: #ef4444 !important;
}

.app-container.theme-light .message-context-menu .context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) {
    background: #ffffff !important;
    border: 1px solid rgba(10, 10, 10, 0.08) !important;
    color: #0a0a0a !important;
    box-shadow: 0 20px 40px rgba(10, 10, 10, 0.1) !important;
}

/* Styled dynamic popup buttons inside glass-popup-modal */
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn {
    background: #f5f5f5 !important;
    border: 1px solid rgba(10, 10, 10, 0.06) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn.danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

@media (hover: hover) {
    .app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn:hover {
        background: #e5e5e5 !important;
    }
    .app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn.danger:hover {
        background: rgba(239, 68, 68, 0.18) !important;
    }
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-cancel-btn {
    color: #737373 !important;
}

@media (hover: hover) {
    .app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-cancel-btn:hover {
        color: #0a0a0a !important;
    }
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) button:not(#btn-submit-create-group):not(.btn-modal-confirm):not(.popup-option-btn):not(.popup-cancel-btn) {
    color: #555555 !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) button#btn-cancel-create-group,
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) button#btn-cancel-cropper,
.app-container.theme-light .btn-modal-cancel:not(#btn-cancel-cropper) {
    border-color: rgba(10, 10, 10, 0.1) !important;
    background: transparent !important;
    color: #555555 !important;
}

@media (hover: hover) {
    .app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) button#btn-cancel-create-group:hover,
    .app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) button#btn-cancel-cropper:hover,
    .app-container.theme-light .btn-modal-cancel:not(#btn-cancel-cropper):hover {
        background: #f5f5f5 !important;
        color: #0a0a0a !important;
    }
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) input {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.12) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .glass-popup-modal #group-members-list,
.app-container.theme-light .glass-popup-modal #group-info-members-list {
    background: #fcfcfc !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .glass-popup-modal #group-members-list div,
.app-container.theme-light .glass-popup-modal #group-info-members-list div {
    color: #555555 !important;
}

.app-container.theme-light #group-avatar-placeholder {
    color: #999999 !important;
}

.app-container.theme-light #group-avatar-upload-trigger {
    background: #fcfcfc !important;
    border-color: rgba(10, 10, 10, 0.12) !important;
}

.app-container.theme-light #create-group-loading-overlay,
.app-container.theme-light #group-info-loading-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
}

.app-container.theme-light #create-group-loading-overlay span,
.app-container.theme-light #group-info-loading-overlay span {
    color: #0a0a0a !important;
}

.app-container.theme-light #group-info-avatar-edit-badge {
    border-color: #ffffff !important;
}

.app-container.theme-light #btn-show-add-members {
    color: #ffffff !important;
}

.app-container.theme-light #add-members-section {
    background: #fcfcfc !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light #add-members-section input {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.12) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light #add-members-checklist {
    border-color: rgba(10, 10, 10, 0.06) !important;
}

.app-container.theme-light #add-members-checklist div {
    color: #555555 !important;
}

.app-container.theme-light .toast-notification {
    background: #0a0a0a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.15) !important;
}

/* Skeleton items in Light Theme */
.app-container.theme-light .skeleton-avatar,
.app-container.theme-light .skeleton-line {
    background: rgba(10, 10, 10, 0.05) !important;
}

.app-container.theme-light .skeleton-line.name {
    background: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .skeleton-msg-bubble {
    background: rgba(10, 10, 10, 0.04) !important;
}

.app-container.theme-light .skeleton-msg-bubble.right {
    background: rgba(10, 10, 10, 0.08) !important;
}


/* Theme Neon Glass */
.app-container.theme-neon {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #020202 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-container.theme-neon .chat-view {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #020202 100%);
}

.app-container.theme-neon .settings-profile-card,
.app-container.theme-neon .settings-profile-card-premium,
.app-container.theme-neon .settings-card,
.app-container.theme-neon .profile-form-card,
.app-container.theme-neon .settings-item,
.app-container.theme-neon .contact-action-btn,
.app-container.theme-neon .contact-info-item,
.app-container.theme-neon .chat-bubble-placeholder {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05) !important;
}

.app-container.theme-neon .settings-divider {
    background: rgba(255, 255, 255, 0.1) !important;
}

@media (hover: hover) {
    .app-container.theme-neon .settings-profile-card:hover,
    .app-container.theme-neon .settings-profile-card-premium:hover,
    .app-container.theme-neon .settings-item:hover,
    .app-container.theme-neon .contact-action-btn:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }

    .app-container.theme-neon .settings-item-premium.select-item:hover,
    .app-container.theme-neon .settings-item-premium.action-item-danger:hover,
    .app-container.theme-neon .settings-item-premium.action-item-logout:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }
}

.app-container.theme-neon .btn-profile-save {
    background: linear-gradient(135deg, #000000, #888888);
    color: #ffffff;
}

@media (hover: hover) {
    .app-container.theme-neon .btn-profile-save:hover {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

.app-container.theme-neon .btn-profile-save:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
}

.app-container.theme-neon .avatar-edit-badge {
    background: linear-gradient(135deg, #000000, #888888);
}

.app-container.theme-neon .chat-item.has-status-border .chat-avatar {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}


/* --- Custom Wallpapers --- */
.app-container.wp-neon #chat-messages-container {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 80%);
}

.app-container.wp-classic #chat-messages-container {
    background: #000000;
}

.app-container.wp-emerald #chat-messages-container {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 80%);
}

/* Keyboard open dynamic layout overrides */
.app-container.keyboard-open .chat-header {
    margin-bottom: clamp(6px, 2dvh, 12px);
}

.app-container.keyboard-open .chat-content {
    margin-bottom: clamp(10px, 2.5dvh, 16px);
    gap: clamp(8px, 2dvh, 14px);
}

.app-container.keyboard-open .header {
    margin-bottom: clamp(6px, 2dvh, 12px);
}

.app-container.keyboard-open .chat-view {
    padding-bottom: 6px !important;
}

/* ── Empty state & "Find People" ──────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

#btn-find-people:active {
    transform: scale(0.96);
}

/* ── Stranger badge on chat list item ────────────────────────── */
.badge-stranger {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.3px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Pending dot on avatar */
.pending-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid #0b0c0e;
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.15); }
}

/* Pending chat-item extra dim */
.chat-item--pending {
    opacity: 0.82;
}

@media (hover: hover) {
    .chat-item--pending:hover {
        opacity: 1;
    }
}

/* Search result item in chat list */
.search-result-item {
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    padding-left: 14px;
    margin-left: -2px;
}

/* Cropper Modal Premium UI Styles */
.cropper-theme-dark {
    background: rgba(18, 18, 18, 0.95); /* Equivalent to hex #121212 base */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 24px;
    width: calc(100% - 32px);
    max-width: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ffffff;
}

.btn-modal-icon {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.btn-modal-action {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-modal-cancel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255,255,255,0.7);
}

.btn-modal-confirm {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Trigger hover only for mouse-based pointers */
@media (hover: hover) {
    .btn-modal-icon:hover { color: #ffffff; }
    .btn-modal-cancel:hover { background: rgba(255,255,255,0.05); }
    .btn-modal-confirm:hover { filter: brightness(1.1); }
}

/* Safe active state touch scale feedback */
.btn-modal-action:active, .btn-modal-icon:active {
    transform: scale(0.96);
}

/* Skeleton Loader Styles */
.skeleton-wrapper {
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 16px 8px;
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    pointer-events: none;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.skeleton-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.skeleton-line.name {
    width: 40%;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.skeleton-line.text {
    width: 75%;
    height: 12px;
}

/* Skeleton message bubbles inside chat window */
.skeleton-msg-bubble {
    height: 48px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.skeleton-msg-bubble.left {
    width: 55%;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.skeleton-msg-bubble.right {
    width: 40%;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
}

/* Shimmer Animation effect */
.skeleton-shimmer::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.06) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Plus Dropdown Menu (Header actions dropdown) */
.plus-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px;
    width: 170px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plus-dropdown-menu.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.plus-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.plus-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.plus-dropdown-item svg {
    stroke: rgba(255, 255, 255, 0.65);
    transition: stroke 0.15s ease;
}

.plus-dropdown-item:hover svg {
    stroke: #ffffff;
}

/* Theme Light Support */
.app-container.theme-light .plus-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(10, 10, 10, 0.08);
    box-shadow: 0 16px 40px rgba(10, 10, 10, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.app-container.theme-light .plus-dropdown-item {
    color: #0a0a0a;
}

.app-container.theme-light .plus-dropdown-item:hover {
    background: rgba(10, 10, 10, 0.04);
}

.app-container.theme-light .plus-dropdown-item svg {
    stroke: #555555;
}

.app-container.theme-light .plus-dropdown-item:hover svg {
    stroke: #0a0a0a;
}

/* Find Friends Modal Theme Support */
/* Light Theme overrides for Find Friends modal */
.app-container.theme-light #find-friends-modal .glass-popup-modal {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
    box-shadow: 0 24px 60px rgba(10, 10, 10, 0.15) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light #find-friends-modal h3 {
    color: #0a0a0a !important;
}

.app-container.theme-light #find-friends-modal #find-friends-search-input {
    background: rgba(10, 10, 10, 0.03) !important;
    border-color: rgba(10, 10, 10, 0.1) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light #find-friends-modal #find-friends-search-input::placeholder {
    color: rgba(10, 10, 10, 0.4) !important;
}

.app-container.theme-light #find-friends-modal svg {
    stroke: rgba(10, 10, 10, 0.5) !important;
}

.app-container.theme-light #find-friends-modal #btn-close-find-friends,
.app-container.theme-light #find-friends-modal #btn-clear-find-friends {
    color: rgba(10, 10, 10, 0.5) !important;
}

.app-container.theme-light #find-friends-modal #btn-close-find-friends:hover {
    color: #0a0a0a !important;
}

/* Search results item light theme overrides */
.app-container.theme-light #find-friends-modal .search-user-item {
    background: rgba(10, 10, 10, 0.02) !important;
    border-color: rgba(10, 10, 10, 0.04) !important;
}

.app-container.theme-light #find-friends-modal .search-user-item:hover {
    background: rgba(10, 10, 10, 0.04) !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light #find-friends-modal .search-user-item img {
    border-color: rgba(10, 10, 10, 0.1) !important;
}

.app-container.theme-light #find-friends-modal .search-user-item span {
    color: #0a0a0a !important;
}

.app-container.theme-light #find-friends-modal .search-user-item span:last-child {
    color: rgba(10, 10, 10, 0.5) !important;
}

.app-container.theme-light #find-friends-modal .btn-message-friend {
    border-color: rgba(10, 10, 10, 0.15) !important;
    background: rgba(10, 10, 10, 0.05) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light #find-friends-modal .btn-message-friend:hover {
    background: rgba(10, 10, 10, 0.08) !important;
    border-color: rgba(10, 10, 10, 0.25) !important;
}

/* Profile Settings Button */
.btn-settings-profile {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.2px solid rgba(255, 255, 255, 0.38);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.btn-settings-profile svg {
    width: 22px;
    height: 22px;
}

@media (hover: hover) {
    .btn-settings-profile:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.6);
        transform: scale(1.05) rotate(30deg);
    }
}

.btn-settings-profile:active {
    transform: scale(0.95);
}

/* Light Theme Support for Profile Settings Button */
.app-container.theme-light .btn-settings-profile {
    border-color: rgba(10, 10, 10, 0.15);
    color: #0a0a0a;
}

@media (hover: hover) {
    .app-container.theme-light .btn-settings-profile:hover {
        background: rgba(10, 10, 10, 0.05);
        border-color: rgba(10, 10, 10, 0.3);
    }
}

/* ==========================================================================
   Premium Glassmorphism Frosted Glass Modal Styles
   ========================================================================== */

/* Overlays */
.glass-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 12, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.3s ease;
    padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)) !important;
    box-sizing: border-box;
}
.glass-popup-overlay.active {
    opacity: 1 !important;
}

/* Modals */
.glass-popup-modal {
    position: relative;
    background: rgba(22, 22, 28, 0.65) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    width: 100% !important;
    max-width: 400px !important;
    max-height: min(650px, calc(100dvh - 32px)) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4), 
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2) !important;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    color: #ffffff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Scroll area within modals */
.glass-popup-modal-body {
    overflow-y: auto !important;
    flex-grow: 1 !important;
    padding-right: 6px !important;
    margin-right: -6px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

.glass-popup-modal-body::-webkit-scrollbar {
    width: 5px;
}
.glass-popup-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.glass-popup-modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* Input Fields inside Modals */
.glass-popup-modal input[type="text"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}
.glass-popup-modal input[type="text"].glass-search-input {
    padding-left: 42px !important;
}
.glass-popup-modal input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
}

/* Close buttons inside Modals */
.glass-popup-modal .btn-close-modal {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 4px !important;
    line-height: 1 !important;
    transition: color 0.2s, transform 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.glass-popup-modal .btn-close-modal:hover {
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* Glass List Container */
.glass-list-container {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.01) !important;
    overflow-y: auto !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.glass-list-container::-webkit-scrollbar {
    width: 4px;
}
.glass-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

/* Unified Dynamic Item styles inside modals */
.glass-popup-modal .group-friend-item,
.glass-popup-modal .group-member-item,
.glass-popup-modal .search-user-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin-bottom: 6px !important;
    box-sizing: border-box !important;
}
.glass-popup-modal .group-friend-item:hover,
.glass-popup-modal .group-member-item:hover,
.glass-popup-modal .search-user-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Custom checkbox inside modals */
.glass-popup-modal .custom-checkbox {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

/* Popup action buttons (confirm, danger, cancel) */
.popup-option-btn {
    width: 100% !important;
    padding: 12px !important;
    margin: 8px 0 !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    background: #262626 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
}
.popup-option-btn:hover {
    background: #333333 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.popup-option-btn.danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
.popup-option-btn.danger:hover {
    background: rgba(239, 68, 68, 0.25) !important;
}

.popup-cancel-btn {
    width: 100% !important;
    padding: 12px !important;
    margin: 8px 0 0 0 !important;
    border-radius: 14px !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.2s ease !important;
}
.popup-cancel-btn:hover {
    color: #ffffff !important;
}


/* ==========================================================================
   Light Theme Support overrides
   ========================================================================== */
.app-container.theme-light .glass-popup-overlay {
    background: rgba(255, 255, 255, 0.25) !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(10, 10, 10, 0.12) !important;
    color: #0a0a0a !important;
    box-shadow: 
        0 30px 60px rgba(10, 10, 10, 0.12), 
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(10, 10, 10, 0.05) !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) h3,
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) label,
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) span {
    color: #0a0a0a !important;
}

.app-container.theme-light .glass-popup-modal-body {
    scrollbar-color: rgba(10, 10, 10, 0.1) transparent;
}
.app-container.theme-light .glass-popup-modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(10, 10, 10, 0.15);
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) input[type="text"] {
    background: rgba(10, 10, 10, 0.03) !important;
    border-color: rgba(10, 10, 10, 0.12) !important;
    color: #0a0a0a !important;
}
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(10, 10, 10, 0.01) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .btn-close-modal {
    color: rgba(10, 10, 10, 0.45) !important;
}
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .btn-close-modal:hover {
    color: #0a0a0a !important;
}

.app-container.theme-light .glass-list-container {
    border-color: rgba(10, 10, 10, 0.08) !important;
    background: rgba(10, 10, 10, 0.02) !important;
    scrollbar-color: rgba(10, 10, 10, 0.1) transparent;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .group-friend-item,
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .group-member-item,
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .search-user-item {
    background: rgba(10, 10, 10, 0.02) !important;
    border-color: rgba(10, 10, 10, 0.04) !important;
    color: #0a0a0a !important;
}
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .group-friend-item:hover,
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .group-member-item:hover,
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .search-user-item:hover {
    background: rgba(10, 10, 10, 0.04) !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .custom-checkbox {
    border-color: rgba(10, 10, 10, 0.3) !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn {
    background: rgba(10, 10, 10, 0.04) !important;
    border-color: rgba(10, 10, 10, 0.06) !important;
    color: #0a0a0a !important;
}
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn:hover {
    background: rgba(10, 10, 10, 0.08) !important;
}
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn.danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn.danger:hover {
    background: rgba(239, 68, 68, 0.18) !important;
}

.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-cancel-btn {
    color: rgba(10, 10, 10, 0.5) !important;
}
.app-container.theme-light .glass-popup-modal:not(.cropper-theme-dark) .popup-cancel-btn:hover {
    color: #0a0a0a !important;
}


/* ==========================================================================
   Neon Theme Support overrides
   ========================================================================== */
.app-container.theme-neon .glass-popup-modal:not(.cropper-theme-dark) {
    background: rgba(26, 26, 26, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.5), 
        0 0 20px rgba(255, 255, 255, 0.1), 
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.app-container.theme-neon .glass-popup-modal:not(.cropper-theme-dark) input[type="text"] {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.app-container.theme-neon .glass-popup-modal:not(.cropper-theme-dark) input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}

.app-container.theme-neon .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.app-container.theme-neon .glass-popup-modal:not(.cropper-theme-dark) .popup-option-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15) !important;
}

/* Avatar Upload trigger inside modals */
.glass-avatar-upload-trigger {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1.5px dashed rgba(255,255,255,0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}
.glass-avatar-upload-trigger:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255,255,255,0.05) !important;
}
.app-container.theme-light .glass-avatar-upload-trigger {
    background: rgba(10, 10, 10, 0.03) !important;
    border-color: rgba(10, 10, 10, 0.2) !important;
}
.app-container.theme-light .glass-avatar-upload-trigger:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(10, 10, 10, 0.05) !important;
}

/* Modal form label */
.glass-modal-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}
.app-container.theme-light .glass-modal-label {
    color: rgba(10, 10, 10, 0.5) !important;
}

/* Modal action buttons */
.btn-modal-action {
    flex: 1 !important;
    padding: 12px 20px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.btn-modal-cancel {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.btn-modal-cancel:active {
    transform: scale(0.98) !important;
}
.btn-modal-confirm {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #262626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}
.btn-modal-confirm:hover {
    background: #333333 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}
.btn-modal-confirm:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Light theme action buttons support */
.app-container.theme-light .btn-modal-cancel {
    border-color: rgba(10, 10, 10, 0.12) !important;
    color: rgba(10, 10, 10, 0.7) !important;
}
.app-container.theme-light .btn-modal-cancel:hover {
    background: rgba(10, 10, 10, 0.04) !important;
    color: #0a0a0a !important;
    border-color: rgba(10, 10, 10, 0.2) !important;
}
.app-container.theme-light .btn-modal-confirm {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
.app-container.theme-light .btn-modal-confirm:hover {
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3) !important;
}

/* Modal Loading Overlay */
.glass-loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(18, 18, 22, 0.8) !important;
}
.app-container.theme-light .glass-loading-overlay {
    background: rgba(255, 255, 255, 0.8) !important;
}
.app-container.theme-light .glass-loading-overlay span {
    color: #0a0a0a !important;
}
.glass-loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
.app-container.theme-light .glass-loading-overlay .spinner {
    border-color: rgba(10, 10, 10, 0.1);
    border-top-color: #ffffff;
}

/* Modal leave/danger action button */
.btn-modal-leave {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
}
.btn-modal-leave:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

/* Kick member button and owner badge inside group info modal */
.btn-kick-member {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}
.btn-kick-member:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}
.group-owner-badge {
    font-size: 11px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
}
.app-container.theme-light .group-owner-badge {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Friend checklist item inside the group info add member collapsible panel */
.add-friend-checkbox-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    cursor: pointer !important;
    margin-bottom: 4px !important;
    transition: all 0.2s ease !important;
}
.add-friend-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.app-container.theme-light .add-friend-checkbox-item {
    background: rgba(10, 10, 10, 0.02) !important;
    border-color: rgba(10, 10, 10, 0.04) !important;
    color: #0a0a0a !important;
}
.app-container.theme-light .add-friend-checkbox-item:hover {
    background: rgba(10, 10, 10, 0.04) !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.add-custom-checkbox {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}
.app-container.theme-light .add-custom-checkbox {
    border-color: rgba(10, 10, 10, 0.3) !important;
}

/* ==========================================================================
   Group Info Page Redesign Styles
   ========================================================================== */

/* Group Info Profile Card */
.group-info-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.group-info-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 16px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.group-info-avatar-wrapper:hover {
    transform: scale(1.04);
}

#group-info-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(18, 18, 22, 0.95) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    margin: 0 !important;
}

#group-info-avatar-edit-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2.5px solid rgba(18, 18, 22, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    color: #ffffff;
    z-index: 5;
}

#group-info-avatar-edit-badge:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ffffff 30%, #ffffff 100%);
}

#group-info-avatar-edit-badge svg {
    width: 15px;
    height: 15px;
}

/* Group Name Display & Edit */
.group-name-display-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

.group-info-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.btn-edit-group-name {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
}

.btn-edit-group-name:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.group-info-creator {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    font-weight: 500;
}

/* Edit group name container */
.group-name-edit-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin-top: 12px;
}

.group-name-edit-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.group-name-edit-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.group-name-edit-actions {
    display: flex;
    gap: 8px;
}

.btn-save-group-name, .btn-cancel-group-name {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save-group-name {
    background: #262626;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-save-group-name:hover {
    background: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

.btn-cancel-group-name {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-cancel-group-name:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Visual Stats Grid */
.group-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.group-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.members-stat-bg {
    background: linear-gradient(135deg, #888888 0%, #222222 100%);
}

.type-stat-bg {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Members Section */
.group-members-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 24px;
}

.members-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.members-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.btn-show-add-members {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-show-add-members:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Add members card */
.add-members-section-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.add-members-header {
    margin-bottom: 12px;
}

.add-members-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.add-member-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.add-member-search-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.search-icon-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.add-members-checklist-scroll {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

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

.btn-add-cancel, .btn-add-submit {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-add-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-add-submit {
    background: #262626;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-add-submit:hover {
    background: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

/* Members list wrapper */
.group-info-members-list-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Group Member Items override */
.group-member-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
}

.group-member-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Danger Zone */
.group-danger-zone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.danger-zone-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 59, 48, 0.7);
    padding-left: 12px;
}

.danger-card {
    background: rgba(255, 59, 48, 0.03);
    border: 1px solid rgba(255, 59, 48, 0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.danger-action-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    gap: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-align: left;
}

.danger-action-item:hover {
    background: rgba(255, 59, 48, 0.06);
}

.danger-action-item:active {
    background: rgba(255, 59, 48, 0.09);
}

.danger-icon-wrapper-premium {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.12);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.08);
}

.danger-action-label {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.danger-label-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #ff3b30;
}

.danger-label-desc {
    font-size: 11.5px;
    color: rgba(255, 59, 48, 0.55);
    line-height: 1.4;
}

.danger-chevron-arrow {
    color: rgba(255, 59, 48, 0.3);
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.danger-action-item:hover .danger-chevron-arrow {
    color: #ff3b30;
    transform: translateX(3px);
}

/* Light Theme overrides for Group Info Page */
.app-container.theme-light .group-info-profile-card,
.app-container.theme-light .group-stat-card,
.app-container.theme-light .add-members-section-card {
    background: #ffffff !important;
    border-color: rgba(10, 10, 10, 0.06) !important;
    box-shadow: 0 4px 20px rgba(10, 10, 10, 0.05) !important;
}

.app-container.theme-light .group-info-avatar-wrapper {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.12) 100%) !important;
    box-shadow: 0 8px 20px rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light #group-info-avatar {
    border-color: #ffffff !important;
}

.app-container.theme-light .group-info-name {
    color: #0a0a0a !important;
}

.app-container.theme-light .btn-edit-group-name {
    color: rgba(10, 10, 10, 0.45) !important;
}

.app-container.theme-light .btn-edit-group-name:hover {
    color: #0a0a0a !important;
    background-color: rgba(10, 10, 10, 0.05) !important;
}

.app-container.theme-light .group-info-creator,
.app-container.theme-light .stat-label {
    color: rgba(10, 10, 10, 0.5) !important;
}

.app-container.theme-light .stat-value {
    color: #0a0a0a !important;
}

.app-container.theme-light .group-name-edit-input,
.app-container.theme-light .add-member-search-input {
    background: #fcfcfc !important;
    border-color: rgba(10, 10, 10, 0.1) !important;
    color: #0a0a0a !important;
}

.app-container.theme-light .btn-cancel-group-name,
.app-container.theme-light .btn-add-cancel {
    background: #f5f5f5 !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
    color: #555555 !important;
}

.app-container.theme-light .btn-cancel-group-name:hover,
.app-container.theme-light .btn-add-cancel:hover {
    background: #e5e5e5 !important;
}

.app-container.theme-light .btn-save-group-name,
.app-container.theme-light .btn-add-submit {
    background: #0b0c0e !important;
    color: #ffffff !important;
}

.app-container.theme-light .add-members-title {
    color: #0a0a0a !important;
}

.app-container.theme-light .search-icon-svg {
    color: rgba(10, 10, 10, 0.4) !important;
}

.app-container.theme-light .group-info-members-list-container {
    background: #fcfcfc !important;
    border-color: rgba(10, 10, 10, 0.05) !important;
}

.app-container.theme-light .group-member-item:hover {
    background: rgba(10, 10, 10, 0.02) !important;
    border-color: rgba(10, 10, 10, 0.03) !important;
}

.app-container.theme-light .danger-card {
    background: rgba(239, 68, 68, 0.02) !important;
    border-color: rgba(239, 68, 68, 0.08) !important;
}

.app-container.theme-light .danger-action-item:hover {
    background: rgba(239, 68, 68, 0.04) !important;
}

/* Neon Theme overrides for Group Info Page */
.app-container.theme-neon .group-info-profile-card,
.app-container.theme-neon .group-stat-card,
.app-container.theme-neon .add-members-section-card,
.app-container.theme-neon .group-info-members-list-container {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.app-container.theme-neon .group-info-avatar-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.25) 100%) !important;
}

.app-container.theme-neon #group-info-avatar-edit-badge,
.app-container.theme-neon .btn-save-group-name,
.app-container.theme-neon .btn-add-submit {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%) !important;
}

.app-container.theme-neon .btn-save-group-name:hover,
.app-container.theme-neon .btn-add-submit:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

.app-container.theme-neon .btn-show-add-members {
    color: #ffffff !important;
}

.app-container.theme-neon .btn-show-add-members:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   Forward Message Popup — Premium Bottom Sheet
   ========================================================================== */

/* Overlay */
.forward-popup-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
}

/* Bottom sheet */
.forward-popup-sheet {
    width: 100%;
    max-width: 520px;
    background: rgba(18, 18, 24, 0.92);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 28px 28px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 16px) 0;
    max-height: 82dvh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    overflow: hidden;
}

.forward-popup-sheet.active {
    transform: translateY(0);
}

/* Drag handle */
.forward-popup-handle {
    width: 36px;
    height: 4px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.18);
    margin: 12px auto 0;
    flex-shrink: 0;
}

/* Header */
.forward-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    flex-shrink: 0;
}

.forward-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.forward-popup-title svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.7);
}

.forward-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.forward-popup-close svg {
    width: 16px;
    height: 16px;
}

.forward-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.08);
}

/* Message preview bar */
.forward-popup-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 20px 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    flex-shrink: 0;
}

.forward-preview-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.forward-preview-icon svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.6);
}

.forward-preview-text {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-style: italic;
}

/* Search bar */
.forward-popup-search-wrap {
    position: relative;
    margin: 0 20px 14px;
    flex-shrink: 0;
}

.forward-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.forward-search-input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.forward-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.forward-search-input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

/* Contacts list */
.forward-contacts-list {
    overflow-y: auto;
    flex: 1;
    padding: 0 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    min-height: 0;
}

.forward-contacts-list::-webkit-scrollbar { width: 4px; }
.forward-contacts-list::-webkit-scrollbar-track { background: transparent; }
.forward-contacts-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Contact item */
@keyframes forwardItemIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.forward-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
    animation: forwardItemIn 0.3s both;
    position: relative;
    overflow: hidden;
}

.forward-contact-item:hover { background: rgba(255, 255, 255, 0.07); }
.forward-contact-item:active { background: rgba(255, 255, 255, 0.12); transform: scale(0.99); }

.forward-contact-item.sending { pointer-events: none; }
.forward-contact-item.sending .forward-contact-send-btn {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15) rotate(15deg);
}

/* Avatar */
.forward-contact-avatar-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.forward-contact-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.forward-contact-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact info */
.forward-contact-info { flex: 1; min-width: 0; }

.forward-contact-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forward-contact-username {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Send icon button */
.forward-contact-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}

.forward-contact-send-btn svg {
    width: 15px;
    height: 15px;
    stroke: rgba(255, 255, 255, 0.6);
    fill: none;
    transition: stroke 0.2s ease;
}

.forward-contact-item:hover .forward-contact-send-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.forward-contact-item:hover .forward-contact-send-btn svg { stroke: #ffffff; }

/* Empty state */
.forward-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 16px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13.5px;
    font-weight: 500;
}

.forward-empty-state svg {
    width: 40px;
    height: 40px;
    stroke: rgba(255, 255, 255, 0.18);
}

/* ---- Light Theme ---- */
.app-container.theme-light .forward-popup-sheet {
    background: rgba(248, 248, 252, 0.96);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-container.theme-light .forward-popup-handle { background: rgba(0, 0, 0, 0.12); }
.app-container.theme-light .forward-popup-title { color: #0a0a0a; }
.app-container.theme-light .forward-popup-title svg { stroke: rgba(0, 0, 0, 0.45); }
.app-container.theme-light .forward-popup-close { background: rgba(0, 0, 0, 0.06); color: rgba(0, 0, 0, 0.5); }
.app-container.theme-light .forward-popup-close:hover { background: rgba(0, 0, 0, 0.1); color: #0a0a0a; }

.app-container.theme-light .forward-popup-preview {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.app-container.theme-light .forward-preview-icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.app-container.theme-light .forward-preview-icon svg { stroke: rgba(0, 0, 0, 0.45); }
.app-container.theme-light .forward-preview-text { color: rgba(0, 0, 0, 0.45); }
.app-container.theme-light .forward-search-icon { stroke: rgba(0, 0, 0, 0.3); }

.app-container.theme-light .forward-search-input {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
    color: #0a0a0a;
}

.app-container.theme-light .forward-search-input::placeholder { color: rgba(0, 0, 0, 0.3); }

.app-container.theme-light .forward-search-input:focus {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.app-container.theme-light .forward-contact-item:hover { background: rgba(0, 0, 0, 0.04); }
.app-container.theme-light .forward-contact-avatar { border-color: rgba(0, 0, 0, 0.1); }

.app-container.theme-light .forward-contact-avatar-fallback {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.55);
}

.app-container.theme-light .forward-contact-name { color: #0a0a0a; }
.app-container.theme-light .forward-contact-username { color: rgba(0, 0, 0, 0.4); }

.app-container.theme-light .forward-contact-send-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

.app-container.theme-light .forward-contact-send-btn svg { stroke: rgba(0, 0, 0, 0.5); }

.app-container.theme-light .forward-contact-item:hover .forward-contact-send-btn {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.18);
}

.app-container.theme-light .forward-contact-item:hover .forward-contact-send-btn svg { stroke: #0a0a0a; }
.app-container.theme-light .forward-empty-state { color: rgba(0, 0, 0, 0.3); }
.app-container.theme-light .forward-empty-state svg { stroke: rgba(0, 0, 0, 0.15); }

/* ---- Neon Theme ---- */
.app-container.theme-neon .forward-popup-sheet {
    background: rgba(14, 14, 18, 0.94);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 -20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.app-container.theme-neon .forward-search-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.app-container.theme-neon .forward-contact-item:hover .forward-contact-send-btn {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* --- Storage Settings UI --- */
.storage-card-premium {
    padding: 16px;
}

.storage-usage-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px;
}

.storage-chart-container {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.storage-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.storage-ring .ring-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.storage-ring .ring-fill {
    stroke: #ffffff;
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.storage-chart-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.storage-percent {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.storage-label-small {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.storage-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storage-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-detail-item .detail-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.storage-detail-item .detail-value {
    font-size: 13.5px;
    color: #ffffff;
    font-weight: 600;
}

.storage-progress-bar-wrapper {
    margin-top: 4px;
    width: 100%;
}

.storage-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.storage-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #888888 0%, #ffffff 100%);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cleanup-icon-bg {
    background: linear-gradient(135deg, #a1a1aa 0%, #3f3f46 100%);
}

.btn-cleanup-action {
    padding: 8px 14px;
    border-radius: 12px;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-cleanup-action:hover {
    background: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-cleanup-action:active {
    transform: translateY(0);
}

/* Light Theme Overrides */
.app-container.theme-light .storage-ring .ring-bg {
    stroke: rgba(10, 10, 10, 0.05);
}
.app-container.theme-light .storage-ring .ring-fill {
    stroke: #0a0a0a;
}
.app-container.theme-light .storage-percent {
    color: #0a0a0a;
}
.app-container.theme-light .storage-label-small {
    color: rgba(10, 10, 10, 0.4);
}
.app-container.theme-light .storage-detail-item .detail-label {
    color: rgba(10, 10, 10, 0.65);
}
.app-container.theme-light .storage-detail-item .detail-value {
    color: #0a0a0a;
}
.app-container.theme-light .storage-progress-bar {
    background: rgba(10, 10, 10, 0.05);
}
.app-container.theme-light .storage-progress-bar .progress-fill {
    background: linear-gradient(90deg, #d4d4d8 0%, #000000 100%);
}
.app-container.theme-light .btn-cleanup-action {
    background: #f4f4f5;
    border-color: rgba(10, 10, 10, 0.1);
    color: #0a0a0a;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.04);
}
.app-container.theme-light .btn-cleanup-action:hover {
    background: #e4e4e7;
    border-color: rgba(10, 10, 10, 0.18);
}

/* Neon Theme Overrides */
.app-container.theme-neon .storage-ring .ring-fill {
    stroke: #ffffff;
}
.app-container.theme-neon .storage-progress-bar .progress-fill {
    background: linear-gradient(90deg, #333333 0%, #ffffff 100%);
}

/* ==========================================
   Find Friends View Premium Styles (Non-Popup)
   ========================================== */
.find-friends-view .search-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.find-friends-view .search-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.find-friends-view .btn-message-friend,
.find-friends-view .btn-add-friend-action,
.chat-list .btn-add-friend-action {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: inherit;
}

/* Dark theme / Neon theme buttons */
.find-friends-view .btn-message-friend {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.find-friends-view .btn-message-friend:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.find-friends-view .btn-add-friend-action,
.chat-list .btn-add-friend-action {
    background: #ffffff;
    color: #0b0c0e;
    border-color: #ffffff;
}

.find-friends-view .btn-add-friend-action:hover,
.chat-list .btn-add-friend-action:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.03);
}

/* Light Theme support */
.app-container.theme-light .find-friends-view .search-user-item {
    background: rgba(10, 10, 10, 0.02) !important;
    border-color: rgba(10, 10, 10, 0.04) !important;
}

.app-container.theme-light .find-friends-view .search-user-item:hover {
    background: rgba(10, 10, 10, 0.04) !important;
    border-color: rgba(10, 10, 10, 0.08) !important;
}

.app-container.theme-light .find-friends-view .search-user-item span {
    color: #0a0a0a !important;
}

.app-container.theme-light .find-friends-view .search-user-item span:last-child {
    color: rgba(10, 10, 10, 0.5) !important;
}

.app-container.theme-light .find-friends-view .btn-message-friend {
    background: rgba(10, 10, 10, 0.04) !important;
    color: #0a0a0a !important;
    border-color: rgba(10, 10, 10, 0.12) !important;
}

.app-container.theme-light .find-friends-view .btn-message-friend:hover {
    background: rgba(10, 10, 10, 0.08) !important;
    border-color: rgba(10, 10, 10, 0.25) !important;
}

.app-container.theme-light .find-friends-view .btn-add-friend-action,
.app-container.theme-light .chat-list .btn-add-friend-action {
    background: #0a0a0a !important;
    color: #ffffff !important;
    border-color: #0a0a0a !important;
}

.app-container.theme-light .find-friends-view .btn-add-friend-action:hover,
.app-container.theme-light .chat-list .btn-add-friend-action:hover {
    background: rgba(10, 10, 10, 0.85) !important;
}

/* Neon Theme support */
.app-container.theme-neon .find-friends-view .search-user-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05) !important;
}

.app-container.theme-neon .find-friends-view .search-user-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Global Search Header and results in Main list */
.search-section-header {
    padding: 16px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 12px;
}
.app-container.theme-light .search-section-header {
    color: rgba(10, 10, 10, 0.5);
    border-top-color: rgba(10, 10, 10, 0.05);
}

/* ==========================================
   Profile and Settings Tabs and Premium UI
   ========================================== */

/* Tabs Control Layout */
.profile-tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 5px;
    margin-bottom: 24px;
    gap: 4px;
}

.tab-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.tab-nav-item svg {
    opacity: 0.7;
    transition: all 0.25s ease;
}

/* Visibility Rules based on active radio buttons */
.profile-tab-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: fadeInTab 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#profile-tab-personal:checked ~ .profile-tabs-nav label[for="profile-tab-personal"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#profile-tab-personal:checked ~ .profile-tabs-nav label[for="profile-tab-personal"] svg {
    opacity: 1;
    stroke: #6366f1; /* Cool indigo indicator */
}

#profile-tab-settings:checked ~ .profile-tabs-nav label[for="profile-tab-settings"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#profile-tab-settings:checked ~ .profile-tabs-nav label[for="profile-tab-settings"] svg {
    opacity: 1;
    stroke: #10b981; /* Cool emerald indicator */
}

#profile-tab-personal:checked ~ .profile-tab-panels .personal-panel {
    display: flex;
}

#profile-tab-settings:checked ~ .profile-tab-panels .settings-panel {
    display: flex;
}

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

/* Enhanced Premium Input Styling */
.profile-form-card .form-group {
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-form-card .form-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
    display: block;
    letter-spacing: 0.3px;
}

.profile-form-card .form-input,
.profile-form-card .form-textarea,
.profile-form-card .form-select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.profile-form-card .form-textarea {
    resize: vertical;
    min-height: 74px;
    line-height: 1.45;
}

.profile-form-card .form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.profile-form-card .form-select option {
    background: #141517;
    color: #ffffff;
    padding: 8px;
}

.profile-form-card .form-input:hover,
.profile-form-card .form-textarea:hover,
.profile-form-card .form-select:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-form-card .form-input:focus,
.profile-form-card .form-textarea:focus,
.profile-form-card .form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Disabled Field styling */
.profile-form-card .form-input:disabled {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed;
}

/* Username prefix wrapper glow & inline alignment */
.profile-form-card .input-prefix-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding-left: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-form-card .input-prefix {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
    margin-right: 4px;
}

.profile-form-card .input-prefix-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.profile-form-card .input-prefix-wrapper .form-input.prefix-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 14px 10px 0 !important;
    flex: 1;
}

.profile-form-card .input-help-text {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.35;
    margin-top: 2px;
    display: block;
}

#username-availability-status {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

#username-availability-status:not(:empty) {
    margin-top: 4px;
}

/* Save changes button custom gradient and icon */
.btn-profile-save {
    position: relative;
    width: 100%;
    height: 46px;
    border-radius: 23px;
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.btn-profile-save::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.2s ease;
}

.btn-profile-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    filter: brightness(1.05);
}

.btn-profile-save:active {
    transform: translateY(0);
}

/* Save changes loading / disabled state overrides */
.btn-profile-save:disabled {
    cursor: not-allowed !important;
}

.btn-profile-save.loading::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='2' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='22'/%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3E%3Cline x1='2' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3E%3C/svg%3E");
    animation: btn-spin 1s linear infinite;
}

/* Logout button custom style and icon */
.btn-profile-logout {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    border: 1px solid rgba(255, 59, 48, 0.25);
    background: rgba(255, 59, 48, 0.06);
    color: #ff3b30;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-profile-logout::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3b30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.2s ease;
}

.btn-profile-logout:hover {
    background: #ff3b30;
    color: #ffffff;
    border-color: #ff3b30;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.2);
}

.btn-profile-logout:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* QR Code box shadow and glow effect */
.qr-wrapper {
    position: relative;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.qr-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.qr-code-box {
    position: relative;
    z-index: 2;
}

/* Light Theme overrides for new layout elements */
.app-container.theme-light .profile-tabs-nav {
    background: rgba(10, 10, 10, 0.03);
    border-color: rgba(10, 10, 10, 0.08);
}

.app-container.theme-light .tab-nav-item {
    color: rgba(10, 10, 10, 0.55);
}

.app-container.theme-light .tab-nav-item:hover {
    color: #0a0a0a;
    background: rgba(10, 10, 10, 0.03);
}

.app-container.theme-light #profile-tab-personal:checked ~ .profile-tabs-nav label[for="profile-tab-personal"] {
    color: #0a0a0a;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.06);
}

.app-container.theme-light #profile-tab-personal:checked ~ .profile-tabs-nav label[for="profile-tab-personal"] svg {
    stroke: #4f46e5;
}

.app-container.theme-light #profile-tab-settings:checked ~ .profile-tabs-nav label[for="profile-tab-settings"] {
    color: #0a0a0a;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.06);
}

.app-container.theme-light #profile-tab-settings:checked ~ .profile-tabs-nav label[for="profile-tab-settings"] svg {
    stroke: #10b981;
}

.app-container.theme-light .profile-form-card .form-label {
    color: rgba(10, 10, 10, 0.6);
}

.app-container.theme-light .profile-form-card .form-input,
.app-container.theme-light .profile-form-card .form-textarea,
.app-container.theme-light .profile-form-card .form-select,
.app-container.theme-light .profile-form-card .input-prefix-wrapper {
    background: #fbfbfb;
    border-color: rgba(10, 10, 10, 0.08);
    color: #0a0a0a;
}

.app-container.theme-light .profile-form-card .input-prefix {
    color: rgba(10, 10, 10, 0.45);
}

.app-container.theme-light .profile-form-card .input-help-text {
    color: rgba(10, 10, 10, 0.5);
}

.app-container.theme-light .profile-form-card .form-input:hover,
.app-container.theme-light .profile-form-card .form-textarea:hover,
.app-container.theme-light .profile-form-card .form-select:hover {
    background: #f4f4f5;
}

.app-container.theme-light .profile-form-card .form-input:focus,
.app-container.theme-light .profile-form-card .form-textarea:focus,
.app-container.theme-light .profile-form-card .form-select:focus,
.app-container.theme-light .profile-form-card .input-prefix-wrapper:focus-within {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.app-container.theme-light .profile-form-card .form-input:disabled {
    background: #f4f4f5 !important;
    border-color: rgba(10, 10, 10, 0.05) !important;
    color: rgba(10, 10, 10, 0.4) !important;
}

.app-container.theme-light .btn-profile-save {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-container.theme-light .btn-profile-save:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.app-container.theme-light .btn-profile-logout {
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
}

.app-container.theme-light .btn-profile-logout::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

.app-container.theme-light .btn-profile-logout:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.app-container.theme-light .qr-wrapper {
    background: #fbfbfb;
    border-color: rgba(10, 10, 10, 0.08);
}

/* Neon Theme overrides for new layout elements */
.app-container.theme-neon .profile-tabs-nav {
    background: rgba(0, 255, 102, 0.02);
    border-color: rgba(0, 255, 102, 0.2);
}

.app-container.theme-neon .tab-nav-item {
    color: rgba(0, 255, 102, 0.5);
}

.app-container.theme-neon .tab-nav-item:hover {
    color: #00ff66;
    background: rgba(0, 255, 102, 0.05);
}

.app-container.theme-neon #profile-tab-personal:checked ~ .profile-tabs-nav label[for="profile-tab-personal"] {
    color: #00ff66;
    background: rgba(0, 255, 102, 0.15);
    border: 1px solid rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.app-container.theme-neon #profile-tab-personal:checked ~ .profile-tabs-nav label[for="profile-tab-personal"] svg {
    stroke: #00ff66;
}

.app-container.theme-neon #profile-tab-settings:checked ~ .profile-tabs-nav label[for="profile-tab-settings"] {
    color: #00ff66;
    background: rgba(0, 255, 102, 0.15);
    border: 1px solid rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.app-container.theme-neon #profile-tab-settings:checked ~ .profile-tabs-nav label[for="profile-tab-settings"] svg {
    stroke: #00ff66;
}

.app-container.theme-neon .profile-form-card .form-label {
    color: rgba(0, 255, 102, 0.6);
}

.app-container.theme-neon .profile-form-card .form-input,
.app-container.theme-neon .profile-form-card .form-textarea,
.app-container.theme-neon .profile-form-card .form-select,
.app-container.theme-neon .profile-form-card .input-prefix-wrapper {
    background: rgba(0, 255, 102, 0.02);
    border-color: rgba(0, 255, 102, 0.2);
    color: #00ff66;
}

.app-container.theme-neon .profile-form-card .input-prefix {
    color: rgba(0, 255, 102, 0.5);
}

.app-container.theme-neon .profile-form-card .input-help-text {
    color: rgba(0, 255, 102, 0.5);
}

.app-container.theme-neon .profile-form-card .form-input:focus,
.app-container.theme-neon .profile-form-card .form-textarea:focus,
.app-container.theme-neon .profile-form-card .form-select:focus,
.app-container.theme-neon .profile-form-card .input-prefix-wrapper:focus-within {
    background: rgba(0, 255, 102, 0.04);
    border-color: #00ff66;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.25);
}

.app-container.theme-neon .btn-profile-save {
    background: transparent;
    border: 1.5px solid #00ff66;
    color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.app-container.theme-neon .btn-profile-save::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.app-container.theme-neon .btn-profile-save:hover {
    background: rgba(0, 255, 102, 0.12);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.app-container.theme-neon .btn-profile-logout {
    border-color: rgba(255, 0, 55, 0.4);
    background: rgba(255, 0, 55, 0.05);
    color: #ff0037;
}

.app-container.theme-neon .btn-profile-logout::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff0037' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

.app-container.theme-neon .btn-profile-logout:hover {
    background: #ff0037;
    color: #ffffff;
    border-color: #ff0037;
    box-shadow: 0 0 12px rgba(255, 0, 55, 0.35);
}

.app-container.theme-neon .btn-profile-logout:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* Premium Visual Storage Management Styles */
.storage-chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.storage-chat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.storage-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.storage-chat-info {
    flex-grow: 1;
    margin-left: 12px;
    min-width: 0;
}

.storage-chat-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.storage-chat-meta {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
}

.btn-storage-chat-clear {
    background: transparent;
    border: none;
    color: rgba(239, 68, 68, 0.65);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-storage-chat-clear:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Light Theme support for storage visual breakdown */
.app-container.theme-light .storage-chat-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.app-container.theme-light .storage-chat-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.app-container.theme-light .storage-chat-name {
    color: #171717;
}

.app-container.theme-light .storage-chat-meta {
    color: #737373;
}

.app-container.theme-light .storage-chat-avatar {
    background: rgba(0, 0, 0, 0.05);
    color: #171717;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Storage Breakdown Layout & Typography */
.storage-breakdown-section {
    padding: 16px 20px;
}

.storage-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.storage-breakdown-title {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.storage-chats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.storage-loading-text {
    text-align: center;
    padding: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Light Theme support for storage breakdown */
.app-container.theme-light .storage-breakdown-title {
    color: #171717;
}

.app-container.theme-light .storage-loading-text {
    color: #737373;
}

/* Neon Theme support for storage breakdown */
.app-container.theme-neon .storage-breakdown-title {
    color: var(--neon-accent, #00ffcc);
}
.app-container.theme-neon .storage-loading-text {
    color: rgba(255, 255, 255, 0.4);
}

/* Consistent Spacing for Unified Profile & Settings View */
#profile-form .profile-form-card,
#profile-form .settings-group,
#profile-form .share-profile-premium-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}



