/* ═══════════════════════════════════════════════════════════
   💎 EMERALD GLASS PREMIUM v3 — REAL GLASS EFFECT
   ═══════════════════════════════════════════════════════════ */

:root {
    --em-300: #6ee7b7;
    --em-400: #34d399;
    --em-500: #10b981;
    --em-600: #059669;
    --em-700: #047857;
    --em-glow: rgba(16, 185, 129, 0.6);
    
    --glass-1: rgba(12, 30, 28, 0.35);
    --glass-2: rgba(10, 24, 24, 0.55);
    --glass-hi: rgba(20, 45, 40, 0.55);
    --glass-border: rgba(110, 231, 183, 0.22);
    --glass-border-hi: rgba(110, 231, 183, 0.45);
}

/* ═══════════════════════════════════════════════════════════
   🌈 ARXA — HƏRƏKƏTLİ VIBRANT MESH (glass-ın görünməsi üçün)
   ═══════════════════════════════════════════════════════════ */
html, body {
    background: #030807 !important;
}

body::before {
    content: '' !important;
    position: fixed !important;
    inset: -20% !important;
    z-index: -2 !important;
    pointer-events: none !important;
    background:
        radial-gradient(ellipse 50% 40% at 20% 20%, rgba(16, 185, 129, 0.35), transparent 60%),
        radial-gradient(ellipse 45% 45% at 80% 30%, rgba(5, 150, 105, 0.30), transparent 60%),
        radial-gradient(ellipse 55% 35% at 50% 85%, rgba(52, 211, 153, 0.22), transparent 60%),
        radial-gradient(ellipse 40% 40% at 15% 80%, rgba(6, 95, 70, 0.30), transparent 60%),
        linear-gradient(135deg, #041a12, #030807) !important;
    animation: meshFloat 20s ease-in-out infinite alternate !important;
}

@keyframes meshFloat {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate(-3%, 4%) scale(1.08) rotate(4deg); }
    100% { transform: translate(3%, -3%) scale(1.05) rotate(-3deg); }
}

/* 🌟 İkinci qat — hərəkətli işıq ləkələri */
body::after {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background:
        radial-gradient(circle 250px at 25% 40%, rgba(110, 231, 183, 0.15), transparent 70%),
        radial-gradient(circle 300px at 75% 65%, rgba(52, 211, 153, 0.12), transparent 70%);
    animation: orbsFloat 15s ease-in-out infinite alternate !important;
}

@keyframes orbsFloat {
    0%   { opacity: 0.6; transform: translate(0, 0); }
    100% { opacity: 1;   transform: translate(4%, -3%); }
}

/* ═══════════════════════════════════════════════════════════
   💎 GLASS PANEL — universal class
   ═══════════════════════════════════════════════════════════ */
.post-card,
.premium-room-card,
.share-bar,
.settings-panel,
.settings-profile-mini,
.wallet-daily-card,
.wallet-tx,
.notif-item,
.conv-item,
.g-gift-card,
.admin-card,
.avatar-modal-content,
.confirm-card,
.post-detail-content {
    background: var(--glass-1) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* ✨ Üst parıltı — şüşənin üzərində işıq əksi */
.post-card::before,
.premium-room-card::before,
.share-bar::before,
.settings-panel::before,
.wallet-daily-card::before,
.admin-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 8% !important;
    right: 8% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* 🎨 Yumşaq emerald tint üstündə */
.post-card::after,
.premium-room-card::after,
.settings-panel::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.06) 0%,
        transparent 40%,
        transparent 60%,
        rgba(52, 211, 153, 0.04) 100%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* 🎯 Cards içindəki content üstdə qalsın */
.post-card > *,
.premium-room-card > *,
.settings-panel > *,
.admin-card > * {
    position: relative !important;
    z-index: 2 !important;
}

/* ═══════════════════════════════════════════════════════════
   📱 TOPBAR — çox şüşəli
   ═══════════════════════════════════════════════════════════ */
.app-topbar {
    background: rgba(6, 20, 18, 0.65) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(16, 185, 129, 0.08) !important;
}

.app-logo {
    background: linear-gradient(135deg, #6ee7b7, #10b981, #059669) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.6)) !important;
    font-weight: 900 !important;
}

.topbar-btn {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s !important;
}

.topbar-btn:hover,
.topbar-btn:active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: var(--glass-border-hi) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(16, 185, 129, 0.4) !important;
    transform: scale(0.95) !important;
}

/* ═══════════════════════════════════════════════════════════
   🎯 BOTTOM NAV — güclü şüşə
   ═══════════════════════════════════════════════════════════ */
.bottom-nav {
    background: rgba(6, 18, 16, 0.75) !important;
    backdrop-filter: blur(36px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
    border-top: 1px solid var(--glass-border) !important;
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.06),
        0 -8px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(16, 185, 129, 0.06) !important;
}

.nav-item.active {
    color: var(--em-400) !important;
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.9)) !important;
    transform: translateY(-2px) scale(1.15) !important;
}

/* 🎮 Oyun düyməsi — əsas ulduz */
.nav-play-circle {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%) !important;
    box-shadow:
        0 0 0 4px rgba(6, 18, 16, 0.9),
        0 6px 24px rgba(16, 185, 129, 0.7),
        0 0 60px rgba(16, 185, 129, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    position: relative !important;
}

.nav-play-circle::before {
    content: '' !important;
    position: absolute !important;
    inset: 4px !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 60%) !important;
    pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════
   🎨 POST-AVATAR, XÜSUSİ İKONLAR
   ═══════════════════════════════════════════════════════════ */
.post-avatar,
.share-bar-avatar,
.conv-avatar,
.chat-partner-avatar,
.notif-avatar {
    border: 2px solid var(--em-400) !important;
    box-shadow:
        0 0 0 2px rgba(6, 20, 18, 0.8),
        0 0 16px rgba(52, 211, 153, 0.5),
        inset 0 0 10px rgba(52, 211, 153, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   🎯 PROFILE HEADER
   ═══════════════════════════════════════════════════════════ */
.profile-header-card {
    background: var(--glass-1) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.profile-header-card::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.4), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.25), transparent 60%),
        linear-gradient(135deg, #0a2018, #061210) !important;
}

.profile-header-avatar {
    border: 3px solid var(--em-400) !important;
    box-shadow:
        0 0 0 3px rgba(6, 20, 18, 0.9),
        0 0 30px rgba(52, 211, 153, 0.7),
        0 0 60px rgba(16, 185, 129, 0.4),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.profile-stat-box {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

.profile-stat-value {
    background: linear-gradient(135deg, #d1fae5, #34d399) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.4)) !important;
}

.profile-xp-bar-fill {
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7) !important;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.8) !important;
}

.profile-action-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow:
        0 6px 24px rgba(16, 185, 129, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   🚪 OTAQ KARTLARI
   ═══════════════════════════════════════════════════════════ */
.premium-room-card:hover {
    background: var(--glass-hi) !important;
    border-color: var(--glass-border-hi) !important;
    box-shadow:
        0 16px 48px rgba(16, 185, 129, 0.25),
        0 0 40px rgba(52, 211, 153, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-4px) scale(1.02) !important;
}

.premium-room-card.my-room-active {
    border-color: var(--em-400) !important;
    box-shadow:
        0 0 40px rgba(52, 211, 153, 0.4),
        inset 0 0 30px rgba(52, 211, 153, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
}

.prc-btn.normal,
.prc-btn.host {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    box-shadow:
        0 6px 20px rgba(16, 185, 129, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
}

.prc-badge-active {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.7) !important;
}

.rooms-filter-inner {
    background: var(--glass-1) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-color: var(--glass-border) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

.rooms-filter-tab.active {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════
   💬 MESAJLAR
   ═══════════════════════════════════════════════════════════ */
.chat-topbar {
    background: rgba(6, 20, 18, 0.7) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.dm-bubble.sent {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow:
        0 4px 20px rgba(16, 185, 129, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
}

.dm-bubble.received {
    background: var(--glass-1) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

.chat-input-row {
    background: rgba(6, 20, 18, 0.7) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border-top: 1px solid var(--glass-border) !important;
}

.chat-send-btn {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow:
        0 4px 20px rgba(16, 185, 129, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

.conv-badge {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.6) !important;
}

.new-chat-btn {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow:
        0 8px 30px rgba(16, 185, 129, 0.6),
        0 0 40px rgba(52, 211, 153, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════
   🔔 BİLDİRİŞLƏR
   ═══════════════════════════════════════════════════════════ */
.notif-item.unread {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), var(--glass-1)) !important;
}

.notif-item.unread::before {
    background: linear-gradient(180deg, #34d399, #10b981) !important;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.8) !important;
    width: 3px !important;
}

.notif-type-badge.like,
.notif-type-badge.friend_request {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════
   ⚙️ SETTINGS
   ═══════════════════════════════════════════════════════════ */
.settings-header {
    background: rgba(6, 20, 18, 0.7) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.settings-tab {
    background: var(--glass-1) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

.settings-tab.active {
    border-color: var(--glass-border-hi) !important;
    box-shadow:
        0 4px 20px rgba(16, 185, 129, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

.settings-tab::before {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.panel-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.06)) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.panel-footer {
    background: var(--glass-2) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--glass-border) !important;
}

.section-save-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow:
        0 6px 24px rgba(16, 185, 129, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   🪙 PUL KİSƏSİ
   ═══════════════════════════════════════════════════════════ */
.wallet-balance-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    box-shadow:
        0 12px 48px rgba(16, 185, 129, 0.6),
        0 0 100px rgba(16, 185, 129, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    position: relative !important;
    overflow: hidden !important;
}

.wallet-balance-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 8% !important;
    right: 8% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent) !important;
    opacity: 0.7 !important;
}

.wallet-daily-btn {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    box-shadow: 0 6px 24px rgba(52, 211, 153, 0.6) !important;
    color: #fff !important;
}

.wallet-filter.active {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════
   ✨ INPUT & BUTTONS
   ═══════════════════════════════════════════════════════════ */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--em-400) !important;
    background: rgba(16, 185, 129, 0.08) !important;
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.2),
        0 0 24px rgba(16, 185, 129, 0.15) !important;
}

.btn-primary,
.save-btn,
.btn-submit,
.avatar-modal .save-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow:
        0 6px 24px rgba(16, 185, 129, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   💎 MODAL — EN GÜCLÜ ŞÜŞƏ
   ═══════════════════════════════════════════════════════════ */
.avatar-modal,
.confirm-modal,
.post-detail-modal,
.post-actions-modal {
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    background: rgba(2, 8, 6, 0.75) !important;
}

.avatar-modal-content,
.confirm-card,
.post-detail-content,
.post-actions-sheet {
    background: rgba(8, 22, 20, 0.75) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border: 1px solid var(--glass-border-hi) !important;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(16, 185, 129, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
}

.avatar-modal-content::before,
.confirm-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 10% !important;
    right: 10% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.9), transparent) !important;
    pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════
   🎯 TOAST
   ═══════════════════════════════════════════════════════════ */
.toast {
    background: rgba(8, 22, 20, 0.85) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid var(--glass-border) !important;
    border-left: 4px solid var(--em-400) !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(16, 185, 129, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════
   🎁 HƏDİYYƏ KARTLARI
   ═══════════════════════════════════════════════════════════ */
.g-gift-card:hover,
.g-gift-card:active {
    border-color: var(--glass-border-hi) !important;
    box-shadow:
        0 8px 30px rgba(16, 185, 129, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* ═══════════════════════════════════════════════════════════
   💡 LOW-END fallback
   ═══════════════════════════════════════════════════════════ */
.low-perf .post-card,
.low-perf .premium-room-card,
.low-perf .settings-panel,
.low-perf .share-bar,
.low-perf .wallet-daily-card {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(8, 22, 20, 0.85) !important;
}

/* ═══════════════════════════════════════════════════════════
   📱 MOBİL optimizasiya
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .post-card,
    .premium-room-card,
    .settings-panel {
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    }
}