html, body {
  max-width: 100%;
  overflow-x: hidden; /* Запрет горизонтального скролла */
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #292828;

  font-size: 16px;
  line-height: 1.8;
 background: linear-gradient(
    135deg,
    #eef5ed 0%,         /* почти белый с холодным оттенком */
    #f5f4ed 15%,
    #f4edf5 30%,
    #edf1f5 45%,        /* более насыщенный светло-серый */
    #f5efed 55%,
    #f5edf0 65%,        /* холодный голубоватый блик */
   #e1f1f7 75%,
    #dfe7ed 85%,
    #f9fafb 100%
  );
  
  box-shadow:
    inset 0 0 25px 8px rgba(255, 255, 255, 0.7), /* яркий внутренний блик */
    0 10px 30px rgba(0, 40, 70, 0.12);           /* лёгкая холодная внешняя тень */

  text-align: center;
}


/* ОБЩИЙ СТИЛЬ: оформление ссылки с логотипом в меню, убираем фон, тень и цвет */

.main-menu a[href="/"] {
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  border: none !important;
}

/* ОБЩИЙ СТИЛЬ: класс для переноса строки на мобильных устройствах */

.mobile-line-break {
  display: inline; /* по умолчанию в строке */
  margin-top: 0;   /* убираем отступ */
}

/* ОБЩИЙ СТИЛЬ: hover-эффекты для ссылки с логотипом */

.main-menu a[href="/"]:hover {
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  cursor: default; /* если нужно */
}
/* ОБЩИЙ СТИЛЬ: шрифты и начертания для заголовков и навигации */

h1, h2, h3, nav, .logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 650;
}
h1 {
  font-weight: 800;
  font-size: 2.5rem;
  color: #292828; /* светло-серый, но не белый */
  text-shadow:
    0 0 6px rgba(220, 220, 220, 0.6), /* мягкое свечение */
    0 2px 5px rgba(0, 0, 0, 0.7);      /* глубокая тень */
  letter-spacing: 1px;
}


/* ОБЩИЙ СТИЛЬ: стили для заголовков h2 */

h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(17, 84, 97, 0.3);
  position: relative;
  display: inline-block;
  padding-bottom: 10px; /* немного больше пространства для подчеркивания */
  margin-bottom: 2.5rem; /* увеличенный отступ снизу */
}

/* ОБЩИЙ СТИЛЬ: hover-эффекты для полей формы */

.form-wrapper select:hover,
.form-wrapper input[type="text"]:hover,
.form-wrapper input[type="number"]:hover,
.form-wrapper input[type="password"]:hover,
.form-wrapper input[type="email"]:hover {
  border-color: #1e8ecf; /* более яркий цвет при наведении */
  box-shadow: 0 0 8px rgba(30, 142, 207, 0.3);
}

/* ОБЩИЙ СТИЛЬ: фокусное состояние для полей формы */

.form-wrapper select:focus,
.form-wrapper input[type="text"]:focus,
.form-wrapper input[type="number"]:focus,
.form-wrapper input[type="password"]:focus,
.form-wrapper input[type="email"]:focus {
  outline: none;
  border-color: #0a5ea8; /* цвет рамки при фокусе */
  box-shadow: 0 0 10px rgba(10, 94, 168, 0.6);
  background-color: #f0f8ff; /* легкий светлый фон при фокусе */
}

/* ОБЩИЙ СТИЛЬ: оформление кнопки формы */

.form-wrapper form button {
  margin-top: 20px;
  padding: 12px;
  border: none;
 background: linear-gradient(
    to top,
    #708090, /* slate gray */
    #1b1e21, /* очень тёмно-серый */
    #383d41, /* графитовый */
    #555555  /* средне-серый */
);
color: #d9d9d9;
font-weight: 500;
font-size: 1.3rem;
border-radius: 10px;
cursor: pointer;
box-shadow: 0 5px 15px rgba(75, 75, 75, 0.6);
transition: background-color 0.3s ease;
}

/* ОБЩИЙ СТИЛЬ: кнопка переключения темы */

#theme-toggle {
  background: linear-gradient(135deg, #115461, #3a7a85);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(17, 84, 97, 0.4);
}

/* ОБЩИЙ СТИЛЬ: hover-эффекты для кнопки переключения темы и ссылки языка */

a[href*="lang=en"]:hover {
   background: linear-gradient(135deg, #222a30, #1b2227);
  box-shadow: 0 4px 12px rgba(30, 40, 50, 0.7), inset 0 0 8px rgba(50, 60, 70, 0.6);
  color: #ddd; /* светло-серый, почти белый */
  text-decoration: none;
}
a[href*="lang=ru"]:hover {
   background: linear-gradient(135deg, #222a30, #1b2227);
  box-shadow: 0 4px 12px rgba(30, 40, 50, 0.7), inset 0 0 8px rgba(50, 60, 70, 0.6);
  color: #ddd; /* светло-серый, почти белый */
  text-decoration: none;
}

main h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a; /* насыщенный тёмно-серый для контраста */
  margin: 0 0 2rem 0;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6); /* мягкий белый тисненый эффект */
  display: block !important;

  border: 1px solid rgba(200, 200, 200, 0.6); /* светлая полупрозрачная рамка под металл */
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,  /* почти белый блик */
    rgba(230, 230, 230, 0.7) 50%, /* светло-серебристый центр */
    rgba(255, 255, 255, 0.7) 100% /* снова белый блик */
  );
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.5), /* яркий мягкий внутренний блик */
    0 4px 12px rgba(0, 0, 0, 0.15);         /* лёгкая внешняя тень для воздушности */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


/* ОБЩИЙ СТИЛЬ: стили для заголовков h3 */

h3 {
  font-weight: 600;
  font-size: 1.5rem;
  color: #115461;
  text-shadow: 1px 1px 3px rgba(17, 84, 97, 0.3);
  position: relative;
  display: inline-block;
  padding-bottom: 15px; /* немного больше пространства для подчеркивания */
  margin-bottom: 1rem; /* увеличенный отступ снизу */
}

/* ОБЩИЙ СТИЛЬ: стили заголовков h3 внутри main */

main h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a; /* насыщенный тёмно-серый для контраста */
  margin: 0 0 2rem 0;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6); /* мягкий белый тисненый эффект */
  display: block !important;

  border: 1px solid rgba(200, 200, 200, 0.6); /* светлая полупрозрачная рамка под металл */
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
   background: linear-gradient(
    to left,
     #9ea2b5 ,       
    #f5efed ,
    #f5f4ed ,
    #f4edf5 ,
    #f5edf0,
    #9ea2b5 
  );
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.5), /* яркий мягкий внутренний блик */
    0 4px 12px rgba(0, 0, 0, 0.15);         /* лёгкая внешняя тень для воздушности */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* ОБЩИЙ СТИЛЬ: хедер, футер и главное меню — используются на всех страницах */
header {
  background: linear-gradient(
    to top right,
    #f9f9f9,  /* почти белый */
    #f2f4f6,
    #f9f9f9,
    #e8ebee,
    #f2f4f6,
    #cccccc   /* мягкий светло-серый */
  );
  
  border-bottom: 3px double rgba(200, 200, 200, 0.6); /* чуть прозрачнее для мягкости */
  
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.6), /* внутреннее свечение */
    0 12px 30px rgba(0, 0, 0, 0.15);         /* рассеянная внешняя тень */
}

.footer-note {
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 30px auto 20px;
  text-align: center;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.footer-note a {
  color: #007aff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-note a:hover {
  color: #005bb5;
  text-decoration: underline;
}

.main-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 20px; /* уменьшил паддинги */
  box-sizing: border-box;
  border-bottom: 3px solid #b0b0b0;
  box-shadow: inset 0 -6px 12px rgba(255, 255, 255, 0.5);
}

.logo {
    margin-right: 5px;
    flex-shrink: 0;
    background: none;
}
.logo img {
  width: 100%;
  max-width: 250px;
  height: auto;
  background: none;
}

.main-menu a {
    background-color: #092323;
    text-decoration: none;
    color: #e8e1e1;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 13px;
    border: 1px solid rgba(80, 80, 80, 0.7);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-menu a:hover {
    background-color: #120f01;
    color: #ebe5d1;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.6), 0 0 32px rgba(255, 255, 255, 0.4);
}

/* ОТНОСИТСЯ К КОНКРЕТНОЙ СТРАНИЦЕ: стили для основного контента лендинга */
.landing-text {
  max-width: 800px;
  margin: 10px auto;
  padding: 10px 20px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #333;
  background: white;
  position: relative;
}

.landing-text .tagline {
  font-size: 1.1rem;
  color: #092323;
  font-weight: 600;
  margin-bottom: 1rem;
}

.landing-text .supported-coins {
  font-size: 1.1rem;
  font-weight: bold;
  color: #474141;
  margin-bottom: 1.5rem;
}

.landing-text .mission {
  font-size: 1rem;
  color: #474141;
  margin-bottom: 2rem;
}

.landing-text .reconstruction-info {
  background-color: #d4d7da;
  border: 1px solid #092323;
  border-radius: 12px;
  color: #092323;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(36, 66, 84, 0.5);
}

.landing-text hr {
  border: none;
  border-top: 1px solid #b0b0b0;
  margin: 2rem auto;
  width: 60%;
  opacity: 0.3;
}

.landing-text a {
  color: #092323;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s ease;
}

.landing-text a:hover {
  color: #007aff;
}


/* === Кнопка переключения темы === */
.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
}
.slogan-highlight {
  border: 3px solid #007aff;
  border-radius: 13px;
  padding: 16px 24px;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
  color: #007aff;
  background-color: #f0f8ff;
}

/* === Менее яркий блок для реконструкции === */
.reconstruction-box {
  background: linear-gradient(
    135deg,
    #fff9e6 0%,    /* очень светлый теплый кремовый */
    #ffe59b 30%,   /* мягкий золотистый */
    #ffcc4d 60%,   /* теплый золотой */
    #dba900 80%,   /* глубокий золотистый, чуть приглушенный */
    #b38900 100%   /* насыщенный золотой, но не яркий */
  );
  border: 2px solid #d1a300; /* мягкий золотистый контур */
  border-radius: 12px;
  padding: 20px;
  color: #4a3a00; /* тёмно-золотистый текст */
  font-weight: bold;
  text-align: center;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 
    0 0 18px rgba(219, 169, 0, 0.5),  /* мягкое золотистое свечение */
    inset 0 0 12px rgba(255, 229, 143, 0.4); /* внутренний нежный блик */
  font-size: 1.1rem;
  transition: box-shadow 0.3s ease;
}



/* === Информационные бейджи === */
.info-badges {
  display: flex;
  flex-direction: column;
  align-items: center;   /* Центрируем бейджи по горизонтали */
  gap: 12px;
  width: 100%;
}

.badge {
  display: block;
  max-width: 900px;
  width: 90%;
  padding: 12px 24px;
  box-sizing: border-box;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937; /* темный насыщенный синий графит */
  background: linear-gradient(
    135deg,
    #f9fafb 0%,    /* почти белый */
    #e6e9ef 20%,   /* очень светлый голубовато-серый */
    #d4dae6 40%,   /* светло-серый с холодным оттенком */
    #c0c7d2 60%,   /* средний светло-серый */
    #dde4ee 80%,   /* светлый, с небольшим голубым оттенком */
    #f4f7fc 100%   /* почти белый, сияющий */
  );
  border: 1.5px solid #a3accf; /* холодный серо-голубой */
  box-shadow:
    0 0 8px rgba(163,172,207,0.8),  /* легкий светящийся ореол */
    inset 0 2px 6px rgba(255, 255, 255, 0.9); /* внутренний яркий блик */
  text-align: center;
  white-space: normal;
  margin-top: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* Меню списки */
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.menu-left {
    margin-right: auto;
}

.menu-right {
    margin-left: auto;
}

/* === ВЫПАДАЮЩЕЕ МЕНЮ === */
.menu-left li {
    position: relative;
}

.menu-left li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #092323;
    border: 1px solid #999;
    padding: 10px;
    min-width: 180px;
    z-index: 1000;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 13px;
border: 1px solid rgba(80, 80, 80, 0.7); /* ← РАМА */
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 
                0 0 24px rgba(255, 255, 255, 0.5); /* ← ГЛОУ */
}

.menu-left li:hover ul {
    display: flex;
}

.menu-left li ul li a {
    padding: 6px 12px;
    color: #d9d9d9;               /* светло-серый */
    background-color: #121b1d;    /* очень тёмный серо-синий */
    border-radius: 13px;
    transition: background-color 0.2s, color 0.2s;
}

.menu-left li ul li a:hover {
    background-color: #b3b4b5 ;    /* тёмно-серый с легким синим оттенком */
    color: #e8f0f1;               /* светлый серый */
}


/* === ПОЛЬЗОВАТЕЛЬСКОЕ МЕНЮ === */
.user-menu {
    background:linear-gradient(to top right,#708090,#1b1e21,#383d41, #555555);
    border-top: 1px solid #f0f1f2;
    padding: 10px 0;
    font-family: inherit;
    font-size: 16px;
}

.user-menu .menu-container {
    display: flex;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap
}

.user-menu ul.menu-left {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu ul.menu-left li {
    margin-right: 20px;
    
}
.main-menu ul.menu-left {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
     border-radius: 13px;
    
    
}
.main-menu ul.menu-left > li {
    display: flex;
    align-items: center;
    border: 1px double rgba(100, 100, 100, 0.7); /* нейтрально-серый */
    box-shadow: 0 0 6px rgba(220, 220, 220, 0.15); /* мягкое белое свечение */
    transition: all 0.2s;
    padding: 6px 14px;
    color: #f0f0f0; /* светло-серый */
    background-color: #121b1d; /* очень темный холодный оттенок */
    border-radius: 9px;
    cursor: pointer;
}


.modal-backdrop {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none; /* по умолчанию скрыта */
}

.modal-backdrop.show {
  display: flex; /* показывается при добавлении класса show */
}

.modal-content {
  background: #e6e6e6;
  color: #2b2b2b;
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
  text-align: center;
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.5em; /* уменьшаем нижний отступ */
  font-size: 26px;
  color: #16261e;
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #777;
  cursor: pointer;
}

.modal-close:hover {
  color: #000;
}

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

.modal-telegram-btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 12px 24px;
  background-color: #334235;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.modal-telegram-btn:hover {
  background-color: #4a5e4c;
}

/* Кнопки в пользовательском меню */
.user-menu ul.menu-left li a {
    text-decoration: none;
    color: #212b30; /* Тёмный текст */
    background: #e6e8ea; /* Светлый фон внутри кнопки */
    padding: 6px 14px;
    border-radius: 9px;
    border: 2px solid #f2eded; /* Чёрная рамка */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); /* Тёмная лёгкая тень */
    transition: all 0.2s;
}

.user-menu ul.menu-left li a:hover {
    background-color: #d4d7da; /* Ещё чуть темнее при наведении */
    color: #000000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); /* Усиленная тень при ховере */
}

.order-cards {
  display: none;
}

/* === Основной контент === */
main {
  max-width: 1300px;
  margin: 2px auto;
  padding: 24px;
  border-radius: 24px;
  border: 2px solid #7a8289; /* чуть ярче и холоднее рамка */

 
  background: linear-gradient(
    to top right,
    135deg,
    #eef5ed 0%,         /* почти белый с холодным оттенком */
    #f5f4ed 15%,
    #E0E0E0 30%,
    #edf1f5 45%,        /* более насыщенный светло-серый */
    #f5efed 55%,
    #f5edf0 65%,        /* холодный голубоватый блик */
   #d9d6d0 75%,
    #d0d6d9 85%,
    #6b7c8a 100%
  );

  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, 0.8), /* более мягкий и широкий блик внутри */
    0 12px 36px rgba(0, 0, 0, 0.25);         /* чуть более рассеянная внешняя тень */
}


/* === Футер === */
footer {
    text-align: center;
    padding: 20px 10px;
    color: #999;
    font-size: 14px;
}


.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-left > li {
    position: relative;
    margin-right: 20px;
}

.menu-left li ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    min-width: 180px;
    z-index: 10;
}

.menu-left li:hover ul {
    display: flex;
}
/* === Кнопки "покупка" и "продажа" === */
/* === Общие стили для всех кнопок === */
button,
.btn-trade,
.btn-buy,
.btn-sale {
  padding: 10px 16px;
  margin: 5px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
}

/* === Кнопка покупки === */
.btn-buy {
  background: linear-gradient(135deg, #237b9e, #115461);
  color: white;
  border: 1px solid #115461;
}

/* === Кнопка продажи === */
.btn-sale {
  background: linear-gradient(135deg, #940d14, #db323b);
  color: white;
  border: none;
}

/* === Ховер эффекты === */
.btn-buy:hover {
  background-color: #115461;
  border-color: #0e3a4c;
}

.btn-sale:hover {
  background-color: #c73838;
}

/* === Кнопка трейда === */
.btn-trade {
  background: linear-gradient(to top, #708090, /* slate gray */ #1b1e21, /* очень тёмно-серый */ #383d41, /* графитовый */ #555555 /* средне-серый */);
  color: white;
}

.btn-trade:hover,
button:hover {
  background-color: #083336;
}

/* === Активное состояние кнопки === */
button.active {
  background-color: #f5efed !important;
  border: 1px solid #174001 !important;
  color: black !important;
}

/* === Кнопки в форме сделки === */
#tradeForm button {
  margin-right: 10px;
}

/* Селекты */
select {
  padding: 8px 14px;
  border-radius: 6px;
  border: 2px solid #aeb7bc; /* мягкий светло-серый */
  background-color: #f9fafb; /* светло-серый почти белый */
  color: #333;
  font-size: 1rem;
  margin: 0 5px;
  cursor: pointer;
  max-width: 300px;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #4a90e2; /* стильный голубой акцент */
  background-color: #e8f0fe; /* очень светлый голубой */
  box-shadow: 0 0 6px #4a90e2;
  color: #1a1a1a;
}

/* Чтобы стрелочка селекта была немного ярче */
select::-ms-expand {
  filter: brightness(0.6);
}

/* Таблица */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
  background-color: #fefefe;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #eee;
  color: #555;
  font-weight: 400;
}

th {
  background: linear-gradient(135deg, #e6e9ec, #cfd4d8);
  font-weight: 600;
  color: #2a2a2a;
  border-bottom: 2px solid #ccc;
  user-select: none;
}

th:last-child,
td:last-child {
  border-right: none;
}

tbody tr:nth-child(odd) {
  background: #fafafa;
  transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
  background: #f0f4f7;
}

tbody tr:hover {
  background: linear-gradient(90deg, #e0e6f1, #d6def7);
  cursor: pointer;
  color: #1a1a1a;
}

/* Поля ввода */
#tradeForm input {
  padding: 8px 10px;
  font-size: 1rem;
  margin-left: 8px;
  margin-bottom: 1rem;
  border: 1.5px solid #bbb;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#tradeForm input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 6px #4a90e2;
  background-color: #f0f4fa;
  color: #1a1a1a;
}

/* Светлая тема для направлений */
.direction-buy {
  background-color: #d9f0d9;
  color: #2f662f;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.direction-sell {
  background-color: #f9d6d7;
  color: #7f1e21;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* === Граница таблиц и ячеек === */
table th, table td {
  border: 1px solid #d1d5db;
}

/* Плавный переход цвета строк */
table tr {
  transition: background-color 0.25s ease-in-out;
}

/* Центрированное сообщение регистрации */
.registration-message {
  text-align: center;
  font-size: 24px;
  margin-top: 50px;
  color: #444;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.side-by-side-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}
/* Общие стили для контейнеров и сеток */
.grid-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-family: 'Inter', sans-serif;
  color: #d1d5db; /* светло-серый текст по умолчанию для контраста с темным фоном */
  background-color: #121417; /* темный фон для всей области */
}

.grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.grid-cell {
  flex: 1 1 48%;
  min-width: 300px;
  background: linear-gradient(135deg, #2a2e37, #1c1f26); /* темно-серый градиент */
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(10, 15, 25, 0.6);
  font-size: 1.1rem;
  color: #d1d5db; /* светло-серый текст */
  line-height: 1.5;
  box-sizing: border-box;
  margin-top: 20px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.grid-cell:hover {
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.6);
  background: linear-gradient(135deg, #383f4a, #2b303a);
}

/* Контейнер для сетки */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 30px 30px;
  max-width: 960px;
  margin: 40px auto;
  padding: 0 15px;
      align-items: center;
      background: linear-gradient(
    to top right,
    135deg,
    #eef5ed 0%,         /* почти белый с холодным оттенком */
    #f5f4ed 15%,
    #E0E0E0 30%,
    #edf1f5 45%,        /* более насыщенный светло-серый */
    #f5efed 55%,
    #f5edf0 65%,        /* холодный голубоватый блик */
   #d9d6d0 75%,
    #d0d6d9 85%,
    #6b7c8a 100%
  );
}

@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .grid-cell {
    flex-basis: 100%;
    min-width: auto;
  }
}
/* Общий базовый шрифт и цвет для всего контента в блоках */
.intro-box,
.steps-box,
.advantages-box,
.risks {
  font-family: 'Inter', sans-serif;
  color:#2e3333; /* светло-серый, нейтральный для хорошей читаемости на тёмном фоне */
  max-width: 100%;
  border-radius: 14px;
  padding: 25px;
  box-sizing: border-box;
 
  transition: none; /* убираем все переходы */
}

/* Фоны блоков с мягкими, спокойными градиентами */
.intro-box {
  background: linear-gradient(135deg, #024bd4, #94d6d6, #42f9fc); /* темно-серый с холодным оттенком */
  border-left: 5px solid #4a90e2; /* умеренный синий акцент */
}

.steps-box {
  background: linear-gradient(to top right, #5d8ce3, #078a8a, #42f9fc);
  border-left: 5px solid #4a90e2;
}

.advantages-box {
  background: linear-gradient(to top, #128c19, #3d523d); /* глубокий зелёный с мягким градиентом */
  border-left: 5px solid #28a745; /* мягкий зелёный акцент */
}

.risks {
  background: linear-gradient(to top, #b51f1f, #5e3939); /* тёмный бордовый, без кричащего красного */
  border-left: 5px solid #b04040; /* приглушённый бордовый акцент */
}

/* Заголовки: чуть ярче, более чёткие */
.intro-box h1,
.steps-box h2,
.advantages-box h2,
.risks h2 {
  font-weight: 700;
  color: #2e3333; /* почти белый, но не резкий */
  margin-bottom: 18px;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Размеры заголовков */
.intro-box h1 {
  font-size: 1.9rem;
}

.steps-box h2,
.advantages-box h2,
.risks h2 {
  font-size: 1.5rem;
}

/* Шаги в steps-box */
.step {
  font-size: 1.1rem;
  padding: 14px 18px;
  background: linear-gradient(to bottom right, #5d8ce3, #42f9fc);
  border: 1px solid #4a90e2;
  border-radius: 10px;
  margin-bottom: 12px;
  color: #2e3333; /* светло-серый, но чуть темнее основного текста */
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  transition: none;
}

/* Стрелка */
.arrow {
  text-align: center;
  font-size: 1.8rem;
  color: #091414;
  margin: 10px 0;
}

/* Списки в advantages-box и risks */
.advantages-box ul,
.risks ul {
  padding-left: 20px;
  margin: 0;
}

.advantages-box li,
.risks li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d0d8de; /* нейтральный светло-серый для списков */
}


.lead-highlight {
  color: #285366;       /* например, насыщенный бирюзовый */
  font-weight: 600;     /* жирный */
 font-style: italic;
   font-size: 1.3em;
}


.text-bubble {
  display: inline-block;
  max-width: 280px; /* ограничим ширину */
  padding: 12px 20px;
  margin: 8px;
  border-radius: 18px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  /* Обводка текста через text-shadow */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.text-bubble .highlight-1 {
  color: #007aff; /* синий */
  text-shadow:
    -1px -1px 0 #c0d4ff,
     1px -1px 0 #c0d4ff,
    -1px  1px 0 #c0d4ff,
     1px  1px 0 #c0d4ff;
  font-weight: 700;
}
.text-bubble .highlight-2 {
  color: #28a745; /* зелёный */
  text-shadow:
    -1px -1px 0 #b6dfbb,
     1px -1px 0 #b6dfbb,
    -1px  1px 0 #b6dfbb,
     1px  1px 0 #b6dfbb;
  font-weight: 700;
}
/* === Светлая тема === */
.text-bubble.light {
  background-color: #f0f4ff; /* светлый голубой фон */
  color: #003366; /* насыщенный тёмно-синий текст */
  box-shadow: 0 3px 8px rgba(0, 50, 150, 0.15);
  /* текст с обводкой */
  text-shadow:
     -1px -1px 0 #c0d4ff,
      1px -1px 0 #c0d4ff,
     -1px  1px 0 #c0d4ff,
      1px  1px 0 #c0d4ff;
}
.coins-container {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: center;
  padding: 45px;
}

.coin-cloud {
  background-color: #eee;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 15px 20px;
 width: 100%;
max-width: 250px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-family: Arial, sans-serif;
  cursor: default;
  transition: transform 0.2s ease;
}
.coin-cloud strong {
  display: block;
  text-align: center;
  width: 100%;
}
.coin-cloud:hover {
  transform: translateY(-5px);
}

/* Цвета для каждой монеты — разные, насыщенные */

.btc {
  background-color: #f7931a; /* оранжевый Bitcoin */
}

.bch {
  background-color: #72ab33; /* зелёный BCH */
}

.xec {
  background-color: #589fbf; /* красновато-розовый */
}

.ltc {
  background-color: #000080; /* серебристый Litecoin */
}

.doge {
  background-color: #b89d2e; /* золотистый Dogecoin */
}

.xmr {
  background-color: #ff6600; /* ярко-оранжевый Monero */
}

.trx {
  background-color: #eb0029; /* насыщенный красный TRX */
}

.coin-cloud strong {
  font-size: 1.3em;
  margin-bottom: 8px;
  user-select: none;
}

.coin-cloud p {
  font-size: 0.9em;
  line-height: 1.3em;
  margin: 0;
  user-select: none;
}
.contact-box {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #1f1d1d;
}

.contact-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 130px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.icon {
  font-size: 2.4rem;
  color: #010f12; /* светлая тема */
  margin-bottom: 10px;
}

.dark .icon {
  color: #f0f0f0; /* тёмная тема – можно выбрать другой светлый цвет */
}
@media (max-width: 811px) {
  .coins-container {
    gap: 30px;
    padding: 20px;
  }

  .contact-grid {
    gap: 40px;
  }

  .text-bubble {
    max-width: 90%;
    font-size: 0.95rem;
  }

  .contact-title {
    font-size: 1.4rem;
  }
}

.contact-item a {
  text-decoration: none;
  color: #1f1d1d;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #007aff;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .coin-cloud {
    min-height: 100px;
    padding: 12px 15px;
  }

  .coin-cloud strong {
    font-size: 1.1em;
  }

  .coin-cloud p {
    font-size: 0.85em;
  }

  .contact-item {
    margin-bottom: 20px;
  }
}

.commission-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.commission-box {
  flex: 1 1 300px;
  max-width: 420px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s, border 0.3s;
}
@media (max-width: 811px) {
  .commission-boxes {
    gap: 16px;
  }

  .commission-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  table#ordersTable th,
  table#ordersTable td,
  table.styled-table th,
  table.styled-table td {
    padding: 12px;
    font-size: 0.9rem;
  }

  .contact-title {
    font-size: 1.5rem;
  }
}
/* Светлая тема — серо-тёмные тона с металлическим блеском */
.input-box {
 background: linear-gradient(to bottom, #024bd4, #94d6d6, #42f9fc); /* темно-серый с холодным оттенком */
  border-left: 5px solid #4a90e2; /* умеренный синий акцент */
  color: #4a4a4a;
}

.output-box {
  background: linear-gradient(to bottom, #bf0b29, #f75e78, #6b0a1a); /* темно-серый с холодным оттенком */
  border-left: 5px solid #f75e78; /* умеренный синий акцент */
  color: #6e1a1f;
}

/* Заголовки */
.commission-box h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #333;
   background: linear-gradient(
    to left,
     #9ea2b5 ,       
    #f5efed ,
    #f5f4ed ,
    #f4edf5 ,
    #f5edf0,
    #9ea2b5 
  );
}

/* Текст */
.commission-box p {
  margin-bottom: 0.7em;
  color: #21201f;
  font-size: 1.2rem;
}

.commission-box strong {
  font-weight: 700;
  color: #141414;
}

/* Таблица с градиентом как в .user-menu */
/* === ordersTable === */
table#ordersTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: -0.5rem;
  background: #f9fafb; /* светлый фон таблицы */
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 0 25px 8px rgba(255, 255, 255, 0.7),
    0 10px 30px rgba(0, 40, 70, 0.12);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 2px solid #7a8289;
}

table#ordersTable th {
  background: linear-gradient(
    to top,
    #708090, /* slate gray */
    #1b1e21, /* очень тёмно-серый */
    #383d41, /* графитовый */
    #555555  /* средне-серый */
  );
  color: #f0f1f2;
  font-weight: 700;
  padding: 16px 20px;
  text-align: center;
  user-select: none;
  cursor: default;
  border-right: 2px solid #7a8289;
  border-bottom: 2px solid #7a8289;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.2);
  border-radius: 8px 8px 0 0;
}

table#ordersTable td {
  padding: 14px 18px;
  color: #364a5e;
  background: linear-gradient(
    145deg,
    #f9fafb,
    #e5ebf1,
    #d0d9e3
  );
  border-right: 2px solid #7a8289;
  border-bottom: 2px solid #7a8289;
  border-radius: 6px;
  text-align: center;
  transition: background 0.3s ease;
}

table#ordersTable tbody tr:hover td {
  background: #d0d9e3;
  color: #253544;
  box-shadow: inset 0 0 8px rgba(60, 90, 140, 0.2);
}

table#ordersTable th:last-child,
table#ordersTable td:last-child {
  border-right: none;
}

table#ordersTable tbody tr:last-child td {
  border-bottom: none;
}

/* === styled-table === */
table.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
  background: #f9fafb; /* светлый фон таблицы */
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 0 25px 8px rgba(255, 255, 255, 0.7),
    0 10px 30px rgba(0, 40, 70, 0.12);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 2px solid #7a8289;
}

table.styled-table th {
  background: linear-gradient(
    to top ,
    #708090,
    #1b1e21,
    #383d41,
     #414A4C
  );
  color: #f0f1f2;
  font-weight: 700;
  padding: 16px 20px;
  text-align: center;
  user-select: none;
  cursor: default;
  border-right: 2px solid #7a8289;
  border-bottom: 2px solid #7a8289;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.2);
  border-radius: 8px 8px 0 0;
}

table.styled-table td {
  padding: 14px 18px;
  color: #364a5e;
  background: linear-gradient(
    145deg,
    #f9fafb,
    #e5ebf1,
    #d0d9e3
  );
  border-right: 2px solid #7a8289;
  border-bottom: 2px solid #7a8289;
  border-radius: 6px;
  text-align: center;
  transition: background 0.3s ease;
}

table.styled-table tbody tr:hover td {
  background: #d0d9e3;
  color: #253544;
  box-shadow: inset 0 0 8px rgba(60, 90, 140, 0.2);
}

table.styled-table th:last-child,
table.styled-table td:last-child {
  border-right: none;
}

table.styled-table tbody tr:last-child td {
  border-bottom: none;
}


@media (max-width: 600px) {
  table#ordersTable, table.styled-table {
    font-size: 0.85rem;
  }
  table#ordersTable td, table.styled-table td {
    padding: 10px 8px;
  }
  .commission-box h3 {
    font-size: 1rem;
  }
  /* Меньше отступы у блоков */
  .input-box, .output-box {
    padding: 8px;
  }
}

.form-columns {
  display: flex;
  align-items: stretch; /* Выровнять по высоте */
  gap: 6rem;
  height: 335px; /* Фиксированная высота, подстрой под себя */
}

.controls-row {
  display: flex;
  justify-content: space-between; /* Левая и правая части по краям */
  align-items: center;
  margin-bottom:0.9rem; /* Отступ снизу от заголовка */
  flex-wrap: wrap; /* Если мало места, можно переносить */
  gap: 1rem;
}

.left-controls {
  display: flex;
  gap: 0.5rem; /* Отступ между кнопками */
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Отступ между элементами */
  flex-wrap: wrap; /* Перенос при необходимости */
}

.right-controls select {
  width: auto !important;
  min-width: 60px; /* или нужная минимальная ширина */
}

.form-left,
.form-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Прижать содержимое к верху */
  gap: 0.5rem; /* Промежутки между элементами */
  height: 100%; /* Растянуть колонки по высоте родителя */
  box-sizing: border-box;
}

.amount-group {
 width: 100%;
max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px; /* Очень маленький отступ между группами */
  gap: 2px; /* Минимальный отступ между label и input */
  padding: 0;
}

.amount-group label {
  color:#1e1e1f;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  margin-bottom: 2px; /* Минимальный отступ между лейблом и инпутами */
}

.amount-group input {
  width: 100%;
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
  border: 1px solid #b4d2d9;
  border-radius: 3px;
  margin: 0;
}

.amount-group input + input {
  margin-top: 0.15rem; /* Небольшой отступ между двумя инпутами */
}

.form-right {
  padding: 0;
  margin: 0;
  gap: 0;
 text-align: center;
}



/* Первая строка: радиокнопки + селект пары */
.direction-group {
  grid-column: 1 / 2;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}


/* Убираем стандартные радио кнопки */
.direction-group input[type="radio"] {
  display: none;
}

/* Кастомные радиокнопки */
.direction-group label {
  padding: 8px 16px; /* уменьшенный padding для компактности */
  border: 2px solid #115461;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  background: linear-gradient(135deg, #940d14, #db323b);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  color: white;
  white-space: nowrap;
  flex: none; /* убираем растягивание */
}


@media (max-width: 811px) {
  .form-columns {
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
  }
  .form-left, .form-right {
    height: auto;
  }
  .controls-row {
    gap: 1rem;
    margin-bottom:0.0001rem;
  }
  .amount-group {
    max-width: 100%;
  }
  .amount-group label {
    text-align: center !important;
    font-size: 0.9rem;
  }
  .amount-group input {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }
  .direction-group {
    font-size: 1rem;
    gap: 0.5rem;
  }
  .direction-group label {
    padding: 6px 12px;
    font-size: 1rem;
  }
}

.direction-group label:hover {
  background: linear-gradient(135deg, #b02a31, #e2585f); /* светлее текущего градиента */
  color: #d9d9d9; /* чуть темнее, чем белый */
  border-color: #163d49; /* чуть темнее рамки */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}


/* Активный стиль */
.direction-group input[type="radio"]:checked + label {
  background: #f5efed;
  border-color: #174001;
  color: black;
  
 
}
.direction-group label.buy {
  background: linear-gradient(135deg, #237b9e, #115461);
  color: white;
  border-color: #115461;
}
/* Контейнер для селекта пары */
.pair-select {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

/* Подпись к полю */
.pair-select label {
  margin-bottom: -6px;
}

/* Убираем маркеры списка там, где могут появляться */
form, form * {
  list-style: none;
  margin-top: 0;
  padding: 0;
  margin-bottom:-0.5rem;
}

/* Вторая строка: два поля — сумма и цена */
.amount-price-group {
  grid-column: 1 / 3;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.amount-price-group label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1rem;
}

/* Третья строка: тип сделки и способ оплаты */
.type-payment-group {
  grid-column: 1 / 3;
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.type-payment-group label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1rem;
}

/* Поля input и select */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
  display: block;       
  margin: 6px auto 0 auto; 
  padding: 7px 14px;
  border: 2px solid #4a4a4a; /* темно-серая рамка */
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #3a3a3a; /* темно-серый текст */
  background-color: #f0f0f0; /* светло-серый фон */
  width: 320px;
  cursor: text;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-wrapper select,
.form-wrapper input[type="text"],
.form-wrapper input[type="number"],
.form-wrapper input[type="password"],
.form-wrapper input[type="email"] {
  display: block;
  margin: 0 auto 1px;
  width: 350px;
  padding: 6px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #3a3a3a;
  border: 3px solid #6b6b6b; /* серо-металлическая рамка */
  border-radius: 10px;
  background-color: #e6e6e6; /* чуть темнее светло-серого */
  box-sizing: border-box;
  cursor: text;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:hover,
input[type="text"]:focus,
select:hover,
select:focus {
  outline-color: #8f8f8f;
  box-shadow: 0 0 8px rgba(143, 143, 143, 0.5), 
              inset 0 0 5px rgba(143, 143, 143, 0.2);
  background-color: #f9f9f9;
  border-color: #8f8f8f;
}

.profile-grid form > div:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Кнопка отправки на всю ширину */

.form-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.field-group {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.field-group > label {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 140px;
  white-space: nowrap;
  color: #016166;
}

.field-group select,
.field-group input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #115461;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #115461;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field-group select:focus,
.field-group input[type="text"]:focus {
  outline: none;
  border-color: #27a0b0;
  box-shadow: 0 0 8px rgba(39, 160, 176, 0.6);
  background-color: #f9fcfd;
}

/* Увеличенная ширина для полей суммы */
.form-wrapper form {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем всю форму */
  gap: 30px;
}



.inputs-row {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center; /* Центрируем инпуты внутри строки */
}

.inputs-row input[type="text"] {
  flex-grow: 1;
  min-width: 140px;
  max-width: 370px;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #115461;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #115461;
  background-color: #fff4e0;
  cursor: pointer;
  box-sizing: border-box;
}


table a {
  text-decoration: none;
  color: #1a1a1a; /* темный текст по умолчанию (для светлой темы) */
  transition: color 0.3s ease;
}

table a:hover,
table a:focus {
  color: #0056b3; /* насыщенный синий при ховере */
  text-decoration: underline;
}

/* Только для этой страницы */
.profile-grid form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 320px;
  row-gap: 1px;
}

.profile-grid form p {
  grid-column: 1 / -1; /* Логин на всю ширину */
  margin-top:0;
}

.profile-grid form button {
  grid-column: 1 / -1; /* Кнопка на всю ширину */
}

/* Чтобы label + input шли друг под другом */
.profile-grid form label {
  display: block;
  margin-bottom: 5px;
}



.profile-grid form label input[type="checkbox"] {
  width: auto;
  display: inline-block;
  margin-right: 5px;
}

.profile-grid form label:has(input[type="checkbox"]) {
  grid-column: 1 / -1; /* Чекбоксы на всю ширину */
}
@media (max-width: 811px) {
  .profile-grid form {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .amount-price-group,
  .type-payment-group,
  .inputs-row {
    flex-direction: column;
    gap: 1rem;
  }
  input[type="text"],
  select {
    max-width: 100%;
  }
}
input.error,
select.error {
  border-color: #d13434;
  background-color: #ffe6e6;
  box-shadow: 0 0 5px rgba(209, 52, 52, 0.7);
}

.compact-form {
padding: 0.45rem 0.8rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.compact-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  margin: 0;
}

.compact-form select {
  padding: 0.3rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 140px;
}

.compact-form button {
  padding: 0.4rem 1rem;
   font-size: 1.2rem;
  border-radius: 4px;
  border: none;
  background-color: #115461;
  color: white;
  cursor: pointer;
}
.compact-form button:hover,
.compact-form button:focus {
  background-color: #0e3b46;
  outline: none;
  box-shadow: 0 0 8px #115461;
}
.order-form {
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  padding: 1rem;
}

.direction-group.centered {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
    flex-wrap: wrap;
}


.amount-price-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.amount-price-column .form-group {
  flex: none;
}

.select-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}

.form-group {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.select-row select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  outline-offset: 2px;
  outline-color: transparent;
  transition: outline-color 0.2s ease;
}

.select-row select:hover,
.select-row select:focus {
  background-color: #d9d9d9; /* светло-серый фон при ховере */
  box-shadow: 
    0 0 10px 3px rgba(143, 143, 143, 0.45), /* мягкое серое свечение */
    inset 0 0 4px rgba(143, 143, 143, 0.15);
  outline: none;
}

.select-row select:focus {
  outline-color: #6b6b6b; /* темно-серый для контура */
  border-color: #6b6b6b;
}

@media (max-width: 600px) {
  .select-row {
    flex-wrap: wrap;
  }
}
label {
  font-weight: 600;
  margin-bottom: -0.3rem;
}

input[type="text"],
select {
  padding: 8px 10px;
  font-size: 1rem;
  border: 2px solid #115461;
  border-radius: 10px;
  outline-offset: 2px;
  outline-color: transparent;
  transition: outline-color 0.2s ease;
}

input[type="text"]:focus,
select:focus {
  outline-color: #115461;
  border-color: #115461;
}

button[type="submit"] {
  display: block;
  width: 30%;
  padding: 7px 7px;

  background: linear-gradient(
    to top,
    #708090, /* slate gray */
    #1b1e21, /* очень тёмно-серый */
    #383d41, /* графитовый */
    #555555  /* средне-серый */
);
  color: #ededf5;
  font-weight: 500;
  font-size: 1.3rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color:  #555555;
  box-shadow:
    0 0 12px 3px rgba(139, 139, 139, 0.7),
    inset 0 0 6px rgba(255, 255, 255, 0.15);
  outline: none;
}

@media (max-width: 600px) {
  /* Форма становится колонкой, поля занимают всю ширину */
  .compact-form,
  .select-row,
  .direction-group.centered,
  .amount-price-group,
  .amount-price-column {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  /* Убираем фиксированную ширину у кнопок */
  .compact-form button,
  button[type="submit"] {
    width: 100%;
    padding: 12px 0;
    font-size: 1.4rem;
  }

  /* Инпуты и селекты расширяем на всю ширину */
  input[type="text"],
  select,
  .compact-form select {
    width: 100%;
    max-width: 100%;
  }

  /* Центрируем и сжимаем форму */
  .order-form {
    padding: 1rem 1.2rem;
    max-width: 100%;
  }

  /* Уменьшаем промежутки между элементами, чтобы не занимать много места */
  .profile-grid form {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1rem;
  }

  .profile-grid form p,
  .profile-grid form button {
    grid-column: 1 / -1;
  }

  /* Убираем большие отступы */
  .amount-price-group,
  .type-payment-group {
    gap: 1rem;
  }
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px; /* отступ между лейблом и чекбоксом */
}



/* 📱 ПОЛНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 811px) {
  html, body {
    font-size: 14px;
  }

  .top-block h1 {
    font-size: 1.4rem;
    padding: 6px 10px;
  }

  .top-block h2 {
    font-size: 1rem;
  }

  .slogan-highlight {
    font-size: 1.2rem;
    padding: 10px 14px;
    margin: 1rem auto;
  }

  .main-menu a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .landing-text {
    padding: 10px 12px;
    margin: 10px auto;
  }

  .landing-text .tagline,
  .landing-text .supported-coins,
  .landing-text .mission {
    font-size: 0.95rem;
  }

  .reconstruction-box {
    font-size: 0.95rem;
    padding: 16px;
  }

  .badge {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  .grid-cell {
    font-size: 0.95rem;
    padding: 16px;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-item a {
    font-size: 0.9rem;
  }

  .coin-cloud {
    min-height: 100px;
    padding: 10px 12px;
  }

  .coin-cloud strong {
    font-size: 1.1em;
  }

  .coin-cloud p {
    font-size: 0.85em;
  }

  .text-bubble {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .commission-box {
    padding: 16px;
  }

  .commission-box h3 {
    font-size: 1rem;
  }

  .commission-box p {
    font-size: 0.9rem;
  }

  table#ordersTable,
  table.styled-table {
    font-size: 0.85rem;
  }

  table#ordersTable td,
  table.styled-table td {
    padding: 8px;
  }

  .form-wrapper input,
  .form-wrapper select {
    font-size: 0.9rem;
    padding: 6px 10px;
    max-width: 100%;
  }

  .form-wrapper button {
    font-size: 1rem;
    padding: 10px;
  }

  .compact-form {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .compact-form select {
    font-size: 0.9rem;
  }

  .compact-form button {
    font-size: 1.1rem;
    padding: 10px;
  }

  .amount-group label,
  .amount-group input {
    font-size: 0.85rem;
  }

  .direction-group label {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .footer-note {
    font-size: 0.85rem;
  }

  .select-row,
  .direction-group.centered,
  .compact-form,
  .amount-price-group,
  .form-columns,
  .amount-price-column {
    flex-direction: column;
    gap: 0.8rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .top-block h1 {
    font-size: 1.2rem;
  }

  .top-block h2 {
    font-size: 0.9rem;
  }

  .slogan-highlight {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .badge {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .coin-cloud strong {
    font-size: 1em;
  }

  .coin-cloud p {
    font-size: 0.8em;
  }

  .text-bubble {
    font-size: 0.85rem;
  }

  .contact-title {
    font-size: 1.2rem;
  }

  .form-wrapper button,
  .compact-form button {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .main-menu a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .form-wrapper input,
  .form-wrapper select {
    font-size: 0.85rem;
  }
}

/* ====== БУРГЕР-КНОПКА (мобильная) ====== */
.hamburger-btn {
  display: none;
}


.modal-menu {
    position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 84, 97, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

/* Контент с прокруткой и ограниченной высотой */
.modal-menu__content {
   background: linear-gradient(to bottom, #f5f3ed, #edf4fa);
  border-radius: 16px;
  width: 100%;
  max-width: 340px;
  max-height: 70vh;            /* ограничение по высоте */
  overflow-y: auto;            /* прокрутка внутри контента */
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #115461 #f0f0f0;
}

/* Пользовательская полоса прокрутки (для Webkit) */
.modal-menu__content::-webkit-scrollbar {
  width: 8px;
}
.modal-menu__content::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.modal-menu__content::-webkit-scrollbar-thumb {
  background-color: #115461;
  border-radius: 8px;
}

/* Закрывающая кнопка */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 0;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #115461;
  cursor: pointer;
}

/* Контейнер списка */
.modal-menu__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Отдельные пункты меню */
.modal-menu__content ul li {
  border: 2px solid #115461;
  border-radius: 12px;
  margin: 1px 0;
  background: #fafafa;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Hover эффект */
.modal-menu__content ul li:hover {
  background-color: #e9f3f5;
}

/* Ссылки */
.modal-menu__content ul li a {
  display: block;
  padding: 0;
  color: #115461;
  font-weight: 400;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modal-menu__content ul li a:hover {
  color: #27a0b0;
}

/* Анимация */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* === НАВИГАЦИЯ ВНУТРИ МОДАЛКИ === */
.modal-menu__content nav {
  width: 100%;
}

.modal-menu__content nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* === ПУНКТЫ МЕНЮ === */
/* === ПУНКТЫ МЕНЮ === */
.modal-menu__content nav ul li {
  margin: 6px 0;
  border: 1px solid #4a4a4a; /* серый металлический */
  border-radius: 12px;
  background: #f5f5f5; /* светло-серый фон */
  overflow: hidden;
}

.modal-menu__content nav ul li a {
  display: block;
  padding: 0;
  color: #4a4a4a; /* темно-серый текст */
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-menu__content nav ul li a:hover {
  background-color: #d9d9d9; /* светло-серый при ховере */
  color: #2e2e2e;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center; /* по центру */
  margin-bottom: 1rem;
}

.auth-buttons .auth-btn {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid #4a4a4a; /* металлическая рамка */
  border-radius: 8px;
  background-color: #fafafa; /* очень светлый серый */
  color: #4a4a4a;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  user-select: none;
  cursor: pointer;
  text-align: center;
  min-width: 100px;
  box-shadow: inset 0 0 5px #b0b0b0;
}

.auth-buttons .auth-btn:hover,
.auth-buttons .auth-btn:focus {
  background-color: #6b6b6b; /* темно-серый */
  border-color: #6b6b6b;
  color: #d9d9d9; /* светло-серый текст */
  outline: none;
  box-shadow:
    0 0 8px #6b6b6b,
    inset 0 0 8px #d9d9d9;
}

button.btn-coin-request[type="submit"] {
  all: unset; /* сбросить наследуемое */
  display: inline-block;
  padding: 6px 10px;
  background: linear-gradient(to top, #708090, /* slate gray */ #1b1e21, /* очень тёмно-серый */ #383d41, /* графитовый */ #555555 /* средне-серый */);
  color: #d9d9d9;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  max-width: 110px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: none;
  user-select: none;
}

button.btn-coin-request[type="submit"]:hover {
  background: linear-gradient(135deg, #8f8f8f, #6b6b6b);
  transform: scale(1.05);
  box-shadow: 0 0 12px #8f8f8f;
}

.auth-buttons .auth-btn:hover,
.auth-buttons .auth-btn:focus {
  background-color: #27a0b0;
  border-color: #27a0b0;
  color: #fff;
  outline: none;
}
@media (max-width: 811px) {
  .logo img {
    max-width: 160px;
  }
  
}
@media (max-width: 811px) {
  /* Скрываем все .menu-container */
  .menu-container {
    display: none !important;
  }

  /* Но показываем явно .user-menu .menu-container */
  .user-menu .menu-container {
    display: flex !important;
  }
  .user-menu {
  font-size: 21px;
  
}
}
/* === Тёмная тема для основной части с зелёно-бирюзовой палитрой === */
body.dark {
    color: #e6f1f2 !important; /* светлый почти белый с холодным синим оттенком */
    background: linear-gradient(
  135deg,
  #121212 0%,       /* почти чёрный с холодным оттенком */
  #1a1a1a 15%,
  #242424 30%,
  #2e2e2e 45%,      /* насыщенный тёмно-серый */
  #383838 55%,
  #414141 65%,      /* холодный тёмно-серый с голубоватым оттенком */
  #4a4a4a 75%,
  #545454 85%,
  #5e5e5e 100%      /* светло-тёмно-серый */
);


    border-bottom: 3px double #8f9ca3 !important; /* светлая металлическая обводка — холодный серый */
    box-shadow: 0 4px 12px rgba(143, 156, 163, 0.2) !important; /* мягкое холодное свечение */
    text-align: center !important;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark nav,
body.dark .logo a {
    color: #dbe9ea !important; /* чуть более светлый текст */
}
body.dark h1 {
  font-weight: 800;
  font-size: 2.5rem;
  color: #d8d8d8; /* светло-серый текст, чтобы хорошо читался на тёмном фоне */
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5), /* мягкое светлое свечение */
    0 2px 6px rgba(0, 0, 0, 0.9);      /* глубокая тень для контраста */
  letter-spacing: 1px;
}
/* Хедер и меню */
body.dark header {
    background: linear-gradient(
  135deg,
  #1a1a1a 0%,     /* очень темный графит */
  #2e2e2e 15%,    /* темно-серый */
  #3f3f3f 30%,    /* средний темный серый */
  #5a5a5a 45%,    /* насыщенный серый */
  #7a7a7a 55%,    /* средний серый */
  #9a9a9a 65%,    /* светло-серый */
  #bfbfbf 75%,    /* более светлый серый */
  #dcdcdc 85%,    /* очень светлый серый */
  #f5f5f5 100%    /* почти белый */
);

    border-bottom: 3px double #8f9ca3 !important;
    box-shadow: 0 4px 12px rgba(143, 156, 163, 0.2) !important;
}

body.dark .footer-note {
    color: #dbe9ea !important;
}

body.dark table a,
body.dark table a:visited {
    color: #c5d6d8 !important;
}

body.dark table a:hover,
body.dark table a:focus {
    color: #e8f0f1 !important;
    text-decoration: underline;
}

body.dark .footer-note a {
    color: #8f9ca3 !important; /* холодный серый вместо бирюзы */
    transition: color 0.3s ease !important;
}

body.dark .footer-note a:hover {
    color: #5a6870 !important;
    text-decoration: underline !important;
}

/* Главное меню */
body.dark .main-menu {
    border-bottom: 3px solid #121212 !important;
    box-shadow: inset 0 -4px 8px rgba(143, 156, 163, 0.15) !important;
}

body.dark .main-menu a {
    background-color: #111717 !important;
    color: #dbe9ea !important;
    border: 1.5px solid rgba(143, 156, 163, 0.8) !important;
    box-shadow: inset 0 0 6px rgba(143, 156, 163, 0.25) !important;
    transition: color 0.25s ease, background-color 0.25s ease !important;
    white-space: nowrap !important;
}

body.dark .main-menu a:hover {
    background-color: #8f9ca3 !important;
    color: #101515 !important;
    box-shadow: 0 0 12px rgba(143, 156, 163, 0.6) !important;
}

body.dark .main-menu a[href="/"] {
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    border: none !important;
}

/* Текст на лендинге */
body.dark .landing-text {
    color: #8f9ca3 !important;
    background: #101717 !important;
    box-shadow: 0 0 10px rgba(143, 156, 163, 0.4) !important;
}

body.dark .landing-text .tagline,
body.dark .landing-text .supported-coins,
body.dark .landing-text .mission {
    color: #aeb7bb !important; /* светлый нейтральный серый */
}

body.dark .landing-text .reconstruction-info {
    background-color: rgba(174, 183, 187, 0.05) !important; /* ещё темнее и прозрачнее */
    border: 1px solid #aeb7bb !important;
    color: #aeb7bb !important;
    box-shadow: 0 0 6px rgba(174, 183, 187, 0.15) !important;
}

body.dark .landing-text hr {
    border-top: 1px solid #010a0b !important; /* почти чёрный */
    opacity: 0.2 !important;
}

body.dark .landing-text a {
    color: #aeb7bb !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body.dark .landing-text a:hover {
    color: #6b7275 !important;
}

body.dark .top-block {
    background: linear-gradient(to top, #181f20, #0a1011, #030808) !important; /* сильно потемнел */
    border-bottom: 3px double #010a0a !important; /* очень темная обводка */
    box-shadow: 0 4px 12px rgba(174, 183, 187, 0.15) !important; /* чуть слабее тень */
}

body.dark .top-block h1 {
    color: #f7f5da !important;
}

body.dark .top-block h2 {
    color: #b8b6ae !important;
}

body.dark .modal-content h2 {
    color: #5b7a86 !important; /* светло-серый с синим оттенком */
    text-shadow: 0 0 8px rgba(130, 160, 175, 0.5);
}

!
body.dark .separator {
    background-color: #000f10 !important; /* почти черный, чуть темнее */
}

body.dark .theme-toggle {
    color: #8f9ca3 !important; /* холодный серо-голубой вместо бирюзы */
    text-shadow: none !important;
}

body.dark .slogan-highlight {
    border: 3px solid #8f9ca3 !important;
    color: #adb7bb !important;
    background-color: #8f9ca320 !important; /* прозрачный холодный серый */
    box-shadow: 0 0 6px rgba(143, 156, 163, 0.15) !important;
}

body.dark .reconstruction-box {
    background-color: #0a1617 !important; /* темнее, холодный темно-серый */
    border: 2px solid #8f9ca3 !important;
    color: #292828 !important;
    box-shadow: 0 0 5px rgba(143, 156, 163, 0.1) !important;
}

body.dark .info-badges .badge {
    background-color: #071717 !important; /* темнее */
    color: #292828 !important;
    border: 1.5px solid #8f9ca3 !important;
    box-shadow: 0 0 4px rgba(143, 156, 163, 0.2) !important;
}

body.dark .menu-left li ul {
    background-color: #071717 !important; /* темнее */
    border: 1px solid rgba(143, 156, 163, 0.2) !important; /* прозрачная холодная рамка */
    box-shadow: 0 0 6px rgba(143, 156, 163, 0.1) !important;
}

body.dark .menu-left li ul li a {
    color: #8f9ca3 !important;
    background-color: #0d2325 !important; /* очень темный холодный фон */
}
body.dark .menu-left li ul li a:hover {
  background-color: #b3b4b5 !important;
  color: #e8f0f1 !important; /* светлый холодный текст */
}

body.dark .user-menu {
  background: linear-gradient(90deg, #000000 0%, #0a0a0a 100%) !important; /* чисто чёрный, чуть светлее снизу */
  border-top: 1px solid #2a2a2a !important; /* темно-серое свечение */
  color: #cccccc !important; /* светло-серый текст */
}

body.dark .user-menu ul.menu-left li a {
  background: #0a0a0a !important; /* матовый чёрный */
  color: #cccccc !important;
  border: 2px solid #333333 !important; /* серое свечение */
  box-shadow:
    0 0 8px 2px rgba(100, 100, 100, 0.15),
    inset 0 0 6px rgba(70, 70, 70, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .user-menu ul.menu-left li a:hover {
  background: #222222 !important; /* чуть светлее чёрный при ховере */
  box-shadow:
    0 0 12px 3px rgba(150, 150, 150, 0.25),
    inset 0 0 8px rgba(180, 180, 180, 0.15);
}

body.dark main {
  background: linear-gradient(
  135deg,
  #121212 0%,       /* почти чёрный с холодным оттенком */
  #1a1a1a 15%,
  #242424 30%,
  #2e2e2e 45%,      /* насыщенный тёмно-серый */
  #383838 55%,
  #414141 65%,      /* холодный тёмно-серый с голубоватым оттенком */
  #4a4a4a 75%,
  #1a1a1a 85%,
  #121212 100%      /* светло-тёмно-серый */
);


}

body.dark .contact-box {
  color: #d0d0d0 !important; /* светло-серый */
}

body.dark .contact-item a {
  color: #d0d0d0 !important;
}

body.dark .contact-item a:hover {
  color: #a0a0a0 !important; /* мягкий серый акцент */
}

body.dark table.styled-table {
  background-color: #0a0a0a !important; /* насыщенный матовый черный */
  box-shadow: 0 0 18px rgba(60, 60, 60, 0.3) !important; /* легкое серое свечение */
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

body.dark table.styled-table th,
body.dark table.styled-table td {
  color: #cccccc !important; /* светло-серый */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; /* очень тонкая белая линия */
  border-right: 1px solid rgba(255, 255, 255, 0.02) !important; /* ещё тоньше */
  transition: background-color 0.3s ease, color 0.3s ease;
  background-clip: padding-box;
  background-image: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
}

body.dark table.styled-table tbody tr:nth-child(odd) td {
  background: linear-gradient(
  to bottom right,
  #2b2b2b 0%,      /* очень тёмный угольный */
  #3a3a3a 15%,     /* глубокий тёмно-серый */
  #525252 30%,     /* насыщенный средний серый */
  #6e6e6e 45%,     /* чуть светлее серый */
  #8a8a8a 60%,     /* нейтральный светло-серый */
  #b0b0b0 75%,     /* светло-серый с холодным оттенком */
  #d0d0d0 90%,     /* мягкий холодный серый */
  #e6e6e6 100%     /* почти белый светло-серый */
);

}

body.dark table.styled-table tbody tr:nth-child(even) td {
  background: linear-gradient(
  to bottom right,
  #2b2b2b 0%,      /* очень тёмный угольный */
  #3a3a3a 15%,     /* глубокий тёмно-серый */
  #525252 30%,     /* насыщенный средний серый */
  #6e6e6e 45%,     /* чуть светлее серый */
  #8a8a8a 60%,     /* нейтральный светло-серый */
  #b0b0b0 75%,     /* светло-серый с холодным оттенком */
  #d0d0d0 90%,     /* мягкий холодный серый */
  #e6e6e6 100%     /* почти белый светло-серый */
);

}

body.dark table.styled-table tbody tr:hover td {
  background-color: #2a3b45 !important; /* мягкий темно-синий акцент */
  color: #e0e0e0 !important; /* почти белый, чтобы было читаемо */
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.07);
}

/* Темно-серые акценты вместо зелёных */
body.dark table.styled-table td.exchange {
  background-color: #243a42 !important; /* темный серо-синий */
  color: #d0d2c9 !important;
  font-weight: 600;
}

body.dark table.styled-table td.purchase {
  background-color: #2a4756 !important; /* более глубокий серо-синий */
  color: #dcdcd2 !important;
  font-weight: 600;
}

body.dark table.styled-table th:last-child,
body.dark table.styled-table td:last-child {
  border-right: none;
}

body.dark form.order-form {
  color: #e1e8eb !important;
}

body.dark form.order-form input,
body.dark form.order-form select,
body.dark form.order-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(144, 202, 249, 0.6);
  border-radius: 10px;
  color: #cbd8df;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark form.order-form input:focus,
body.dark form.order-form select:focus,
body.dark form.order-form textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #90caf9;
  outline: none;
  box-shadow: 0 0 14px #90caf9;
}

body.dark form.order-form input::placeholder,
body.dark form.order-form textarea::placeholder {
  color: #7f8a93;
}

body.dark main h2,
body.dark main h3 {
 font-size: 1.2rem;
  font-weight: 600;
  color: #d3d7db; /* светло-серый текст для контраста */
  margin: 0 0 2rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* мягкий тёмный тисненый эффект */
  display: block !important;

  border: 1px solid rgba(150, 150, 150, 0.3); /* светло-серая полупрозрачная рамка */
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
   background: linear-gradient(
    to top,
    #708090, /* slate gray */
    #1b1e21, /* очень тёмно-серый */
    #383d41, /* графитовый */
    #555555  /* средне-серый */
);
}


body.dark form.order-form button {
  background-color: #031d23 !important;
  color: #f0f2f4 !important;
  border: 1px solid #000a0c !important;
  transition: background-color 0.3s ease !important;
}
body.dark form.order-form button:hover {
  background-color: #0d3f52 !important;
  box-shadow: 0 0 10px #90caf9 !important;
}

body.dark .steps-box {
  background: #021f24 !important;
  border-left-color: #6495ed !important;
  color: #e5dfb0 !important;
  box-shadow: 0 4px 14px rgba(100, 149, 237, 0.12) !important;
}

body.dark .steps-box h2 {
  color: #e5dfb0 !important;
}

body.dark .step {
  background: #0a2930 !important;
  border-color: #002b3a !important;
  color: #e5dfb0 !important;
}

body.dark .arrow {
  color: #6495ed !important;
}

body.dark .advantages-box {
  background: linear-gradient(145deg, #0b0c0d, #121416) !important; /* очень темный графит с легким градиентом */
  border-left-color: #7f8c8d !important; /* светло-серый, нейтральный акцент */
  color: #d8d8d8 !important;
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.1) !important;
}

body.dark .advantages-box h2,
body.dark .advantages-box li {
  color: #d8d8d8 !important;
}

body.dark .risks {
  background: linear-gradient(145deg, #0b0c0d, #1a1c1e) !important; /* темный градиент с холодным оттенком */
  border-left-color: #b0b0b0 !important; /* светло-серый */
  color: #f0f0f0 !important;
  box-shadow: 0 4px 16px rgba(180, 180, 180, 0.1) !important;
}

body.dark .intro-box {
  background: linear-gradient(145deg, #0b0c0d, #17191b) !important; /* темный, близкий к черному */
  border-left: 4px solid #b0b0b0 !important; /* светло-серый */
  box-shadow: 0 4px 10px rgba(176, 176, 176, 0.1) !important;
  color: #d8d8d8 !important;
}

body.dark table#ordersTable {
  background: linear-gradient(145deg, #0a0a0a, #121212) !important; /* почти черный с минимальным градиентом */
  border-radius: 10px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

body.dark table#ordersTable td,
body.dark table#ordersTable th {
  color: #d8d8d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  transition: background-color 0.3s ease, color 0.3s ease;
  background-clip: padding-box;
  background-image: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
}

/* Чередование строк — теперь с градиентом чуть ярче */
body.dark table#ordersTable tbody tr:nth-child(odd) td {
  background: linear-gradient(
  to bottom right,
  #2b2b2b 0%,      /* очень тёмный угольный */
  #3a3a3a 15%,     /* глубокий тёмно-серый */
  #525252 30%,     /* насыщенный средний серый */
  #6e6e6e 45%,     /* чуть светлее серый */
  #8a8a8a 60%,     /* нейтральный светло-серый */
  #b0b0b0 75%,     /* светло-серый с холодным оттенком */
  #d0d0d0 90%,     /* мягкий холодный серый */
  #e6e6e6 100%     /* почти белый светло-серый */
);

}

body.dark table#ordersTable tbody tr:nth-child(even) td {
  background-image: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
}

/* Ховер с сильным выделением */
body.dark table#ordersTable tbody tr:hover td {
  background-color: #333333 !important;
  color: #f0f0f0 !important;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.07);
}

/* Специальные ячейки */
body.dark table#ordersTable td.exchange,
body.dark table#ordersTable td.purchase {
  background-color: #222222 !important;
  color: #eeeeee !important;
  font-weight: 600;
}

body.dark table#ordersTable td:last-child,
body.dark table#ordersTable th:last-child {
  border-right: none;
}

body.dark .field-group > label {
  color: #e0e0e0 !important;
}

body.dark .field-group select,
body.dark .field-group input[type="text"] {
  border: 2px solid #555555 !important;
  color: #d8d8d8 !important;
  background-color: rgba(20, 20, 20, 0.85) !important;
  cursor: pointer !important;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

body.dark .field-group select:focus,
body.dark .field-group input[type="text"]:focus {
  border-color: #9aaabb !important;
  box-shadow: 0 0 10px rgba(154, 170, 187, 0.9) !important;
  background-color: #202020 !important;
  color: #f0f0f0 !important;
  outline: none !important;
}

body.dark .amount-group label {
  color: #f0f0f0 !important;
  text-align: center !important;
}

body.dark .form-wrapper select,
body.dark .form-wrapper input[type="text"],
body.dark .form-wrapper input[type="password"],
body.dark .form-wrapper input[type="email"] {
  width: 350px !important;
  color: #f0f0f0 !important;
  background-color: #1c1c1c !important;
  border: 4px solid #7f8c8d !important;
  border-radius: 10px !important;
  cursor: text !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}


body.dark .form-wrapper select:hover,
body.dark .form-wrapper input[type="text"]:hover,
body.dark .form-wrapper input[type="password"]:hover,
body.dark .form-wrapper input[type="email"]:hover {
  border-color: #888888 !important; /* мягкий светло-серый */
  box-shadow: 0 0 8px rgba(170, 170, 170, 0.5) !important; /* нейтральное свечение */
}

body.dark .form-wrapper select:focus,
body.dark .form-wrapper input[type="text"]:focus,
body.dark .form-wrapper input[type="password"]:focus,
body.dark .form-wrapper input[type="email"]:focus {
  border-color: #bbbbbb !important; /* чуть светлее для фокуса */
  box-shadow: 0 0 10px rgba(187, 187, 187, 0.8) !important; /* яркое светлое свечение */
  background-color: #292929 !important; /* темный фон */
  outline: none !important;
}

body.dark .sidebar button {
  background: #121314 !important; /* очень темный почти черный */
  color: #e0e0e0 !important; /* светлый серый */
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
  border-radius: 10px !important;
}

/* Hover — холодное стеклянное сияние */
body.dark .sidebar button:hover {
  background: #2a2a2a !important; /* темный серый */
  color: #ffffff !important;
  box-shadow:
    0 0 10px rgba(180, 180, 180, 0.5) !important,
    0 0 20px rgba(180, 180, 180, 0.3) !important,
    inset 0 0 5px rgba(255, 255, 255, 0.1) !important;
}

body.dark input[type="text"],
body.dark input[type="password"],
body.dark input[type="email"],
body.dark input[type="number"],
body.dark select {
  color: #d8d8d8 !important;               /* светлый текст */
  background-color: rgba(20, 20, 20, 0.85) !important; /* очень темный фон */
  border: 2px solid #555555 !important; /* темно-серый бордер */
  cursor: pointer !important;
}


@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .grid-cell {
    flex-basis: 100%;
    min-width: auto;
  }
}
@media (max-width: 811px) {
  .coins-container {
    gap: 30px;
    padding: 20px;
  }

  .contact-grid {
    gap: 40px;
  }

  .text-bubble {
    max-width: 90%;
    font-size: 0.95rem;
  }

  .contact-title {
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) {
  .coin-cloud {
    min-height: 100px;
    padding: 12px 15px;
  }

  .coin-cloud strong {
    font-size: 1.1em;
  }

  .coin-cloud p {
    font-size: 0.85em;
  }

  .contact-item {
    margin-bottom: 20px;
  }
}
@media (max-width: 811px) {
  .commission-boxes {
    gap: 16px;
  }

  .commission-box {
    flex: 1 1 100%;
    max-width: 100%;
  }

  table#ordersTable th,
  table#ordersTable td,
  table.styled-table th,
  table.styled-table td {
    padding: 12px;
    font-size: 0.9rem;
  }

  .contact-title {
    font-size: 1.5rem;
  }

}
@media (max-width: 600px) {
  table#ordersTable, table.styled-table {
    font-size: 0.85rem;
  }
  table#ordersTable td, table.styled-table td {
    padding: 10px 8px;
  }
  .commission-box h3 {
    font-size: 1rem;
  }
  /* Меньше отступы у блоков */
  .input-box, .output-box {
    padding: 8px;
  }
}
@media (max-width: 811px) {
  .form-columns {
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
  }
  .form-left, .form-right {
    height: auto;
  }
  .controls-row {
    gap: 1rem;
    
  }
  .amount-group {
    max-width: 100%;
  }
  .amount-group label {
    text-align: left;
    font-size: 0.9rem;
  }
  .amount-group input {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }
  .direction-group {
    font-size: 1rem;
    gap: 0.5rem;
  }
  .direction-group label {
    padding: 6px 12px;
    font-size: 1rem;
       display: inline-flex !important;
  }
}
@media (max-width: 811px) {
  .profile-grid form {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
.order-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.8rem 0;
  }

  .order-card {
    background: linear-gradient(to top, #cee8f2, #f7f3d0);
    border: 1.5px solid #81878a;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #113638;
    box-shadow: 0 6px 15px rgba(25, 73, 92, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .order-card:hover {
    box-shadow: 0 10px 25px rgba(25, 73, 92, 0.6);
    transform: translateY(-3px);
  }

  .order-card p {
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(206, 232, 242, 0.9), rgba(255, 255, 255, 0.85));
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.4),
                inset 0 0 6px rgba(106, 143, 158, 0.1);
    border: 1.5px solid rgba(46, 207, 255, 0.8);
    backdrop-filter: blur(2px);
    font-weight: 500;
    color: #113638;
  }

  .order-card p span.label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    color: #2b3233;
    margin-right: 8px;
    user-select: none;
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .order-card .btn-action {
    cursor: pointer;
    padding: 8px 16px;
    background: linear-gradient(135deg, #19495c, #032e40);
    color: #b1b4b5;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(25, 73, 92, 0.5);
    border: none;
    user-select: none;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.25s ease;
  }

  .order-card .btn-action:hover {
    background: linear-gradient(135deg, #032e40, #19495c);
    transform: scale(1.05);
  }

  /* Эмоджи перед метками */
  .order-card .label.pair::before    { content: "💱"; }
  .order-card .label.amount::before  { content: "💰"; }
  .order-card .label.price::before   { content: "💲"; }
  .order-card .label.payment::before { content: "💳"; }
  .order-card .label.direction::before { content: "↔️"; }
  .order-card .label.type::before    { content: "🔎"; }
  .order-card .label.status::before  { content: "✅"; }
  .order-card .label.datetime::before { content: "📅"; }
  .order-card .label.id::before      { content: "🟢"; }
body.dark .wallet-card,
body.dark .order-card {
  background: linear-gradient(90deg, #12110c 0%, #1a1a1a 100%);
  border: 1.5px solid #888c92; /* холодный светло-серый */
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: #d9e3e6; /* светлый, но не яркий текст */
  box-shadow: 0 6px 15px rgba(136, 140, 146, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.dark .wallet-card:hover,
body.dark .order-card:hover {
  box-shadow: 0 10px 25px rgba(136, 140, 146, 0.9);
  transform: translateY(-3px);
}

/* Строки */
body.dark .wallet-card p,
body.dark .order-card p {
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.85), rgba(28, 28, 28, 0.7));
  box-shadow: inset 0 0 4px rgba(136, 140, 146, 0.3),
              inset 0 0 6px rgba(80, 80, 85, 0.2);
  border: 1.5px solid rgba(136, 140, 146, 0.8);

  backdrop-filter: blur(4px);
  font-weight: 500;
  color: #c0c8cd;

  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Метки (эмоджи + текст) */
body.dark .wallet-card p span.label,
body.dark .order-card p span.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  color: #a6abb0;
  margin-right: 8px;
  user-select: none;
  font-size: 1.1rem;
  white-space: nowrap;
  min-width: 110px; 
  flex-shrink: 0;
}

/* Адрес — моноширинный подчеркнутый стиль */
body.dark .wallet-card p a,
body.dark .order-card p a {
  color: #b0bac2;
  text-decoration: underline;
  font-weight: 600;
  font-family: monospace;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Кнопки */
body.dark .wallet-card .btn-action,
body.dark .wallet-card button[type="submit"],
body.dark .order-card .btn-action {
  cursor: pointer;
  padding: 8px 16px;
  background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
  color: #a6abb0;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(136, 140, 146, 0.7);
  border: none;
  user-select: none;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.25s ease;
}

body.dark .wallet-card .btn-action:hover,
body.dark .wallet-card button[type="submit"]:hover,
body.dark .order-card .btn-action:hover {
  background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
  transform: scale(1.05);
}

/* Эмоджи перед метками (для .order-card) */
body.dark .order-card .label.pair::before    { content: "💱"; }
body.dark .order-card .label.amount::before  { content: "💰"; }
body.dark .order-card .label.price::before   { content: "💲"; }
body.dark .order-card .label.payment::before { content: "💳"; }
body.dark .order-card .label.direction::before { content: "↔️"; }
body.dark .order-card .label.type::before    { content: "🔎"; }
body.dark .order-card .label.status::before  { content: "✅"; }
body.dark .order-card .label.datetime::before { content: "📅"; }
body.dark .order-card .label.id::before      { content: "🟢"; }

  /* Скрываем таблицу */
  .styled-table {
    display: none;
  }
/* Скрываем таблицу на мобильных устройствах */
.styled-table {
    display: none !important;
}
  .amount-price-group,
  .type-payment-group,
  .inputs-row {
    flex-direction: column;
    gap: 1rem;
  }
  input[type="text"],
  select {
    max-width: 100%;
  }
}
body.dark table.leases.generic {
  width: 100%;
  border-collapse: separate; /* чтобы работали border-radius */
  border-spacing: 0;
  background: linear-gradient(180deg, #0d0d0d 0%, #1c1c1c 100%);
  color: #cfd8dc;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(50, 50, 50, 0.6);
}

body.dark table.leases.generic tr {
  border-bottom: 1px solid #2f2f2f;
  transition: background-color 0.3s ease;
}

body.dark table.leases.generic td {
  padding: 12px 16px;
  font-size: 14px;
  vertical-align: top;
  border-right: 1px solid #2f2f2f;
}

body.dark table.leases.generic td:last-child {
  border-right: none;
}

body.dark table.leases.generic tr:hover {
  background: linear-gradient(90deg, #2a2a2a, #3a3a3a);
  cursor: pointer;
}

body.dark table.leases.generic a {
  color: #b0bec5;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

body.dark table.leases.generic a:hover {
  color: #f0f0f0;
  background-color: #444444;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.3);
}


@media (max-width: 811px) {
  .select-row {
    flex-wrap: wrap;
  }
}
@media (min-width: 768px) {
    .wallet-cards {
        display: none;
    }
    .styled-table {
        display: table !important;
        width: 100%;
        border-collapse: collapse;
    }
}
@media (max-width: 811px) {
  .direction-group.centered {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 0.8rem;
  }

  
  /* Убираем фиксированную ширину у кнопок */
  .compact-form button,
  button[type="submit"] {
    width: 100%;
    padding: 12px 0;
    font-size: 1.4rem;
  }

  /* Инпуты и селекты расширяем на всю ширину */
  input[type="text"],
  select,
  .compact-form select {
    width: 100%;
    max-width: 92%;
  }

  /* Центрируем и сжимаем форму */
  .order-form {
    padding: 1rem 1.2rem;
    max-width: 100%;
  }

  /* Уменьшаем промежутки между элементами, чтобы не занимать много места */
  .profile-grid form {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1rem;
  }

  .profile-grid form p,
  .profile-grid form button {
    grid-column: 1 / -1;
  }

  /* Убираем большие отступы */
  .amount-price-group,
  .type-payment-group {
    gap: 1rem;
  }
}



/* 📱 ПОЛНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 811px) {
  html, body {
    font-size: 14px;
  }


  .slogan-highlight {
    font-size: 1.2rem;
    padding: 10px 14px;
    margin: 1rem auto;
  }

  .main-menu a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .landing-text {
    padding: 10px 12px;
    margin: 10px auto;
  }

  .landing-text .tagline,
  .landing-text .supported-coins,
  .landing-text .mission {
    font-size: 0.95rem;
  }

  .reconstruction-box {
    font-size: 0.95rem;
    padding: 16px;
  }

  .badge {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  .grid-cell {
    font-size: 0.95rem;
    padding: 16px;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-item a {
    font-size: 0.9rem;
  }

  .coin-cloud {
    min-height: 100px;
    padding: 10px 12px;
  }

  .coin-cloud strong {
    font-size: 1.1em;
  }

  .coin-cloud p {
    font-size: 0.85em;
  }

  .text-bubble {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .commission-box {
    padding: 16px;
  }

  .commission-box h3 {
    font-size: 1rem;
  }

  .commission-box p {
    font-size: 0.9rem;
  }

  table#ordersTable,
  table.styled-table {
    font-size: 0.85rem;
  }

  table#ordersTable td,
  table.styled-table td {
    padding: 8px;
  }

  .form-wrapper input,
  .form-wrapper select {
    font-size: 0.9rem;
    padding: 6px 10px;
    max-width: 100%;
  }

  .form-wrapper button {
    font-size: 1rem;
    padding: 10px;
  }

  .compact-form {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .compact-form select {
    font-size: 0.9rem;
  }

  .compact-form button {
    font-size: 1.1rem;
    padding: 10px;
  }

  .amount-group label,
  .amount-group input {
    font-size: 0.85rem;
  }

  .direction-group label {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .footer-note {
    font-size: 0.85rem;
  }

  .select-row,
  
  .compact-form,
  .amount-price-group,
  .form-columns,
  .amount-price-column {
    flex-direction: column;
    gap: 0.8rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  
  .badge {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .coin-cloud strong {
    font-size: 1em;
  }
  


  .coin-cloud p {
    font-size: 0.8em;
  }

  .text-bubble {
    font-size: 0.85rem;
  }

  .contact-title {
    font-size: 1.2rem;
  }

  .form-wrapper button,
  .compact-form button {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .main-menu a {
    font-size: 0.9rem;
    padding: 5px 8px;
  }

  .form-wrapper input,
  .form-wrapper select {
    font-size: 0.85rem;
  }
}
@media (max-width: 811px) {
  .hamburger-btn {
    display: block;
    font-size: 30px;
    background: none;
    border: none;
    color: #115461;
    cursor: pointer;
    padding: 6px;
    margin-top: 0.5px;
  }
.wallet-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.8rem 0;
}

/* Карточка */
.wallet-card {
  background: linear-gradient(to top, #cee8f2, #f7f3d0);
  border: 1.5px solid #81878a;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: #113638;
  box-shadow: 0 6px 15px rgba(25, 73, 92, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wallet-card:hover {
  box-shadow: 0 10px 25px rgba(25, 73, 92, 0.6);
  transform: translateY(-3px);
}

/* Строки */
.wallet-card p {
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(206, 232, 242, 0.9), rgba(255, 255, 255, 0.85));
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.4),
              inset 0 0 6px rgba(106, 143, 158, 0.1);
  border: 1.5px solid rgba(46, 207, 255, 0.8); /* #2ecfff с легкой прозрачностью */

  backdrop-filter: blur(2px);
  font-weight: 500;
  color: #113638;
}

/* Метки (эмоджи + текст) */
.wallet-card p span.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  color: #2b3233;
  margin-right: 8px;
  user-select: none;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Адрес — моноширинный подчеркнутый стиль */
.wallet-card p a {
  color: #113638;
  text-decoration: underline;
  font-weight: 600;
  font-family: monospace;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Кнопки */
.wallet-card .btn-action,
.wallet-card button[type="submit"] {
  cursor: pointer;
  padding: 8px 16px;
  background: linear-gradient(135deg, #19495c, #032e40);
  color: #b1b4b5;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(25, 73, 92, 0.5);
  border: none;
  user-select: none;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.25s ease;
}

.wallet-card .btn-action:hover,
.wallet-card button[type="submit"]:hover {
  background: linear-gradient(135deg, #032e40, #19495c);
  transform: scale(1.05);
}



  .menu-container {
    display: none !important;
  }
}
/* ============================== */
/* ======== ДО 768px ============ */
/* ============================== */
@media (max-width: 811px) {
  .logo img {
    max-width: 135px;
  }

  /* Скрываем все .menu-container */
  .menu-container {
    display: none !important;
  }

  /* Показываем .user-menu .menu-container */
  .user-menu .menu-container {
    display: flex !important;
    justify-content: flex-start;
  }

  .user-menu {
    padding: 0;
  }

  .user-menu ul.menu-left {
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 12px;
    margin-bottom: 7px;
  }
.user-menu ul.menu-left li {
  margin-right: 10px;
  }
  .user-menu ul.menu-left li a {
    padding: 7px 8px ;
    font-size: 10px !important;
    min-width: 90px !important;
  }

  .main-menu {
    padding: 0 !important;
    font-size: 14px !important;
  }

  .main-menu ul.menu-left {
    gap: 12px !important;
  }

  .main-menu ul.menu-left > li {
    padding: 4px 4px !important;
  }

  /* Мобильные кнопки */
  .mobile-user-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 1000;
  }

  #mobile-profile-placeholder li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #mobile-profile-placeholder li a {
    display: inline-block;
    background-color: #2c6777;
    text-decoration: none;
   padding: 6px 6px;
    font-size: 11px;
    border-radius: 8px;
    background: #092323;
    color: #e8e1e1;
    border: 1px solid rgba(80, 80, 80, 0.7);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    line-height: 1.3;
    white-space: nowrap;
    box-sizing: border-box;
  }

  #mobile-logout-placeholder .auth-btn {
    display: inline-block;
    background-color: #2c6777;
    text-decoration: none;
   padding: 6px 6px;
    font-size: 11px;
    border-radius: 8px;
    background: #092323;
    color: #e8e1e1;
    border: 1px solid rgba(80, 80, 80, 0.7);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    line-height: 1.3;
    white-space: nowrap;
  }

  h1 .mobile-line-break {
  
    margin-top: 0.1em;
    margin-bottom: 0;
  }

  h1::before {
    content: "";
  }
}

/* ============================== */
/* ======== ДО 767px ============ */
/* ============================== */
@media (max-width: 767px) {
  h1 {
    white-space: normal;
  }

  .mobile-line-break {
  
    margin-top: 0.1em;
  }

  h1::before {
    content: " — ";
  }
}

/* ============================== */
/* ======== ДО 600px ============ */
/* ============================== */
@media (max-width: 600px) {
  main {
    max-width: 100%;
    margin: 10px;
    padding: 0;
    border-radius: 10px;
    box-shadow: none;
    border-bottom: 2px solid #b0b0b0;
  }

  h1 {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 0.1rem;
    text-shadow: none;
    white-space: normal;
    text-align: center;
  }

  h1 .mobile-line-break {
    
    margin-top: -0.6em;
    margin-bottom: 0;
  }
  
}

/* ============================== */
/* ======== ОТ 769px ============ */
/* ============================== */
@media (min-width: 769px) {
  #mobile-profile-placeholder,
  #mobile-logout-placeholder {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .left-controls {
    flex-direction: row; /* в одну строку */
    flex-wrap: nowrap;   /* запрещаем перенос */
    gap: 0.5rem;
    flex: none;
  }

  .btn-coin-request {
    font-size: 0.9rem;
    padding: 5px 14px;
    max-width: 100px;
  }
button.btn-coin-request[type="submit"] {
  all: unset; /* Сброс наследования */
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #27a0b0, #115461);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  max-width: 130px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  text-decoration: none;
  border: none;
  }
  .right-controls {
   display: none;
  }

  .controls-row {
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .mobile-line-break {
    display: block;  /* Перенос на новую строку */
    margin-top: 0.1em; /* Отступ сверху для красоты */
  }
}
@media (max-width: 811px) {
  .user-menu ul.menu-left li a {
    border-radius: 7px;
  }
}
@media (max-width: 811px) {
  main {
    max-width: 100%;
    margin: 8px 6px;
    padding: 6px;
    border-radius: 6px;
    border-bottom: 1px solid #999;
    box-shadow: none;
    background-color: #f9f9f9; /* если нужен легкий фон */
  }

  main h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 6px 0 10px 0;
    padding: 6px 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-align: center;
    white-space: normal;
  }
}
@media (max-width: 811px) {
  .profile-container button[type="submit"] {
    margin: 0 auto;
    display: block;
    padding: 6px 12px;
    font-size: 0.95rem;
    text-align: center;
  }

  .profile-container button[type="submit"]::before,
  .profile-container button[type="submit"]::after {
    display: none;
  }

  .profile-container .form-wrapper > div:last-child {
    display: flex;
    justify-content: center;
  }
  .styled-table {
    display: none !important;
  }
  
}

@media (min-width: 769px) {
  .table-wrapper {
    overflow-x: visible;
  }

  table.styled-table {
    min-width: unset;
    table-layout: auto;
  }
}
@media (max-width: 400px) {


.user-menu ul.menu-left {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px; /* чуть меньше отступы */
  padding-left: 12px;
  max-width: 280px; /* чуть уже */
  margin: 0 auto;
}

.user-menu ul.menu-left li a {
  display: block;
  padding: 1px 1px;       /* уменьшили padding */
  font-size: 11px !important;
  max-width: 130px;
  text-align: center;
  background-color:#edf7f7;
  color: #2f3030;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu ul.menu-left li a:hover,
.user-menu ul.menu-left li a:focus {
  background-color: #27a0b0;
}
  .modal-content {
    width: 80%;
    max-height: 73vh; /* уменьшаем высоту */
    padding: 20px;
    font-size: 19px;
    overflow-y: auto; /* прокрутка внутри */
    }
    
    .modal-content h2 {
    margin-top: 0;
    margin-bottom: -0.5em;
    font-size: 18px;
    color: #285366;
    text-shadow: 
  }
.modal-content p {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 14px;
    color: #16261e;
    text-shadow: 
  }
.lead-highlight {
  color: #013145;       /* например, насыщенный бирюзовый */
  font-weight: 700;     /* жирный */
 font-style: italic;
  
}
}
@media screen and (min-width: 813px) and (max-width: 1300px) and (orientation: landscape) {
.grid-container {
  grid-template-columns: 1fr;
}
.grid-cell {
  flex-basis: 100%;
  min-width: auto;
}

.coins-container {
  gap: 30px;
  padding: 20px;
}

.contact-grid {
  gap: 40px;
}

.text-bubble {
  max-width: 90%;
  font-size: 0.95rem;
}

.contact-title {
  font-size: 1.4rem;
}

.coin-cloud {
  min-height: 100px;
  padding: 12px 15px;
}

.coin-cloud strong {
  font-size: 1.1em;
}

.coin-cloud p {
  font-size: 0.85em;
}

.contact-item {
  margin-bottom: 20px;
}

.commission-boxes {
  gap: 16px;
}

.commission-box {
  flex: 1 1 100%;
  max-width: 100%;
}

table#ordersTable th,
table#ordersTable td,
table.styled-table th,
table.styled-table td {
  padding: 12px;
  font-size: 0.9rem;
}

.contact-title {
  font-size: 1.5rem;
}



table#ordersTable, table.styled-table {
  font-size: 0.85rem;
}

table#ordersTable td, table.styled-table td {
  padding: 10px 8px;
}

.commission-box h3 {
  font-size: 1rem;
}

/* Меньше отступы у блоков */
.input-box, .output-box {
  padding: 8px;
}

.form-columns {
  flex-direction: column;
  gap: 1.5rem;
  height: auto;
}

.form-left, .form-right {
  height: auto;
}

.controls-row {
  gap: 1rem;
}

.amount-group {
  max-width: 100%;
}

.amount-group label {
  text-align: left;
  font-size: 0.9rem;
}

.amount-group input {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
}

.direction-group {
  font-size: 1rem;
  gap: 0.5rem;
}

.direction-group label {
  padding: 6px 12px;
  font-size: 1rem;
  display: inline-flex !important;
}

.profile-grid form {
  grid-template-columns: 1fr;
  column-gap: 0;
}

.amount-price-group,
.type-payment-group,
.inputs-row {
  flex-direction: column;
  gap: 1rem;
}

input[type="text"],
select {
  max-width: 100%;
}

.select-row {
  flex-wrap: wrap;
}

.direction-group.centered {
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 0.8rem;
}
/* Убираем фиксированную ширину у кнопок */
.compact-form button,
button[type="submit"] {
  width: 100%;
  padding: 12px 0;
  font-size: 1.4rem;
}

/* Инпуты и селекты расширяем на всю ширину */
input[type="text"],
select,
.compact-form select {
  width: 100%;
  max-width: 92%;
}

/* Центрируем и сжимаем форму */
.order-form {
  padding: 1rem 1.2rem;
  max-width: 100%;
}

/* Уменьшаем промежутки между элементами, чтобы не занимать много места */
.profile-grid form {
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 1rem;
}

.profile-grid form p,
.profile-grid form button {
  grid-column: 1 / -1;
}

/* Убираем большие отступы */
.amount-price-group,
.type-payment-group {
  gap: 1rem;
}

html, body {
  font-size: 14px;
}

.slogan-highlight {
  font-size: 1.2rem;
  padding: 10px 14px;
  margin: 1rem auto;
}

.main-menu a {
  font-size: 0.9rem;
  padding: 6px 10px;
}

.landing-text {
  padding: 10px 12px;
  margin: 10px auto;
}

.landing-text .tagline,
.landing-text .supported-coins,
.landing-text .mission {
  font-size: 0.95rem;
}

.reconstruction-box {
  font-size: 0.95rem;
  padding: 16px;
}

.badge {
  font-size: 0.9rem;
  padding: 10px 16px;
}

.grid-cell {
  font-size: 0.95rem;
  padding: 16px;
}

.contact-title {
  font-size: 1.3rem;
}

.contact-item a {
  font-size: 0.9rem;
}

.coin-cloud {
  min-height: 100px;
  padding: 10px 12px;
}

.coin-cloud strong {
  font-size: 1.1em;
}

.coin-cloud p {
  font-size: 0.85em;
}

.text-bubble {
  font-size: 0.9rem;
  max-width: 100%;
}

.commission-box {
  padding: 16px;
}

.commission-box h3 {
  font-size: 1rem;
}

.commission-box p {
  font-size: 0.9rem;
}

table#ordersTable,
table.styled-table {
  font-size: 0.85rem;
}

table#ordersTable td,
table.styled-table td {
  padding: 8px;
}

.form-wrapper input,
.form-wrapper select {
  font-size: 0.9rem;
  padding: 6px 10px;
  max-width: 100%;
}
.form-wrapper button {
  font-size: 1rem;
  padding: 10px;
}

.compact-form {
  font-size: 1rem;
  padding: 0.6rem 1rem;
}

.compact-form select {
  font-size: 0.9rem;
}

.compact-form button {
  font-size: 1.1rem;
  padding: 10px;
}

.amount-group label,
.amount-group input {
  font-size: 0.85rem;
}

.direction-group label {
  font-size: 0.95rem;
  padding: 6px 10px;
}

.footer-note {
  font-size: 0.85rem;
}

.select-row,
.compact-form,
.amount-price-group,
.form-columns,
.amount-price-column {
  flex-direction: column;
  gap: 0.8rem;
}

.grid-container {
  grid-template-columns: 1fr;
}

.badge {
  font-size: 0.85rem;
  padding: 8px 14px;
}

.coin-cloud strong {
  font-size: 1em;
}

.coin-cloud p {
  font-size: 0.8em;
}

.text-bubble {
  font-size: 0.85rem;
}

.contact-title {
  font-size: 1.2rem;
}

.form-wrapper button,
.compact-form button {
  font-size: 1rem;
  padding: 10px 12px;
}

.main-menu a {
  font-size: 0.9rem;
  padding: 5px 8px;
}

.form-wrapper input,
.form-wrapper select {
  font-size: 0.85rem;
}

.hamburger-btn {
  display: block;
  font-size: 30px;
  background: none;
  border: none;
  color: #115461;
  cursor: pointer;
  padding: 6px;
  margin-top: 0.5px;
}

.menu-container {
  display: none !important;
}

.logo img {
  max-width: 135px;
}

/* ... (продолжай список стилей из остальных медиа-запросов так же) */

.user-menu .menu-container {
  display: flex !important;
  flex-wrap: nowrap;            /* ❌ запрещает перенос */
  justify-content: flex-start;  /* ⬅️ прижимаем влево */
  white-space: nowrap;          /* ⛔️ запрещает перенос текста внутри элементов */
  overflow-x: auto;             /* ➕ добавит горизонтальный скролл при нехватке места */
}


.user-menu {
  padding: 0;
  display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    white-space: nowrap;
    overflow-x: auto;
}

.user-menu ul.menu-left {
  gap: 8px;
 
  padding-left: 12px;
  
}

.user-menu ul.menu-left li a {
  padding: 4px 4px;
  font-size: 10px !important;
  min-width: 90px !important;
}

.main-menu {
  padding: 0 !important;
  font-size: 14px !important;
}

.main-menu ul.menu-left {
  gap: 12px !important;
}

.main-menu ul.menu-left > li {
  padding: 4px 4px !important;
}

.mobile-user-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1000;
}

#mobile-profile-placeholder li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobile-profile-placeholder li a {
  display: inline-block;
  background-color: #092323;
  text-decoration: none;
  color: #e8e1e1;
  padding: 6px 6px;
  font-weight: 400;
  border-radius: 10px;
  border: 1px solid rgba(80, 80, 80, 0.7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  box-sizing: border-box;
}

#mobile-logout-placeholder .auth-btn {
  display: inline-block;
  background-color: #092323;
  text-decoration: none;
  color: #e8e1e1;
  padding: 6px 6px;
  font-weight: 400;
  border-radius: 10px;
  border: 1px solid rgba(80, 80, 80, 0.7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  box-sizing: border-box;
}

h1 .mobile-line-break {
  margin-top: 0.1em;
  margin-bottom: 0;
}

h1::before {
  content: "";
}

h1 {
  white-space: normal;
}

h1::before {
  content: " — ";
}

main {
  max-width: 100%;
  margin: 10px;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
  border-bottom: 2px solid #b0b0b0;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.1rem;
  text-shadow: none;
  white-space: normal;
  text-align: center;
}

h1 .mobile-line-break {
  margin-top: -0.6em;
  margin-bottom: 0;
}

#mobile-profile-placeholder,
#mobile-logout-placeholder {
  display: none !important;
}

.left-controls {
  flex-direction: row; /* в одну строку */
  flex-wrap: nowrap;   /* запрещаем перенос */
  gap: 0.5rem;
  flex: none;
}

.right-controls {
  display: none;
}

.controls-row {
  justify-content: space-between;
}

.mobile-line-break {
  display: block;  /* Перенос на новую строку */
  margin-top: 0.1em; /* Отступ сверху для красоты */
}

.user-menu ul.menu-left li a {
  border-radius: 7px;
}

main {
  max-width: 100%;
  margin: 8px 6px;
  padding: 6px;
  border-radius: 6px;
  border-bottom: 1px solid #999;
  box-shadow: none;
  background-color: #f9f9f9; /* если нужен легкий фон */
}

main h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 6px 0 10px 0;
  padding: 6px 8px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: center;
  white-space: normal;
}

.profile-container button[type="submit"] {
  margin: 0 auto;
  display: block;
  padding: 6px 12px;
  font-size: 0.95rem;
  text-align: center;
}

.profile-container button[type="submit"]::before,
.profile-container button[type="submit"]::after {
  display: none;
}

.profile-container .form-wrapper > div:last-child {
  display: flex;
  justify-content: center;
}



table.styled-table {
  min-width: unset;
  table-layout: auto;
}

.user-menu ul.menu-left {
  display: flex;               /* ➜ флекс-контейнер вместо грида */
  flex-wrap: nowrap;           /* ❌ запрет на перенос */
  gap: 8px 10px;               /* отступы между элементами */
  padding-left: 12px;
  max-width: 100%;             /* убираем ограничение ширины */
  margin: 0 auto;
  overflow-x: auto;            /* ➕ горизонтальный скролл при переполнении */
  white-space: nowrap;         /* запрет переноса текста */
}


.user-menu ul.menu-left li a {
  display: block;
  padding: 1px 1px;       /* уменьшили padding */
  font-size: 11px !important;
  max-width: 130px;
  text-align: center;
  background-color:#edf7f7;
  color: #2f3030;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu ul.menu-left li a:hover,
.user-menu ul.menu-left li a:focus {
  background-color: #27a0b0;
}

.grid-container {
  grid-template-columns: 1fr;
}
 #mobile-profile-placeholder li a {
    display: inline-block;
    background-color: #092323;
    text-decoration: none;
    color: #e8e1e1;
    padding: 2px 6px;
    font-weight: 550;
    border-radius: 10px;
    border: 1px solid rgba(80, 80, 80, 0.7);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    box-sizing: border-box;
}
  #mobile-logout-placeholder .auth-btn {
    display: inline-block;
    background-color: #092323;
    text-decoration: none;
    color: #e8e1e1;
    padding: 2px 6px;
    font-weight: 550;
    border-radius: 10px;
    border: 1px solid rgba(80, 80, 80, 0.7);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    box-sizing: border-box;
  }
}  
