body {
  color: #484747;
  font-family: Onest, Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  margin: 0 auto;
  padding: 0;
  background-color: var(--bg-body);
}

#container {
    max-width: 630px; /* Maksimum genişlik */
    margin: 0 auto;    /* Ortaya gətirir */
}

.wrapper {
    padding-top: 48px;     /* Üstdən boşluq */
    box-sizing: border-box; /* Ölçü hesablanması */
}

.wrapper #content {
    max-width: 630px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5px 5px;
}

/* Mobil üçün xüsusi olaraq yenidən yoxlayaq */
@media (max-width: 480px) {
    .wrapper {
        padding-top: 48px !important; /* Mobildə bir az daha sıx ola bilər */
    }
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #29d url(/mres/img/progress.gif) repeat-x;
    width: 0%;
    opacity: 1;
    z-index: 99999; /* Hər şeyin ən üstündə olsun */
    pointer-events: none;
}

.copy-btn {
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
    padding: 10px; 
    margin: -10px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
}


.copy-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Həm mobil, həm kompüterdə basanda */
.copy-btn:active {
    background-color: rgba(0, 0, 0, 0.15);
}

/* Qaranlıq rejim */
body.dark-mode .copy-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* --- Ana Konteyner və Padding Məntiqi --- */
.page-container {
    background-color: var(--bg-container);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 0 0 12px 12px;
}

.page-container.has-link {
    padding: 10px;
}

.page-content {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

/* --- İkonlar üçün Ortaq Stillər (Geri, Menyu, Extra) --- */
.page-back-icon, 
.extra-header-icon, 
.page-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #2688eb;
    transition: background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}


/* Hover/Active Effektləri */
.page-back-button-link:hover .page-back-icon, 
.page-menu-trigger:hover,
.extra-header-icon:hover {
    background-color: #f5f5f5;
}

.page-back-button-link:active .page-back-icon,
.page-menu-trigger:active,
.extra-header-icon:active {
    background-color: #e0e0e0;
}

/* Dark Mode Effektləri */
body.dark-mode .page-back-button-link:hover .page-back-icon,
body.dark-mode .page-menu-trigger:hover,
body.dark-mode .extra-header-icon:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .page-back-button-link:active .page-back-icon,
body.dark-mode .page-menu-trigger:active,
body.dark-mode .extra-header-icon:active {
    background-color: rgba(255, 255, 255, 0.12);
}

/* --- Sağ Tərəf Action Qrupu --- */
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* İkonlar arası məsafə */
    margin-left: auto; /* Sağa itələyir */
    flex-shrink: 0;
}

/* --- İstifadəçi Bölməsi --- */
.page-user-link, .page-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.page-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-user-link { cursor: pointer; }
.page-wrapper { cursor: default; }

.page-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* --- Dropdown Menyu --- */
.header-dropdown {
    position: fixed;
    display: none;
    z-index: 1000;
    min-width: 170px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 6px 0;
    animation: fadeInScale 0.15s ease-out;
}

body.dark-mode .header-dropdown {
    background-color: #2c2c2c;
    border-color: #404040;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.header-dropdown ul, 
.header-dropdown ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.header-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
}

.header-dropdown ul li a.block-link {
    color: #ff3b30 !important;
    font-weight: 600;
}

/* --- Mobil Tənzimləmələr --- */
@media (max-width: 630px) {
    .page-menu-trigger:hover, 
    .extra-header-icon:hover { 
        background-color: transparent; 
    }
    
    .page-menu-trigger:active, 
    .extra-header-icon:active,
    .header-dropdown ul li a:active { 
        background-color: #f0f0f0; 
    }

    body.dark-mode .page-menu-trigger:active, 
    body.dark-mode .extra-header-icon:active,
    body.dark-mode .header-dropdown ul li a:active { 
        background-color: rgba(255, 255, 255, 0.1); 
    }
}

@media (min-width: 631px) {
    .header-dropdown ul li a:hover { 
        background-color: #f9f9f9; 
    }
    body.dark-mode .header-dropdown ul li a:hover { 
        background-color: rgba(255, 255, 255, 0.05); 
    }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

input:checked + .slider {
    background-color: #2688eb;
}

/* Hazir deyil */

.section {
  background: var(--section);
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
}

.section-header {
  background: var(--section);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

/* TITLE */
.section-title {
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--section-title);
  /*border-bottom: 1px solid #e5e7eb;*/
}

/* LIST */
.section-list {
  display: flex;
  flex-direction: column;
}

/* ITEM */
.section-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  text-decoration: none;
  color: #1f2937;
  font-size: 15px;
  border-bottom: 1px solid #e5e7eb73;
}

.section-item:last-child {
  border-bottom: none;
}

/* HOVER */
.section-item:hover {
  background: #f9fafb;
}

/* ARROW */
.section-item .arrow {
  color: #9ca3af;
  font-size: 18px;
}


/* ITEM */
.section-item-menu {
  display: block;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  text-decoration: none;
  color: #1f2937;
  font-size: 15px;
}

.section-item-menu:last-child {
  border-bottom: none;
}

/* HOVER */
.section-item-menu:hover {
  background: #f9fafb;
}

/* ARROW */
.section-item-menu .arrow {
  color: #9ca3af;
  font-size: 18px;
}


.section-menu {
  padding: 10px;
  border-bottom: 1px solid  var(--section-menu);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-main {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.section-sub {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}


/* --- Bildiriş Boş Olduqda --- */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon-circle {
    width: 100px;
    height: 100px;
    background-color: rgba(38, 136, 235, 0.1); /* Mavi şəffaf fon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2688eb;
    margin-bottom: 20px;
}

.empty-icon-circle svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.empty-text {
    font-size: 15px;
    color: #828282;
    max-width: 250px;
    line-height: 1.4;
    margin: 0;
}

/* --- Qaranlıq Rejim Üçün --- */
body.dark-mode .empty-icon-circle {
    background-color: rgba(255, 255, 255, 0.05);
    color: #828282;
}

body.dark-mode .empty-text {
    color: #707070;
}

.empty-action-btn {
    margin-top: 25px;
    padding: 10px 24px;
    background-color: #2688eb;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-action-btn:active {
    background-color: #2178d1;
    transform: scale(0.98);
}

body.dark-mode .empty-action-btn {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

/* Tezliklə nişanı (badge) üçün stil */
.coming-soon-badge {
    background-color: rgba(38, 136, 235, 0.1);
    color: #2688eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

/* Qaranlıq rejimdə rəngi bir az yumşaldaq */
body.dark-mode .coming-soon-badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: #828282;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* İkonun rəngini fərqli etmək istəsən */
.coming-soon .empty-icon-circle {
    color: #ffa000; /* Qızılı/Narıncı rəng (gözləmə mənası verir) */
    background-color: rgba(255, 160, 0, 0.1);
}

/* Şəkillər bölməsi üçün özəl rəng (Opsional - Qeydlərlə eyni qala bilər) */
.images-soon .empty-icon-circle {
    color: #4caf50; /* Yaşıl ton - Şəkillər və təbiət simvolu */
    background-color: rgba(76, 175, 80, 0.1);
}

.images-soon .coming-soon-badge {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

/* Qaranlıq rejim üçün */
body.dark-mode .images-soon .empty-icon-circle {
    background-color: rgba(76, 175, 80, 0.15);
    color: #81c784;
}

/* Yardım bölməsi üçün özəl rəng */
.help-soon .empty-icon-circle {
    color: #ff9800; /* Narıncı - Yardım və dəstək rəngi */
    background-color: rgba(255, 152, 0, 0.1);
}

.help-soon .coming-soon-badge {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

/* Qaranlıq rejim üçün */
body.dark-mode .help-soon .empty-icon-circle {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
}

/* Qonaqlar bölməsi üçün özəl rəng */
.guests-soon .empty-icon-circle {
    color: #9c27b0; /* Bənövşəyi - Sirli və maraqlı funksiya rəngi */
    background-color: rgba(156, 39, 176, 0.1);
}

.guests-soon .coming-soon-badge {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

/* Qaranlıq rejim üçün */
body.dark-mode .guests-soon .empty-icon-circle {
    background-color: rgba(156, 39, 176, 0.15);
    color: #ce93d8;
}

/* Qonaq siyahısı boş olduqda */
.guests-empty .empty-icon-circle {
    color: #8e8e93; /* Boz tonu - məlumatın olmadığını bildirir */
    background-color: rgba(142, 142, 147, 0.1);
}

.guests-empty .empty-title {
    color: var(--text-main);
    margin-top: 15px;
}

.guests-empty .empty-text {
    color: #8e8e93;
    max-width: 280px;
    margin: 10px auto 0;
}

/* Qaranlıq rejim üçün */
body.dark-mode .guests-empty .empty-icon-circle {
    background-color: rgba(255, 255, 255, 0.05);
    color: #636366;
}

/* Bildiriş siyahısı boş olduqda */
.notifications-empty .empty-icon-circle {
    color: #a8a8a8; /* Sakit boz tonu */
    background-color: rgba(168, 168, 168, 0.08);
}

.notifications-empty .empty-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 15px;
}

.notifications-empty .empty-text {
    font-size: 14px;
    color: #919191;
    max-width: 260px;
    margin: 8px auto 0;
    line-height: 1.5;
}

/* Qaranlıq rejim (Dark Mode) */
body.dark-mode .notifications-empty .empty-icon-circle {
    background-color: rgba(255, 255, 255, 0.05);
    color: #707070;
}

.requests-empty .empty-icon-circle {
    color: #007aff; /* Dostluq üçün klassik mavi */
    background-color: rgba(0, 122, 255, 0.08);
}

.requests-empty .empty-title {
    font-size: 19px;
    font-weight: 600;
    margin-top: 15px;
}

/* Qaranlıq rejim üçün */
body.dark-mode .requests-empty .empty-icon-circle {
    background-color: rgba(0, 122, 255, 0.15);
    color: #58a6ff;
}

/* Seçilmişlər siyahısı boş olduqda */
.favorites-empty .empty-icon-circle {
    color: #ffcc00; /* Qızılı/Sarı - Favori rəngi */
    background-color: rgba(255, 204, 0, 0.1);
}

.favorites-empty .empty-title {
    font-size: 19px;
    font-weight: 600;
    margin-top: 15px;
}

/* Qaranlıq rejim üçün */
body.dark-mode .favorites-empty .empty-icon-circle {
    background-color: rgba(255, 204, 0, 0.15);
    color: #ffd633;
}

.friends-empty .empty-icon-circle {
    color: #4cd964; /* Dostluq üçün yaşıl tonu */
    background-color: rgba(76, 217, 100, 0.08);
}

.friends-empty .empty-title {
    font-size: 19px;
    font-weight: 600;
    margin-top: 15px;
}

/* Qaranlıq rejim üçün */
body.dark-mode .friends-empty .empty-icon-circle {
    background-color: rgba(76, 217, 100, 0.15);
    color: #81c784;
}

/* Onlayn dostlar siyahısı boş olduqda */
.online-friends-empty .empty-icon-circle {
    color: #4cd964; /* Onlayn yaşılı */
    background-color: rgba(76, 217, 100, 0.08);
}

.online-friends-empty .empty-title {
    font-size: 19px;
    font-weight: 600;
    margin-top: 15px;
}

/* Qaranlıq rejim üçün */
body.dark-mode .online-friends-empty .empty-icon-circle {
    background-color: rgba(76, 217, 100, 0.12);
    color: #81c784;
}

/* Axtarış nəticəsi boş olduqda */
.search-empty .empty-icon-circle {
    color: #8e8e93; /* Neytral boz */
    background-color: rgba(142, 142, 147, 0.1);
}

.search-empty .empty-title {
    font-size: 19px;
    font-weight: 600;
    margin-top: 15px;
}

/* Qaranlıq rejim üçün */
body.dark-mode .search-empty .empty-icon-circle {
    background-color: rgba(255, 255, 255, 0.05);
    color: #636366;
}

/* Axtarış xidməti deaktiv olduqda */
.search-disabled .empty-icon-circle {
    color: #ff3b30; /* Xəbərdarlıq qırmızısı */
    background-color: rgba(255, 59, 48, 0.1);
}

.status-badge.danger {
    background-color: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Qaranlıq rejim üçün optimizasiya */
body.dark-mode .search-disabled .empty-icon-circle {
    background-color: rgba(255, 69, 58, 0.15);
    color: #ff453a;
}

/* Qeydiyyat deaktiv olduqda */
.registration-soon .empty-icon-circle {
    color: #ff9500; /* Narıncı - diqqət və xəbərdarlıq */
    background-color: rgba(255, 149, 0, 0.1);
}

.registration-soon .coming-soon-badge {
    background-color: rgba(255, 149, 0, 0.08);
    color: #ff9500;
}

/* Qaranlıq rejim üçün */
body.dark-mode .registration-soon .empty-icon-circle {
    background-color: rgba(255, 149, 0, 0.1);
    color: #ff9f0a;
}