:root {
  --bg-main: #161a1e;
  --bg-dark: #1d2228;
  --bg-sidebar: #23272f;
  --accent: #14d39a;
  --text-main: #fff;
  --text-secondary: #8e9297;
  --border: #23272f;
  --radius: 16px;
  --transition: 0.32s cubic-bezier(.7,0,.25,1);
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  z-index: 300;
  background: var(--bg-dark);
  padding: 12px 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px #0d10154d;
  border-radius: 0;
  box-sizing: border-box;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #14d39a;
  letter-spacing: 10px;
  white-space: nowrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.burger-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  cursor: pointer;
  z-index: 320;
  padding: 0;
}
.burger-btn span {
  display: block;
  height: 4px;
  width: 28px;
  background: var(--accent);
  border-radius: 2px;
  margin: 2px 0;
  transition: background 0.2s;
}

/* --- Sidebar --- */
.wrapper {
  display: flex;
  min-height: 100vh;
  margin-top: 76px;
  transition: margin-right var(--transition);
}

.sidebar {
  width: 250px;
  background: var(--bg-sidebar);
  padding: 24px 13px 24px 19px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 80px);
  transition: left var(--transition), box-shadow var(--transition), width var(--transition);
  position: sticky;
  top: 80px;
  z-index: 20;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu a {
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  display: block;
}
.menu a.active, .menu a:hover {
  background: var(--accent);
  color: #161a1e;
}

.content {
  flex: 1;
  padding: 40px 32px 32px 32px;
  min-width: 0;
  max-width: 100vw;
  box-sizing: border-box;
  transition: margin-right var(--transition);
}
.footer {
  background: var(--bg-dark);
  padding: 22px 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: auto;
}

/* --- Right Sidebar (Chat) --- */
.right-sidebar {
  position: fixed;
  top: 80px;
  right: -370px;
  width: 340px;
  height: calc(100vh - 80px);
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 16px #0d101540;
  z-index: 250;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px);
  transition:
    right var(--transition),
    opacity var(--transition),
    transform var(--transition);
}
.right-sidebar.open {
  right: 0;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.chat-header {
  background: var(--bg-dark);
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-title {
  color: var(--accent);
  font-weight: bold;
}
.close-chat {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color var(--transition);
}
.close-chat:hover {
  color: var(--accent);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chat-message {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 1rem;
  align-self: flex-start;
  max-width: 85%;
}
.chat-message.user {
  background: var(--accent);
  color: #161a1e;
  align-self: flex-end;
}
.chat-input-bar {
  display: flex;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
}
.chat-input-bar input {
  flex: 1 1 0%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  outline: none;
  background: var(--bg-dark);
  color: var(--text-main);
  transition: background var(--transition);
  box-sizing: border-box;
}
.chat-input-bar button {
  background: var(--accent);
  color: #161a1e;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  max-width: 90px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-input-bar button:hover {
  opacity: 0.8;
}

.wrapper.chat-open .content {
  margin-right: 340px;
}

/* --- User avatar/name --- */
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #282d35;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
}
.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  display: inline-block;
}

/* --- Sidebar overlay (for mobile) --- */
#sidebar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,26,30,0.85);
  z-index: 251;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-no-users{
  position: fixed;
  left: -101vw;
  top: 0;  
}

.header-media{
      display: inline-block;
      width: auto;
      display: flex;
      gap: 14px;
      align-items: center;
  }

/* ----------- АДАПТИВ ----------- */
@media (max-width: 1400px) {
  .header-media a{
      font-size: 14px;
  }
  .header-media a:nth-child(5){
      display: none;
  }
}
@media (max-width: 1300px) {
  .header-media a:nth-child(3){
      display: none;
  }
}
@media (max-width: 1200px) {
  .sidebar {padding-left: 8px; }
  .header-media a:nth-child(2){
      display: none;
  }
  .menu a { padding: 10px 10px; font-size: 1rem; text-align: center; }
}
@media (max-width: 1000px) {
  .header { padding: 12px 8px; }
  .sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 101;
  }
  .menu {
    flex-direction: row;
    gap: 0;
    width: 100vw;
    justify-content: space-around;
  }
  .menu a {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
  .wrapper { flex-direction: column; margin-top: 130px; }
  .right-sidebar { top: 76px; bottom:65px; height: auto; /*height: calc(100vh - 70px);*/}
  .user-name { display: none; }
}
@media (max-width: 1000px) {
  .header-media{
      display: none;
  }
  .header { padding: 8px 3px; }
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .chat-btn {
    padding: 7px 9px;
    font-size: 0.95rem;
    gap: 4px;
  }
  .footer { padding: 12px 8px; }
  .content { padding: 24px 4px 16px 4px; }
  .sidebar { top: 0; border-right: none; border-radius: 0; }
  .wrapper { margin-top: 56px; }
  .right-sidebar {
    width: 100vw;
    min-width: 0;
    right: -101vw;
    border-radius: 0;
  }
  .right-sidebar.open {
    /*right: 0;*/
    width: 340px;
  }
  .chat-input-bar {
    padding: 7px 4px;
    gap: 6px;
  }
  .chat-input-bar button {
    padding: 8px 6px;
    font-size: 0.95rem;
    max-width: 54px;
  }
  .chat-input-bar input {
    font-size: 0.95rem;
    padding: 8px 8px;
  }
  .sidebar {
    position: fixed;
    left: -101vw;
    top: 0;
    height: calc(100vh - 65px);
    width: 82vw;
    max-width: 300px;
    min-width: 160px;
    border-radius: 0 24px 24px 0;
    box-shadow: 4px 0 18px #0007;
    transition: left var(--transition), box-shadow var(--transition);
    z-index: 999;
    flex-direction: column;
    padding: 30px 0 0 18px;
    gap: 26px;
    overflow-y: auto;
  }
  
  .sidebar.open {
    left: 0;
    box-shadow: 6px 0 22px #000c;
  }
  .menu {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .burger-btn { display: flex; }
  #sidebar-backdrop { display: block; }
}

@media (max-width: 800px) {
    .right-sidebar, .wrapper.chat-open .content { margin-right: 0; width: 100vw; }
    .sidebar-no-users {
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 0 8px 0;
        gap: 0;
        min-height: unset;
    }
    .sidebar-no-users a{
        margin: 10px 0;
    }
    .sidebar-no-users a:nth-child(1){
        margin-top: 40px;
    }   
}

@media (max-width: 600px) {
    .right-sidebar.open {
        right: 0;
        width: 100%;
    }    
}

::-webkit-scrollbar { width: 8px; background: var(--bg-sidebar); }
::-webkit-scrollbar-thumb { background: #23272f; border-radius: 5px; }




.profile-box {
    background: #20242a;
    border-radius: 20px;
    padding: 22px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px #0d101526;
}
.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 40%;
    background: #23272f;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px #23272f6e;
}
.profile-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.profile-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    align-items: center;
    gap: 10px;
}
.profile-rating {
    background: #23272f;
    color: var(--accent);
    border-radius: 7px;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 4px 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.profile-rating .star { font-size: 1.2em; color: var(--accent); }
.profile-settings {
    background: #262a31;
    color: var(--text-secondary);
    border: none;
    border-radius: 7px;
    padding: 4px 15px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.profile-settings:hover { background: #23272f; color: var(--accent); }
.profile-balance {
    background: #23272f;
    border-radius: 8px;
    margin: 13px 0 9px 0;
    width: 100%;
    padding: 8px 0 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.balance-title {
    color: var(--text-secondary);
    font-size: 0.92em;
    margin-bottom: 2px;
}
.balance-value {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent);
}
.balance-value .currency { color: #e2e2e2; font-size: 1em; }
.profile-actions {
    width: 100%;
    display: flex;
    gap: 12px;
    margin: 13px 0 0 0;
}
.btn {
    flex: 1 1 0;
    border: none;
    border-radius: 9px;
    padding: 9px 0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
    box-shadow: 0 1px 8px #181a2129;
}
.btn.green {
    background: #18b130;
    color: #fff;
}
.btn.green:hover {
    background: #24c442;
}
.btn.orange {
    background: #14d39a;
    color: #1b1b1b;
}
.btn.orange:hover {
    background: #10be89;
    color: #fff;
}

/* Навигация */
.sidebar-nav {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.nav-section {
    margin-bottom: 3px;
}
.nav-title {
    color: #f6c760;
    font-size: 1.04em;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 8px 0 5px 0;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
}
.nav-title .icon {
    font-size: 1.1em;
    margin-right: 2px;
}
.nav-title .arrow {
    margin-left: auto;
    color: #d8c48a;
    font-size: 0.92em;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    color: #eee;
    background: none;
    border-radius: 6px;
    padding: 8px 14px 8px 22px;
    margin: 0 0 1px 0;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.13s, color 0.13s;
    position: relative;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #24282e;
    color: var(--accent);
}
.sidebar-nav .badge {
    margin-left: 6px;
    background: #23272f;
    color: var(--accent);
    border-radius: 7px;
    padding: 1px 6px;
    font-size: 0.93em;
    font-weight: 600;
}
@media (max-width: 900px) {
    .profile-box {
        margin-bottom: 14px;
        padding: 18px 6px 13px 6px;
    }
    .sidebar-nav a { padding-left: 13px; font-size: 0.98em; }
    .sidebar { padding-left: 3px; padding-right: 3px; }
}
@media (max-width: 600px) {
    .profile-box {
        margin-bottom: 12px;
        padding: 13px 4px 9px 4px;
    }
    .sidebar-nav .badge { font-size: 0.85em; }
}

.profile-box {
    background: #21242a;
    border-radius: 16px;
    padding: 22px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 26px;
    border: 1px solid #23272f;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 40%;
    background: #23272f;
    margin-bottom: 10px;
    overflow: hidden;
    border: 2px solid #282d32;
    box-shadow: 0 2px 12px #14181c29;
}
.profile-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.profile-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding-top: 30px;
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .profile-info {margin-left:12px;}
    .sidebar-nav { margin-left:12px;}
}

.profile-balance-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.profile-balance-label {
    font-size: 0.93em;
    color: #868b99;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
    font-weight: 500;
}
.profile-balance-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}
.profile-currency {
    color: #b3b3b3;
    font-size: 0.97em;
}
.profile-settings {
    background: transparent;
    color: #868b99;
    border: 1px solid #23272f;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
    transition: border 0.17s, color 0.17s;
}
.profile-settings:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.profile-actions {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-top: 2px;
}
.btn {
    flex: 1 1 0;
    border: none;
    border-radius: 8px;
    padding: 9px 0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border 0.15s;
    border: 1px solid transparent;
    box-shadow: 0 1px 8px #181a2112;
}
.btn.gray {
    background: #25282e;
    color: #ddd;
}
.btn.gray:hover {
    background: #26292f;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn.accent {
    background: #14d39a;
    color: #23272f;
}
.btn.accent:hover {
    opacity:0.8;
    color: #fff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.nav-section {
    margin-bottom: 1px;
}
.nav-title {
    color: #e7e9f0;
    font-size: 1.01em;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 8px 4px;
    text-transform: uppercase;
    opacity: 0.91;
    border-left: 2.5px solid var(--accent);
    padding-left: 8px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    color: #b8bdc8;
    background: none;
    border-radius: 6px;
    padding: 8px 16px 8px 18px;
    margin: 0 0 1.5px 0;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.13s, color 0.13s;
    position: relative;
    letter-spacing: 0.01em;
}
.sidebar-nav a.nav-sub {
    font-size: 0.97em;
    color: #b88938;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #20232a;
    color: var(--accent);
}
.badge {
    margin-left: 8px;
    background: #25282e;
    color: var(--accent);
    border-radius: 7px;
    padding: 1px 7px;
    font-size: 0.92em;
    font-weight: 600;
}

@media (max-width: 900px) {
    .profile-box {
        margin-bottom: 13px;
        padding: 16px 7px 10px 7px;
    }
    .sidebar-nav a { padding-left: 10px; font-size: 0.98em; }
}
@media (max-width: 600px) {
    .profile-box {
        margin-bottom: 8px;
        padding: 10px 2px 6px 2px;
    }
    .sidebar-nav .badge { font-size: 0.86em; }
}
.nav-title {
    color: #e7e9f0;
    font-size: 1.01em;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 6px 4px;
    text-transform: uppercase;
    opacity: 0.91;
    border-left: 2.5px solid var(--accent);
    padding-left: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.16s;
}
.nav-title .arrow {
    margin-left: auto;
    color: #d8c48a;
    font-size: 1em;
    transition: transform 0.22s cubic-bezier(.68,-0.55,.27,1.55);
}
.nav-title.active .arrow {
    transform: rotate(180deg);
}
.nav-content {
    display: block;
    flex-direction: column;
    gap: 0;
    margin-bottom: 6px;
    animation: slideDown .33s cubic-bezier(.7,0,.25,1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px);}
    to   { opacity: 1; transform: none;}
}
.nav-title.active { color: #14d39a;}
.nav-title {
    /* ...остальное без изменений... */
    position: relative;
    padding-right: 30px; /* делаем место под стрелку */
}
.nav-title .arrow {
    position: absolute;
    right: 12px; /* теперь стрелка не прикасается к краю! */
    color: #d8c48a;
    font-size: 1.1em;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.22s cubic-bezier(.68,-0.55,.27,1.55);
}
.nav-title.active .arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Кнопка "Пополнить" — строгая рамка, прозрачный фон */
.btn.green {
    background: transparent;
    color: #2ecc40;
    border: 2px solid #10be89;
    transition: background 0.17s, color 0.17s, border 0.17s;
}
.btn.green:hover {
    background: #009a63;
    color: #fff;
    border: 2px solid #27ae38;
}

.header-right {
    display: flex;
    gap: 14px;
    align-items: center;
}

.chat-link {
    display: flex;
    align-items: center;
    padding: 7px 22px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(90deg, #23272f 80%, #272b34 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,0.06);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    border: 1.5px solid #262b34;
    position: relative;
}
.chat-link:hover {
    background: linear-gradient(90deg, #313642 80%, #1e1f22 100%);
    color: #ffb700;
    box-shadow: 0 4px 18px 0 rgba(34, 34, 42, 0.12);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

.chat-header {
    position: relative;
}

.chat-lang-select {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    padding: 0 8px 0 0;
    font-weight: 600;
    color: #fff;
    border-radius: 8px;
    transition: background 0.14s;
    user-select: none;
    position: relative;
    z-index: 3;
}
.chat-lang-select:hover, .chat-lang-select.active {
    background: #23272f;
}
.chat-lang-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid #1d2228;
    background: #23272f;
    box-shadow: 0 1px 3px #0d101511;
}
.chat-lang-label {
    font-size: 1.05em;
    color: #fff;
    font-weight: 500;
    padding-right: 2px;
}
.chat-lang-arrow {
    font-size: 1.06em;
    color: #aaa;
    transition: transform 0.15s;
}
.chat-lang-select.open .chat-lang-arrow {
    transform: rotate(180deg);
}

.chat-lang-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 180px;
    background: #23272f;
    border-radius: 11px;
    box-shadow: 0 8px 36px #10151b2a;
    border: 1.2px solid #282b31;
    padding: 7px 0;
    z-index: 22;
    animation: langFadeIn 0.22s;
}
@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(8px);}
    to { opacity: 1; transform: none;}
}
.chat-lang-dropdown.open {
    display: flex;
}
.chat-lang-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 19px;
    color: #e2e2e2;
    cursor: pointer;
    font-size: 1em;
    border: none;
    background: transparent;
    transition: background 0.12s, color 0.13s;
    border-radius: 6px;
}
.chat-lang-option img {
    width: 22px; height: 16px; border-radius: 3px; background: #181b1f; object-fit: cover;
}
.chat-lang-option:hover, .chat-lang-option.selected {
    background: var(--accent);
    color: #181b1f;
}




.profile-avatar1 {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 75%;
    overflow: visible;
    background: #23262B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25%;
}

.shovel-status1 {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    min-width: 25px;
    height: 48px;
    background: #23262B;
    border-radius: 24px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;               /* увеличил gap между лопатой и числом */
    padding-left: 14px;      /* большой отступ слева */
    padding-right: 12px;
    border: 2px solid #181A1F;
}

.shovel-status1 img {
    width: 26px;
    height: 26px;
    display: block;
}


.shovel-amount1 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', Arial, sans-serif;
    margin-left: 2px;
    letter-spacing: 0.5px;
}

.surf-blocks-wrap {
    margin-top: 38px;
}
.surf-title {
    font-size: 1.18em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 17px;
    letter-spacing: 0.04em;
}
.surf-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.surf-item {
    background: #20242a;
    /*border-radius: 14px;*/
    box-shadow: 0 2px 12px #0d10151a;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 16px;
    border: 1.3px solid #23272f;
    transition: border-color 0.18s, box-shadow 0.18s;
    min-width: 0;
}
.surf-item:hover {
    /*border-color: var(--accent);*/
    box-shadow: 0 4px 24px #23272f33;
}
.surf-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    /*border-radius: 8px;
    background: #181b1f;*/
    padding: 2px;
    /*border: 1px solid #23272f;*/
}
.surf-main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.surf-link, .earn-title {
    color: #14d39a;
    font-size: 1.08em;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.surf-desc {
    color: #8e9297;
    font-size: 0.97em;
    letter-spacing: 0.01em;
}
.surf-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    min-width: 90px;
}
.surf-reward {
    background: #181b1f;
    color: #14d39a;
    font-weight: 700;
    font-size: 1.08em;
    border-radius: 6px;
    padding: 4px 12px;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
    border: 1.5px solid #14d39a;
    box-shadow: 0 0 0 3px #14d39a22, 0 0.5px 7px #14d39a10;
}
.surf-btn {
    background: #192226;
    color: #b7bac5;
    border-radius: 7px;
    padding: 5px 16px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #14d39a;
    box-shadow: 0 0 0 3px #14d39a22, 0 0.5px 7px #14d39a10;
    transition: border-color .16s, box-shadow .13s;
    outline: none;
}


.surf-btn:hover, .surf-btn:focus {
    color: #fff;
}
@media (max-width: 600px) {
    .surf-blocks-wrap { margin-top: 24px; }
    .surf-item { padding: 10px 6px; border-radius: 11px; }
    .surf-icon img { width: 28px; height: 28px; }
    .surf-right { min-width: 68px; }
    .surf-link { font-size: 0.98em; }
    .surf-btn { padding: 4px 10px; font-size: 0.97em; }
    .surf-title { margin-bottom: 9px; font-size: 1.09em; }
}

.container {
    /* width: 100%; */
    /*max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;*/
    /* margin-top: 20px; */
}

.menu-notifications{
    margin-top:-30px;
    font-size: 13px;
    border:1px dotted #10be89;
    border-radius: 0 9px 0 9px;
    padding: 10px; 
    text-align: center;
    margin-right: 15px;
}

.menu-banner .menu-banner-title{
    font-size: 18px;
    text-align: center;
    padding:5px;
    margin-top:7px;    
}

.blocks-wrap{
    margin-top: 38px;
    padding:0 20px 20px 20px;
}

footer .link_soc{
    text-align: center;    
}
footer .link_soc span{
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;    
}
footer .link_soc svg {
    fill: #524E65;
    width: 47px;
    height: 47px;
    transition: .3s fill;
    vertical-align: middle;
}

.header {
      width: 100%;
      height: 77px;
      background: linear-gradient(93deg, #18191c 60%, #22232b 100%);
      border-bottom: 2px solid #23242a;
      box-shadow: 0 4px 32px 0 #11161f50;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 38px 0 88px;
      position: fixed;
      z-index: 100;
      top: 0;
      left: 0;
      font-family: 'Montserrat', Arial, sans-serif;
    }
    .header-left {
      display: flex;
      align-items: center;
      gap: 21px;
      min-width: 0;
      position: relative;
    }
    .burger-btn {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      outline: none;
      height: 34px;
      width: 34px;
      justify-content: center;
      margin-right: 4px;
      z-index: 200;
    }
    .burger-btn span {
      display: block;
      width: 25px;
      height: 3px;
      background: #14d39a;
      border-radius: 1.5px;
      margin: 0 auto;
      transition: all 0.23s;
    }
    .header-left a {
      display: flex;
      align-items: center;
      height: 44px;
      text-decoration: none;
      user-select: none;
    }
    .logo-svg {
      width: 120px;
      height: 44px;
      display: block;
    }
    .header-nav {
      display: flex;
      align-items: center;
      gap: 9px;
    }
    .chat-link {
      display: flex;
      align-items: center;
      padding: 8px 21px;
      border-radius: 9px;
      font-size: 16.3px;
      font-weight: 700;
      background: linear-gradient(90deg, #23272f 80%, #272b34 100%);
      color: #f4f4f7;
      text-decoration: none;
      border: 1.2px solid #23242a;
      box-shadow: 0 1.5px 7px 0 rgba(0,0,0,0.09);
      transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s, border-color .16s;
      position: relative;
      outline: none;
    }
    .chat-link:hover, .chat-link:focus {
      background: linear-gradient(90deg, #222f29 80%, #14d39a33 100%);
      color: #14d39a;
      box-shadow: 0 4px 18px 0 rgba(34,34,42,0.16);
      transform: translateY(-2px) scale(1.06);
      text-decoration: none;
      border-color: #14d39a;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-left: 16px;
      position: relative;
      z-index: 105;
    }
    .chat-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 9px 30px 9px 18px;
      background: linear-gradient(92deg,#14d39a 55%,#10be89 100%);
      border: none;
      border-radius: 11px;
      color: #17181d;
      font-weight: 900;
      font-size: 17px;
      box-shadow: 0 2px 14px 0 #14d39a3b;
      cursor: pointer;
      outline: none;
      letter-spacing: 0.03em;
      transition: background 0.16s, color 0.15s, transform 0.12s, box-shadow 0.15s;
    }
    .chat-btn:hover, .chat-btn:focus {
      background: linear-gradient(90deg,#10be89 50%,#14d39a 100%);
      color: #fff;
      transform: scale(1.045);
      box-shadow: 0 3px 18px 0 #14d39a4a;
    }
    .chat-btn svg { display: block; }

    /* --- LANG SELECTOR --- */
    .header-lang-wrap {
      display: flex;
      align-items: center;
      position: relative;
    }
    .lang-btn {
      display: flex;
      align-items: center;
      background: none;
      border: 1.5px solid #14d39a;
      cursor: pointer;
      outline: none;
      padding: 7px 14px 7px 11px;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 800;
      color: #14d39a;
      gap: 7px;
      transition: background .17s, box-shadow .18s, border-color .16s;
      position: relative;
      min-width: 50px;
      background: transparent;
    }
    .lang-btn:hover, .lang-btn:focus {
      background: #19271f;
      border-color: #19ffbb;
      box-shadow: 0 2px 12px #14d39a27;
    }
    .lang-btn svg {
      width: 20px; height: 20px; display: block;
    }
    .lang-dropdown-portal {
      display: block;
      position: fixed;
      background: #17181d;
      border-radius: 10px;
      box-shadow: 0 7px 22px #10101450;
      padding: 9px 16px 7px 13px;
      min-width: 140px;
      border: 1.5px solid #23242a;
      animation: fadeIn .18s;
      z-index: 2147483647 !important;
    }
    .lang-option {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 2px;
      border-radius: 7px;
      color: #e5e5e5;
      font-size: 15.3px;
      font-weight: 700;
      cursor: pointer;
      transition: background .12s, color .12s;
      margin-bottom: 2px;
    }
    .lang-option:last-child { margin-bottom: 0; }
    .lang-option:hover, .lang-option.active {
      background: linear-gradient(90deg,#14d39a22 60%, transparent 100%);
      color: #14d39a;
    }
    .lang-flag {
      width: 21px;
      height: 21px;
      border-radius: 6px;
      background: #232c25;
      object-fit: cover;
      border: 1px solid #14d39a33;
      display: block;
    }
    @keyframes fadeIn { from {opacity:0;transform:translateY(-8px);} to {opacity:1;transform:translateY(0);} }

    @media (max-width: 1100px) {
      .header { padding: 0 7px 0 3px; }
      .header-left { gap: 8px; }
      .logo-svg { width: 88px; height: 34px; }
      .chat-link { font-size: 14px; padding: 6px 7px;}
      .chat-btn { font-size: 13.5px; padding: 8px 16px 8px 11px; }
    }
    @media (max-width: 900px) {
      .burger-btn { display: flex; }
      .header-nav {
        display: none;
      }
      .header-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 70px;
        width: 100vw;
        background: #17181d;
        box-shadow: 0 7px 22px #10101450;
        border-bottom-left-radius: 16px;
        padding: 9px 0 12px 0;
        z-index: 200;
        animation: fadeIn .22s;
      }
    }
    @media (max-width: 700px) {
      .header { min-height: 48px; }
      .logo-svg { width: 59px; height: 18px; }
      .chat-link, .chat-btn { font-size: 11px; padding: 4px 7px;}
      .lang-btn { font-size: 10px; padding: 5px 8px 5px 6px;}
      .lang-flag { width: 14px; height: 14px;}
      .lang-dropdown-portal { min-width: 90px; padding: 6px 7px 5px 6px;}
      .lang-option { font-size: 10.6px; gap:4px; padding:5px 2px;}
    }

.chat-del-mess, .chat-blok-user{
    display: inline-block;
    border-radius:50%;
    margin-left: 5px;
    cursor: pointer;
    opacity: 0.7;
    width:16px;    
    height:16px;
    text-align: center;
    line-height:16px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: middle;
    color: #FFF;
    user-select: none;   
}
.chat-del-mess:hover, .chat-blok-user:hover{
    opacity: 1;      
}
   
.chat-del-mess{
    background-color: red;    
}

.chat-blok-user{
    background-color: blue; 
}

img.chat-avatar{
    width: 22px;
    height: 22px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
}

.chat-lopata{
    display: inline-block;
    margin-left: 3px;
}
.chat-color-l-b{
    color: #CD7F32;    
}
.chat-color-l-s{
    color: #dadada;    
}
.chat-color-l-z{
    color: #FFD700;    
}

.chat-lopata img.chat-lopata-img{
    width:22px;
    height:22px;
    vertical-align: middle;   
}

.chat-login{
    cursor: pointer;
    font-weight: 500;
}
.chat-login:hover{
    color: #ffa700;
}
.chat-butt-emoji{
    margin-top: 8px;
    cursor: pointer;
}

.chat-online{
    text-align: center;
    font-size: 11px;
    padding: 5px 0 10px 0;
}
.chat-online span{
    font-size: 12px;
    font-weight: 500;
}

.emoji-picker{
            position: absolute;
            bottom: 55px;
            left: 0;
            right: 0;
            background: #212b40;
            border: 1px solid #283040;
            border-radius: 0;
            display: none;   
        }
        .chat-scrollY-emoji{
            overflow-y: auto;
            max-height: 300px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
            gap: 1rem;
            margin: 1rem;;
        }
        .emoji-header{
            background-color: #0e121b;
            padding: 5px 0 5px 10px;
            font-size: 12px;
        }
        .emoji-close{
            position: absolute;
            right: 5px;
            top: 5px;
            cursor: pointer;
        }
        .ctainer_emoji{
            display: flex;
            justify-content: center;
            border-radius: 5px;
            padding: 10px;
            cursor: pointer;
        }
        .ctainer_emoji:hover{
            background: #7b91bb; 
        }
        .ctainer_emoji img{
            width: 30px;    
        }
        
.market-lopata-img{
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-left: 5px;
}
a.market-lopata-img-order{
    display: inline-block;
    padding:5px 5px;
    vertical-align: middle;
    text-align: center;
    border-radius: 5px;
    border: 0;
}
#birja-rating a.market-lopata-img-order:hover{
    border: 0;
}
.market-lopata-img-order img{
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.market-lopata-img-order.active{
    background-color: rgba(0, 0, 0, 0.2);
}
.wall_lopata{
    display: inline-block;
    margin-right: 10px;
}
.wall_lopata img{
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.img-lopata-serf{
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.dop-menu-lopata{
    cursor: pointer;    
}
.menu-load-lopata{
    display: none;
    min-width: 90px;
    position: absolute;
    top:0;
    left: 50%;
    transform: translateX(-50%);
}
.ml_button{
    background-color: #161a1e;
    padding: 3px 10px;
    border:1px solid #000;   
}
.ml_button:hover{
    background-color: #0f1113;   
}
.menu-load-padding{
    padding-top: 40px;
}
.menu-load-lopata img{
    display: inline-block;
    width: 26px;
    height: 26px;
    vertical-align: middle;
}
.dop-menu-lopata:hover .menu-load-lopata{
    display: block; 
}
.content .container{
    margin:0 auto;
}

@media (max-width: 700px) {
  .hidden-mobile-link { display: none;}
}

@media (min-width: 992px) {
.bomobre { display: none ;}
}

.goodref .lopata-top img{
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.lop_color_b{ color:#CD7F32; }
.lop_color_s{color:#dadada;}
.lop_color_z{color:#FFD700;}

.mobile-tabbar{
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 999;
      background: linear-gradient(180deg, rgba(21,21,23,.85) 0%, rgba(21,21,23,1) 30%);
      backdrop-filter: blur(10px);
      border-top: 1px solid #242428;
      padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-tabbar__wrap{
      max-width: 820px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 2px;
      height: 64px;
    }

    .mobile-tab{
      display:flex;
      flex-direction: column;
      align-items:center;
      justify-content:center;
      text-decoration:none;
      color: #9aa0a6;
      font-size: 11px;
      line-height: 1;
      user-select: none;
      position: relative;
    }

    .mobile-tab i{
      font-size: 18px;
      margin-bottom: 6px;
    }

    .mobile-tab:active{
      transform: translateY(1px);
    }

    /* Активная вкладка */
    .mobile-tab.is-active{
      color: #14d39a;
    }
    .mobile-tab.is-active i{
      color: #14d39a;
    }
    .mobile-tab.is-active::after{
      content:"";
      position:absolute;
      top: 0;
      width: 36px;
      height: 3px;
      border-radius: 6px;
      background: #14d39a;
    }

    /* Ховеры (для десктопа/эмуляторов) */
    @media (hover:hover){
      .mobile-tab:hover{
        color:#cfd3d8;
      }
      .mobile-tab:hover i{
        color:#cfd3d8;
      }
    }

    /* Показать только на мобилке/планшете */
    .mobile-tabbar{ display:none; }
    @media (max-width: 1024px){
      .mobile-tabbar{ display:block; }
    }
