/* === REDSPORTED GLOBAL ZERO-OUTLINE & TAP-HIGHLIGHT RESET === */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

*:focus,
*:focus-visible,
*:active {
  outline: none !important;
}

a,
button,
input,
select,
textarea,
.nav-button,
.info-card-link,
.info-card,
.pro-tab-btn,
.pro-sidebar-btn,
.ad-rotator-dot,
.filter-pill,
.cat-pill,
.ad-link,
.featured-app-btn {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

a:focus, a:active, a:focus-visible,
button:focus, button:active, button:focus-visible,
.nav-button:focus, .nav-button:active, .nav-button:focus-visible,
.info-card-link:focus, .info-card-link:active, .info-card-link:focus-visible,
.info-card:focus, .info-card:active, .info-card:focus-visible,
.pro-tab-btn:focus, .pro-tab-btn:active, .pro-tab-btn:focus-visible,
.pro-sidebar-btn:focus, .pro-sidebar-btn:active, .pro-sidebar-btn:focus-visible,
.ad-rotator-dot:focus, .ad-rotator-dot:active, .ad-rotator-dot:focus-visible,
.cat-pill:focus, .cat-pill:active, .cat-pill:focus-visible {
  outline: none !important;
  outline-color: transparent !important;
  outline-width: 0 !important;
  outline-style: none !important;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: url('../images/bg.png') no-repeat center center fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: #fff;
  overflow-x: hidden;
}
header {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  background-color: rgba(20, 20, 30, 0.85);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.left-side {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  width: 40px;
  height: 40px;
}
.site-name {
  font-size: 20px;
  font-weight: bold;
}
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}
.nav-button:hover {
  background: linear-gradient(90deg, #ff1a1a, #ff4d4d, #cc0000, #ff1a1a);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: redPulse 2.5s linear infinite;
}
.nav-button-pro {
  background: linear-gradient(90deg, #ff1a1a, #ff4d4d, #cc0000, #ff1a1a);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: redPulse 2.5s linear infinite;
}
@keyframes redPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.language-select { display: flex; align-items: center; gap: 10px; }
#lang-selector-top { background-color: rgba(30,30,40,0.9); border: 1px solid #ff1a1a; color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 14px; cursor: pointer; }
#lang-selector-top option { background-color: #20202a; color: #fff; }
#lang-selector-top:focus { outline: none; }
.center-copy { margin-right: 6.77vw; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.center-copy .back-button, .center-copy .link-button, .center-copy .copyright { pointer-events: auto; }
.center-copy .copyright { font-size: 14px; color: #ccc; pointer-events: auto; white-space: nowrap; }
.back-button { margin-right: 6.77vw; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; cursor: pointer; border-radius: 5px; transition: background 0.3s, transform 0.2s; background: transparent; border: none; }
.back-button:hover { transform: scale(1.1); }
.back-icon { width: 30px; height: 30px; display: block; }
.link-button { margin-right: 3vw; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; cursor: pointer; border-radius: 5px; transition: background 0.3s, transform 0.2s; background: transparent; border: none; }
.link-button:hover { transform: scale(1.1); }
.link-icon { width: 30px; height: 30px; display: block; }
.profile-section { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
#profile-name { color: #ccc; font-size: 14px; transition: color 0.3s ease; white-space: nowrap; }
.profile-section:hover #profile-name { color: #ff1a1a; }
.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;  
  gap: 20px;
}
.sidebar.left-ads { position: fixed; top: 70px; left: 0; width: 16.302%; height: 92vh; z-index: 999; box-shadow: 0 0 20px rgba(0, 0, 0, 1); }
.sidebar.right-ads { position: fixed; top: 70px; right: 0; width: 16.302%; height: 92vh; z-index: 999; box-shadow: 0 0 20px rgba(0, 0, 0, 1); }
.ad-link { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }
.ad-block { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 0; }
.ad-block img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-overlay-text { position: absolute; top: 30px; left: 0; width: 100%; padding: 0 12px; text-align: center; color: #fff; font-size: 18px; line-height: 1.4; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); box-sizing: border-box; }
.ad-subtitle { position: absolute; bottom: 30px; left: 0; width: 100%; padding: 0 12px; text-align: center; color: #fff; font-size: 20px; line-height: 1.3; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); box-sizing: border-box; }
.quad-wrapper {
  width: calc(100vw - 34.5vw);
  max-width: 1360px;
  min-width: 0;
  margin: 24px auto 60px auto;
  display: flex;
  gap: 2.77vh 1.56vw;
  justify-content: center;
  padding: 0 14px;
  box-sizing: border-box;
}
.column {
  flex: 1;
  width: 30vw;
  display: flex;
  flex-direction: column;
  gap: 2.77vh 1.56vw;
}
.day-box {
  position: relative;
  background: radial-gradient(ellipse 95% 70% at 50% 0%, rgba(0, 255, 136, 0.08) 0%, rgba(14, 16, 23, 0.98) 70%, rgba(10, 11, 16, 0.99) 100%);
  border-radius: 16px;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.28);
  width: 100%;
  height: 60.5vh;
  min-height: 480px;
  max-height: 620px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.day-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 255, 136, 0.25);
  border-color: rgba(0, 255, 136, 0.6);
}
.day-box .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.92) 100%);
  z-index: 1;
}
.day-box h3 {
  position: relative;
  z-index: 2;
  margin: 18px 20px 12px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.day-box ul, .day-box .comments-container {
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0 18px 16px 18px;
  margin: 0 0 8px 0;
  color: #ddd;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #00ff88 transparent;
}
.day-box ul::-webkit-scrollbar,
.day-box .comments-container::-webkit-scrollbar {
  width: 6px;
}
.day-box ul::-webkit-scrollbar-track,
.day-box .comments-container::-webkit-scrollbar-track {
  background: transparent;
}
.day-box ul::-webkit-scrollbar-thumb,
.day-box .comments-container::-webkit-scrollbar-thumb {
  background-color: #00ff88;
  border-radius: 3px;
}
.day-box ul li {
  margin-bottom: 8px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  transition: all 0.22s ease;
}
.day-box ul li:last-child { border-bottom: none; }
.day-box ul li:hover,
.day-box ul li.clickable:hover {
  color: #00ff88;
  transform: translateX(4px);
  cursor: pointer;
}
.comments-container p { margin-bottom: 10px; font-size: 16px; line-height: 1.4; }
@media (max-width: 1000px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    overflow-y: visible !important;
    background-attachment: scroll !important;
  }
  body {
    background-attachment: scroll !important;
  }

  body {
    padding-bottom: 75px !important;
    box-sizing: border-box;
    display: block !important;
    text-align: left !important;
  }

  .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px 40px 14px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }

  .quad-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Completely hide desktop bilateral ad sidebars on mobile */
  .sidebar.left-ads,
  .sidebar.right-ads {
    display: none !important;
  }

  /* Generator Form & Accordions Mobile Responsiveness */
  .generator-view {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .generator-header {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
  }

  .generator-header h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  .generator-header .header-actions {
    width: 100% !important;
  }

  .generator-header .action-btn {
    width: 100% !important;
    padding: 13px !important;
    font-size: 15px !important;
    justify-content: center !important;
  }

  .accordion-header {
    padding: 14px 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  .accordion-content-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 12px 4px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
  }

  .form-group.full-width {
    grid-column: span 1 !important;
  }

  .form-group label {
    font-size: 13px !important;
    text-align: left !important;
  }

  .form-group select,
  .form-group input:not([type="range"]) {
    padding: 12px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
  }

  .multiselect-container {
    gap: 6px !important;
    padding: 2px 0 !important;
  }

  .multiselect-tag {
    padding: 7px 12px !important;
    font-size: 13px !important;
  }

  /* Plan View Dual Columns become 1-column stack */
  .plan-view-container,
  .columns-dual-grid,
  .plan-columns-wrapper {
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .plan-view-container > .column,
  .columns-dual-grid .column,
  .plan-columns-wrapper .column,
  .plan-columns-wrapper .column#left-column,
  .plan-columns-wrapper .column#right-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    gap: 16px !important;
  }

  .plan-columns-wrapper .right-settings-panel,
  .right-settings-panel {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    position: static !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }

  /* Responsive Synergy Banners on Mobile */
  .cross-sell-banner,
  .synergy-banner-box,
  .synergy-teaser-box,
  .synergy-connected-pill,
  .synergy-sync-box {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px 14px !important;
    gap: 12px !important;
  }
  .cross-sell-banner .action-btn,
  .synergy-banner-box .action-btn,
  .synergy-teaser-box .action-btn,
  .synergy-connected-pill .action-btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }


  .info-icon {
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 6px !important;
  }

  .param-modal-close,
  .day-modal-close {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  .day-box {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    box-sizing: border-box !important;
    padding-bottom: 14px !important;
  }

  .day-box h3 {
    font-size: 18px !important;
    margin: 14px 16px 8px !important;
    text-align: left !important;
  }

  .day-box ul,
  .day-box .comments-container {
    margin: 0 16px 12px 16px !important;
    padding-left: 16px !important;
    max-height: none !important;
    text-align: left !important;
  }

  .day-box ul li {
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 6px 0 !important;
    text-align: left !important;
  }

  .plan-hud-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }

  .hud-left,
  .hud-right {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .hud-btn {
    flex: 1 1 auto !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    justify-content: center !important;
  }

  .settings-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }

  .auth-modal {
    width: 95% !important;
    max-width: 440px !important;
    padding: 24px 16px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .auth-modal h2 {
    font-size: 20px !important;
  }

  .auth-modal p {
    font-size: 13.5px !important;
    margin-bottom: 16px !important;
  }

  /* Header on Mobile */
  header .center-copy,
  header .language-select,
  header .site-logo,
  header a.site-logo {
    display: none !important;
  }

  header {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    padding: 8px 10px !important;
    background-color: rgba(15, 17, 26, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
  }

  .left-side {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .nav-buttons {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 8px !important;
    padding: 2px 4px !important;
    box-sizing: border-box !important;
  }

  .nav-buttons::-webkit-scrollbar {
    display: none !important;
  }

  .nav-button {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .nav-button:hover,
  .nav-button:active {
    background: rgba(255, 26, 26, 0.22) !important;
    border: none !important;
    outline: none !important;
  }
}
/* ===== BUY PLAN SPECIFIC ===== */
.generator-view {
  width: 100%;
  background: transparent;
  border-radius: 12px;
  padding: 0; /* Видалив падінги щоб було на всю ширину */
  box-sizing: border-box;
  box-shadow: none;
  max-height: 90vh;
  overflow-y: auto;
}
.generator-view::-webkit-scrollbar { width: 8px; }
.generator-view::-webkit-scrollbar-thumb { background-color: #888; border-radius: 4px; }
.generator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}
.generator-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}
.profile-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1a1a1a;
  border: 2px solid #ff1a1a;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.profile-section:hover .avatar-circle {
  border-color: #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 26, 26, 0.6);
}
#profile-name {
  color: #ff3333;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  text-shadow: 0 0 8px rgba(255, 26, 26, 0.4);
}
.profile-section:hover #profile-name {
  color: #ff6666;
  text-shadow: 0 0 12px rgba(255, 26, 26, 0.8);
}
.action-btn {
  background: linear-gradient(90deg, #ff1a1a, #cc0000);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}
.action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 26, 26, 0.6);
}
.action-btn.secondary {
  background: rgba(18, 20, 28, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 26, 26, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  margin-left: 10px;
}
.action-btn.secondary:hover {
  background: rgba(26, 28, 40, 0.98);
  border-color: #ff1a1a;
  box-shadow: 0 0 15px rgba(255, 26, 26, 0.35);
  color: #ffffff;
}
.accordions-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-item {
  background: rgba(16, 17, 23, 0.85);
  border: 1px solid rgba(255, 26, 26, 0.22);
  border-left: 3px solid rgba(255, 26, 26, 0.5);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item:hover {
  border-color: rgba(255, 26, 26, 0.45);
  border-left-color: #ff1a1a;
  background: rgba(22, 23, 30, 0.95);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 26, 26, 0.18);
}
.accordion-item.active {
  border-color: rgba(255, 26, 26, 0.65);
  border-left-color: #ff1a1a;
  background: rgba(20, 21, 28, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 26, 26, 0.28);
}
.accordion-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  user-select: none;
}
.accordion-header:hover {
  color: #ff4d4d;
  background: rgba(255, 26, 26, 0.08);
}
.accordion-item.active .accordion-header {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255, 26, 26, 0.22) 0%, rgba(20, 21, 28, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 26, 26, 0.32);
  text-shadow: 0 0 8px rgba(255, 26, 26, 0.4);
}
.accordion-header::after {
  content: '\25BC';
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, color 0.3s ease;
}
.accordion-item.active .accordion-header::after {
  transform: rotate(-180deg);
  color: #ff1a1a;
  filter: drop-shadow(0 0 4px rgba(255, 26, 26, 0.8));
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.accordion-content-inner {
  padding: 16px 18px;
  color: #ddd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: rgba(10, 12, 18, 0.55);
}
.nested-accordion-item {
  border-top: 1px solid rgba(255, 26, 26, 0.2);
  background: rgba(14, 16, 24, 0.5);
}
.nested-accordion-header {
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  transition: all 0.25s ease;
}
.nested-accordion-header:hover {
  background: rgba(255, 26, 26, 0.08);
  color: #fff;
}
.nested-accordion-header::after {
  content: '\25BC';
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}
.nested-accordion-item.active .nested-accordion-header::after {
  transform: rotate(-180deg);
  color: #ff1a1a;
}
.nested-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(7, 9, 14, 0.6);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full-width {
  grid-column: span 2;
}
.form-group label {
  font-weight: 600;
  color: #cbd5e1;
  font-size: 13.5px;
  letter-spacing: 0.1px;
}
.form-group select, .form-group input:not([type="range"]), .form-group textarea {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 2px solid rgba(255, 26, 26, 0.45);
  background: rgba(13, 14, 19, 0.92);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  width: 100%;
}
.form-group select:hover, .form-group input:not([type="range"]):hover, .form-group textarea:hover {
  border-color: rgba(255, 26, 26, 0.4);
  border-left-color: #ff4d4d;
  background: rgba(18, 19, 26, 0.95);
}
.form-group select:focus, .form-group input:not([type="range"]):focus, .form-group textarea:focus {
  outline: none;
  border-color: #ff1a1a;
  border-left: 3px solid #ff1a1a;
  background: rgba(16, 17, 23, 1);
  box-shadow: 0 0 14px rgba(255, 26, 26, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}
.form-group select option {
  background-color: #121318;
  color: #ffffff;
  padding: 8px;
}
.form-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff1a1a;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.7);
  border: 2px solid #ffffff;
  transition: all 0.2s ease;
}
.form-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(255, 26, 26, 0.95);
}
.multiselect-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color 0.3s;
}
.multiselect-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.multiselect-tag:hover {
  background: rgba(255, 26, 26, 0.12);
  border-color: rgba(255, 26, 26, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.multiselect-tag.active {
  background: linear-gradient(90deg, rgba(255, 26, 26, 0.3), rgba(204, 0, 0, 0.25));
  border-color: #ff1a1a;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.35);
  font-weight: 600;
}
.multiselect-tag i {
  display: none;
  font-size: 11px;
  color: #ff4d4d;
}
.multiselect-tag.active i {
  display: inline-block;
}
/* ===== PLAN VIEW CONTAINER & BANNERS ===== */
.plan-view-container {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}

#fully-open-toggle-bar {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  gap: 12px !important;
}

#plan-synergy-banner {
  width: 100% !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#plan-synergy-banner > * {
  margin-bottom: 0 !important;
}

#nutrition-daily-targets-banner {
  width: 100% !important;
  margin: 0 0 20px 0 !important;
  box-sizing: border-box !important;
}

/* ===== PLAN COLUMNS WRAPPER (SIDE-BY-SIDE OR 2-COL FULL) ===== */
.plan-columns-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* CRITICAL: Never wrap on desktop! */
  align-items: flex-start !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 24px !important;
  box-sizing: border-box !important;
}

/* ========================================================
   STRICT SIDE-BY-SIDE VS FULLY-OPEN LAYOUT CONTROL
   ======================================================== */
.plan-view-container.fully-open .right-settings-panel,
.plan-columns-wrapper.fully-open .right-settings-panel {
  display: none !important;
}

.plan-view-container:not(.fully-open) #right-column,
.plan-columns-wrapper:not(.fully-open) #right-column {
  display: none !important;
}

/* In fully-open mode: two equal 50/50 card columns */
.plan-view-container.fully-open .plan-columns-wrapper .column,
.plan-columns-wrapper.fully-open .column {
  flex: 1 1 0 !important;
  width: 50% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}

/* In edit/settings mode: left column takes remaining space, right-settings takes fixed/responsive width */
.plan-columns-wrapper .column#left-column,
.plan-columns-wrapper > .column:first-child {
  flex: 1 1 0 !important;
  min-width: 280px !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}

.plan-columns-wrapper .right-settings-panel {
  flex: 0 0 420px !important;
  width: 420px !important;
  min-width: 320px !important;
  max-width: 440px !important;
  display: block !important;
  position: sticky !important;
  top: 90px !important;
  max-height: calc(100vh - 110px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: linear-gradient(175deg, rgba(16, 17, 23, 0.98) 0%, rgba(9, 10, 14, 0.99) 100%);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 255, 136, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Direct fallback if plan-columns-wrapper is missing */
.plan-view-container > .column {
  flex: 1 1 0 !important;
  min-width: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}

.plan-view-container > .right-settings-panel {
  flex: 0 0 420px !important;
  width: 420px !important;
  min-width: 320px !important;
  max-width: 440px !important;
  position: sticky !important;
  top: 90px !important;
  max-height: calc(100vh - 110px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  background: linear-gradient(175deg, rgba(16, 17, 23, 0.98) 0%, rgba(9, 10, 14, 0.99) 100%);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 255, 136, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Top fields row (Language, Specific conditions) */
.top-fields-row {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 22px !important;
  padding: 18px 20px !important;
  background: linear-gradient(135deg, rgba(18, 19, 25, 0.9) 0%, rgba(10, 11, 15, 0.96) 100%) !important;
  border: 1px solid rgba(0, 255, 136, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 0 16px rgba(0, 255, 136, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.right-settings-panel::-webkit-scrollbar {
  width: 6px;
}
.right-settings-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 26, 26, 0.45);
  border-radius: 3px;
}
.right-settings-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 26, 26, 0.75);
}

.panel-controls {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(12, 13, 17, 0.75);
  border: 1px solid rgba(255, 26, 26, 0.22);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.5);
}

.panel-controls .action-btn {
  width: 100%;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  margin-left: 0;
}

#fully-open-btn {
  background: linear-gradient(135deg, #ff1a1a 0%, #b30000 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ff4d4d !important;
  box-shadow: 0 4px 18px rgba(255, 26, 26, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
#fully-open-btn:hover {
  background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%) !important;
  box-shadow: 0 6px 24px rgba(255, 26, 26, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

.panel-controls .action-btn.secondary {
  background: rgba(20, 21, 28, 0.9);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-left: 0;
}
.panel-controls .action-btn.secondary:hover {
  background: rgba(28, 29, 38, 0.98);
  border-color: rgba(255, 26, 26, 0.55);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 26, 26, 0.35);
  transform: translateY(-1px);
}

.right-settings-panel .accordion-item {
  margin-bottom: 12px;
  background: rgba(16, 17, 23, 0.88);
  border: 1px solid rgba(255, 26, 26, 0.2);
  border-left: 3px solid rgba(255, 26, 26, 0.48);
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.right-settings-panel .accordion-item:hover {
  border-color: rgba(255, 26, 26, 0.45);
  border-left-color: #ff1a1a;
  background: rgba(22, 23, 30, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 0 10px rgba(255, 26, 26, 0.16);
}

.right-settings-panel .accordion-item.active {
  background: rgba(20, 21, 28, 0.98);
  border-color: rgba(255, 26, 26, 0.65);
  border-left-color: #ff1a1a;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 26, 26, 0.25);
}

.right-settings-panel .accordion-header {
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 16px;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.right-settings-panel .accordion-header:hover {
  color: #ff4d4d;
  background: rgba(255, 26, 26, 0.08);
}

.right-settings-panel .accordion-item.active .accordion-header {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(255, 26, 26, 0.22) 0%, rgba(20, 21, 28, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 26, 26, 0.32);
  text-shadow: 0 0 8px rgba(255, 26, 26, 0.4);
}

.right-settings-panel .accordion-content-inner {
  grid-template-columns: 1fr;
  padding: 14px 16px;
  gap: 14px;
  background: rgba(10, 11, 15, 0.85);
  border-top: 1px solid rgba(255, 26, 26, 0.15);
}

.right-settings-panel .form-group.full-width {
  grid-column: span 1;
}

#revisions-counter-btn {
  margin-top: 14px;
  text-align: center;
  color: #ff3333;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  padding: 10px 16px;
  background: rgba(255, 26, 26, 0.08);
  border: 1px dashed rgba(255, 26, 26, 0.35);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#revisions-counter-btn:hover {
  background: rgba(255, 26, 26, 0.16);
  border-color: #ff1a1a;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 26, 26, 0.3);
  transform: translateY(-1px);
}

.columns-dual-grid {
  display: flex;
  width: 100%;
  gap: 1.56vw;
  align-items: flex-start;
}

.columns-dual-grid .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.77vh 1.56vw;
  min-width: 0;
}

/* ===== NUTRITION MEAL ITEMS & BADGES ===== */
.day-box ul {
  padding: 0 18px 16px 18px;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #00ff88 transparent;
}

.meal-item-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #00ff88;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.meal-item-row:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.4);
  border-left-color: #00ffaa;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.meal-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meal-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
}

.meal-cals-badge {
  font-size: 12px;
  font-weight: 700;
  color: #ff4d4d;
  background: rgba(255, 26, 26, 0.12);
  border: 1px solid rgba(255, 26, 26, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
}

.meal-item-desc {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.45;
  font-weight: 500;
}

.meal-macros-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.macro-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.macro-chip.p {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.macro-chip.f {
  background: rgba(255, 187, 0, 0.1);
  color: #ffbb00;
  border: 1px solid rgba(255, 187, 0, 0.25);
}

.macro-chip.c {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Daily Targets HUD Banner */
.daily-targets-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.12) 0%, rgba(14, 16, 23, 0.98) 75%, rgba(10, 11, 16, 0.99) 100%);
  border: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 136, 0.15);
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.target-stat-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.target-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.target-stat-val {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.target-stat-card:nth-child(1) .target-stat-val { color: #ff3333; text-shadow: 0 0 10px rgba(255,51,51,0.4); }
.target-stat-card:nth-child(2) .target-stat-val { color: #00ff88; text-shadow: 0 0 10px rgba(0,255,136,0.4); }
.target-stat-card:nth-child(3) .target-stat-val { color: #ffbb00; text-shadow: 0 0 10px rgba(255,187,0,0.4); }
.target-stat-card:nth-child(4) .target-stat-val { color: #38bdf8; text-shadow: 0 0 10px rgba(56,189,248,0.4); }
.target-stat-card:nth-child(5) .target-stat-val { color: #60a5fa; text-shadow: 0 0 10px rgba(96,165,250,0.4); }

.target-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 5px;
  letter-spacing: 0.8px;
  font-weight: 700;
}

/* Synergy Connected Pill & Banners */
.synergy-connected-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(10, 12, 16, 0.95) 100%);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.synergy-sync-box {
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.08) 0%, rgba(14, 16, 22, 0.95) 100%);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

/* Slide-out Settings Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
}

.settings-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(14, 16, 24, 0.96);
  border-left: 1px solid rgba(255, 26, 26, 0.4);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.settings-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}

.drawer-close-btn:hover {
  color: #ff1a1a;
}

.drawer-actions {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.revisions-status-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.hud-tag-link {
  background: rgba(255, 26, 26, 0.15);
  border: 1px solid rgba(255, 26, 26, 0.3);
  color: #ff4d4d;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.hud-tag-link:hover {
  background: #ff1a1a;
  color: #fff;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-content::-webkit-scrollbar {
  width: 6px;
}

.drawer-content::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 3px;
}

/* Print Stylesheet */
@media print {
  header, .sidebar, .plan-hud-toolbar, .settings-drawer, .drawer-backdrop, .auth-overlay, #google_translate_element {
    display: none !important;
  }
  body, .main-wrapper, .quad-wrapper {
    background: #fff !important;
    color: #000 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .columns-dual-grid {
    display: block !important;
  }
  .columns-dual-grid .column {
    display: block !important;
    width: 100% !important;
  }
  .day-box {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    margin-bottom: 20px !important;
    height: auto !important;
  }
  .day-box .card-overlay {
    display: none !important;
  }
  .day-box h3 {
    color: #c00 !important;
  }
  .day-box ul li {
    color: #111 !important;
    border-bottom: 1px solid #eee !important;
  }
}
/* Info Icon and Modal */
.info-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  margin-left: 10px;
}
.info-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}
.param-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
.param-modal-content {
  background: radial-gradient(ellipse 95% 60% at 50% 0%, rgba(255, 26, 26, 0.22) 0%, rgba(16, 17, 24, 0.98) 70%, rgba(10, 11, 16, 0.99) 100%);
  border: 1px solid rgba(255, 26, 26, 0.55);
  border-left: 4px solid #ff1a1a;
  border-radius: 20px;
  padding: 30px 26px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.92), 0 0 35px rgba(255, 26, 26, 0.28);
  color: #fff;
  position: relative;
}
.param-modal-close {
  color: #888;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.param-modal-close:hover,
.param-modal-close:focus {
  color: #ff1a1a;
  text-decoration: none;
}
#param-modal-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  color: #ff1a1a;
}
#param-modal-text {
  font-size: 16px;
  line-height: 1.5;
  color: #ccc;
}
/* Auth Modal */
.auth-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-overlay.show {
  opacity: 1;
}
.auth-modal {
  background: radial-gradient(ellipse 95% 60% at 50% 0%, rgba(255, 26, 26, 0.22) 0%, rgba(16, 17, 24, 0.98) 70%, rgba(10, 11, 16, 0.99) 100%);
  border: 1px solid rgba(255, 26, 26, 0.55);
  border-left: 4px solid #ff1a1a;
  border-radius: 22px;
  padding: 38px 28px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.92), 0 0 35px rgba(255, 26, 26, 0.28);
  color: #fff;
  max-width: 440px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.auth-overlay.show .auth-modal {
  transform: translateY(0);
}
.auth-modal h2 {
  margin-top: 0;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 26, 26, 0.4);
  margin-bottom: 15px;
}
.auth-modal p {
  color: #e2e8f0;
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.55;
}
.google-login-btn {
  position: relative;
  background: rgba(22, 24, 34, 0.9);
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: 50px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.google-login-btn:hover {
  border-color: #ff1a1a;
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.4);
  background: rgba(30, 32, 46, 0.98);
}
.google-login-btn img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}
.google-login-btn span {
  position: relative;
  z-index: 2;
}
.google-login-btn .btn-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,26,26,0.8) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  z-index: 1;
}
.google-login-btn:hover {
  border-color: #ff1a1a;
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.5);
}
.google-login-btn:hover .btn-glow {
  transform: translate(-50%, -50%) scale(2);
}

/* ===== Нижня панель для мобільних ===== */
.bottom-panel {
  display: none;
  width: 100%; max-width: 100%;
  min-height: 60px;
  background-color: rgba(20, 20, 30, 0.95);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 0;
  color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  font-size: clamp(12px, 3vw, 16px);
  justify-content: center;
  align-items: center;
}

.bottom-panel .panel-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0;
  gap: 15px;
  padding: 0 10px;
  box-sizing: border-box;
}

.bottom-panel .panel-content .center-copy,
.bottom-panel .panel-content .language-select {
  display: flex;
  align-items: center;
  color: #fff;
  gap: 10px;
}

.bottom-panel .language-select select {
  background-color: rgba(30, 30, 40, 0.9);
  border: 1px solid #ff1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.bottom-panel .language-select select:hover {
  background-color: rgba(50, 50, 60, 0.95);
}

.bottom-panel .language-select select:focus {
  outline: none;
}

.bottom-panel .language-select select option {
  background-color: #20202a;
  color: #fff;
}

@media (max-width: 1000px) {
  .bottom-panel {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ========================================================
   REDPORTED UNIFIED AD ROTATOR & PRO SIDEBAR BANNER (MASTER)
   ======================================================== */
.ad-rotator {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

.ad-rotator-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.98);
  pointer-events: none;
  z-index: 1;
}

.ad-rotator-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.ad-rotator-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 25;
  padding: 4px 10px;
  background: rgba(10, 11, 18, 0.88);
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.ad-rotator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
  outline: none;
}

.ad-rotator-dot:hover {
  background: #ff4d4d;
}

.ad-rotator-dot.active {
  width: 20px;
  border-radius: 10px;
  background: #ff1a1a;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.8);
}

.ad-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ad-block {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ad-block img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(1.08) contrast(1.05);
}

.ad-block:hover img {
  transform: scale(1.03);
  filter: brightness(1.2) contrast(1.1);
}

.ad-overlay-text {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  padding: 0 12px;
  text-align: center;
  color: #ffffff;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.9);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

.ad-subtitle {
  position: absolute;
  bottom: 42px;
  left: 0;
  width: 100%;
  padding: 0 12px;
  text-align: center;
  color: #ff4d4d;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
  letter-spacing: 0.5px;
}

.pro-sidebar-banner {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  background: 
    radial-gradient(ellipse 95% 45% at 50% 0%, rgba(255, 26, 26, 0.25) 0%, transparent 75%),
    linear-gradient(180deg, rgba(18, 20, 32, 0.97) 0%, rgba(10, 11, 18, 0.99) 100%);
  border-left: 2px solid rgba(255, 26, 26, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), -6px 0 25px rgba(0, 0, 0, 0.7);
  padding: clamp(16px, 2.2vh, 24px) clamp(10px, 1.1vw, 16px) 52px clamp(10px, 1.1vw, 16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none;
}

.pro-sidebar-banner::-webkit-scrollbar {
  display: none;
}

.pro-sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pro-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.22) 0%, rgba(204, 0, 0, 0.14) 100%);
  border: 1px solid rgba(255, 77, 77, 0.65);
  color: #ff4d4d;
  font-size: clamp(0.68rem, 0.8vw, 0.76rem);
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.35);
  margin-bottom: 8px;
  white-space: nowrap;
}

.pro-sidebar-badge i {
  color: #ff1a1a;
  font-size: 0.82rem;
  filter: drop-shadow(0 0 4px rgba(255, 26, 26, 0.8));
}

.pro-sidebar-title {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-shadow: 0 0 12px rgba(255, 26, 26, 0.35);
}

.pro-sidebar-desc {
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  color: #a0a5b8;
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.pro-sidebar-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  width: 100%;
}

.pro-sidebar-features li {
  font-size: clamp(0.72rem, 0.82vw, 0.8rem);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.035);
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.pro-sidebar-features li i {
  color: #ff1a1a;
  font-size: 0.82rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 26, 26, 0.6));
}

.pro-sidebar-features li span {
  flex: 1;
  word-break: normal;
  overflow-wrap: break-word;
}

.pro-sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pro-sidebar-price {
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.pro-sidebar-price span {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: #64748b;
  text-decoration: line-through;
  font-weight: 600;
}

.pro-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
  border: 1px solid #ff4d4d;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 26, 26, 0.45);
  transition: all 0.25s ease;
  box-sizing: border-box;
  cursor: pointer;
}

.pro-sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 26, 26, 0.7);
  background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
  color: #ffffff;
}

.pro-sidebar-btn i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.pro-sidebar-btn:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   AI GENERATION HUD (CYBER ENGINE)
   ========================================================================== */
@keyframes rsHudSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes rsHudSpinRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
@keyframes rsHudPulseGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(255, 26, 26, 0.35), inset 0 0 15px rgba(255, 26, 26, 0.15); border-color: rgba(255, 42, 42, 0.7); }
  50% { box-shadow: 0 0 45px rgba(255, 26, 26, 0.6), inset 0 0 25px rgba(255, 26, 26, 0.35); border-color: #ff3333; }
}
@keyframes rsHudBarShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes rsHudBeacon {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px #00ff88; }
  50% { transform: scale(1.3); opacity: 0.75; box-shadow: 0 0 16px #00ff88; }
}
#rs-ai-gen-hud {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px;
  box-sizing: border-box;
  animation: rsHudFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@keyframes rsHudFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.rs-hud-card {
  background: linear-gradient(160deg, rgba(20, 24, 34, 0.98), rgba(10, 12, 18, 0.99));
  border: 1px solid rgba(255, 42, 42, 0.45);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 26, 26, 0.25);
  max-width: 520px;
  width: 100%;
  padding: 34px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rs-hud-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff1a1a, #ff5252, #ff1a1a, transparent);
}
.rs-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 26, 26, 0.12);
  border: 1px solid rgba(255, 42, 42, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ff6666;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.rs-hud-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  display: inline-block;
  animation: rsHudBeacon 1.4s ease-in-out infinite;
}
.rs-hud-spinner-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 22px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-hud-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px dashed rgba(255, 42, 42, 0.65);
  animation: rsHudSpin 8s linear infinite;
}
.rs-hud-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 82, 82, 0.4);
  border-top-color: #ff1a1a;
  animation: rsHudSpinRev 2.4s linear infinite;
}
.rs-hud-icon-core {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.25), rgba(15, 18, 25, 0.9));
  border: 1px solid rgba(255, 42, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ff3333;
  animation: rsHudPulseGlow 2.5s ease-in-out infinite;
}
.rs-hud-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}
.rs-hud-subtitle {
  font-size: 0.88rem;
  color: #9aa4b2;
  margin: 0 0 22px 0;
  line-height: 1.4;
}
.rs-hud-stages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.rs-hud-stage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
  transition: all 0.3s ease;
}
.rs-hud-stage-item.active {
  color: #ffffff;
  font-weight: 700;
}
.rs-hud-stage-item.done {
  color: #00ff88;
}
.rs-hud-stage-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.rs-hud-stage-item.active .rs-hud-stage-icon {
  background: rgba(255, 26, 26, 0.25);
  color: #ff4d4d;
  border: 1px solid #ff1a1a;
}
.rs-hud-stage-item.done .rs-hud-stage-icon {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border: 1px solid #00ff88;
}
.rs-hud-bar-container {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 42, 42, 0.2);
}
.rs-hud-bar-fill {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #ff1a1a, #ff5252, #ff1a1a);
  background-size: 200% 100%;
  animation: rsHudBarShimmer 2s linear infinite;
  border-radius: 999px;
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.6);
}
.rs-hud-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: monospace;
}
.rs-hud-percent-text {
  font-weight: 800;
  color: #ff4d4d;
}


/* ========================================================
   TOP-TIER ATHLETIC PRO SIDEBAR BANNER (CYBERPUNK NEON-RED)
   ======================================================== */
.pro-sidebar-banner {
  position: relative !important;
  height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #080a12 !important;
  background-image: 
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255, 26, 26, 0.35) 0%, transparent 75%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.88) 0%, rgba(8, 10, 16, 0.35) 30%, rgba(8, 10, 16, 0.55) 60%, rgba(6, 7, 12, 0.94) 85%, #050608 100%),
    url('../images/plans_ad.webp?v=2.142.0') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  border-left: 2px solid rgba(255, 26, 26, 0.6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), -10px 0 35px rgba(0, 0, 0, 0.85) !important;
  padding: clamp(14px, 2vh, 20px) clamp(10px, 1.1vw, 16px) 50px clamp(10px, 1.1vw, 16px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: center !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

.pro-sidebar-banner::-webkit-scrollbar {
  display: none !important;
}

/* Glassmorphic Checklist Items */
.pro-sidebar-features li {
  font-size: clamp(0.7rem, 0.8vw, 0.78rem) !important;
  color: #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  line-height: 1.25 !important;
  background: rgba(10, 12, 20, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 5px 8px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.pro-sidebar-features li:hover {
  background: rgba(20, 24, 38, 0.88) !important;
  border-color: rgba(255, 42, 42, 0.45) !important;
  transform: translateX(2px) !important;
}

.pro-sidebar-features li i {
  color: #ff2a2a !important;
  font-size: 0.82rem !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 0 5px rgba(255, 42, 42, 0.8)) !important;
}

/* Centerpiece Cyber Holographic Card */
.pro-holo-centerpiece {
  margin: 10px 0 !important;
  background: rgba(8, 10, 18, 0.78) !important;
  border: 1px solid rgba(255, 26, 26, 0.45) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(255, 26, 26, 0.12) !important;
  text-align: left !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

.pro-holo-centerpiece:hover {
  border-color: rgba(255, 26, 26, 0.75) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85), inset 0 0 20px rgba(255, 26, 26, 0.2) !important;
}

.pro-holo-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pro-holo-badge {
  color: #ff3333 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.pro-holo-tag {
  background: rgba(255, 26, 26, 0.22) !important;
  color: #ff4d4d !important;
  border: 1px solid rgba(255, 26, 26, 0.55) !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.pro-holo-stat-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
}

.pro-stat-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  background: rgba(255, 26, 26, 0.16) !important;
  border: 1px solid rgba(255, 26, 26, 0.4) !important;
  color: #ff3333 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  flex-shrink: 0 !important;
}

.pro-stat-text {
  flex: 1 !important;
  min-width: 0 !important;
}

.pro-stat-title {
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.pro-stat-sub {
  color: #94a3b8 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.pro-holo-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-top: 8px !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.pro-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.pro-chip i {
  color: #ff3333 !important;
  font-size: 8px !important;
}

/* Strikethrough Old Price & Save Badge */
.pro-old-price {
  font-size: clamp(0.9rem, 1vw, 1.05rem) !important;
  color: #64748b !important;
  text-decoration: line-through !important;
  font-weight: 600 !important;
  margin-left: 6px !important;
}

.pro-price-save-badge {
  display: inline-block !important;
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #34d399 !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: 12px !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 6px !important;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important;
}


/* ========================================================
   DUAL-VIEW MODE: SYNCHRONIZED TRAINING + NUTRITION COLUMNS
   ======================================================== */
.plan-columns-wrapper.dual-view-active {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 2.77vh 1.56vw !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.plan-columns-wrapper.dual-view-active .column {
  flex: 1 1 0 !important;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2.77vh 1.56vw !important;
  box-sizing: border-box !important;
}

.dual-col-header {
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 2px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  height: 54px;
  flex-shrink: 0;
}

.dual-col-header.training-col-header {
  background: radial-gradient(ellipse 95% 70% at 50% 0%, rgba(255, 26, 26, 0.22) 0%, rgba(18, 14, 20, 0.98) 100%);
  border: 1px solid rgba(255, 26, 26, 0.5);
  border-left: 4px solid #ff1a1a;
}

.dual-col-header.nutrition-col-header {
  background: radial-gradient(ellipse 95% 70% at 50% 0%, rgba(0, 255, 136, 0.16) 0%, rgba(14, 20, 18, 0.98) 100%);
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-left: 4px solid #00ff88;
}

.dual-header-badge {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.training-col-header .dual-header-badge {
  color: #ff3333;
  text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.nutrition-col-header .dual-header-badge {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.dual-header-sub {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Plan Mode Switcher */
.plan-mode-switcher {
  display: inline-flex;
  background: rgba(10, 11, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
  flex-wrap: wrap;
}

.plan-mode-switcher .mode-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.plan-mode-switcher .mode-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.plan-mode-switcher .mode-tab.active {
  background: linear-gradient(135deg, #00ff88 0%, #00bb66 100%);
  color: #000000;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.45);
}

.plan-mode-switcher .mode-tab.active.dual {
  background: linear-gradient(135deg, #ff2a2a 0%, #00bb66 100%);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.35);
}


/* ========================================================
   RESPONSIVE DUAL-VIEW & MOBILE COLUMN SWITCHER
   ======================================================== */
@media (max-width: 830px) {
  .plan-columns-wrapper.dual-view-active {
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .plan-columns-wrapper.dual-view-active .column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    gap: 16px !important;
  }

  .dual-col-header {
    height: auto !important;
    padding: 10px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .dual-header-sub {
    white-space: normal !important;
  }

  .dual-metrics-hud {
    grid-template-columns: repeat(2, 1fr) !important;
    height: auto !important;
    gap: 8px !important;
  }

  .day-nav-ribbon {
    padding: 4px 6px !important;
    gap: 4px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .day-nav-pill {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .plan-columns-wrapper.dual-view-active.mobile-filter-training #right-column {
    display: none !important;
  }
  .plan-columns-wrapper.dual-view-active.mobile-filter-nutrition #left-column {
    display: none !important;
  }
}

/* ========================================================
   DAY-NAVIGATION STICKY RIBBON
   ======================================================== */
.day-nav-ribbon-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 16px 0;
  position: sticky;
  top: 72px;
  z-index: 90;
  pointer-events: auto;
}

.day-nav-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 5px 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.day-nav-ribbon::-webkit-scrollbar {
  display: none;
}

.day-nav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.day-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.day-nav-pill.active {
  background: linear-gradient(135deg, rgba(255, 42, 42, 0.35) 0%, rgba(0, 255, 136, 0.35) 100%);
  color: #ffffff;
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.35);
}

/* ========================================================
   DUAL-VIEW METRICS HUD RIBBONS (TRAINING & NUTRITION)
   ======================================================== */
.dual-metrics-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
  box-sizing: border-box;
  width: 100%;
}

.dual-metric-chip {
  background: rgba(14, 16, 22, 0.85);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease;
  min-height: 48px;
}
.dual-metric-chip:hover {
  transform: translateY(-1px);
}

.training-col-header + .dual-metrics-hud .dual-metric-chip {
  border: 1px solid rgba(255, 26, 26, 0.25);
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.06) 0%, rgba(14, 16, 22, 0.95) 100%);
}
.training-col-header + .dual-metrics-hud .dual-metric-chip:hover {
  border-color: rgba(255, 26, 26, 0.5);
}

.nutrition-col-header + .dual-metrics-hud .dual-metric-chip {
  border: 1px solid rgba(0, 255, 136, 0.25);
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.06) 0%, rgba(14, 16, 22, 0.95) 100%);
}
.nutrition-col-header + .dual-metrics-hud .dual-metric-chip:hover {
  border-color: rgba(0, 255, 136, 0.5);
}

.dual-metric-val {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.training-col-header + .dual-metrics-hud .dual-metric-val {
  color: #ff4d4d;
}
.nutrition-col-header + .dual-metrics-hud .dual-metric-val {
  color: #00ff88;
}

.dual-metric-lbl {
  font-size: 10.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
  font-weight: 600;
}

/* ========================================================
   ADVANCED PRINT & PDF EXPORT
   ======================================================== */
@media print {
  header,
  .sidebar,
  .plan-hud-toolbar,
  #fully-open-toggle-bar,
  .plan-mode-switcher,
  .day-nav-ribbon-wrapper,
  .day-nav-ribbon,
  .auth-overlay,
  .floating-ad-banner,
  .btn-top-my-plans,
  .action-btn,
  #google_translate_element,
  .footer {
    display: none !important;
  }

  body, .main-wrapper, .quad-wrapper, #plan-view-container {
    background: #ffffff !important;
    color: #111111 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .plan-columns-wrapper,
  .plan-columns-wrapper.dual-view-active {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    width: 100% !important;
    page-break-inside: auto !important;
  }

  .plan-columns-wrapper .column,
  .plan-columns-wrapper.dual-view-active .column {
    width: 50% !important;
    max-width: 50% !important;
    flex: 1 1 50% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .day-box {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    color: #000000 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
  }

  .day-box .card-overlay {
    display: none !important;
  }

  .day-box h3 {
    color: #000000 !important;
    border-bottom: 2px solid #333333 !important;
    padding-bottom: 6px !important;
    font-size: 16px !important;
  }

  .day-box ul {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 12px 10px 12px !important;
  }

  .day-box ul li {
    color: #111111 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: transparent !important;
    border-left: none !important;
    font-size: 12px !important;
    padding: 6px 0 !important;
  }

  .dual-col-header {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  .dual-col-header .dual-header-badge {
    color: #000000 !important;
    text-shadow: none !important;
  }
}

/* ========================================================
   CROSS-PLAN SYNERGY BUTTONS & HUB BOX
   ======================================================== */
.plan-dual-view-btn {
  background: linear-gradient(135deg, rgba(255, 42, 42, 0.22) 0%, rgba(0, 255, 136, 0.22) 100%) !important;
  border: 1px solid rgba(0, 255, 136, 0.55) !important;
  color: #00ff88 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.25) !important;
  letter-spacing: 0.3px !important;
  text-decoration: none !important;
  outline: none !important;
}
.plan-dual-view-btn:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #00e676 100%) !important;
  color: #ffffff !important;
  border-color: #00ff88 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 18px rgba(0, 255, 136, 0.55) !important;
}

.synergy-hub-box {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(14, 18, 25, 0.98) 100%) !important;
  border: 1px solid rgba(0, 255, 136, 0.45) !important;
  border-left: 4px solid #00ff88 !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  margin-bottom: 0 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 25px rgba(0,255,136,0.15) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.toolbar-counterpart-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid rgba(0, 255, 136, 0.5);
  border-radius: 12px;
  padding: 4px 12px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}


/* Mobile Dual View Filter Bar */
.mobile-dual-filter-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 830px) {
  .plan-columns-wrapper.dual-view-active ~ .day-nav-ribbon-wrapper .mobile-dual-filter-bar,
  .dual-view-container .mobile-dual-filter-bar,
  .dual-view-active .mobile-dual-filter-bar {
    display: flex !important;
  }
}

.mobile-filter-tab {
  background: rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  outline: none;
}

.mobile-filter-tab:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.mobile-filter-tab.active[data-filter="all"] {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35) !important;
}

.mobile-filter-tab.active[data-filter="training"] {
  background: rgba(255, 26, 26, 0.25) !important;
  border-color: #ff1a1a !important;
  color: #ff4d4d !important;
  box-shadow: 0 0 14px rgba(255, 26, 26, 0.45) !important;
}

.mobile-filter-tab.active[data-filter="nutrition"] {
  background: rgba(0, 255, 136, 0.25) !important;
  border-color: #00ff88 !important;
  color: #00ff88 !important;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.45) !important;
}

/* ========================================================
   REDPORTED UNIFIED MOBILE NAV & BOTTOM DOCK (MOBILE MASTER v2.165.2)
   Strictly for mobile viewports <= 1000px. PC is untouched!
   ======================================================== */
@media (max-width: 1000px) {
  /* 1. Header & Top Navigation — Sleek & Clean like PC (No red boxes, no disappearing text) */
  header {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    padding: 6px 10px !important;
    background: rgba(14, 16, 24, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  header .left-side {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  header .nav-buttons {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 16px !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
  }

  header .nav-buttons::-webkit-scrollbar {
    display: none !important;
  }

  /* Make mobile top buttons clean and elegant like on PC — ZERO red borders, ZERO ugly box tints */
  header .nav-button,
  .nav-buttons .nav-button {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 4px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
    touch-action: manipulation !important;
    -webkit-text-fill-color: initial !important;
  }

  /* Ensure text inside button NEVER disappears or clips */
  header .nav-button .nav-text,
  header .nav-button span,
  header .nav-button div,
  .nav-buttons .nav-button .nav-text,
  .nav-buttons .nav-button span,
  .nav-buttons .nav-button div {
    display: inline-block !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: initial !important;
  }

  /* Active & Hover: Elegant Cyberpunk Neon Red Glow (Just like PC) */
  header .nav-button:hover,
  header .nav-button:active,
  header .nav-button.active,
  .nav-buttons .nav-button:hover,
  .nav-buttons .nav-button:active,
  .nav-buttons .nav-button.active {
    background: transparent !important;
    border: none !important;
    color: #ff3333 !important;
    text-shadow: 0 0 12px rgba(255, 42, 42, 0.75) !important;
  }

  /* PRO buttons: High-visibility Red */
  header .nav-button-pro,
  .nav-buttons .nav-button-pro {
    background: transparent !important;
    border: none !important;
    color: #ff3333 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.6) !important;
    -webkit-text-fill-color: #ff3333 !important;
  }

  /* 2. Unified Bottom Panel (Dock) — Rock-solid across ALL mobile screen sizes */
  .bottom-panel {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 10px !important;
    background: rgba(13, 15, 22, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(255, 26, 26, 0.35) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 26, 26, 0.15) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .bottom-panel .panel-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    gap: 6px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  /* Compact Copyright on mobile so it never pushes out action buttons or language selector */
  .bottom-panel .center-copy {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 85px !important;
    overflow: hidden !important;
  }

  .bottom-panel .copyright {
    display: block !important;
    font-size: 10px !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }

  /* Action buttons cluster (tightly paired together, never spreading apart!) */
  .bottom-panel .nav-button.link-button,
  .bottom-panel .nav-button.back-button,
  .bottom-panel .nav-button.search-button,
  .bottom-panel .nav-button.sort-button {
    flex: 0 0 auto !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 5px !important;
    margin: 0 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
  }

  .bottom-panel .nav-button.link-button:hover,
  .bottom-panel .nav-button.link-button:active,
  .bottom-panel .nav-button.back-button:hover,
  .bottom-panel .nav-button.back-button:active,
  .bottom-panel .nav-button.search-button:hover,
  .bottom-panel .nav-button.sort-button:hover {
    background: rgba(255, 26, 26, 0.25) !important;
    border-color: rgba(255, 26, 26, 0.35) !important;
    outline: none !important;
  }

  .bottom-panel .nav-button img,
  .bottom-panel .link-icon,
  .bottom-panel .back-icon,
  .bottom-panel .search-icon,
  .bottom-panel .sort-icon {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* Right-side Language Select & Profile Section (Pinned neatly to right edge) */
  .bottom-panel .language-select {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Unified RedSported Native App Style Account & Mobile Dock Standard */
  .bottom-panel .profile-section {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 8px !important;
    background: linear-gradient(135deg, rgba(255, 26, 26, 0.22) 0%, rgba(20, 22, 34, 0.95) 100%) !important;
    border: 1px solid rgba(255, 26, 26, 0.5) !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 8px rgba(255, 26, 26, 0.25) !important;
    transition: all 0.2s ease !important;
  }

  .bottom-panel .profile-section:hover,
  .bottom-panel .profile-section:active {
    background: linear-gradient(135deg, rgba(255, 42, 42, 0.38) 0%, rgba(30, 34, 52, 0.98) 100%) !important;
    border-color: #ff3333 !important;
  }

  .bottom-panel #profile-name-mobile {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    max-width: 55px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .bottom-panel #profile-avatar-mobile {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #ff1a1a !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 6px rgba(255, 26, 26, 0.5) !important;
    background-size: cover !important;
    background-position: center !important;
    flex-shrink: 0 !important;
  }

  /* Compact, beautiful language selector: NEVER pushes off-screen! */
  .bottom-panel .language-select select,
  .bottom-panel #lang-selector-bottom {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 82px !important;
    padding: 2px 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    background: rgba(18, 20, 28, 0.95) !important;
    border: 1px solid rgba(255, 26, 26, 0.45) !important;
    border-radius: 7px !important;
    color: #fff !important;
    cursor: pointer !important;
    outline: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  /* Body bottom margin to prevent dock overlapping page content on mobile */
  body {
    padding-bottom: 64px !important;
  }
}

/* Extra safety for ultra-narrow phones (<= 340px) */
@media (max-width: 340px) {
  .bottom-panel .center-copy {
    display: none !important;
  }
  .bottom-panel #profile-name-mobile {
    display: none !important;
  }
}

/* Strictly hide bottom panel on PC viewports */
@media (min-width: 1001px) {
  .bottom-panel {
    display: none !important;
  }
}


/* ==========================================================================
   MOBILE GENERATOR OVERHAUL (max-width: 1000px) - RedSported Cyberpunk UI
   ========================================================================== */
@media (max-width: 1000px) {
  /* Generator View Container */
  .generator-view {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .generator-header {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .generator-header h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  .generator-header p {
    font-size: 13px !important;
    color: #94a3b8 !important;
    line-height: 1.45 !important;
    margin: 6px 0 0 0 !important;
  }

  .generator-header .header-actions {
    width: 100% !important;
    margin-top: 4px !important;
  }

  .generator-header .action-btn.generate-btn-trigger,
  .generator-header .action-btn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.45) !important;
  }

  /* Cross-Sell & Synergy Banners */
  .cross-sell-banner,
  .synergy-teaser-box {
    padding: 14px 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  .cross-sell-banner .action-btn {
    width: 100% !important;
    min-height: 42px !important;
    font-size: 13.5px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Accordions on Mobile */
  .accordions-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .accordion-item {
    border-radius: 14px !important;
    background: rgba(15, 17, 26, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
  }

  .accordion-item.active,
  .accordion-item.open {
    border-color: rgba(255, 42, 42, 0.5) !important;
    border-left: 3px solid #ff3333 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 42, 42, 0.15) !important;
  }

  .accordion-header {
    padding: 14px 14px !important;
    min-height: 50px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    user-select: none !important;
    box-sizing: border-box !important;
  }

  .accordion-content {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .accordion-content-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 14px 12px !important;
    box-sizing: border-box !important;
  }

  /* Form Controls on Mobile */
  .form-group {
    width: 100% !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .form-group label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-align: left !important;
  }

  .form-group select,
  .form-group input:not([type="range"]):not([type="checkbox"]) {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: rgba(10, 12, 18, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
  }

  .form-group select:focus,
  .form-group input:not([type="range"]):not([type="checkbox"]):focus {
    border-color: #ff3333 !important;
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.4) !important;
  }

  /* Multi-Select Tags on Mobile */
  .multiselect-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 2px 0 !important;
  }

  .multiselect-tag {
    min-height: 36px !important;
    padding: 8px 13px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    background: rgba(20, 22, 32, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    box-sizing: border-box !important;
  }

  .multiselect-tag:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  .multiselect-tag.active {
    background: rgba(255, 26, 26, 0.25) !important;
    border-color: #ff3333 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 26, 26, 0.4) !important;
  }

  /* Range Sliders on Mobile */
  .range-container {
    padding: 8px 0 !important;
  }

  .form-group input[type="range"] {
    width: 100% !important;
    height: 6px !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    outline: none !important;
    margin: 8px 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  .form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #ff3333 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 42, 42, 0.8) !important;
    cursor: pointer !important;
  }

  /* Action Trigger at bottom of generator */
  .generator-bottom-actions {
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .generator-bottom-actions .action-btn {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 0 25px rgba(255, 42, 42, 0.5) !important;
  }
}


/* ==========================================================================
   MOBILE PLAN VIEW & EDIT MODE PERFECTION (max-width: 1000px)
   ========================================================================== */
@media (max-width: 1000px) {
  /* Top Revisions Chip in Toolbar */
  .top-revisions-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, rgba(255, 26, 26, 0.16) 0%, rgba(20, 22, 32, 0.95) 100%) !important;
    border: 1px solid rgba(255, 42, 42, 0.45) !important;
    border-left: 3px solid #ff2a2a !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 26, 26, 0.2) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }
  .top-revisions-chip b {
    color: #ff4d4d !important;
    font-size: 15px !important;
  }

  /* Plan Toolbar on Mobile */
  #fully-open-toggle-bar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    box-sizing: border-box !important;
  }

  #fully-open-toggle-bar > div {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  #fully-open-toggle-bar #btn-top-my-plans {
    flex: 1 1 100% !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  #fully-open-toggle-bar #btn-top-print,
  #fully-open-toggle-bar #btn-top-copy {
    flex: 1 1 0 !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .plan-mode-switcher {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .plan-mode-switcher .mode-tab {
    flex: 1 1 0 !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  /* Plan Columns Wrapper on Mobile: Stack Vertically, Full Width, NEVER 800px Blowout */
  #plan-columns-wrapper,
  .plan-columns-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  #left-column,
  #right-column,
  .plan-columns-wrapper .column {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    order: 2 !important;
  }

  /* Right Settings Panel (Edit Mode) on Mobile: Placed ABOVE the Days, Full 100% width */
  .right-settings-panel,
  #right-settings {
    order: -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 12px 0 20px 0 !important;
    padding: 16px 14px !important;
    border-radius: 16px !important;
    background: rgba(14, 16, 24, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8) !important;
    box-sizing: border-box !important;
  }

  .right-settings-panel .panel-controls {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Day Cards and Meal Boxes on Mobile */
  .plan-view-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .day-box,
  .day-card,
  .plan-day-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    word-break: break-word !important;
  }
}

/* Strictly preserve Desktop PC side-by-side layout */
@media (min-width: 1001px) {
  .top-revisions-chip {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   REDSPORTED v2.199.0 — MASTER CANONICAL HEADER, CARDS, BANNERS & DOCK
   100% identical across all 16 stylesheets and all pages site-wide.
   ========================================================================== */

@keyframes redPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 1. GLOBAL ZERO-OUTLINE & TAP-HIGHLIGHT RESET */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
}
*:focus, *:focus-visible, *:active {
  outline: none !important;
}
a:focus, a:active, a:focus-visible,
button:focus, button:active, button:focus-visible,
.nav-button:focus, .nav-button:active, .nav-button:focus-visible,
.info-card-link:focus, .info-card-link:active, .info-card-link:focus-visible,
.info-card:focus, .info-card:active, .info-card:focus-visible,
.pro-tab-btn:focus, .pro-tab-btn:active, .pro-tab-btn:focus-visible,
.pro-sidebar-btn:focus, .pro-sidebar-btn:active, .pro-sidebar-btn:focus-visible,
.ad-rotator-dot:focus, .ad-rotator-dot:active, .ad-rotator-dot:focus-visible {
  outline: none !important;
  outline-color: transparent !important;
  outline-width: 0 !important;
  outline-style: none !important;
}

/* 2. CANONICAL DESKTOP TOP HEADER (ZERO RED CLOUD, ONLY ACTIVE & PRO PULSING RED) */
header {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  background-color: rgba(16, 17, 26, 0.9) !important;
  padding: 14px 20px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  border-bottom: 1px solid rgba(255, 26, 26, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
header .left-side {
  display: flex !important;
  align-items: center !important;
  gap: 26px !important;
  min-width: 0 !important;
}
header .site-logo,
header a.site-logo,
header a.site-logo:visited,
header .site-logo a,
header .site-logo a:visited {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}
header .site-logo img {
  width: 40px !important;
  height: 40px !important;
  display: block !important;
  flex-shrink: 0 !important;
}
header .site-logo .site-name,
header .site-name {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}
header .nav-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
}

/* Default Nav Button: pure clean white text, ZERO box/cloud/border */
header .nav-button,
.nav-buttons .nav-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: transform 0.2s ease !important;
  position: relative !important;
}
header .nav-button .nav-text,
.nav-buttons .nav-button .nav-text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  white-space: nowrap !important;
}

/* Active, Hover & PRO Nav Buttons: PURE PULSING NEON RED TEXT (EXACTLY LIKE PRO, ZERO CLOUD/BORDER) */
header .nav-button:hover,
header .nav-button:active,
header .nav-button:focus,
header .nav-button.active,
header .nav-button-pro,
.nav-buttons .nav-button:hover,
.nav-buttons .nav-button:active,
.nav-buttons .nav-button:focus,
.nav-buttons .nav-button.active,
.nav-buttons .nav-button-pro {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
header .nav-button:hover .nav-text,
header .nav-button.active .nav-text,
header .nav-button-pro .nav-text,
.nav-buttons .nav-button:hover .nav-text,
.nav-buttons .nav-button.active .nav-text,
.nav-buttons .nav-button-pro .nav-text,
header .nav-button:hover:not(:has(.nav-text)),
header .nav-button.active:not(:has(.nav-text)),
header .nav-button-pro:not(:has(.nav-text)),
.nav-buttons .nav-button:hover:not(:has(.nav-text)),
.nav-buttons .nav-button.active:not(:has(.nav-text)),
.nav-buttons .nav-button-pro:not(:has(.nav-text)) {
  background: linear-gradient(90deg, #ff1a1a, #ff4d4d, #cc0000, #ff1a1a) !important;
  background-size: 300% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: redPulse 2.5s linear infinite !important;
  text-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
}

header .center-copy {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: none !important;
  padding: 0 12px !important;
  min-width: 0 !important;
}
header .center-copy .copyright {
  font-size: 13.5px !important;
  color: #cbd5e1 !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
}

header .language-select {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* Unified Sleek Profile Pill (Identical on ALL pages) */
header .profile-section,
.bottom-panel .profile-section {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 6px 4px 12px !important;
  margin-right: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
header .profile-section:hover,
.bottom-panel .profile-section:hover {
  background: rgba(255, 42, 42, 0.14) !important;
  border-color: rgba(255, 42, 42, 0.5) !important;
}
header .profile-section .avatar-circle,
.bottom-panel .profile-section .avatar-circle,
#profile-avatar,
#profile-avatar-mobile {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #252b3d, #151926) !important;
  border: 1.5px solid rgba(255, 42, 42, 0.65) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ff4d4d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background-size: cover !important;
  background-position: center !important;
}
.profile-section .avatar-circle img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}
header #lang-selector-top {
  background-color: rgba(24, 25, 36, 0.95) !important;
  border: 1px solid rgba(255, 26, 26, 0.5) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  outline: none !important;
  flex-shrink: 0 !important;
}

/* Laptop Navigation Density (831px - 1560px): 8 buttons never collide or wrap copyright */
@media (max-width: 1560px) and (min-width: 831px) {
  header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 16px !important;
  }
  header .center-copy {
    display: none !important;
  }
  header .left-side {
    gap: 18px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  header .nav-buttons {
    gap: 14px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  header .nav-buttons::-webkit-scrollbar {
    display: none !important;
  }
  header .nav-button,
  .nav-buttons .nav-button {
    font-size: 14px !important;
  }
}
@media (max-width: 1180px) and (min-width: 831px) {
  header .site-logo .site-name {
    font-size: 17px !important;
  }
  header .nav-buttons {
    gap: 11px !important;
  }
  header .nav-button,
  .nav-buttons .nav-button {
    font-size: 13px !important;
  }
}

/* 3. ORIGINAL BRIGHT MAIN MENU & HUB CARDS (ZERO DARKENING OVERLAY!) */
.info-card {
  border: none !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 1) !important;
  filter: brightness(1.2) contrast(1.1) !important;
}
.info-card:hover {
  transform: scale(1.02) !important;
  filter: brightness(1.35) contrast(1.15) !important;
  border: none !important;
}
.info-card .card-overlay,
.info-card.pro .card-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
.info-card.pro {
  border: none !important;
  outline: none !important;
  box-shadow: 0 0 26px rgba(255, 26, 26, 0.42) !important;
}
.info-card.pro:hover {
  border: none !important;
  outline: none !important;
  box-shadow: 0 0 38px rgba(255, 26, 26, 0.7) !important;
}
.info-card:not(.pro) .card-content h3 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 1) !important;
}
.info-card.pro .card-content h3,
.info-card.pro h3 {
  background: linear-gradient(90deg, #ff2a2a, #ff5e5e, #e60000, #ff2a2a) !important;
  background-size: 300% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: redPulse 2.5s linear infinite !important;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) !important;
}
.info-card .card-content p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.98) !important;
}

/* Light bottom vignette ONLY for bright gym-photo app cards & plan day boxes */
.app-card .card-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.22) 75%, rgba(0, 0, 0, 0.65) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
  transition: background 0.35s ease !important;
}
.app-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.08) 0%, transparent 45%, rgba(0, 0, 0, 0.22) 75%, rgba(0, 0, 0, 0.65) 100%) !important;
}
.day-box .card-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.22) 75%, rgba(0, 0, 0, 0.65) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* 4. OFFICIAL MERCHANT FOOTER + FLUSH BILATERAL SIDEBAR BANNERS */
.site-footer {
  width: 100% !important;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 26, 26, 0.08) 0%, rgba(10, 11, 18, 0.98) 100%);
  border-top: 1px solid rgba(255, 26, 26, 0.35);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 26, 26, 0.1);
  color: #a0a5b8;
  padding: 45px 20px 35px;
  box-sizing: border-box !important;
  margin-top: 60px;
  position: relative;
  z-index: 10;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}
.site-footer a:hover {
  color: #ff4d4d;
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}
.site-footer .footer-container {
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.5fr 1.5fr;
  gap: 32px;
}
.site-footer .footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-left: 3px solid #ff1a1a;
  padding-left: 10px;
}
.site-footer .footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 16px 0;
}
.site-footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 10px;
  color: #e2e8f0;
}
.site-footer .footer-contact-item i {
  color: #ff1a1a;
  font-size: 15px;
  width: 18px;
  text-align: center;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin-bottom: 10px;
  font-size: 13.5px;
}
.site-footer .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.site-footer .payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.site-footer .payment-badge:hover {
  background: rgba(255, 26, 26, 0.15);
  border-color: rgba(255, 26, 26, 0.4);
}
.site-footer .footer-bottom {
  max-width: 1260px;
  margin: 35px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12.5px;
  color: #64748b;
}
@media (max-width: 900px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}
@media (max-width: 580px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer {
    padding: 30px 16px 86px;
  }
}
@media (min-width: 1221px) {
  .sidebar.left-ads,
  .sidebar.right-ads {
    position: fixed !important;
    top: 68px !important;
    bottom: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 68px) !important;
    width: 16.302% !important;
    z-index: 999 !important;
    overflow: hidden !important;
  }
  .sidebar.left-ads { left: 0 !important; }
  .sidebar.right-ads { right: 0 !important; }
  body:has(.sidebar.left-ads) .site-footer {
    padding-left: calc(16.302vw + 32px) !important;
  }
  body:has(.sidebar.right-ads) .site-footer {
    padding-right: calc(16.302vw + 32px) !important;
  }
}
@media (min-width: 1221px) and (max-width: 1460px) {
  body:has(.sidebar.left-ads) .footer-container,
  body:has(.sidebar.right-ads) .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 32px !important;
  }
}

/* 5. CANONICAL MOBILE HEADER & CRISP SINGLE-ROW BOTTOM DOCK (<= 830px) */
@media (max-width: 830px) {
  header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 6px 10px !important;
    min-height: 52px !important;
    width: 100% !important;
    max-width: 100% !important;
    background-color: rgba(15, 17, 26, 0.96) !important;
    box-sizing: border-box !important;
  }
  header .center-copy,
  header .language-select,
  header .site-logo,
  header a.site-logo {
    display: none !important;
  }
  header .left-side {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    overflow: hidden !important;
  }
  header .nav-buttons {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 16px !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
  }
  header .nav-buttons::-webkit-scrollbar {
    display: none !important;
  }
  header .nav-button,
  .nav-buttons .nav-button {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 4px 2px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    flex: 0 0 auto !important;
  }
  header .nav-button .nav-text,
  .nav-buttons .nav-button .nav-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  header .nav-button:hover .nav-text,
  header .nav-button:active .nav-text,
  header .nav-button.active .nav-text,
  header .nav-button-pro .nav-text,
  .nav-buttons .nav-button:hover .nav-text,
  .nav-buttons .nav-button:active .nav-text,
  .nav-buttons .nav-button.active .nav-text,
  .nav-buttons .nav-button-pro .nav-text {
    background: linear-gradient(90deg, #ff1a1a, #ff4d4d, #cc0000, #ff1a1a) !important;
    background-size: 300% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: redPulse 2.5s linear infinite !important;
  }
  .sidebar.left-ads,
  .sidebar.right-ads {
    display: none !important;
  }

  /* Crisp Single-Row Mobile Bottom Dock */
  body {
    padding-bottom: 66px !important;
  }
  .site-footer {
    padding-bottom: 86px !important;
  }
  .bottom-panel {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 6px 8px !important;
    background: rgba(14, 16, 24, 0.98) !important;
    border-top: 1px solid rgba(255, 26, 26, 0.35) !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.75) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .bottom-panel .panel-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 5px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .bottom-panel .center-copy {
    display: none !important;
  }
  .bottom-panel .nav-button,
  .bottom-panel .nav-button.link-button,
  .bottom-panel .nav-button.back-button,
  .bottom-panel .nav-button.search-button,
  .bottom-panel .nav-button.sort-button {
    flex: 0 0 auto !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 5px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-sizing: border-box !important;
  }
  .bottom-panel .nav-button img {
    width: 17px !important;
    height: 17px !important;
    object-fit: contain !important;
    display: block !important;
  }
  .bottom-panel .language-select {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .bottom-panel .profile-section {
    padding: 3px 5px 3px 8px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
    height: 30px !important;
  }
  .bottom-panel #profile-name-mobile {
    font-size: 11.5px !important;
    max-width: 60px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .bottom-panel .profile-section .avatar-circle,
  .bottom-panel #profile-avatar-mobile {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    background: linear-gradient(135deg, #252b3d, #151926) !important;
    border: 1.5px solid rgba(255, 42, 42, 0.65) !important;
  }
  .bottom-panel #lang-selector-bottom,
  .bottom-panel .language-select select {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    max-width: 102px !important;
    padding: 2px 5px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    background: rgba(20, 22, 32, 0.96) !important;
    border: 1px solid rgba(255, 26, 26, 0.45) !important;
    border-radius: 7px !important;
    color: #ffffff !important;
    outline: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .articles-hero h1 {
    font-size: clamp(1.38rem, 6vw, 1.95rem) !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}

@media (min-width: 831px) {
  .bottom-panel {
    display: none !important;
  }
}
