:root {
    --bs-primary: #21405a;
    --bs-primary-rgb: 33, 64, 90;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url('/img/113.png');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #33475b;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 15px 0;  /* ✅ УВЕЛИЧЕНО С 1px ДО 15px */
}

.container {
    padding: 0;
    margin: 0;
}

.container-page {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px;  /* ✅ ДОБАВЛЕНО: 20px сверху/снизу, 15px по бокам */
    display: flex;
    flex-direction: column;
    background: #fff;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);  /* ✅ ДОБАВЛЕНА ТЕНЬ */
}

header.navbar {
    flex-shrink: 0;
    margin-bottom: 15px;  /* ✅ ОТСТУП ОТ НАВИГАЦИИ */
}

main {
    display: flex;
    gap: 20px;
    margin: 15px 0;  /* ✅ УМЕНЬШЕНО С 20px ДО 15px */
    flex-shrink: 0;
}

footer {
    background-color: #2a4967;
    color: #e0e7f1;
    padding: 15px 20px;  /* ✅ УВЕЛИЧЕНО С 12px 15px */
    border-radius: 0 0 10px 10px;  /* ✅ СКРУГЛЕНИЕ ТОЛЬКО СНИЗУ */
    box-shadow: 0 4px 8px rgb(42 73 103 / 0.3);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;  /* ✅ ОТСТУП СВЕРХУ */
    flex-shrink: 0;
}

footer a {
    color: #a9c9ff;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: #d0e4ff;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 15px 10px;
    }

    footer > div {
        width: 100%;
    }
    
    .container-page {
        padding: 15px 10px;  /* ✅ МЕНЬШЕ ОТСТУПЫ НА МОБИЛЬНЫХ */
    }
}

 
header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(224,231,241, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

header nav a.btn-outline-light {
  position: relative;
  color: #e6f0ff;
  padding: 7px 16px;
  border-radius: 12px;

  border: 1px solid rgba(169, 201, 255, 0.4);

  /* glass + глубина */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );

  backdrop-filter: blur(6px);

  box-shadow: 
    inset 0 1px 1px rgba(255,255,255,0.15),
    0 6px 14px rgba(0,0,0,0.35);

  transition: all 0.25s ease;
  overflow: hidden;
}

/* мягкий свет сверху */
header nav a.btn-outline-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );

  opacity: 0;
  transition: 0.4s;
}

/* hover */
header nav a.btn-outline-light:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.05)
  );

  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.2),
    0 10px 22px rgba(0,0,0,0.45);
}

/* эффект пробега света */
header nav a.btn-outline-light:hover::before {
  opacity: 1;
  left: 100%;
}

/* нажатие */
header nav a.btn-outline-light:active {
  transform: scale(0.96);

  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.4),
    0 3px 6px rgba(0,0,0,0.3);
}

header nav a.btn-outline-light:hover {
  color: #2a4967;
  background-color: #d0e4ff;
  text-decoration: none;
}

.card-block {
  background-color: #f9fbfd;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.07);
  padding: 25px;
  color: #33475b;
  display: flex;
  flex-direction: column;
  border: 1px #2a4967 solid;
}
.card-blocks {
  background-color: #f9fbfd;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.07);
 
  color: #33475b;
  display: flex;
  flex-direction: column;
  border: 1px #2a4967 solid;
}
.sidebar {
  width: 250px;
  flex-shrink: 0;
}

.leftbar {
  width: 280px;
}

.btn-primary {
    background-color: #21405a !important;
    border-color: #1c354d !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #192e42 !important;
    border-color: #162a3d !important;
}

.btn-primary:active {
    background-color: #162a3d !important;
    border-color: #142636 !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: #2a4967 !important;
    border-color: #2a4967 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    transition: color 0.3s ease, border-color 0.3s ease !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff !important;
  background-color: #2a4967 !important;
  border-color: #2a4967 !important;
  box-shadow: 0 0 8px #2a4967aa !important;
}

.btn-outline-primary:active {
  color: #fff !important;
  background-color: #234059 !important;
  border-color: #234059 !important;
  box-shadow: 0 0 6px #234059aa !important;
}

h2 {
  color: #1f3556;
  font-weight: 700;
  margin-bottom: 15px;
}

.side-t {
  color: #2a4967;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 2px solid #2a4967;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.banner {
  width: 200px;
  height: 300px;
  background: linear-gradient(135deg, #87c0f9, #1f3556);
  color: #e0e7f1;
  font-weight: 700;
  box-shadow: 0 4px 10px rgb(30 53 102 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
} 

@media (max-width: 991px) {
  main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}
    .register-container {
        display: flex;
        align-items: center;
        justify-content: center; 
    }
    .register-card {
        background: #fff;
        border-radius: 12px;
        padding: 20px 40px;
        width: 100%;
        max-width: 500px;
        text-align: center;
    }
    .register-card h3 {
        margin-bottom: 25px;
        font-weight: 700;
        color: #333;
    }
    .form-control {
        border-radius: 10px;
        padding: 15px 12px;
        font-size: 16px;
        box-shadow: none !important;
        border: 1.5px solid #ddd;
        transition: border-color 0.3s;
    }
    .form-control:focus {
        border-color: #2a4967;
        box-shadow: 0 0 8px rgba(42, 73, 103,0.4) !important;
        outline: none;
    }
     
    .links-row {
        margin-top: 20px;
        font-size: 14px;
        color: #777;
    }
    .links-row a {
        color: #2a4967;
        text-decoration: none;
        margin: 0 8px;
        transition: color 0.3s ease;
    }
    .links-row a:hover {
        text-decoration: underline;
        color: #5563c1;
    }
.bg-gradient-orange {
  background: linear-gradient(135deg, #f6a821, #f39c12);
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #ff4e50, #f44336);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #28a745, #218838);
}    
    .foot-stat {
    position: relative;
    background: linear-gradient(145deg, #2a4967, #2a4967);
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 14px;

    border: 1px solid rgba(255,255,255,0.05);

    /* глубина как в SaaS */
    box-shadow: 
        0 12px 30px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06);

    overflow: hidden;
}

/* убираем любые белые фоны */
.foot-stat * {
    background: transparent !important;
}

/* лёгкий свет сверху (делает «дорого») */
.foot-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;

    background: linear-gradient(to bottom, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}

/* иконка */
.foot-stat .icon {
    width: 44px;
    height: 44px;
    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    font-size: 18px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.04)
    );

    backdrop-filter: blur(6px);

    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.15),
        0 6px 14px rgba(0,0,0,0.5);
}

/* текстовый блок */
.foot-stat .w-100 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* цифры */
.foot-stat .number {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.5px;

    color: #ffffff;

    /* мягкий glow */
    text-shadow: 
        0 2px 10px rgba(0,0,0,0.6),
        0 0 12px rgba(255,255,255,0.08);
}

/* подпись */
.foot-stat .description {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;

    text-align: center;
}

    .foot-stat .icon {
        font-size: 30px;
    }

    .foot-stat .description {
        font-size: 0.9rem;
    }
 
    .foot-stat .number {
        background-color: white;
        color: #ffffff;
        border-radius: 4px;
        padding: 5px 0; 
        width: 100%;
        font-size: 1.8rem;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }
            .history-table {
                width: 100%;
                border-collapse: collapse;
                border-radius: 10px;
                overflow: hidden;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            }
            .history-table thead {
                background-color: #f4f6f9;
                color: #333;
            }
            .history-table th, .history-table td {
                padding: 12px 15px;
                text-align: left;
                border-bottom: 1px #2a4967 solid;
            }
            .history-table th {
                background-color: #2a4967;
                color: white;
                font-weight: bold;
            }
            .history-table tr:nth-child(even) {
                background-color: #f9f9f9;
            }
            .history-table tr:hover {
                background-color: #e9f1f7;
            }
            .history-table td.text-center {
                text-align: center;
            }
            .history-table td.text-end {
                text-align: end;
            }
            
            /* Адаптивность */
            @media (max-width: 767px) {
                .history-table th, .history-table td {
                    padding: 8px 10px;
                }
            }
            .nav-pills .nav-link {
                background-color: #2a4967;
                color: white;
                border-radius: 0;
            }
            .nav-pills .nav-link:hover {
                background-color: #233f57;
                color: white;
            }
            .nav-pills .nav-link.active {
                background-color: #1c3550;
                color: white;
            }         
 
.surfblockopen {
    display: none;
}

.content-block {
    background: linear-gradient(135deg, rgba(78, 88, 83, 0.25), rgba(78, 88, 83, 0.25));
    padding: 9px;
    border-radius: 10px;
    border-bottom: 3px #2186eb solid;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(33, 134, 235, 0.1);
}

.info-row {
    background-color: #ffffff;
    padding: 2px 5px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.time-icon, .remaining-icon {
    color: #2f3e46;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3f4745;
    text-align: right;
}

.title_serf {
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
    .info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .info-left {
        display: flex;
        gap: 15px; /* Отступ между иконками и текстом */
        align-items: center;
    }

    .info-item {
        display: flex;
        align-items: center;
        font-size: 14px;
        gap: 5px; /* Расстояние между иконкой и текстом */
    }
    .title-wrapper {
        display: flex;
        align-items: center; /* Выравнивание по центру по вертикали */
        gap: 10px; /* Расстояние между иконкой и текстом */
    }
               
               
             /* ✅ КНОПКА НАВЕРХ (ВВЕРХУ СЛЕВА - КАК В ВК) */
.back-to-top {
    position: fixed;
    left: 20px;
    top: 100px;  /* ✅ ВВЕРХУ (не снизу!) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    background: #f0f2f5;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.back-to-top:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top span {
    font-size: 12px;
    color: #21405a;
    font-weight: 500;
}

/* ✅ ПОКАЗАТЬ КНОПКУ ПРИ СКРОЛЛЕ > 300px */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ✅ СКРЫТЬ НА МОБИЛЬНЫХ (< 768px) */
@media (max-width: 767.98px) {
    .back-to-top {
        display: none !important;
    }
}  



/* ============================================
   ✅ КАСТОМНЫЙ СКРОЛЛ ДЛЯ APEX CLICK
   ============================================ */

/* W3C standard (Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: #21405a #e9ecef;
}

/* Chrome/Edge/Safari */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #21405a 0%, #2c5282 100%);
  border-radius: 5px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2c5282 0%, #1a3650 100%);
}

*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #1a3650 0%, #21405a 100%);
}

/* ============================================
   ✅ ДЛЯ ТЁМНЫХ БЛОКОВ (карточки, сайдбар)
   ============================================ */
.card-block::-webkit-scrollbar-track,
.register-card::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.card-block::-webkit-scrollbar-thumb,
.register-card::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #21405a 0%, #2c5282 100%);
  border: 2px solid #f8f9fa;
}

/* ============================================
   ✅ ДЛЯ МОДАЛЬНЫХ ОКОН
   ============================================ */
.modal-content::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #21405a 0%, #2c5282 100%);
  border-radius: 8px;
  border: 2px solid #ffffff;
}

/* ============================================
   ✅ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ
   ============================================ */
*::-webkit-scrollbar-horizontal {
  height: 8px;
}

*::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, #21405a 0%, #2c5282 100%);
}

/* ============================================
   ✅ АДАПТИВ (скрывать на мобильных)
   ============================================ */
@media (max-width: 768px) {
  * {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  *::-webkit-scrollbar {
    display: none;
  }
}









/* ============================================
   ✅ КНОПКА ТЕХ. ПОДДЕРЖКИ (VERTICAL)
   ============================================ */
.support-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 180px;
    background: linear-gradient(180deg, #21405a 0%, #2c5282 100%);
    border-radius: 0 12px 12px 0;
    color: #fff;
    text-decoration: none;
    box-shadow: 3px 0 15px rgba(33, 64, 90, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    padding: 10px 5px;
}

.support-btn:hover {
    width: 60px;
    background: linear-gradient(180deg, #2c5282 0%, #1a3650 100%);
    box-shadow: 3px 0 20px rgba(33, 64, 90, 0.6);
    transform: translateY(-50%) translateX(5px);
}

.support-btn i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.support-btn span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* ✅ АНИМАЦИЯ ИКОНКИ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ✅ УВЕДОМЛЕНИЕ (NEW) */
.support-btn::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ✅ СКРЫТЬ НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .support-btn {
        display: none;
    }
}


