@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ==========================================================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И СБРОС (VARIABLES & BASE)
   ========================================================================== */
:root { 
  --bg: #0b1018; 
  --panel: #151c28; 
  --card: #1b2433; 
  --line: rgba(255, 255, 255, 0.075); 
  --text: #f2f4f8; 
  --muted: #9ca8b8; 
  --gold: #d4af37; 
  --blue: #3d82f6; 
  --cyan: #3fd0d4; 
  --vip: #ff4d57; 
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

html { 
  scroll-behavior: smooth; 
}

body { 
  min-width: 320px; 
  color: var(--text); 
  background: var(--bg); 
  font-family: 'Manrope', Arial, sans-serif; 
}

body::before { 
  content: ""; 
  position: fixed; 
  inset: 0; 
  pointer-events: none; 
  z-index: -1; 
  background: 
    radial-gradient(900px 500px at 78% -8%, rgba(61, 130, 246, 0.14), transparent 68%),
    radial-gradient(700px 450px at 8% 30%, rgba(63, 208, 212, 0.08), transparent 70%),
    linear-gradient(120deg, #0b1018, #101725 58%, #0b1018); 
}

a { 
  color: inherit; 
} 

.container { 
  width: min(1320px, calc(100% - 48px)); 
  margin: auto; 
}

.scrollable-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  z-index: 1;
}

/* ==========================================================================
   ФОНОВЫЙ БАННЕР (С ЗАКРУГЛЕНИЯМИ И ZOOM-ЭФФЕКТОМ)
   ========================================================================== */
.brand-hero-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  height: 480px;
  z-index: 0;
  
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

.brand-hero-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

#branding-bg-img,
.brand-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.brand-hero-wrapper:hover #branding-bg-img,
.brand-hero-wrapper:hover .brand-hero-bg {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.brand-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(11, 16, 24, 0.6) 0%, transparent 40%),
    radial-gradient(ellipse at center, transparent 60%, rgba(11, 16, 24, 0.4) 100%);
  pointer-events: none;
}

.brand-hero-text {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-hero-wrapper:hover .brand-hero-text {
  transform: translate(-50%, -50%) scale(1.04);
}

.hero-title-main {
  margin: 0;
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: clamp(38px, 5.5vw, 82px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: #0c1829;
  text-transform: uppercase;
  transform: scaleY(1.12);
  text-shadow: none;
}

.hero-title-sub {
  margin: 12px 0 0 0;
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: clamp(26px, 3.8vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #53667b;
  text-transform: uppercase;
  transform: scaleY(1.08);
}

.accent-l2 {
  color: #2b82fb;
  font-weight: 700;
}

/* ==========================================================================
   ШАПКА САЙТА (HEADER)
   ========================================================================== */
.main-header { 
  position: relative;
  top: 0;
  z-index: 100;
  width: min(1320px, calc(100% - 48px)); 
  margin: 0 auto; 
  padding: 6px 20px; 
  border: 1px solid var(--line); 
  border-top: none; 
  border-bottom-left-radius: 16px; 
  border-bottom-right-radius: 16px; 
  background: rgba(21, 28, 40, 0.88); 
  backdrop-filter: blur(16px); 
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.logo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.brand-icon-new {
  width: 34px; 
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.22));
  transition: 0.25s;
}

.main-logo-img {
  height: 22px; 
  width: auto;
  object-fit: contain;
}

.logo-img-link:hover .brand-icon-new {
  transform: translateY(-2px) rotate(-3deg);
}

.logo-subtitle {
  font-size: 9px; 
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: -2px;
}

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

.lang-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.lang-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 10px 'Manrope', sans-serif;
  padding: 6px 7px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

.lang-switcher button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px; 
  font-size: 11px;
  border-radius: 7px;
  background: linear-gradient(135deg, #e2bd4d, #b2861e);
  color: #18150c;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.16);
  transition: 0.25s;
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   СЕТКА КОЛОНОК И ТАБЛИЦ (80% / 20%)
   ========================================================================== */
.tables-layout-three-col { 
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 48px)); 
  margin: 300px auto 70px;
  display: grid; 
  grid-template-columns: 1fr 280px; 
  gap: 16px; 
}

.main-tables-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(27, 36, 51, 0.9), rgba(18, 25, 36, 0.9));
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.04);
  align-items: start; 
}

.tables-column {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  height: fit-content;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 14px;
}

.column-header h2, 
.column-title {
  margin: 0;
  font: 600 16px 'Unbounded', 'Manrope', sans-serif;
  color: var(--text);
  letter-spacing: -0.045em;
}

.column-header h2::before,
.column-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.tables-column:nth-child(2) .column-title::before {
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.cards-list,
.servers-grid-list {
  display: grid;
  gap: 8px; 
  padding: 0;
}

.server-item {
  position: relative;
  min-height: 52px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  padding: 6px 10px; 
  background: rgba(20, 24, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.server-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.055), transparent 30%);
  pointer-events: none;
}

.server-item:hover {
  transform: translateY(-2px) scale(1.005);
  border-color: rgba(61, 130, 246, 0.65);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 24px rgba(61, 130, 246, 0.1), inset 0 1px rgba(255, 255, 255, 0.08);
}

.server-main-info, 
.server-right-side {
  position: relative;
  z-index: 1;
}

.server-main-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.server-badge {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.badge-normal {
  background: rgba(61, 130, 246, 0.16);
  color: #9ac2ff;
  border: 1px solid rgba(61, 130, 246, 0.32);
}

.badge-top {
  background: linear-gradient(135deg, #f0d36c, #b48622);
  color: #1e190b;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.18);
}

.badge-vip {
  background: linear-gradient(135deg, #ff6b72, #bd2634);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 77, 87, 0.2);
}

.server-name-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.server-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-meta-text {
  color: var(--muted);
  font-size: 11px;
}

.server-right-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.server-rate-value {
  font: 700 14px 'Unbounded', sans-serif;
  color: #c5d8fb;
}

/* ==========================================================================
   ПЛАШКИ ДАТ / СТАТУСОВ СТАРТА
   ========================================================================== */
.server-date-badge {
  padding: 6px 10px;
  border-radius: 8px;
  font: 800 10px 'Manrope', sans-serif;
  text-align: center;
  color: #b8d1ff;
  background: rgba(61, 130, 246, 0.12);
  border: 1px solid rgba(61, 130, 246, 0.25);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Плашка СЕГОДНЯ */
.date-badge-today {
  color: #18150c;
  background: linear-gradient(135deg, #f0d36c, #d4af37);
  border: 1px solid #e2bd4d;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

/* Плашка ЗАВТРА с подсветкой */
.date-badge-tomorrow {
  color: #06181a;
  background: linear-gradient(135deg, #4ef2f7, #3fd0d4);
  border: 1px solid #3fd0d4;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(63, 208, 212, 0.5);
  animation: glow-pulse 2s infinite ease-in-out;
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 10px rgba(63, 208, 212, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(63, 208, 212, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(63, 208, 212, 0.4);
  }
}

/* Плашка ЧЕРЕЗ НЕДЕЛЮ */
.date-badge-week {
  color: #9ac2ff;
  background: rgba(61, 130, 246, 0.2);
  border: 1px solid rgba(61, 130, 246, 0.45);
  font-weight: 800;
}

.row-top {
  border-color: rgba(212, 175, 55, 0.36);
  background: linear-gradient(110deg, rgba(212, 175, 55, 0.16), rgba(20, 24, 36, 0.8) 52%);
}

.row-top:hover {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 28px rgba(212, 175, 55, 0.16);
}

.row-vip {
  border-color: rgba(255, 77, 87, 0.42);
  background: linear-gradient(110deg, rgba(255, 77, 87, 0.13), rgba(20, 24, 36, 0.8) 52%);
}

.loading, 
.empty-info {
  padding: 30px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   БОКОВАЯ КОЛОНКА (SIDEBAR)
   ========================================================================== */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card.filter-widget {
  padding: 16px 14px;
  background: rgba(21, 28, 40, 0.78);
  border: 1px solid var(--line);
  border-radius: 17px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-btn {
  flex: 1 1 auto;
  min-width: 60px;
  text-align: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 10px;
  font: 700 11px/1 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tag-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(63, 208, 212, 0.4);
}

.tag-btn.active {
  color: #071417;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(63, 208, 212, 0.3);
}

.sidebar-ad-banner {
  width: 100%;
  min-height: 400px;
  display: flex;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sidebar-ad-banner a { 
  flex: 1; 
  display: block; 
  width: 100%; 
}

.ad-banner-img { 
  width: 100%; 
  height: 100%; 
  display: block; 
  object-fit: cover; 
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar-ad-banner:hover .ad-banner-img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ==========================================================================
   ПОДВАЛ САЙТА (FOOTER)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 48px 24px;
  background: rgba(4, 7, 12, 0.38);
}

.footer-container {
  width: min(1320px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-logo {
  font: 600 22px 'Unbounded', sans-serif;
  text-decoration: none;
}

.logo-accent {
  color: var(--gold);
}

.footer-desc, 
.footer-links a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   УВЕДОМЛЕНИЯ И МОДАЛЬНЫЕ ОКНА (TOASTS & MODALS)
   ========================================================================== */
.toast-container {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.toast {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151c28;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  font-size: 12px;
}

.toast.success {
  border-color: rgba(63, 208, 212, 0.4);
}

.toast.error {
  border-color: rgba(255, 77, 87, 0.5);
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 300;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.76);
  backdrop-filter: blur(7px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: min(560px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #151c28;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.modal-close {
  float: right;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}

.modal-title {
  margin: 0 0 15px;
  font: 600 20px 'Unbounded', sans-serif;
}

.modal-body-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */
@media(max-width: 1024px) {
  .brand-hero-wrapper {
    height: 420px;
  }
  .tables-layout-three-col {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 240px;
  }
  .sidebar-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 800px) {
  .brand-hero-wrapper {
    height: 360px;
  }
  .main-header, 
  .tables-layout-three-col, 
  .container { 
    width: calc(100% - 28px); 
  }
  .tables-layout-three-col {
    margin-top: 180px;
  }
  .main-tables-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .logo-subtitle { 
    display: none; 
  }
  .sidebar-column {
    display: flex;
    flex-direction: column;
  }
  .footer-container { 
    grid-template-columns: 1fr 1fr; 
  }
  .footer-brand { 
    grid-column: 1 / -1; 
  }
}

@media(max-width: 480px) {
  .brand-hero-wrapper {
    height: 280px;
  }
  .tables-layout-three-col {
    margin-top: 120px;
  }
  .header-actions { 
    gap: 8px; 
  }
  .btn-add { 
    padding: 10px; 
    font-size: 0; 
  }
  .btn-add i { 
    font-size: 15px; 
  }
  .lang-switcher button { 
    padding: 6px 5px; 
  }
  .main-logo-img { 
    height: 23px; 
  }
  .brand-icon-new { 
    width: 35px; 
    height: 35px; 
  }
  .server-item { 
    padding: 10px; 
    min-height: 58px; 
  }
  .server-right-side { 
    align-items: flex-end; 
    flex-direction: column; 
    gap: 4px; 
  }
  .server-rate-value { 
    font-size: 12px; 
  }
  .footer-container { 
    grid-template-columns: 1fr; 
  }
  .footer-brand { 
    grid-column: auto; 
  }
}
/* Состояние заблокированной карточки */
.tariff-main-card.disabled-card {
  opacity: 0.65;
  pointer-events: none; /* Запрещает любые клики по элементам карточки */
}

/* Серый стиль для неактивных кнопок */
.tariff-main-card.disabled-card .disabled-btn,
.disabled-btn {
  background: #374151 !important; /* Тёмно-серый цвет */
  color: #9ca3af !important;      /* Светло-серый текст */
  border-color: #4b5563 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}