/* ============================================
   CS2 Game Store - Основные стили
   Адаптивная верстка
   ============================================ */

:root {
    --primary-color: #1b2838;
    --secondary-color: #66c0f4;
    --accent-color: #171a21;
    --text-color: #c7d5e0;
    --text-muted: #8f98a0;
    --bg-color: #1e2329;
    --card-bg: #2a475e;
    --border-color: #3d4450;
    --success-color: #5cb85c;
    --error-color: #d9534f;
    --warning-color: #f0ad4e;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Светлая тема */
[data-theme="light"] {
    --primary-color: #ffffff;
    --secondary-color: #093558;
    --accent-color: #eaecef;
    --text-color: #1b2838;
    --text-muted: #5b636a;
    --bg-color: #f6f7f9;
    --card-bg: #ffffff;
    --border-color: #d0d4d8;
    --success-color: #4cae4c;
    --error-color: #d9534f;
    --warning-color: #f0ad4e;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.theme-switcher {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 1em;
}

.theme-switcher p {
    margin-right: 1em;
    color: var(--text-color);
}

/* Контейнер */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* Скрытый чекбокс */
.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Слайдер */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #3d4450;
    border-radius: 30px;
    transition: .3s;
}

/* Кружок */
.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

/* При включении */
.theme-toggle input:checked + .slider {
    background: var(--secondary-color);
}

.theme-toggle input:checked + .slider::before {
    transform: translateX(24px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ============================================
   Header
   ============================================ */

.header {
    background: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--card-bg);
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: var(--text-color);
}

.credits {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: #4fb3d4;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ============================================
   Shop Page
   ============================================ */

.shop-layout {
    display: grid;
    gap: 2rem;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filters-card h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    flex: 1;
}

.products-section {
    min-height: 400px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-count {
    color: var(--text-muted);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: var(--text-muted);
    font-size: 3rem;
}

.product-info.card {
    padding: 1.5rem;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    color: var(--text-color);
    font-size: 1.25rem;
}

.product-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-price {
    margin-top: auto;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.loading i {
    font-size: 2rem;
    margin-right: 1rem;
}

/* ============================================
   Product Page
   ============================================ */

.product-page {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-items: center;
}

.product-main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-main-image.no-image {
    flex-direction: column;
    color: var(--text-muted);
}

.product-sound {
    margin-top: 1rem;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    gap: 1rem;
}

.meta-label {
    font-weight: bold;
    color: var(--text-muted);
    min-width: 120px;
}

.meta-value {
    color: var(--text-color);
}

.product-main-image.no-image p {
    text-align: center;
}

.product-description {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 8px;
}

.product-description h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.product-purchase {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 8px;
}

.container.hero {
    padding: 1rem;
    text-align: left;
    margin-bottom: 0;
}

.product-uniq {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.user-balance {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 4px;
}

.insufficient-funds {
    color: var(--error-color);
    font-size: 0.875rem;
}

.purchase-btn {
    width: 100%;
}

/* ============================================
   Profile Page
   ============================================ */

.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.profile-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    margin-bottom: 1rem;
}

.profile-info h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.steam-id {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.balance-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 8px;
}

.balance-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.purchases-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.purchases-section h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.purchase-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 8px;
    transition: var(--transition);
}

.purchase-item:hover {
    background: var(--border-color);
}

.purchase-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-image i {
    font-size: 2rem;
    color: var(--text-muted);
}

.purchase-info {
    flex: 1;
}

.purchase-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.purchase-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.purchase-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
}

.status-pending {
    background: var(--warning-color);
    color: #000;
}

.status-completed {
    background: var(--success-color);
    color: #fff;
}

.status-failed {
    background: var(--error-color);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* TopUp */

.amount-input {
    width: 100%;
    padding: 0.6rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    border-width: thin;
    border-color: var(--accent-color);
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 1rem;
}

p.topup-sub {
    color: var(--text-muted);
}

.topup-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.payment-success {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
/* ============================================
   Home Page
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding: 4rem 0;
    background: var(--card-bg);
    margin-bottom: 4rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 2.5rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button,
.pagination a {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover,
.pagination a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.pagination .active {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* ============================================
   Notification
   ============================================ */

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    box-shadow: var(--shadow);
    z-index: 10000;
    display: none;
    max-width: 400px;
}

.notification.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   home
   ============================================ */

.rules {
    -ms-flex-wrap: wrap;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: 3em;
    margin-left: 3em;
    flex-direction: column;
}

.rules ul {
    margin-left: 3em;
    padding-bottom: 2em;
    padding-top: 2em;
}

hero-content img {
    height: auto;        /* сохранить пропорции */
    padding-top: 1em;
    padding-bottom: 1em;
    object-fit: contain;
    display: block;      
}

.logo-img {
    width: 95%;         /* картинка под ширину контейнера */
   /* убрать лишние пробелы от inline-элемента */
}

.img-fluid {
    max-width: 95%;  
}

.rules p {
    padding-top: 1em;
}

.terminal-line{
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, var(--panel), rgba(0, 0, 0, 0.25));
    padding: 1em 2em;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(56, 255, 107, 0.06);
    min-width: 360px;
    background-color: var(--bg-color);
}

.prompt{
    color:var(--muted);
    font-size:13px;
    margin-right:6px;
    user-select:none;
}

.server-text{
    font-size:15px;
    color:var(--text);
    letter-spacing:0.6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.spacer{flex:1}

.btn-copy{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:transparent;
    border:1px solid rgba(124,252,108,0.08);
    padding:6px 10px;
    border-radius:10px;
    cursor:pointer;
    color:var(--text);
    font-size:14px;
    transition:transform .08s ease, background .12s ease;
    backdrop-filter: blur(4px);
}

.btn-copy:active{transform:translateY(1px)}
.btn-copy:hover{background:rgba(56,255,107,0.02)}

.btn-copy .fa-copy{width:14px;text-align:center}

.copied{
    display:inline-flex;
    gap:8px;
    align-items:center;
    padding:6px 10px;
    border-radius:10px;
    background:linear-gradient(90deg, rgba(56,255,107,0.06), rgba(0,0,0,0));
    border:1px solid rgba(56,255,107,0.12);
    color:var(--accent);
    font-size:13px;
}

/* subtle terminal cursor animation next to server text */
.cursor{
    width:8px;
    height:18px;
    margin-left:8px;
    background:linear-gradient(180deg,var(--text), #a7ffb6);
    animation:blink 1.2s steps(2,start) infinite;
    border-radius:2px;
    opacity:.9;
}

@keyframes blink{50%{opacity:0}}

@media (max-width:420px) {
    .terminal-line{min-width:240px;padding:10px}
    .server-text{font-size:14px}
}


@media (max-width: 575.98px) {
  .table-responsive-sm {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; }
    .table-responsive-sm > .table-bordered {
      border: 0; } }

@media (max-width: 767.98px) {
  .table-responsive-md {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; }
    .table-responsive-md > .table-bordered {
      border: 0; } }

@media (max-width: 991.98px) {
  .table-responsive-lg {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; }
    .table-responsive-lg > .table-bordered {
      border: 0; } }

@media (max-width: 1199.98px) {
  .table-responsive-xl {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; }
    .table-responsive-xl > .table-bordered {
      border: 0; } }

.align-middle {
  vertical-align: middle !important; }

.text-center {
  text-align: center !important; }

.table {
  width: 100%;
  margin-bottom: 1.5rem;
  color: var(--text-color); 
}
  .table th,
  .table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6; }
  .table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6; }
  .table tbody + tbody {
    border-top: 2px solid #dee2e6; }

.table-sm th,
.table-sm td {
  padding: 0.3rem; }

.table-bordered {
  border: 1px solid #dee2e6; }
  .table-bordered th,
  .table-bordered td {
    border: 1px solid #dee2e6; }
  .table-bordered thead th,
  .table-bordered thead td {
    border-bottom-width: 2px; }

.table-borderless th,
.table-borderless td,
.table-borderless thead th,
.table-borderless tbody + tbody {
  border: 0; }

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05); }

.table-hover tbody tr:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.075); }

.table-primary,
.table-primary > th,
.table-primary > td {
  background-color: #bdece8; }

.table-primary th,
.table-primary td,
.table-primary thead th,
.table-primary tbody + tbody {
  border-color: #84dcd4; }

.table-hover .table-primary:hover {
  background-color: #a9e6e1; }
  .table-hover .table-primary:hover > td,
  .table-hover .table-primary:hover > th {
    background-color: #a9e6e1; }

.table-secondary,
.table-secondary > th,
.table-secondary > td {
  background-color: #ced7f1; }

.table-secondary th,
.table-secondary td,
.table-secondary thead th,
.table-secondary tbody + tbody {
  border-color: #a3b5e6; }

.table-hover .table-secondary:hover {
  background-color: #bac7eb; }
  .table-hover .table-secondary:hover > td,
  .table-hover .table-secondary:hover > th {
    background-color: #bac7eb; }

.table-success,
.table-success > th,
.table-success > td {
  background-color: #c3e6cb; }

.table-success th,
.table-success td,
.table-success thead th,
.table-success tbody + tbody {
  border-color: #8fd19e; }

.table-hover .table-success:hover {
  background-color: #b1dfbb; }
  .table-hover .table-success:hover > td,
  .table-hover .table-success:hover > th {
    background-color: #b1dfbb; }

.table-info,
.table-info > th,
.table-info > td {
  background-color: #f1f1f1; }

.table-info th,
.table-info td,
.table-info thead th,
.table-info tbody + tbody {
  border-color: #e4e4e4; }

.table-hover .table-info:hover {
  background-color: #e4e4e4; }
  .table-hover .table-info:hover > td,
  .table-hover .table-info:hover > th {
    background-color: #e4e4e4; }

.table-warning,
.table-warning > th,
.table-warning > td {
  background-color: #ffeeba; }

.table-warning th,
.table-warning td,
.table-warning thead th,
.table-warning tbody + tbody {
  border-color: #ffdf7e; }

.table-hover .table-warning:hover {
  background-color: #ffe8a1; }
  .table-hover .table-warning:hover > td,
  .table-hover .table-warning:hover > th {
    background-color: #ffe8a1; }

.table-danger,
.table-danger > th,
.table-danger > td {
  background-color: #f5c6cb; }

.table-danger th,
.table-danger td,
.table-danger thead th,
.table-danger tbody + tbody {
  border-color: #ed969e; }

.table-hover .table-danger:hover {
  background-color: #f1b0b7; }
  .table-hover .table-danger:hover > td,
  .table-hover .table-danger:hover > th {
    background-color: #f1b0b7; }

.table-light,
.table-light > th,
.table-light > td {
  background-color: #fcfcfc; }

.table-light th,
.table-light td,
.table-light thead th,
.table-light tbody + tbody {
  border-color: #f9f9f9; }

.table-hover .table-light:hover {
  background-color: #efefef; }
  .table-hover .table-light:hover > td,
  .table-hover .table-light:hover > th {
    background-color: #efefef; }

.table-dark,
.table-dark > th,
.table-dark > td {
  background-color: #bdbdbd; }

.table-dark th,
.table-dark td,
.table-dark thead th,
.table-dark tbody + tbody {
  border-color: #858585; }

.table-hover .table-dark:hover {
  background-color: #b0b0b0; }
  .table-hover .table-dark:hover > td,
  .table-hover .table-dark:hover > th {
    background-color: #b0b0b0; }

.table-active,
.table-active > th,
.table-active > td {
  background-color: rgba(0, 0, 0, 0.075); }

.table-hover .table-active:hover {
  background-color: rgba(0, 0, 0, 0.075); }
  .table-hover .table-active:hover > td,
  .table-hover .table-active:hover > th {
    background-color: rgba(0, 0, 0, 0.075); }

.table .thead-dark th {
  color: #fff;
  background-color: #343a40;
  border-color: #454d55; }

.table .thead-light th {
  color: #495057;
  background-color: #e9ecef;
  border-color: #dee2e6; }

.table-dark {
  color: #fff;
  background-color: #343a40; }
  .table-dark th,
  .table-dark td,
  .table-dark thead th {
    border-color: #454d55; }
  .table-dark.table-bordered {
    border: 0; }
  .table-dark.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05); }
  .table-dark.table-hover tbody tr:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.075); }

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; }
  .table-responsive > .table-bordered {
    border: 0; }
    
.pt-3{
  padding-top: 1.5rem !important; }

  
.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px; }

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important; }

.mb-0 {
  margin-bottom: 0 !important; }

.d-flex {
  display: -ms-flexbox !important;
  display: flex !important; }

.align-items-center {
  -ms-flex-align: center !important;
      align-items: center !important; }

a {
  color:var(--secondary-color);
  text-decoration: none;
  background-color: transparent; }
a:hover {
  color:var(--secondary-color);
    text-decoration: underline; }

.col-12 {
  -ms-flex: 0 0 100%;
      flex: 0 0 100%;
  max-width: 100%; }    

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,
.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,
.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,
.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,
.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,
.col-xl-auto {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px; }

.col-sm-12 {
    -ms-flex: 0 0 100%;
        flex: 0 0 100%;
    max-width: 100%; }

.col-md-8 {
    -ms-flex: 0 0 66.66667%;
        flex: 0 0 66.66667%;
    max-width: 66.66667%; }

blockquote {
    border: 1px solid #adb5bd;
    page-break-inside: avoid; }

.mr-auto,
.mx-auto {
  margin-right: auto !important; }

.mb-auto,
.my-auto {
  margin-bottom: auto !important; }

.ml-auto,
.mx-auto {
  margin-left: auto !important; }

.pr-3,
.px-3 {
  padding-right: 1.5rem !important; }

.pb-3,
.py-3 {
  padding-bottom: 1.5rem !important; }

.pl-3,
.px-3 {
  padding-left: 1.5rem !important; }

.col-3 {
  -ms-flex: 0 0 25%;
      flex: 0 0 25%;
  max-width: 25%; }

.col-sm-3 {
    -ms-flex: 0 0 25%;
        flex: 0 0 25%;
    max-width: 25%; }

.col-md-2 {
    -ms-flex: 0 0 16.66667%;
        flex: 0 0 16.66667%;
    max-width: 16.66667%; }

.justify-content-center {
  -ms-flex-pack: center !important;
      justify-content: center !important; }

.d-block {
  display: block !important; }

.rounded-circle {
  border-radius: 50% !important; }
/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--primary-color);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.desktop-user {
    display: flex;
}

.mobile-user {
    display: none;
}

.nav-item {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--card-bg);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

/* ============================================
   Teams
   ============================================ */
.teams-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.map-title {
    margin-bottom: 15px;
    color: var(--text-color);
}

.teams-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Блок команды */
.team-block,
.spectators-block {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.team-block h4,
.spectators-block h4 {
    margin-bottom: 10px;
}

.team-block.t h4 {
    color: var(--warning-color);
}

.team-block.ct h4 {
    color: var(--secondary-color);
}

/* Списки */
.team-block ul,
.spectators-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-block li,
.spectators-block li {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    background: var(--accent-color);
    margin-bottom: 5px;
    border-radius: 6px;
    color: var(--text-color);
}

.team-block li:last-child,
.spectators-block li:last-child {
    margin-bottom: 0;
}

/* Цветовые акценты команд */

.spectators-block h4 {
    color: var(--text-muted);
}

/* Адаптив */
@media (max-width: 768px) {
    .teams-row {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .topup-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .user-info {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
        flex-direction: column;
        background: var(--bg-color);
        padding: 15px;
        border-radius: 10px;
        position: absolute;
        top: 70px;
        right: 15px;
        left: 15px;
        z-index: 1000;
    }

    .nav.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .btn-copy .btn-label {
        display: none;
    }

    .desktop-user {
        display: none;
    }

    .mobile-user {
        display: flex;
        margin-top: 15px;
        padding: 10px;
        border-radius: 10px;
    }

     .dropdown-menu {
        position: relative;
        border: none;
        border-radius: 0;
        background: none;
        padding: 0;
        min-width: 0;
    }

    .dropdown-item {
        padding-left: 20px;
    }

    .dropdown-toggle.open {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
