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 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background-color: rgba(20, 20, 30, 0.85);
  padding: 15px 30px;
  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;
  gap: 20px;
}
.nav-button {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s 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; }
.back-button, .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; }
.back-button:hover, .link-button:hover { transform: scale(1.1); }
.back-icon, .link-icon { width: 30px; height: 30px; }
.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: 62.5vw;
  margin: 40px 0;
  display: flex;
  gap: 2.77vh 1.56vw;
  justify-content: center;
  padding: 0 20px;
}
.column {
  flex: 1;
  width: 30vw;
  display: flex;
  flex-direction: column;
  gap: 2.77vh 1.56vw;
}
.day-box {
  position: relative;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  width: 100%;
  min-height: 55vh;
  height: auto;
  box-sizing: border-box;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.day-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
}
.day-box .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}
.day-box h3 {
  position: relative;
  z-index: 2;
  margin: 15px 20px 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}
.day-box ul, .day-box .comments-container {
  position: relative;
  z-index: 2;
  list-style: none;
  padding-left: 20px;
  margin: 0 20px 15px 20px;
  color: #ddd;
  overflow-y: auto;
  overflow-x: hidden;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
  max-height: calc(580px - 70px);
}
.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: #888; border-radius: 3px; }
.day-box ul li {
  margin-bottom: 6px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2px;
  transition: color 0.22s cubic-bezier(0.2, 0, 0, 1), transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}
.day-box ul li:last-child { border-bottom: none; }
.day-box ul li:hover,
.day-box ul li.clickable: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;
  transform: translateX(8px);
  cursor: pointer;
}
.comments-container p { margin-bottom: 10px; font-size: 16px; line-height: 1.4; }
@media (max-width: 830px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  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 */
  .columns-dual-grid {
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .columns-dual-grid .column {
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !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 {
    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: 7px 12px !important;
    border-radius: 9px !important;
    background: rgba(255, 26, 26, 0.08) !important;
    border: 1px solid rgba(255, 26, 26, 0.22) !important;
    font-size: 13px !important;
    color: #fff !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    touch-action: manipulation !important;
  }

  .nav-button:hover,
  .nav-button:active {
    background: rgba(255, 26, 26, 0.22) !important;
    border-color: #ff1a1a !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: #444;
  margin-left: 10px;
}
.action-btn.secondary:hover {
  background: #555;
  box-shadow: none;
}
.accordions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Риска між шторками */
}
.accordion-header {
  padding: 15px 0;
  background: transparent;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
  color: #fff;
}
.accordion-header:hover { background: #444; }
.accordion-header::after {
  content: '\25BC';
  font-size: 14px;
  transition: transform 0.3s;
}
.accordion-item.active .accordion-header::after {
  transform: rotate(-180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background: transparent;
}
.accordion-content-inner {
  padding: 15px 20px;
  color: #ddd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.nested-accordion-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}
.nested-accordion-header {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  transition: background 0.3s, color 0.3s;
}
.nested-accordion-header:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nested-accordion-header::after {
  content: '\25BC';
  font-size: 12px;
  transition: transform 0.3s;
}
.nested-accordion-item.active .nested-accordion-header::after {
  transform: rotate(-180deg);
}
.nested-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background: rgba(0, 0, 0, 0.2);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group.full-width {
  grid-column: span 2;
}
.form-group label {
  font-weight: 500;
  color: #ccc;
  font-size: 14px;
}
.form-group select, .form-group input:not([type="range"]) {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
.form-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #444;
  border-radius: 3px;
  outline: none;
}
.form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #888;
  cursor: pointer;
}
.form-group select:focus, .form-group input:focus {
  outline: none;
  border-color: #888;
}
.multiselect-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color 0.3s;
}
.multiselect-tag {
  background: #222;
  border: 1px solid #555;
  color: #ccc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.multiselect-tag:hover {
  background: #333;
  border-color: #888;
}
.multiselect-tag.active {
  background: rgba(255, 26, 26, 0.15);
  border-color: #ff1a1a;
  color: #fff;
}
.multiselect-tag i {
  display: none;
  font-size: 12px;
  color: #ff1a1a;
}
.multiselect-tag.active i {
  display: inline-block;
}
/* ===== PLAN VIEW HUD & DUAL COLUMN (IDENTICAL TO SIMPLE PLANS) ===== */
.plan-view-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}

.plan-hud-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(255, 26, 26, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hud-badge-pro {
  background: linear-gradient(90deg, #ff1a1a, #cc0000);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-revisions-tag {
  background: rgba(255, 26, 26, 0.1);
  border: 1px solid rgba(255, 26, 26, 0.4);
  color: #ff6666;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-revisions-tag:hover {
  background: rgba(255, 26, 26, 0.25);
  border-color: #ff1a1a;
  color: #fff;
  transform: translateY(-2px);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eee;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.hud-btn-primary {
  background: linear-gradient(90deg, rgba(255, 26, 26, 0.8), rgba(204, 0, 0, 0.9));
  border-color: #ff1a1a;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

.hud-btn-primary:hover {
  background: linear-gradient(90deg, #ff1a1a, #e60000);
  box-shadow: 0 0 16px rgba(255, 26, 26, 0.6);
}

.hud-btn-danger {
  color: #ff8888;
  border-color: rgba(255, 51, 51, 0.3);
}

.hud-btn-danger:hover {
  background: rgba(255, 26, 26, 0.2);
  border-color: #ff1a1a;
  color: #fff;
}

.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;
}

/* Meal Badges for Nutrition Plans */
.meal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 8px;
  background: rgba(255, 26, 26, 0.2);
  border: 1px solid rgba(255, 26, 26, 0.4);
  color: #ff6666;
}

/* Daily Targets HUD Banner */
.daily-targets-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  background: rgba(255, 26, 26, 0.05);
  border: 1px solid rgba(255, 26, 26, 0.3);
  box-shadow: 0 0 15px rgba(255, 26, 26, 0.15);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.target-stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.target-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #ff3333;
}

.target-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* 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-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.9);
  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.85);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.auth-overlay.show {
  opacity: 1;
}
.auth-modal {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 26, 26, 0.2);
  color: #fff;
  max-width: 400px;
  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: #ff1a1a;
  margin-bottom: 15px;
}
.auth-modal p {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.5;
}
.google-login-btn {
  position: relative;
  background: #222;
  border: 1px solid #444;
  border-radius: 50px;
  padding: 10px 30px 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}
.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;
  }
}