:root {
   --primary-color: #428bca;
   --accent-color: #ff4346;
   --dark-bg: #121826;
   --darker-bg: #0d111c;
   --card-bg: #1c2333;
   --text-color: #f0f4ff;
   --text-muted: #a1b0cc;
   --border-color: #2d3a54;
   --success-color: #4caf50;
   --shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
   font-family: 'Rubik', sans-serif;
   background: var(--dark-bg);
   color: var(--text-color);
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   line-height: 1.6;
}
a{
  text-decoration: none;
}
.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
   width: 100%;
}

/* Шапка сайта */
header {
   background: var(--darker-bg);
   border-bottom: 1px solid var(--border-color);
   padding: 15px 0;
   position: sticky;
   top: 0;
   z-index: 100;
   box-shadow: var(--shadow);
}

.header-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo {
   display: flex;
   align-items: center;
   gap: 12px;
   text-decoration: none;
}

.logo-icon {
   width: 40px;
   height: 40px;
   background: var(--accent-color);
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 20px;
   font-weight: 700;
   color: white;
}

.logo-text {
   font-size: 28px;
   font-weight: 700;
   color: var(--accent-color);
}
.logo-text b {
   color: var(--text-color);
}

.logo-text span:first-child {
   color: white;
}

.logo-text span:last-child {
   color: var(--accent-color);
}
/* Скрываем навигацию по умолчанию на мобильных */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }
  .sidebar-banner{
    display: none;
  }
  /* Показываем навигацию, когда она активна */
  .nav-links.active {
    display: flex;
    background: var(--dark-bg);
  }
  /* Кнопка меню видна только на мобильных */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
  }
}

/* Для десктопа */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
  .nav-links {
    display: flex !important;
    gap: 10px;
  }
}

/* Мобильное меню изначально скрыто слева за экраном */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -250px; /* скрыто слева */
    width: 250px;
    height: 100vh;
    background: var(--card-bg);
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: left 0.3s ease;
    z-index: 9999;
  }
  /* Видимое меню */
  .nav-links.active {
    left: 0;
  }
  /* Кнопка меню видна */
  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 10000;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
  }
}

/* Для десктопа показываем меню и скрываем кнопку */
@media (min-width: 769px) {
  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    height: auto;
    width: auto;
    box-shadow: none;
    border-radius: initial;
  }
  .mobile-menu-btn {
    display: none;
  }
}
.heart {
    cursor: pointer;
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  .heart.active {
    color: red;
  }
        /* Промокод */
        .promo-section {
          padding: 30px;
          background: var(--darker-bg);
          border-radius: 10px;
          margin-bottom: 20px;
      }

      .promo-title {
          font-size: 24px;
          margin-bottom: 15px;
          color: var(--primary-color);
      }

      .promo-description {
          color: var(--text-muted);
          margin-bottom: 20px;
      }
      .promo-description a {
        color: var(--text-muted);
        font-size: 14px;
        text-decoration: none;
    }
    .promo-description a:hover {

      text-decoration: underline;
  }

      .promo-form {
          display: flex;
          margin: 0 auto;
          padding-bottom: 5px;
      }

      .promo-input {
          flex: 1;
          padding: 12px 15px;
          background: var(--card-bg);
          border: 1px solid var(--border-color);
          color: var(--text-color);
          border-radius: 8px 0 0 8px;
          font-size: 16px;
      }

      .promo-button {
          padding: 12px 25px;
          background: var(--accent-color);
          color: white;
          border: none;
          border-radius: 0 8px 8px 0;
          font-weight: 500;
          cursor: pointer;
          transition: all 0.3s ease;
      }

      .promo-button:hover {
          background: #d93c3f;
      }
      .search-button {
        padding: 12px 25px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0 8px 8px 0;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search-button:hover {
        background: var(--success-color);
    }
/* Стили ссылок */
.nav-link {
  padding: 10px 20px;
  background: var(--card-bg);
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(66, 139, 202, 0.15);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.nav-link.active {
  background: rgba(66, 139, 202, 0.25);
}


/* Основной контент */
.main-content {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.content-area {
    flex: 1;
}

.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-close-btn{
    display: none;
}
.hero {
   padding: 80px 0 50px;
   position: relative;
   overflow: hidden;
}

.hero-content {
   display: flex;
   align-items: center;
   gap: 50px;
   position: relative;
   z-index: 2;
}

.hero-text {
   flex: 1;
}

.hero-title {
   font-size: 42px;
   font-weight: 700;
   margin-bottom: 20px;
   line-height: 1.2;
}

.hero-title span {
   color: var(--accent-color);
}

.hero-description {
   font-size: 18px;
   color: var(--text-muted);
   margin-bottom: 30px;
   max-width: 600px;
}

.hero-image {
   flex: 1;
   display: flex;
   justify-content: center;
   position: relative;
}

.hero-img {
   max-width: 100%;
   border-radius: 20px;
   box-shadow: var(--shadow);
   animation: float 6s ease-in-out infinite;
}

.btn {
   display: inline-block;
   padding: 14px 32px;
   background: var(--primary-color);
   color: white;
   font-size: 18px;
   font-weight: 600;
   border-radius: 10px;
   text-decoration: none;
   transition: all 0.3s ease;
   border: none;
   cursor: pointer;
}

.btn:hover {
   background: #3272b3;
   transform: translateY(-3px);
   box-shadow: 0 6px 20px rgba(66, 139, 202, 0.6);
}

.btn-accent {
   background: var(--accent-color);
   box-shadow: 0 4px 15px rgba(255, 67, 70, 0.4);
}

.btn-accent:hover {
   background: #e03c3f;
   box-shadow: 0 6px 20px rgba(255, 67, 70, 0.6);
}

/* Особенности */
.features {
   padding: 80px 0;
   background: var(--darker-bg);
}

.dashboard-title {
   text-align: center;
   font-size: 36px;
   margin-bottom: 60px;
   position: relative;
}
.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  position: relative;
}
.section-title:after {
   content: '';
   display: block;
   width: 80px;
   height: 4px;
   background: var(--primary-color);
   margin: 15px auto 0;
   border-radius: 2px;
}

.features-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
}

.feature-card {
   background: var(--card-bg);
   border-radius: 16px;
   padding: 30px;
   text-align: center;
   transition: all 0.3s ease;
   border: 1px solid var(--border-color);
   box-shadow: var(--shadow);
}

.feature-card:hover {
   transform: translateY(-10px);
   border-color: var(--primary-color);
}

.feature-icon {
   width: 80px;
   height: 80px;
   background: rgba(66, 139, 202, 0.1);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 25px;
   font-size: 32px;
   color: var(--primary-color);
}

.feature-title {
   font-size: 24px;
   margin-bottom: 15px;
   color: var(--primary-color);
}

.feature-description {
   color: var(--text-muted);
}

/* Статистика */
.stats {
   padding: 80px 0;
}

.stats-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 25px;
}

.stat-card {
   background: var(--card-bg);
   border-radius: 16px;
   padding: 30px;
   text-align: center;
   border: 1px solid var(--border-color);
   box-shadow: var(--shadow);
}

.stat-value {
   font-size: 36px;
   font-weight: 700;
   margin-bottom: 10px;
   color: var(--primary-color);
}

.stat-label {
   font-size: 18px;
   color: var(--text-muted);
}

/* Выплаты */
.payouts {
   padding: 80px 0;
   background: var(--darker-bg);
}

.payouts-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 30px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.table-dark-custom {
  width: 100%;
  color: var(--text-color);
  border-collapse: collapse;
}

.table-dark-custom th {
  background: var(--primary-color);
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-dark-custom td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 18px;
}

.table-dark-custom tr:last-child td {
  border-bottom: none;
}

.table-dark-custom tr:hover {
  background: rgba(66, 139, 202, 0.05);
}

.text-theme {
  color: var(--accent-color);
  font-weight: 600;
}
/* Адаптивность для таблицы */
@media (max-width: 768px) {
  .table-dark-custom {
      font-size: 16px;
  }
  
  .table-dark-custom th,
  .table-dark-custom td {
      padding: 10px 8px;
  }
  
  .table-dark-custom th {
      font-size: 16px;
  }
}

@media (max-width: 576px) {
  .table-responsive {
      border-radius: 8px;
      margin-bottom: 15px;
  }
  
  .table-dark-custom th,
  .table-dark-custom td {
      padding: 8px 6px;
      font-size: 14px;
  }
  
  .table-dark-custom th {
      font-size: 14px;
      padding: 10px 6px;
  }
  
  .table-dark-custom img {
      width: 16px;
      height: 16px;
  }
}

.user-info {
   display: flex;
   align-items: center;
   gap: 12px;
}

.user-avatar {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: var(--primary-color);
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-weight: 600;
}

.payment-system {
   display: flex;
   align-items: center;
   gap: 8px;
}

.payment-icon {
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--darker-bg);
   display: flex;
   align-items: center;
   justify-content: center;
}
        /* Контакты */
        .contacts {
          padding: 80px 0;
          background: var(--darker-bg);
          border-radius: 15px;
          margin: 40px 0;
      }

      .contacts-title {
          text-align: center;
          font-size: 36px;
          margin-bottom: 50px;
          color: var(--primary-color);
      }

      .contacts-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          gap: 30px;
          max-width: 1000px;
          margin: 0 auto;
      }

      .contact-card {
          background: var(--card-bg);
          border-radius: 15px;
          padding: 30px;
          text-align: center;
          transition: all 0.3s ease;
          border: 1px solid var(--border-color);
          box-shadow: var(--shadow);
      }

      .contact-card:hover {
          transform: translateY(-5px);
          border-color: var(--accent-color);
      }

      .contact-icon {
          width: 80px;
          height: 80px;
          background: rgba(66, 139, 202, 0.1);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 auto 25px;
          font-size: 32px;
          color: var(--accent-color);
      }

      .contact-title {
          font-size: 24px;
          margin-bottom: 15px;
          color: var(--text-color);
      }

      .contact-description {
          color: var(--text-muted);
          margin-bottom: 25px;
          line-height: 1.6;
      }

      .contact-button {
          display: inline-flex;
          align-items: center;
          gap: 10px;
          padding: 12px 25px;
          background: var(--accent-color);
          color: white;
          text-decoration: none;
          border-radius: 8px;
          font-weight: 500;
          transition: all 0.3s ease;
      }

      .contact-button:hover {
          background: #d93c3f;
          transform: translateY(-2px);
      }

      .contact-button.telegram {
          background: #0088cc;
      }

      .contact-button.telegram:hover {
          background: #0077b3;
      }

      .contact-button.email {
          background: var(--primary-color);
      }

      .contact-button.email:hover {
          background: #3272b3;
      }

       /* Баннеры */
       .ad-container {
        max-width: 1200px;
        margin: 0 auto 20px;
    }

    .ad-row {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .advert-banner {
        width: 470px;
        height: 62px;
        background: var(--card-bg);
        border: 1px solid var(--primary-color);
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
    }

    .advert-banner:hover {
        border-color: var(--accent-color);
        transform: translateY(-3px);
    }

    .advert-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .plus-button {
        position: absolute;
        top: 0;
        right: 0;
        background: var(--accent-color);
        color: white;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 0 0 5px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .plus-button:hover {
        background: #d93c3f;
        transform: scale(1.1);
    }
    .alert {
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
    }
    .alert-success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    .alert-error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    /* Основной контент */

    .main-content {
        display: flex;
        gap: 20px;
        padding: 20px 0;
    }
    
    .content-area {
        flex: 1;
    }
    
    .sidebar {
        width: 280px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Меню пользователя */
    .mobile-menu-toggle {
        display: none;
    }

    .user-menu-container {
        margin-bottom: 20px;
    }

    .user-menu {
        background: var(--darker-bg);
        border-radius: 10px;
        padding: 15px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
    }

    .user-balance-card {
        background: var(--card-bg);
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
    }

    .balance-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .balance-row:last-child {
        border-bottom: none;
    }

    .balance-label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-muted);
    }

    .balance-value {
        font-weight: 600;
        color: var(--text-color);
    }
    .user-menu-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .menu-button {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
        position: relative;
    }

    .menu-button:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

    .menu-button.has-dropdown::after {
        content: '›';
        position: absolute;
        right: 15px;
        transform: rotate(90deg);
        font-size: 18px;
    }

    .dropdown-button {
        position: relative;
    }

    .dropdown-menu {
        display: none;
        background: var(--darker-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        z-index: 100;
        box-shadow: var(--shadow);
    }

    .dropdown-button.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        display: block;
        padding: 8px 12px;
        color: var(--text-color);
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dropdown-item:hover {
        background: var(--primary-color);
    }

    /* Контент дашборда */
    .dashboard-section {
        background: var(--card-bg);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow);
    }

    .section-header {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .section-icon {
        width: 40px;
        height: 40px;
        background: rgba(66, 139, 202, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--primary-color);
        margin-right: 15px;
    }

    .section-title {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-color);
    }

    .user-data-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .data-card {
        background: var(--darker-bg);
        border-radius: 10px;
        padding: 20px;
        border: 1px solid var(--border-color);
    }

    .data-card-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .data-card-icon {
        width: 30px;
        height: 30px;
        background: rgba(66, 139, 202, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: var(--primary-color);
        margin-right: 10px;
    }

    .data-card-title {
        font-size: 18px;
        font-weight: 500;
        color: var(--text-color);
    }

    .data-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    .data-label {
        color: var(--text-muted);
    }

    .data-value {
        font-weight: 500;
        color: var(--text-color);
    }
   /* Таблицы истории */
   .history-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    padding: 12px 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    background: rgba(66, 139, 202, 0.2);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

.history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

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

.history-table tr:hover {
    background: rgba(66, 139, 202, 0.05);
}

/* Боковые баннеры */
.sidebar-banner {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    margin: 24px;
}

.sidebar-banner:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.sidebar-banner img {
    width: 100%;
    display: block;
}

.sidebar-ad-frame {
    background: var(--darker-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.online-counter {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.online-title {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.online-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

/* Стили для страницы правил */
.rules-page {
    padding: 10px 0 50px;
    min-height: 100vh;
}

.rules-container {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.rules-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    text-align: center;
}

.rules-content {
    padding: 40px;
}

.rules-nav {
    position: sticky;
    top: 100px;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.rules-nav ul {
    list-style: none;
    padding-left: 0;
}

.rules-nav li {
    margin-bottom: 10px;
}

.rules-nav a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

.rules-nav a:hover, .rules-nav a.active {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
}

.rules-section {
    margin-bottom: 40px;
    scroll-margin-top: 120px;
}

.rules-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(108, 99, 255, 0.2);
}

.rules-list {
    list-style-type: none;
    padding-left: 0;
}

.rules-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.rules-list li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

@media (max-width: 768px) {
    .rules-content {
        padding: 20px;
    }
    
    .rules-nav {
        position: static;
        margin-bottom: 20px;
    }
}
/* Стили для страницы FAQ */
.faq-page {
    padding: 10px 0 50px;
    min-height: 100vh;
}

.faq-container {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    text-align: center;
}

.faq-content {
    padding: 40px;
}

.faq-search {
    position: relative;
    margin-bottom: 30px;
}

.faq-search input {
    padding-left: 50px;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    height: 50px;
}

.faq-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 20px;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.faq-category {
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.faq-category:hover,
.faq-category.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(108, 99, 255, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 20px;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-inner {
    padding: 20px 0;
}

.faq-item.active .faq-question {
    background: rgba(108, 99, 255, 0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-contact {
    background: rgba(108, 99, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    display: none;
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #dee2e6;
}

@media (max-width: 768px) {
    .faq-content {
        padding: 20px;
    }
    
    .faq-categories {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .faq-category {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
  
.card-body.title-balance-box {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}

.balance-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}

.btn-theme {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    color: white;
}

.vip-promo {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    border: none;
    color: #343a40;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.vip-promo a {
    color: #343a40;
    font-weight: bold;
    text-decoration: underline;
}

.content-block {
    background: var(--theme-bg);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--theme-border);
}


.stats-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

.filter-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    border-radius: 50px;
    padding-left: 45px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.pagination {
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    color: var(--primary);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    margin: 0 5px;
}

.page-link:hover {
    background: var(--primary);
    color: white;
}

.page-item.active .page-link {
    background: var(--primary);
    color: white;
}
        /* Кнопка открытия сайдбара */
        .sidebar-open-btn {
            display: none;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 3px 20px;
            margin: auto auto;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 300px;
        }
        
        .sidebar-open-btn:hover {
            background: #3272b3;
        }
        .btn-red{
            background: var(--accent-color);
        }
/* Мобильные стили */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 80px 15px 20px;
    }
    
    .content-block {
        padding: 12px;
    }
    
    .title-wrapper {
        gap: 8px;
    }
    
    .info-row {
        flex-direction: column;
        padding: 12px;
    }
    
    .info-left {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .price {
        font-size: 1.4rem;
        text-align: left;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .filter-buttons {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .price {
        font-size: 1.2rem;
    }
    
    .info-item {
        font-size: 12px;
        gap: 6px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}
     
        /* Оверлей для сайдбара */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 998;
        }
        
       /* Адаптивность для мобильных устройств */
       @media (max-width: 992px) {
        .nav-links {
            display: none;
        }
        
        .mobile-menu-btn {
            display: block;
        }
        
        .main-content {
            flex-direction: column;
        }
        
        .sidebar-open-btn {
            display: block;
        }
        
        .sidebar {
            position: fixed;
            top: 0;
            right: -300px;
            width: 280px;
            height: 100vh;
            background: var(--darker-bg);
            z-index: 999;
            padding: 20px;
            overflow-y: auto;
            transition: right 0.3s ease;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        }
        
        .sidebar.active {
            right: 0;
        }
        
        .sidebar-overlay.active {
            display: block;
        }
        
        .user-data-grid {
            grid-template-columns: 1fr;
        }
        
        .promo-form {
            flex-direction: column;
        }
        
        .promo-input {
            border-radius: 8px;
            margin-bottom: 10px;
        }
        
        .promo-button {
            border-radius: 8px;
        }
        
        .dropdown-menu {
            position: static;
            box-shadow: none;
            margin-top: 5px;
        }
    }

 /* +++++++++++карточка задания++++++++++++++ */  
 .task-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #2d2d2d;
    background: linear-gradient(145deg, #2a2a2a, #232323);
}
.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-color: #3d3d3d;
}
.task-header {
    padding: 1.25rem;
    background: var(--darker-bg);
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .task-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.task-footer {
    padding: 0.9rem 1.25rem;
    background: var(--dark-bg);
    font-size: 0.85rem;
    color: #9a9da0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (min-width: 576px) {
    .task-footer {
        flex-direction: row;
        align-items: center;
    }
}
.price {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.2rem;
    margin-top: 10px;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .price {
        margin-top: 0;
        margin-left: 15px;
    }
}
.task-title {
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.4;
    flex: 1;
}
.task-id, .task-url {
    display: flex;
    align-items: center;
    gap: 5px;
}
.task-url a {
    color: #9a9da0;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    transition: color 0.2s;
}
@media (min-width: 768px) {
    .task-url a {
        max-width: 300px;
    }
}
.task-url a:hover {
    color: #5fa8ff;
    text-decoration: underline;
}
.tasks-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}
@media (min-width: 768px) {
    .tasks-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.container-custom {
    max-width: 800px;
    margin: 0 auto;
}
.page-title {
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #3d3d3d;
}
.filter-bar {
    background: var(--darker-bg);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 5px;
    border: 1px solid #3d3d3d;
    align-items: center;
}
.filter-btn {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    color: #c0c4c8;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background-color: #3a3a3a;
    border-color: #5fa8ff;
    color: #ffffff;
}
.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.stat-card {
    background: linear-gradient(145deg, #2a2a2a, #232323);
    border-radius: 10px;
    padding: 15px;
    flex: 1;
    min-width: 150px;
    border: 1px solid #3d3d3d;
    text-align: center;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4cd964;
    margin-bottom: 5px;
}
.stat-label {
    color: #9a9da0;
    font-size: 0.9rem;
}
/* Футер */
footer {
   background: var(--darker-bg);
   border-top: 1px solid var(--border-color);
   padding: 50px 0 30px;
   margin-top: auto;
}

.footer-content {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 40px;
   margin-bottom: 40px;
}

.footer-logo {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 20px;
}

.footer-logo-text {
   font-size: 24px;
   font-weight: 700;
}

.footer-logo-text span:first-child {
   color: white;
}

.footer-logo-text span:last-child {
   color: var(--accent-color);
}

.footer-description {
   color: var(--text-muted);
   margin-bottom: 25px;
}

.social-links {
   display: flex;
   gap: 15px;
}

.social-link {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: var(--card-bg);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-color);
   transition: all 0.3s ease;
   font-size: 18px;
}

.social-link:hover {
   background: var(--primary-color);
   transform: translateY(-3px);
}

.footer-title {
   font-size: 20px;
   margin-bottom: 25px;
   color: var(--primary-color);
   position: relative;
   padding-bottom: 10px;
}

.footer-title:after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 40px;
   height: 3px;
   background: var(--accent-color);
   border-radius: 2px;
}

.footer-links {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.footer-link {
   color: var(--text-muted);
   text-decoration: none;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 10px;
}

.footer-link:hover {
   color: var(--primary-color);
   transform: translateX(5px);
}

.footer-bottom {
   text-align: center;
   padding-top: 30px;
   border-top: 1px solid var(--border-color);
   color: var(--text-muted);
   font-size: 14px;
}

/* Анимации */
@keyframes float {
   0% { transform: translateY(0px); }
   50% { transform: translateY(-20px); }
   100% { transform: translateY(0px); }
}

@keyframes fadeIn {
   from { opacity: 0; transform: translateY(20px); }
   to { opacity: 1; transform: translateY(0); }
}

.animate {
   animation: fadeIn 0.8s ease-out;
}
   /* Адаптивность */
   @media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    

    
    .user-menu-buttons {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .advert-banner {
        width: 100%;
        max-width: 468px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .user-data-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-form {
        flex-direction: column;
    }
    
    .promo-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .promo-button {
        border-radius: 8px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links a {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .history-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
}