.message-status { margin-right: 7px; color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: -3px; }
.message-status.read { color: #72d6ff; }
/* ============================================================
   نسخه Aero - چت شیشه‌ای با افکت Aero (ویندوز 7/11)
   ============================================================ */

/* ---------- تنظیمات کلی ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    direction: rtl;
    overflow-x: hidden;
    position: relative;
    
    /* ================================================
       پس‌زمینه شیشه‌ای Aero با گرادیانت آبی
       ================================================ */
    background: linear-gradient(135deg, 
        #0a1628 0%, 
        #0d2137 15%, 
        #0ddbc0 35%, 
        #1565c0 55%, 
        #1e88e5 75%, 
        #42a5f5 100%
    );
}

/* ============================================================
   افکت شیشه‌ای Aero - لایه نور پس‌زمینه
   ============================================================ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 15% 30%, rgba(66, 165, 245, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 70%, rgba(33, 150, 243, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(100, 181, 246, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 70%, rgba(144, 202, 249, 0.06) 0%, transparent 30%);
    z-index: 0;
    animation: aeroGlow 15s ease-in-out infinite alternate;
}

@keyframes aeroGlow {
    0% { opacity: 0.4; transform: scale(1) rotate(0deg); }
    25% { opacity: 0.7; transform: scale(1.03) rotate(1deg); }
    50% { opacity: 1; transform: scale(1.06) rotate(-1deg); }
    75% { opacity: 0.6; transform: scale(1.02) rotate(2deg); }
    100% { opacity: 0.5; transform: scale(0.98) rotate(-2deg); }
}

/* ============================================================
   افکت شیشه‌ای Aero - ذرات درخشان (مثل ستاره)
   ============================================================ */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 20% 50%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1.5px 1.5px at 50% 15%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 60% 60%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1.5px 1.5px at 70% 30%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 40% 90%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 95% 85%, rgba(255,255,255,0.25), transparent);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 0;
    animation: twinkle 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* ============================================================
   دکمه ورود - Aero Style
   ============================================================ */

.login-btn-container {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 3000;
}

.suggestion-back-btn {
    position: absolute;
    right: 24px;
    top: 14px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.suggestion-back-btn:hover {
    background: rgba(33, 150, 243, 0.35);
    transform: translateX(3px);
}

body.developer-page {
    background:
        radial-gradient(ellipse at 50% 115%, rgba(245, 184, 66, .16), transparent 42%),
        radial-gradient(ellipse at 20% 18%, rgba(40, 161, 255, .16), transparent 34%),
        linear-gradient(135deg, #02040d 0%, #07142e 46%, #120d2a 100%);
}

body.developer-page::before {
    transform-origin: 50% 50%;
    background:
        radial-gradient(ellipse at 50% 52%, transparent 0 18%, rgba(71, 193, 255, .08) 29%, transparent 48%),
        radial-gradient(ellipse at 50% 52%, transparent 0 34%, rgba(204, 93, 255, .1) 42%, transparent 62%),
        radial-gradient(circle at 18% 22%, rgba(67, 106, 255, .23) 0, transparent 26%),
        radial-gradient(circle at 82% 72%, rgba(186, 48, 255, .18) 0, transparent 30%),
        radial-gradient(circle at 55% 40%, rgba(20, 214, 255, .1) 0, transparent 24%);
    opacity: 1;
    animation: galaxySpin 42s linear infinite;
}

body.developer-page::after {
    background-image:
        radial-gradient(1px 1px at 7% 14%, #fff, transparent),
        radial-gradient(1px 1px at 13% 68%, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 22% 34%, rgba(135,190,255,.9), transparent),
        radial-gradient(1px 1px at 31% 81%, #fff, transparent),
        radial-gradient(1px 1px at 43% 17%, rgba(255,255,255,.85), transparent),
        radial-gradient(2px 2px at 56% 63%, rgba(255,210,132,.9), transparent),
        radial-gradient(1px 1px at 68% 29%, #fff, transparent),
        radial-gradient(1px 1px at 79% 76%, rgba(120,210,255,.9), transparent),
        radial-gradient(2px 2px at 88% 42%, rgba(221,164,255,.85), transparent),
        radial-gradient(1px 1px at 95% 88%, #fff, transparent);
    opacity: .82;
}

@keyframes galaxyDrift {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.08) rotate(2deg); }
}

.login-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 28px;
    border-radius: 60px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    animation: btnShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShine {
    0%, 100% { transform: translate(-30%, -30%) scale(1); opacity: 0.3; }
    50% { transform: translate(30%, 30%) scale(1.3); opacity: 0.6; }
}

.login-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:active {
    transform: scale(0.95);
}

.login-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ============================================================
   مودال ورود - Aero Style
   ============================================================ */

.login-modal {
    display: none;
    position: fixed;
    top: 80px;
    left: 24px;
    background: rgba(13, 71, 161, 0.10);
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    padding: 36px 40px;
    border-radius: 24px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 3000;
    width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: modalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-40px) scale(0.9) rotate(-2deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.login-modal h3 {
    margin-top: 0;
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.login-modal .login-input {
    width: 100%;
    padding: 14px 20px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-family: inherit;
}

.login-modal .login-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-modal .login-input:focus {
    border-color: rgba(255, 255, 255, 0.15);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.02);
}

#do-login-btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
}

.login-mode-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    border: 0;
    color: rgba(255, 255, 255, .78);
    background: transparent;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.login-mode-btn:hover { color: #fff; text-decoration: underline; }

#login-message {
    color: #ff6b6b;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   چت ویجت - Aero Style (شیشه‌ای)
   ============================================================ */

.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 560px;
    max-width: 95vw;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    border-radius: 32px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom left;
}

/* ============================================================
   افکت شیشه‌ای Aero - حاشیه درخشان
   ============================================================ */

.chat-widget::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 34px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08),
        transparent 30%,
        rgba(13, 71, 161, 0.03) 60%,
        rgba(255, 255, 255, 0.05)
    );
    z-index: -1;
    animation: aeroBorder 6s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes aeroBorder {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.01); }
}

/* ============================================================
   افکت شیشه‌ای Aero - انعکاس در بالای چت
   ============================================================ */

.chat-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35%;
    border-radius: 32px 32px 0 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.04) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.chat-widget:hover {
    transform: translateY(-4px) scale(1.003);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-widget.closed {
    transform: translateX(-150%) scale(0.8) rotate(-4deg);
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   هدر چت - Aero Style
   ============================================================ */

.chat-header {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: #fff;
    padding: 22px 80px 22px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    border-radius: 32px 32px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

#chat-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

#chat-title::before {
    content: '●';
    color: #4caf50;
    font-size: 12px;
    margin-left: 10px;
    animation: onlinePulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   دکمه‌های هدر - Aero Style
   ============================================================ */

.chat-toggle-btn,
.chat-back-btn {
    position: absolute;
    top: 14px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chat-toggle-btn:hover,
.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1) rotate(6deg);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.chat-toggle-btn:active,
.chat-back-btn:active {
    transform: scale(0.9);
}

.chat-toggle-btn { left: 14px; }
.chat-back-btn { left: 66px; }

.chat-toggle-btn svg,
.chat-back-btn svg {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s;
    width: 22px;
    height: 22px;
}

.chat-toggle-btn:hover svg,
.chat-back-btn:hover svg {
    stroke: #fff;
}

/* ============================================================
   بدنه چت - Aero Style
   ============================================================ */

.chat-body {
    height: 420px;
    overflow-y: auto;
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   پیام‌ها - Aero Style (شیشه‌ای)
   ============================================================ */

.message {
    max-width: 78%;
    padding: 15px 20px;
    border-radius: 22px;
    font-size: 0.95rem;
    word-break: break-word;
    white-space: pre-wrap;
    position: relative;
    line-height: 1.7;
    animation: messageSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(25px) scale(0.92) rotate(-1deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.message:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   پیام فرستنده (من) - سمت چپ
   ============================================================ */

.user-message {
    align-self: flex-start;
    background: rgba(66, 165, 245, 0.20);
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
    color: #fff;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(144, 202, 249, 0.2);
    box-shadow: 
        0 14px 34px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: left;
    direction: ltr;
}

.user-message .message-text-content { direction: ltr; text-align: left; }
.user-message .sender-email { direction: ltr; text-align: left; }
.user-message .message-time { direction: ltr; text-align: left; }

.user-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 16px;
    height: 16px;
    background: rgba(66, 165, 245, 0.15);
    border-radius: 0 0 16px 0;
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(144, 202, 249, 0.15);
    border-bottom: 1px solid rgba(144, 202, 249, 0.15);
}

/* ============================================================
   پیام گیرنده (ادمین/بات) - سمت راست
   ============================================================ */

.bot-message {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    color: #fff;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: right;
    direction: rtl;
    box-shadow: 
        0 14px 34px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bot-message .message-text-content { direction: rtl; text-align: right; }
.bot-message .sender-email { direction: rtl; text-align: right; }
.bot-message .message-time { direction: ltr; text-align: right; }

.bot-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 0 16px;
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================
   استایل کلی پیام‌ها
   ============================================================ */

.message .sender-email {
    display: block;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 4px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.user-message .sender-email { color: rgba(255, 255, 255, 0.25); }
.bot-message .sender-email { color: rgba(255, 255, 255, 0.15); }

.message .message-text-content {
    display: block;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.message .message-time {
    display: block;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.15);
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-feature-settings: "tnum";
    letter-spacing: 0.3px;
    font-weight: 300;
}

.user-message .message-time { color: rgba(255, 255, 255, 0.2); border-top-color: rgba(255, 255, 255, 0.04); }
.bot-message .message-time { color: rgba(255, 255, 255, 0.12); border-top-color: rgba(255, 255, 255, 0.02); }

/* ============================================================
   نقل قول - Aero Style
   ============================================================ */

.quoted-message {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    margin: -6px -14px 12px -14px;
    border-radius: 16px 16px 0 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8em;
    opacity: 0.8;
}

.quoted-message .sender {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

/* ============================================================
   نقطه ناخوانده - Aero Style
   ============================================================ */

.message-unread-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.15);
    z-index: 10;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 107, 107, 0.10); }
    50% { transform: scale(1.4); box-shadow: 0 0 50px rgba(255, 107, 107, 0.2); }
}

/* ============================================================
   دکمه‌های اکشن - Aero Style
   ============================================================ */

.message-actions {
    position: absolute;
    top: -18px;
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
}

.message:hover .message-actions {
    opacity: 1;
    transform: translateY(0);
}

.user-message .message-actions { right: 10px; }
.bot-message .message-actions { left: 10px; }

.action-icon {
    cursor: pointer;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.action-icon:hover {
    color: #fff;
    transform: scale(1.2) rotate(10deg);
}

/* ============================================================
   پیش‌نمایش پاسخ - Aero Style
   ============================================================ */

.reply-preview {
    display: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.82em;
    position: relative;
    color: rgba(255, 255, 255, 0.4);
}

.reply-preview-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 28px;
}

.reply-preview-close {
    position: absolute;
    right: 14px;
    top: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.reply-preview-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

/* ============================================================
   فوتر چت - Aero Style با دکمه سنجاق
   ============================================================ */

.chat-footer {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 0 0 32px 32px;
}

.chat-footer.chat-footer-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.chat-footer-main {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
   دکمه سنجاق (Attach) - زیبا و چرخان
   ============================================================ */

.attach-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* افکت درخشش دکمه سنجاق */
.attach-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.attach-btn:hover::before {
    opacity: 1;
}

.attach-btn:hover {
    background: rgba(66, 165, 245, 0.10);
    border-color: rgba(66, 165, 245, 0.15);
    color: #fff;
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 4px 30px rgba(66, 165, 245, 0.08);
}

.attach-btn:active {
    transform: scale(0.92) rotate(-10deg);
}

/* آیکون سنجاق */
.attach-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.attach-btn:hover svg {
    transform: rotate(45deg) scale(1.1);
}

.action-send-btn {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: linear-gradient(145deg, #27b6ff, #1763d1);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(24, 117, 224, 0.28), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.action-send-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 30px rgba(24, 117, 224, 0.4), inset 0 1px 0 rgba(255,255,255,.4);
}

.action-send-btn:active {
    transform: scale(.94);
}

.action-send-btn svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.action-send-btn.voice-mode {
    background: linear-gradient(145deg, #13c99a, #087f74);
}

.action-send-btn.recording {
    background: linear-gradient(145deg, #ff6b6b, #c5304c);
}

.action-send-btn .send-icon,
.action-send-btn .voice-icon {
    display: none;
}

.action-send-btn.voice-mode .voice-icon,
.action-send-btn.send-mode .send-icon {
    display: block;
}

.action-send-btn.voice-mode .send-icon,
.action-send-btn.send-mode .voice-icon {
    display: none;
}

/* ============================================================
   دکمه ویس/ارسال هوشمند
   ============================================================ */

.action-btn-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.action-btn-wrapper .send-btn,
.action-btn-wrapper .voice-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.15), rgba(13, 71, 161, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.action-btn-wrapper .send-btn {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.action-btn-wrapper .send-btn.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.action-btn-wrapper .voice-btn {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.action-btn-wrapper .voice-btn.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.action-btn-wrapper .send-btn:hover,
.action-btn-wrapper .voice-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(66, 165, 245, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.action-btn-wrapper .send-btn:active,
.action-btn-wrapper .voice-btn:active {
    transform: scale(0.92);
}

.action-btn-wrapper .voice-btn.recording {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    animation: pulse-record 1s ease-in-out infinite;
    box-shadow: 0 4px 30px rgba(255, 70, 70, 0.15);
}

@keyframes pulse-record {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.action-btn-wrapper .send-btn svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.4);
    transition: all 0.4s;
}

.action-btn-wrapper .send-btn:hover svg {
    fill: #fff;
    transform: rotate(-45deg) scale(1.05);
}

.action-btn-wrapper .voice-btn svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.4);
    transition: all 0.4s;
}

.action-btn-wrapper .voice-btn:hover svg {
    fill: #fff;
}

/* ============================================================
   ورودی متن
   ============================================================ */

.chat-footer input[type="text"] {
    flex: 1;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 14px 22px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    transition: all 0.4s ease;
    font-family: inherit;
}

.chat-footer input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.chat-footer input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.chat-footer input[type="text"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   دکمه باز کردن چت - Aero Style
   ============================================================ */

.chat-open-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2002;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.06);
}

.chat-open-btn:hover {
    transform: scale(1.12) rotate(12deg);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 80px rgba(0, 0, 0, 0.08);
}

.chat-open-btn:active { transform: scale(0.92); }

.chat-open-btn svg {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 28px;
    height: 28px;
    transition: all 0.3s;
}

.chat-open-btn:hover svg { stroke: #fff; }

.content-page .chat-open-btn {
    font-size: 0;
}

.content-page .chat-open-btn::before {
    content: '\2192';
    font-size: 30px;
    line-height: 1;
}

/* ============================================================
   پنل مدیریت - Aero Style
   ============================================================ */

.admin-user-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(380px, calc(100vw - 32px));
    padding: 22px;
    background: rgba(13, 71, 161, 0.15);
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 2500;
    max-height: min(620px, calc(100vh - 48px));
}

.admin-user-menu::before {
    content: '';
    position: fixed;
    inset: -100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.admin-user-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-user-menu-header h2 {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.admin-user-menu-close {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-user-menu-close:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.15);
}

/* ============================================================
   لیست کاربران - Aero Style
   ============================================================ */

#user-list-container {
    width: 100%;
    max-height: 430px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 10px 8px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#user-list-container::-webkit-scrollbar {
    width: 3px;
}

#user-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

#user-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* ============================================================
   آیتم‌های کاربران - Aero Style
   ============================================================ */

#user-list-container button {
    width: 100%;
    text-align: right;
    margin-bottom: 6px;
    padding: 12px 16px 12px 36px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* آیکون کاربر */
#user-list-container button::before {
    content: '👤';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.4;
}

#user-list-container button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(-4px) scale(1.02);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

#user-list-container button.selected {
    background: rgba(66, 165, 245, 0.08);
    border-color: rgba(66, 165, 245, 0.06);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

#user-list-container button.selected::before {
    content: '✅';
    opacity: 0.7;
}

/* ============================================================
   شمارنده پیام‌های ناخوانده
   ============================================================ */

.user-unread-count {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    z-index: 11;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.08);
}

#user-list-container button.user-has-unread {
    border-color: rgba(255, 107, 107, 0.06);
    background: rgba(255, 107, 107, 0.02);
}

#user-list-container button.user-has-unread:hover {
    background: rgba(255, 107, 107, 0.04);
}

/* ============================================================
   دکمه حذف کاربر
   ============================================================ */

.remove-user-btn {
    position: absolute;
    top: 50%;
    left: 38px;
    transform: translateY(-50%);
    background: rgba(255, 107, 107, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 107, 107, 0.02);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
    z-index: 20;
    opacity: 0;
    transition: all 0.3s ease;
}

#user-list-container button {
    position: relative;
}

#user-list-container button:focus-visible .remove-user-btn,
#user-list-container button:active .remove-user-btn {
    opacity: 1;
}

#user-list-container button:hover .remove-user-btn {
    opacity: 1;
}

.remove-user-btn:hover {
    background: rgba(255, 107, 107, 0.10);
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}

/* ============================================================
   Toast اعلان - Aero Style
   ============================================================ */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 71, 161, 0.08);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    color: #fff;
    padding: 14px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.08);
    z-index: 4000;
    display: none;
    font-size: 14px;
    font-weight: 500;
    animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ============================================================
   دکمه‌های ویرایش - Aero Style
   ============================================================ */

.save-edit,
.cancel-edit {
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.save-edit {
    background: rgba(66, 165, 245, 0.10);
    color: #fff;
}

.save-edit:hover {
    background: rgba(66, 165, 245, 0.20);
}

.cancel-edit {
    background: rgba(255, 107, 107, 0.06);
    color: rgba(255, 255, 255, 0.3);
}

.cancel-edit:hover {
    background: rgba(255, 107, 107, 0.12);
    color: #fff;
}

/* ============================================================
   پیام فایل و تصویر
   ============================================================ */

.message-image {
    display: block;
    width: min(100%, 280px);
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 4px;
}

.message-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #e3f2fd;
    background: rgba(33, 150, 243, 0.12);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: all 0.3s ease;
    border: 1px solid rgba(33, 150, 243, 0.06);
}

.message-file:hover {
    background: rgba(33, 150, 243, 0.20);
    border-color: rgba(33, 150, 243, 0.10);
    transform: translateX(4px);
}

.message-file svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: rgba(255, 255, 255, 0.4);
}

.message-file .file-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.message-file .file-size {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   پلیر صوتی - Aero Style
   ============================================================ */

.message-audio {
    display: none;
}

.message-audio-player {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(100%, 300px);
    min-width: 220px;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.message-audio-player audio {
    display: none;
}

.audio-play-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.audio-progress {
    flex: 1;
    min-width: 70px;
    height: 4px;
    accent-color: #42a5f5;
    cursor: pointer;
}

.audio-time {
    color: rgba(255, 255, 255, 0.72);
    font: 11px/1 'Segoe UI', sans-serif;
    white-space: nowrap;
}

/* ============================================================
   واکنش‌گرایی موبایل
   ============================================================ */

@media (max-width: 768px) {
    .developer-suggestion-btn {
        top: 14px;
        right: 14px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .suggestion-back-btn {
        right: 16px;
        top: 10px;
    }

    .chat-widget {
        width: 98vw;
        left: 1vw;
        bottom: 10px;
        border-radius: 24px;
        max-height: 85vh;
    }

    .chat-body {
        height: 55vh;
    }

    .chat-header {
        padding: 16px 70px 16px 16px;
        font-size: 1rem;
    }

    .chat-toggle-btn,
    .chat-back-btn {
        width: 38px;
        height: 38px;
        top: 10px;
    }

    .chat-toggle-btn { left: 10px; }
    .chat-back-btn { left: 56px; }

    .message {
        max-width: 85%;
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .attach-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .action-send-btn {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .attach-btn svg {
        width: 18px;
        height: 18px;
    }

    .action-btn-wrapper {
        width: 42px;
        height: 42px;
    }

    .action-btn-wrapper .send-btn,
    .action-btn-wrapper .voice-btn {
        width: 42px;
        height: 42px;
    }

    .action-btn-wrapper .send-btn svg,
    .action-btn-wrapper .voice-btn svg {
        width: 20px;
        height: 20px;
    }

    .login-modal {
        width: 90vw;
        left: 5vw;
        top: 40px;
        padding: 24px 20px;
    }

    .message-audio-player {
        min-width: 160px;
    }
}

@media (max-width: 576px) {
    .developer-suggestion-btn {
        top: 10px;
        right: 10px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .chat-widget {
        border-radius: 20px;
        max-height: 80vh;
    }

    .chat-body {
        height: 45vh;
        padding: 12px;
    }

    .chat-header {
        padding: 12px 60px 12px 12px;
        font-size: 0.9rem;
    }

    .chat-toggle-btn,
    .chat-back-btn {
        width: 34px;
        height: 34px;
        top: 8px;
    }

    .chat-toggle-btn { left: 8px; }
    .chat-back-btn { left: 50px; }

    .message {
        font-size: 0.8rem;
        padding: 10px 14px;
        max-width: 90%;
    }

    .attach-btn {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .action-send-btn {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .attach-btn svg {
        width: 16px;
        height: 16px;
    }

    .action-btn-wrapper {
        width: 38px;
        height: 38px;
    }

    .action-btn-wrapper .send-btn,
    .action-btn-wrapper .voice-btn {
        width: 38px;
        height: 38px;
    }

    .action-btn-wrapper .send-btn svg,
    .action-btn-wrapper .voice-btn svg {
        width: 18px;
        height: 18px;
    }

    .login-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .login-modal {
        padding: 18px 16px;
        width: 95vw;
        left: 2.5vw;
    }

    .login-modal h3 {
        font-size: 1.2rem;
    }

    .login-modal .login-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    #user-list-container button {
        font-size: 11px;
        padding: 8px 12px 8px 30px;
    }

    .user-unread-count {
        min-width: 18px;
        height: 18px;
        font-size: 8px;
        line-height: 18px;
    }

    .message-audio-player {
        min-width: 140px;
        padding: 6px 8px;
    }

    .audio-play-btn {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        font-size: 12px;
    }

    .audio-time {
        font-size: 9px;
    }
}

.developer-suggestion-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(13, 71, 161, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.developer-suggestion-btn:hover {
    background: rgba(33, 150, 243, 0.42);
    transform: translateY(-2px);
}

.site-content-nav {
    position: fixed;
    left: 50%;
    top: 18px;
    z-index: 2100;
    display: flex;
    gap: 18px;
    padding: 10px 14px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(4, 20, 34, .58);
    backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255,255,255,.16);
    color: #fff;
}

.site-content-nav a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .15);
    transition: all .25s ease;
}

.site-content-nav a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

body.admin-page {
    background: radial-gradient(circle at 50% 0, rgba(231, 185, 63, .22), transparent 30%), radial-gradient(circle at 84% 74%, rgba(44, 205, 164, .2), transparent 34%), linear-gradient(135deg, #0a2852 0%, #17659b 55%, #08735f 100%);
}

body.admin-page::before {
    background: radial-gradient(ellipse at 18% 30%, rgba(76, 190, 244, .26) 0%, transparent 55%), radial-gradient(ellipse at 82% 70%, rgba(46, 210, 171, .18) 0%, transparent 50%), radial-gradient(ellipse at 50% 0%, rgba(231, 185, 63, .14) 0%, transparent 42%);
}

body.admin-page .site-content-nav {
    border-color: rgba(231, 185, 63, .42);
    background: rgba(4, 20, 50, .82);
}

body.admin-page .site-content-nav a:hover,
body.admin-page .site-content-nav a:focus-visible {
    background: rgba(231, 185, 63, .2);
    outline: none;
}

@media (max-width: 600px) {
    .site-content-nav { top: 10px; gap: 3px; padding: 7px; }
    .site-content-nav a { padding: 8px 9px; font-size: 12px; }
}

.doctor-intro {
    position: relative;
    z-index: 1;
    width: min(720px, 88vw);
    margin: 12vh auto 0;
    text-align: center;
    color: #fff;
}

.doctor-intro h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin: 0 0 12px; }
.doctor-intro h2 { font-size: clamp(1.1rem, 3vw, 1.8rem); font-weight: 500; }
.doctor-intro p { line-height: 2; color: rgba(255,255,255,.75); }

.developer-dashboard {
    position: relative;
    z-index: 2;
    width: min(980px, 90vw);
    margin: 40px auto 0;
    padding: 24px;
    border: 1px solid rgba(120, 210, 255, .24);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(8, 28, 67, .78), rgba(36, 18, 72, .64));
    box-shadow: 0 22px 80px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.1);
    backdrop-filter: blur(20px);
}

.developer-dashboard-heading { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.developer-dashboard-heading h2 { margin: 0; color: #fff; font-size: 1.25rem; }
.developer-dashboard.dashboard-collapsed .developer-stats-grid, .developer-dashboard.dashboard-collapsed .developer-news-manager { display: none; }
.developer-dashboard.dashboard-collapsed { padding-bottom: 18px; }
.developer-kicker { color: #f4c85a; font-size: .7rem; letter-spacing: .14em; }
.developer-status { margin-right: auto; color: #7ee9cf; font-size: .78rem; }
.developer-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.developer-stat { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(15, 76, 130, .32); }
.developer-stat span, .developer-stat strong { display: block; }
.developer-stat span { color: rgba(235,243,255,.64); font-size: .78rem; }
.developer-stat strong { margin-top: 10px; color: #f5d36d; font-size: 1.05rem; overflow-wrap: anywhere; }
.developer-news-manager { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.developer-news-manager h3 { margin: 0 0 14px; color: #f5d36d; }
.developer-news-manager input, .developer-news-manager textarea { width: 100%; margin-bottom: 10px; padding: 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #fff; background: rgba(0,0,0,.2); font: inherit; }
.developer-news-manager textarea { resize: vertical; }
.developer-action { margin-left: 7px; padding: 8px 13px; border: 1px solid rgba(231,185,63,.45); border-radius: 8px; color: #10254a; background: #edc653; font: inherit; cursor: pointer; }
.developer-action.secondary { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); }
.developer-action.danger { color: #fff; border-color: rgba(255,120,120,.35); background: rgba(180,45,65,.65); }
.developer-news-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(0,0,0,.16); }
.home-news { position: relative; z-index: 2; width: min(980px, 90vw); margin: 70px auto 150px; padding: 26px; border-top: 1px solid rgba(231,185,63,.3); }
.home-news-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.home-news-heading h2 { margin: 0; color: #fff; }
.home-news-list { display: grid; gap: 12px; }
.home-news-item { padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(4,20,50,.4); }
.home-news-item h3 { margin: 0 0 7px; color: #f5d36d; }
.home-news-item p { margin: 0 0 8px; color: rgba(255,255,255,.76); line-height: 1.8; }
.home-news-item time { color: rgba(255,255,255,.48); font-size: .75rem; }

@media (max-width: 760px) {
    .developer-dashboard { margin-top: 28px; padding: 18px; }
    .developer-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .developer-status { width: 100%; margin-right: 0; }
}

@keyframes galaxySpin {
    from { transform: scale(1.02) rotate(0deg); }
    to { transform: scale(1.08) rotate(360deg); }
}