@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;800&family=Press+Start+2P&display=swap');

:root {
    --bg-light: #ffffff;
    --bg-secondary: #f3f4f6;
    --primary: #3b82f6;
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* User Profile Modal - Modern White Theme */
.wa-profile-card {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    z-index: 10001;
    border-left: 1px solid var(--border-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.wa-profile-header {
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 25px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
}

.wa-back-btn {
    background: var(--bg-secondary);
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wa-back-btn:hover {
    background: #e2e8f0;
    transform: translateX(-3px);
}

.wa-profile-header span {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.wa-profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.wa-avatar-container {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.wa-avatar-container img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.wa-avatar-edit {
    position: absolute;
    inset: 0;
    width: 150px;
    height: 150px;
    margin: 30px auto;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: 0.3s;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.wa-avatar-container:hover .wa-avatar-edit {
    opacity: 1;
}

.wa-info-section {
    padding: 0 30px;
}

.wa-info-item {
    margin-bottom: 30px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    transition: 0.2s;
}

.wa-info-item:focus-within {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary);
}

.wa-info-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.wa-info-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
}

.wa-info-value span {
    font-weight: 600;
    color: var(--text-main);
}

#profile-bio {
    flex: 1;
    min-height: 24px;
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    padding: 0;
    line-height: 1.5;
    margin-right: 10px;
}

#profile-bio::placeholder {
    color: var(--text-secondary);
}

#save-bio-btn {
    display: none;
}

.wa-info-value button {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.wa-info-value button:hover {
    background: rgba(59, 130, 246, 0.1);
}

.wa-info-value input,
.wa-info-value textarea {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    width: 100%;
    outline: none;
    resize: none;
}

.wa-info-tip {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

.wa-stats-section {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.wa-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 16px;
    font-weight: 600;
}

.wa-stat i {
    font-size: 18px;
    color: var(--primary);
}

.wa-btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 25px;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    transition: 0.2s;
}

.wa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.5);
}

.wa-btn-secondary {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid var(--bg-secondary);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.2s;
}

.wa-btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* Avatar Suggestions */
.avatar-suggestions-wa {
    margin-top: 30px;
    padding: 0 30px;
}

.avatar-options {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.avatar-options img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    border: 2px solid transparent;
}

.avatar-options img:hover,
.avatar-options img.selected {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary);
}

/* DM Modal Modern */
.wa-dm-card {
    width: 400px;
    background: #fff;
    height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.wa-dm-header {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.wa-dm-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.wa-dm-body {
    background-color: #f8fafc;
}

.wa-dm-input-row {
    padding: 15px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.wa-dm-input-row input {
    background: var(--bg-secondary);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 12px;
}

.wa-dm-input-row button {
    color: var(--primary);
}

/* Status Dot Status */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: #10b981;
}

.status-dot.offline {
    background-color: #cbd5e1;
}