/* =========================================================
   VPNworkRF - 2000s Internet Service Provider (ISP) Styling
   ========================================================= */

.isp-main-container {
  max-width: 980px;
  margin: 15px auto 50px auto;
  padding: 0 10px;
  position: relative;
  z-index: 20;
}

/* ISP Header Banner (Dial-Up / 2000s Web Style) */
.isp-header-banner {
  background: linear-gradient(180deg, #001040 0%, #003399 50%, #001850 100%);
  border-bottom: 2px solid #ffcc00;
  padding: 8px 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 #3366cc;
}

.isp-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.isp-logo-emblem {
  background: #ffffff;
  border: 1px solid #ffcc00;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.isp-logo-emblem svg,
.isp-logo-emblem img {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 2px;
}

.isp-company-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffde00;
  text-shadow: 2px 2px 0px #000000;
  font-family: 'Arial Black', Impact, sans-serif;
}

.isp-company-subtitle {
  font-size: 13px;
  color: #cce0ff;
  letter-spacing: 0.5px;
}

.isp-header-badges {
  display: flex;
  gap: 8px;
}

.isp-badge {
  background: #ffcc00;
  color: #000000;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 7px;
  border: 1px solid #ffffff;
  text-shadow: none;
  box-shadow: 1px 1px 0 #000;
}

/* Marquee News Ticker */
.isp-marquee-container {
  background: #ffffcc;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 3px 0;
  font-size: 13px;
  color: #990000;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
}

.isp-marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* Main Windows 2000 Window Container */
#mainWindow.win-window {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 212px);
  max-height: calc(100vh - 212px);
  min-height: 480px;
}

#mainWindow > .win-titlebar,
#mainWindow .win-titlebar {
  cursor: default;
}

#mainWindow #btnWinMin,
#mainWindow #btnWinMax,
#mainWindow #btnWinClose {
  cursor: default;
}

#mainWindow #btnWinMin:active,
#mainWindow #btnWinMax:active,
#mainWindow #btnWinClose:active {
  border-top: 1px solid var(--win-btn-light);
  border-left: 1px solid var(--win-btn-light);
  border-right: 1px solid var(--win-btn-dark-shadow);
  border-bottom: 1px solid var(--win-btn-dark-shadow);
  padding: 0;
}

#mainWindow .win-window-body {
  padding: 6px 8px 6px 8px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#mainWindow .win-statusbar {
  margin: 6px 0 2px 0;
  padding: 0;
  flex-shrink: 0;
}

.provider-full {
  display: inline;
}

.provider-short {
  display: none;
}

/* Main Layout Grid */
.isp-content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 10px;
  margin-top: 0;
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  .isp-content-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 7. На мобильных: скрыть "Навигатор" и перенести "Индикатор сети" вниз под "Добро пожаловать в сеть" */
  .isp-sidebar {
    display: contents !important;
  }

  .sidebar-navigator {
    display: none !important;
  }

  .home-main-welcome {
    order: 1 !important;
  }

  .sidebar-network-indicator {
    order: 2 !important;
    margin-top: 4px !important;
  }

  .sidebar-action-btn {
    order: 3 !important;
    margin-top: 4px !important;
  }

  /* 1. Убрать подзаголовок провайдера из шапки на узких экранах */
  .isp-company-subtitle {
    display: none !important;
  }

  /* 2. Убрать бейдж ГОСТ 2000 на узких экранах */
  .badge-gost {
    display: none !important;
  }

  /* 3. Убрать нижнюю шапку (счетчик и копирайт) на узких экранах */
  .isp-footer {
    display: none !important;
  }

  /* 4. Сократить "Провайдер: «VPNworkRF» (РФ)" до «VPNworkRF» */
  .provider-full {
    display: none !important;
  }

  .provider-short {
    display: inline !important;
  }

  /* 5. Убрать "Поддержка: 24/7" из статусбара на узких экранах */
  .status-pane-support {
    display: none !important;
  }

  /* 6. Обеспечить корректное отображение и работу меню Пуск и панели задач на мобильных */
  .win-taskbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 32px !important;
    height: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    z-index: 5000 !important;
  }

  #startMenu {
    position: fixed !important;
    bottom: 32px !important;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
    left: 2px !important;
    width: 240px !important;
    max-width: calc(100vw - 10px) !important;
    z-index: 6000 !important;
  }

  /* 10. Горизонтальный скролл вкладок меню */
  .win-tabs {
    flex-shrink: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  .win-tabs::-webkit-scrollbar {
    display: none !important;
  }

  /* 12. Статусбар на мобильных */
  .win-statusbar {
    flex-shrink: 0 !important;
    display: flex !important;
    gap: 3px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 150 !important;
  }

  .win-status-pane {
    font-size: 11.5px !important;
    padding: 2px 5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
  }

  .status-pane-speed, .status-pane-proto {
    flex-shrink: 0 !important;
  }

  .win-desktop-icons {
    display: none !important;
  }

  /* 13. Адаптация формы заказа и модального окна под мобильные экраны и альбомную ориентацию */
  #orderModal .win-window {
    width: calc(100vw - 16px) !important;
    max-width: 540px !important;
    max-height: calc(100vh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    margin: auto !important;
  }

  #orderModal .win-window-body {
    padding: 8px 6px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  .order-payment-option {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .order-payment-option-badges {
    margin-left: 24px !important;
    flex-wrap: wrap !important;
  }

  .payment-row {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
}

@media (max-width: 480px) {
  .order-form-actions {
    flex-direction: column-reverse !important;
    gap: 6px !important;
  }

  .order-form-actions button {
    width: 100% !important;
  }

  .address-optional-banner {
    padding: 6px !important;
    margin: 6px 0 !important;
  }

  .address-optional-heading {
    font-size: 12px !important;
  }

  .address-optional-sub {
    font-size: 11.5px !important;
  }

  .payment-actions-row {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .payment-actions-row a,
  .payment-actions-row button {
    width: 100% !important;
    text-align: center !important;
  }

  .success-actions-row {
    flex-direction: column-reverse !important;
    gap: 6px !important;
  }

  .success-actions-row a,
  .success-actions-row button {
    width: 100% !important;
    text-align: center !important;
  }
}

/* =============================================================
   8. БЛОКИРОВКА СКРОЛЛА СТРАНИЦЫ — ТОЛЬКО В ПОРТРЕТНОМ РЕЖИМЕ
   ============================================================= */
@media (orientation: portrait) and (max-width: 768px) {
  html, body {
    overflow: hidden !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    max-height: 100dvh !important;
    overscroll-behavior: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
  }

  .isp-main-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 34px !important;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 4px 4px 0 4px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 100 !important;
  }

  .isp-main-container > .win-outset {
    flex-shrink: 0 !important;
    margin-bottom: 4px !important;
  }

  /* Запрет перетаскивания и фиксация основного окна в портретном режиме */
  #mainWindow.win-window {
    flex: 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    overflow: hidden !important;
  }

  #mainWindow .win-window-body {
    padding: 6px 6px 4px 6px !important;
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #mainWindow .win-titlebar {
    cursor: default !important;
    touch-action: none !important;
    user-select: none !important;
  }

  #mainWindow .win-title-btn {
    cursor: default !important;
  }

  /* Независимый вертикальный скролл содержимого окна в портретном режиме */
  .win-tab-viewport {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    padding-right: 12px !important;
  }

  .isp-footer {
    display: none !important;
  }
}

/* =============================================================
   9. ТЕЛЕФОНЫ И УЗКИЕ ЭКРАНЫ В ШИРОКОФОРМАТНОМ / ЛАНДШАФТНОМ РЕЖИМЕ:
   СКРОЛЛ ВСЕЙ СТРАНИЦЫ НЕ БЛОКИРУЕТСЯ, ОКНО НЕ СЖИМАЕТСЯ, СТАТУСБАР ВНИЗУ ОКНА
   ============================================================= */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    position: static !important;
    overscroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .isp-main-container {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    width: 98% !important;
    max-width: 980px !important;
    margin: 6px auto 46px auto !important; /* 46px отступ снизу, чтобы контент не перекрывался Пуском */
    padding: 0 4px !important;
    display: block !important;
    overflow: visible !important;
  }

  .isp-main-container > .win-outset {
    margin-bottom: 6px !important;
  }

  #mainWindow.win-window {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    display: block !important;
    overflow: visible !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }

  #mainWindow .win-window-body {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: block !important;
    overflow: visible !important;
    padding: 8px 8px 6px 8px !important;
  }

  #mainWindow .win-titlebar {
    cursor: default !important;
    user-select: none !important;
  }

  #mainWindow .win-title-btn {
    cursor: default !important;
  }

  .win-tab-viewport {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    flex: none !important;
    display: block !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .win-statusbar {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    display: flex !important;
  }

  .isp-footer {
    display: none !important;
  }
}

/* Mobile landscape / narrow screens in widescreen mode */
@media (max-height: 600px) {
  .isp-footer {
    display: none !important;
  }
}

/* Sidebar Navigation */
.isp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.isp-nav-menu {
  list-style: none;
}

.isp-nav-item {
  margin-bottom: 4px;
}

.isp-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e0e0e0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 5px 8px;
  color: #000080;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}

.isp-nav-link:hover, .isp-nav-link.active {
  background: #000080;
  color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

/* Highlight boxes */
.isp-info-callout {
  background: #eef7ff;
  border: 1px dashed #0066cc;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.isp-alert-callout {
  background: #fff8dc;
  border: 1px solid #d4af37;
  padding: 8px;
  margin-bottom: 10px;
}

/* Pricing Cards */
.tariffs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0;
}

@media (max-width: 600px) {
  .tariffs-grid {
    grid-template-columns: 1fr;
  }
}

.tariff-card {
  background: #f4f4f4;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tariff-card.featured {
  background: #fdfae8;
  border-color: #ff9900 #000 #000 #ff9900;
  box-shadow: 0 0 6px rgba(255, 153, 0, 0.4);
}

.tariff-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: #cc0000;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border: 1px solid #ffcc00;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.tariff-name {
  font-size: 16px;
  font-weight: bold;
  color: #000080;
  margin-bottom: 6px;
}

.tariff-price {
  font-size: 24px;
  font-weight: 900;
  color: #cc0000;
  font-family: 'Arial Black', Impact, sans-serif;
  margin: 4px 0 8px 0;
}

.tariff-price span {
  font-size: 13px;
  font-weight: normal;
  color: #333;
}

.tariff-features {
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 12px 0;
  border-top: 1px dotted #aaa;
  padding-top: 8px;
}

.tariff-features li {
  position: relative;
  padding-left: 16px;
}

.tariff-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #008000;
  font-weight: bold;
}

/* Service Badges (YouTube, TikTok, etc.) */
.service-icons-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.service-pill {
  background: #ffffff;
  border: 1px solid #808080;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 1px 1px 0 #dfdfdf;
}

.service-pill.yt { color: #ff0000; }
.service-pill.tt { color: #000000; }
.service-pill.ig { color: #c13584; }
.service-pill.tg { color: #0088cc; }
.service-pill.gpt { color: #10a37f; }

/* Country list table */
.win-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13px;
}

.win-table th {
  background: #d4d0c8;
  border: 1px solid #808080;
  padding: 4px 6px;
  text-align: left;
  font-weight: bold;
}

.win-table td {
  border: 1px solid #dfdfdf;
  padding: 4px 6px;
}

.win-table tr:hover td {
  background: #f0f6ff;
}

.ping-good {
  color: #008000;
  font-weight: bold;
}

/* Address form notice */
.address-optional-banner {
  background: #fff3cd;
  border: 2px dashed #e0a800;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
}

.address-optional-heading {
  font-size: 14px;
  font-weight: 900;
  color: #856404;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.address-optional-sub {
  font-size: 13px;
  color: #533f03;
  margin-top: 4px;
}

/* Payment Instructions Box */
.payment-details-box {
  background: #ffffe0;
  border: 2px solid #cc0000;
  padding: 12px;
  margin: 10px 0;
}

.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 14px;
}

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

.payment-row strong {
  font-size: 15px;
  color: #990000;
}

.payment-number-highlight {
  font-size: 18px;
  font-weight: 900;
  color: #000080;
  font-family: 'Courier New', monospace;
  background: #ffffff;
  padding: 2px 8px;
  border: 1px solid #808080;
}

/* Countdown & Progress */
.countdown-box {
  text-align: center;
  margin: 12px 0;
}

.countdown-timer {
  font-size: 26px;
  font-family: 'Courier New', monospace;
  font-weight: 900;
  color: #000080;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #fff;
}

/* VPN Success Link Box */
.vpn-key-display {
  background: #1e1e1e;
  color: #00ff66;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  padding: 10px;
  border: 2px inset #808080;
  word-break: break-all;
  user-select: all;
  margin: 8px 0;
  max-height: 100px;
  overflow-y: auto;
}

/* Web 2000s Footer Counter */
.isp-footer {
  text-align: center;
  padding: 5px 0;
  font-size: 13px;
  color: #ffffff;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 1px 1px 2px #000, 0 0 5px rgba(0, 0, 0, 0.95);
  margin-top: 12px;
  box-sizing: border-box;
}

.isp-footer-counter {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.counter-digits {
  display: inline-flex;
  background: #000000;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 16px;
  padding: 2px 7px;
  border: 1px solid #808080;
  letter-spacing: 2px;
  text-shadow: none;
  vertical-align: middle;
}

.isp-footer-copyright {
  margin-top: 0;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.isp-footer-sub {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.95;
  letter-spacing: 0.2px;
}

/* =========================================================
   WIDESCREEN PC DISPLAYS (16:9, 16:10, 21:9 - min-aspect-ratio: 1.4)
   - For 4:3 displays: dimensions remain strictly 1:1 original size
   - For Widescreen PC screens: expands header and main window in width & length/height
   ========================================================= */

@media screen and (min-aspect-ratio: 1.4) and (min-width: 1200px) {
  /* Enlarge container width on widescreen */
  .isp-main-container {
    max-width: 1380px;
    width: calc(100% - 160px);
    margin: 10px auto 0 auto;
    padding: 0 10px;
  }

  /* Fixed bottom footer above Taskbar / Start menu - aligned from button to scrollbar */
  .isp-footer {
    position: fixed;
    bottom: 34px;
    z-index: 50;
    text-align: center;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
    backdrop-filter: none;
    box-sizing: border-box;
    padding: 5px 0;
  }

  .isp-footer-counter {
    font-size: 15px;
  }

  .counter-digits {
    font-size: 17px;
    padding: 2px 8px;
  }

  .isp-footer-copyright {
    font-size: 14px;
    margin-top: 0;
  }

  .isp-footer-sub {
    font-size: 12.5px;
    margin-top: 3px;
  }

  /* Header banner */
  .isp-header-banner {
    padding: 10px 18px;
  }

  .isp-logo-wrap {
    gap: 14px;
  }

  .isp-logo-emblem {
    padding: 2px;
  }

  .isp-logo-emblem svg,
  .isp-logo-emblem img {
    width: 54px;
    height: 54px;
  }

  .isp-company-title {
    font-size: 22px;
    letter-spacing: 1.5px;
  }

  .isp-company-subtitle {
    font-size: 13px;
    letter-spacing: 0.8px;
    margin-top: 2px;
  }

  .isp-header-badges {
    gap: 10px;
  }

  .isp-badge {
    font-size: 13px;
    padding: 4px 10px;
  }

  .isp-marquee-container {
    padding: 4px 0;
    font-size: 13px;
  }

  /* Window reaches down to the fixed bottom footer */
  #mainWindow.win-window {
    height: calc(100vh - 222px);
    max-height: calc(100vh - 222px);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .win-titlebar {
    height: 28px;
    padding: 3px 8px;
    font-size: 15px;
  }

  .win-title-icon {
    width: 18px;
    height: 18px;
  }

  .win-title-btn {
    width: 18px;
    height: 16px;
    font-size: 11px;
    line-height: 14px;
  }

  .win-menubar {
    padding: 4px 10px;
    font-size: 14px;
    gap: 6px;
  }

  .win-tabs {
    gap: 4px;
    padding-left: 10px;
    margin-bottom: 8px;
  }

  .win-tab-btn {
    padding: 6px 18px;
    font-size: 14px;
  }

  #mainWindow .win-window-body {
    padding: 8px 12px 6px 12px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .win-tab-viewport {
    padding-right: 15px;
  }

  .tab-content-pane {
    min-height: 100%;
  }

  /* Grid layout in widescreen */
  .isp-content-grid {
    grid-template-columns: 280px 1fr;
    gap: 16px;
    margin-top: 0;
  }

  .isp-sidebar {
    gap: 8px;
  }

  .sidebar-navigator {
    margin-bottom: 8px;
  }

  .sidebar-network-indicator {
    margin-bottom: 8px;
  }

  .isp-nav-item {
    margin-bottom: 4px;
  }

  .isp-nav-link {
    padding: 8px 12px;
    font-size: 14px;
    gap: 8px;
  }

  .win-fieldset {
    padding: 14px;
    margin-bottom: 12px;
  }

  .win-legend {
    font-size: 15px;
    padding: 0 8px;
  }

  .isp-info-callout {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .isp-alert-callout {
    padding: 10px 14px;
    margin-bottom: 12px;
  }

  .tariffs-grid {
    gap: 16px;
    margin: 10px 0;
  }

  .tariff-card {
    padding: 16px;
  }

  .tariff-name {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .tariff-price {
    font-size: 26px;
    margin: 4px 0 10px 0;
  }

  .tariff-features {
    font-size: 14px;
    line-height: 1.7;
    margin: 10px 0 14px 0;
    padding-top: 8px;
  }

  .service-icons-strip {
    gap: 8px;
    margin: 10px 0;
  }

  .service-pill {
    padding: 4px 10px;
    font-size: 13px;
  }

  .win-table th, .win-table td {
    padding: 6px 10px;
    font-size: 14px;
  }

  .win-statusbar {
    margin-top: 6px;
    margin-bottom: 8px;
    padding: 0 4px;
  }

  .win-status-pane {
    padding: 3px 8px;
    font-size: 14px;
  }

  /* Order modal on widescreen */
  .win-modal-overlay .win-window {
    width: 620px;
  }
}

/* Низкие широкоформатные разрешения ПК (например, 1280x720): скрыть нижнюю шапку и адаптировать окно */
@media screen and (min-width: 1100px) and (min-aspect-ratio: 1.4) and (max-height: 760px) {
  .isp-footer {
    display: none !important;
  }

  #mainWindow.win-window {
    height: calc(100vh - 165px) !important;
    max-height: calc(100vh - 165px) !important;
  }
}

/* =============================================================
   10. ЛИЧНЫЙ КАБИНЕТ: ПОДПИСКА И РЕФЕРАЛЬНАЯ СИСТЕМА
   Полная аутентичность стилям и шрифтам Windows 2000
   ============================================================= */
.sub-content-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.sub-table-label {
  width: 150px;
  background: #d4d0c8;
  font-weight: bold;
  color: #000000;
  padding: 5px 8px;
}

.sub-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.promo-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.promo-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.promo-link-row input {
  width: 250px;
  min-width: 0;
  font-size: 13px;
}

/* Мобильная адаптация подписки и реферальной системы:
   предотвращение переполнения по ширине и наезда на бар прокрутки */
@media (max-width: 768px) {
  .sub-content-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  #tab-subscription table.win-table {
    width: 100% !important;
  }

  .sub-table-label {
    width: 110px !important;
    min-width: 95px !important;
  }

  #subKeyInput {
    min-width: 0 !important;
    width: 100% !important;
  }

  .btn-copy-responsive .btn-copy-label {
    display: none !important;
  }

  .btn-copy-responsive {
    padding: 3px 8px !important;
    min-width: 34px !important;
    text-align: center !important;
  }

  .sub-action-buttons {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .sub-action-buttons button {
    width: 100% !important;
  }

  #tab-referral .win-legend {
    white-space: normal !important;
  }

  .referral-stats-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .promo-link-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .promo-link-row input {
    width: 100% !important;
  }
}

.sub-gauge-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
}

.sub-gauge-svg {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}

.sub-gauge-bg-circle {
  fill: none;
  stroke: #d4d0c8;
  stroke-width: 12;
}

.sub-gauge-progress-circle {
  fill: none;
  stroke: #000080;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

.sub-gauge-progress-circle.inactive {
  stroke: #808080 !important;
}

.sub-gauge-center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.promo-code-val {
  font-family: var(--win-font-fixed);
  font-size: 14px;
  font-weight: bold;
  background: #ffffcc;
  border: 1px solid #808080;
  padding: 3px 8px;
  letter-spacing: 1px;
  color: #000080;
}

.promo-empty-link {
  color: #0000cc;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
  font-style: italic;
  font-size: 14px;
}

.promo-empty-link:hover {
  color: #cc0000;
}

@media screen and (min-aspect-ratio: 1.4) and (min-width: 1600px) {
  .isp-main-container {
    max-width: 1560px;
    width: calc(100% - 180px);
    margin: 12px auto 0 auto;
  }

  .isp-footer {
    bottom: 34px;
    padding: 5px 0;
  }

  .isp-footer-counter {
    font-size: 16px;
  }

  .counter-digits {
    font-size: 18px;
  }

  .isp-footer-copyright {
    font-size: 14.5px;
  }

  .isp-footer-sub {
    font-size: 13px;
  }

  .isp-header-banner {
    padding: 12px 22px;
  }

  .isp-logo-emblem svg,
  .isp-logo-emblem img {
    width: 60px;
    height: 60px;
  }

  .isp-company-title {
    font-size: 25px;
    letter-spacing: 2px;
  }

  .isp-company-subtitle {
    font-size: 14px;
  }

  .isp-badge {
    font-size: 14px;
    padding: 5px 12px;
  }

  #mainWindow.win-window {
    height: calc(100vh - 235px);
    max-height: calc(100vh - 235px);
  }

  #mainWindow .win-window-body {
    padding: 10px 14px 6px 14px;
  }

  .isp-content-grid {
    grid-template-columns: 320px 1fr;
    gap: 20px;
  }

  .tariff-card {
    padding: 18px;
  }

  .tariff-name {
    font-size: 19px;
  }

  .tariff-price {
    font-size: 28px;
  }

  .tariff-features {
    font-size: 14px;
  }

  .win-table th, .win-table td {
    padding: 8px 12px;
    font-size: 14px;
  }
}
