/* ==========================================================================
   RedSported Apps & Tools Stylesheet
   ========================================================================== */

:root {
  --primary-red: #ff1a1a;
  --hover-red: #ff4d4d;
  --dark-red: #cc0000;
  --bg-dark: #070709;
  --surface-dark: rgba(10, 10, 14, 0.9);
  --surface-glass: rgba(14, 14, 18, 0.8);
  --border-red: rgba(255, 26, 26, 0.25);
  --border-red-glow: rgba(255, 26, 26, 0.5);
  --text-main: #f5f6fa;
  --text-muted: #a0a5b8;
  --text-accent: #ff4d4d;
  --card-radius: 18px;
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: url('../images/bg.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* === HEADER (Verbatim 1:1 from RedSported root style.css) === */
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 {
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.center-copy .copyright {
  font-size: 14px;
  color: #ccc;
  pointer-events: auto;
}

/* === MAIN LAYOUT WITH SIDEBAR ADS (Verbatim 1:1 from RedSported root style.css) === */
.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;
}

/* === BOTTOM PANEL (Verbatim 1:1 from RedSported root style.css) === */
.bottom-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 60px;
  background-color: rgba(20, 20, 30, 0.95);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 10px;
  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 auto;
  gap: 10px;
}

.bottom-panel .panel-content .center-copy,
.bottom-panel .panel-content .language-select {
  display: flex;
  align-items: center;
  color: #fff;
}

.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;
}

/* === APPS CONTAINER === */
.apps-wrapper {
  width: 62.5vw;
  margin: 0 auto;
  padding: 30px 15px 60px;
}

/* Hide legacy AI hero section if cached */
.apps-hero,
.apps-hero-badge,
.apps-stats-bar,
.stat-chip {
  display: none !important;
}

/* === REDSPORTED APPS HUB HERO (Static, Open Typography - RedSported Authentic Style) === */
.apps-hub-hero {
  position: static !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.apps-cyber-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 26, 26, 0.12);
  border: 1px solid rgba(255, 26, 26, 0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ff4d4d;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.2);
}

.cyber-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff1a1a;
  box-shadow: 0 0 8px #ff1a1a;
}

.apps-hub-title {
  margin: 0 0 10px 0;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
}

.title-white {
  color: #ffffff;
}

/* === ЧЕРВОНЕ ПЕРЕЛИВАННЯ (Ідентично .nav-button-pro 'Додатки') === */
.title-red,
.shimmer-pro,
.red-shimmer,
.red-pulse,
.app-standalone-title h1,
.app-modal-title,
.metric-val.highlight {

  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;
  filter: none !important;
}

.title-red {
  display: inline-block;
  margin-left: 6px;
}

.apps-hub-desc {
  margin: 0 0 18px 0;
  color: #c0c4d4;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 740px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.apps-search-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 740px;
  margin-bottom: 0;
}

.apps-search-box {
  position: relative;
  flex: 1;
}

.apps-search-box i.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c91a4;
  font-size: 16px;
  pointer-events: none;
}

.apps-search-input {
  width: 100%;
  background: rgba(10, 10, 14, 0.88);
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: 14px;
  padding: 13px 44px 13px 48px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.apps-search-input:focus {
  border-color: #ff1a1a;
  background: rgba(14, 14, 18, 0.96);
  box-shadow: 0 0 22px rgba(255, 26, 26, 0.45);
}

.apps-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8c91a4;
  cursor: pointer;
  font-size: 15px;
  display: none;
  padding: 4px;
}

.apps-search-clear:hover {
  color: #ff4d4d;
}

.apps-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid rgba(255, 26, 26, 0.28);
  border-radius: 14px;
  color: #ff6666;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* === CATEGORY FILTER PILLS (Multi-row Wrap, Never a Slider) === */
.filter-pills-nav {
  margin-top: 0;
  margin-bottom: 24px;
  width: 100%;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: flex-start;
  overflow: visible !important;
  padding: 0;
  scrollbar-width: none !important;
}

.filter-pills::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.filter-pill {
  background: rgba(10, 10, 14, 0.88);
  border: 1px solid rgba(255, 26, 26, 0.28);
  color: #cfd3e3;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.filter-pill:hover {
  background: rgba(22, 12, 14, 0.95);
  border-color: rgba(255, 26, 26, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 26, 26, 0.25);
}

.filter-pill.active {
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
  color: #fff;
  border-color: #ff4d4d;
  box-shadow: 0 4px 20px rgba(255, 26, 26, 0.5);
}

.filter-pill .pill-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

/* === APPS GRID (2 COLUMNS) === */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.apps-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(10, 10, 14, 0.88);
  border: 1px dashed rgba(255, 26, 26, 0.3);
  border-radius: 20px;
}

.apps-empty-state i {
  font-size: 40px;
  color: #ff4d4d;
  margin-bottom: 14px;
}

.apps-empty-state h3 {
  color: #a4a9bd;
  font-size: 1.2rem;
  margin: 0;
}

/* === CINEMATIC REDSPORTED APP CARD === */
.app-card {
  position: relative;
  min-height: 310px;
  background-color: #060608 !important;
  background-size: cover;
  background-position: center top;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 26, 26, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.88), 0 0 1px rgba(255, 26, 26, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: #ff1a1a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 26, 26, 0.45);
}

/* Rich obsidian vignette: vivid photo at top, pure black readability at bottom */
.app-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(5, 5, 8, 0.45) 35%,
    rgba(5, 5, 8, 0.86) 68%,
    rgba(4, 4, 6, 0.98) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: background 0.35s ease;
}

.app-card:hover .card-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 26, 26, 0.14) 0%,
    rgba(5, 5, 8, 0.3) 30%,
    rgba(5, 5, 8, 0.8) 65%,
    rgba(4, 4, 6, 0.97) 100%
  );
}

.app-card-content,
.app-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px 26px;
  box-sizing: border-box;
}

.app-card-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-bottom: 12px;
}

.app-card-header,
.app-card-top > .app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.app-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(6, 6, 9, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 26, 26, 0.4);
  color: #ff7373;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.2);
}

.app-card-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff1a1a;
  box-shadow: 0 0 6px #ff1a1a;
}

.app-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 26, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ff4d4d;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.app-card:hover .app-card-icon {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.55);
  border-color: #ff1a1a;
}

.app-card-center,
.app-card-top > .app-card-title,
.app-card-top > .app-card-desc {
  margin: 0 0 12px;
}

.app-card-title {
  display: block;
  width: 100%;
  margin: 0 0 8px 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.1px;
}

.app-card:hover .app-card-title {
  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;
  filter: none !important;
  transition: none !important;
}

.app-card-desc {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 0.95rem;
  color: #d1d5e5;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  opacity: 0.95;
}

.app-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  margin-top: 18px;
  width: 100%;
}

.app-article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff8080;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(8, 8, 12, 0.8);
  border: 1px solid rgba(255, 26, 26, 0.25);
  transition: all 0.2s ease;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-article-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-article-link:hover {
  background: rgba(255, 26, 26, 0.2);
  border-color: #ff1a1a;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.4);
}

.app-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 26, 26, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.app-launch-btn:hover {
  box-shadow: 0 0 25px rgba(255, 26, 26, 0.8);
  transform: translateY(-2px);
}

@media (max-width: 1150px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .apps-search-bar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .apps-count-pill {
    align-self: flex-start;
  }
}

@media (max-width: 830px) {
  .apps-wrapper {
    width: 100%;
    padding: 20px 14px 60px;
  }
  .apps-hub-title {
    font-size: 2rem;
  }
  .app-card-content,
  .app-card-inner {
    padding: 20px;
  }
  .app-card-title {
    font-size: 1.35rem;
  }
}

/* === MODAL DIALOG / APP WORKSPACE === */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.app-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.app-modal-dialog {
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 26, 26, 0.32);
  border-top: 3px solid #ff1a1a;
  border-radius: 22px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 26, 26, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
  scrollbar-width: thin;
}

.app-modal-dialog::-webkit-scrollbar {
  width: 8px;
}

.app-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 26, 26, 0.35);
  border-radius: 4px;
}

@keyframes modalPop {
  0% { transform: scale(0.94) translateY(15px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.app-modal-header {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 26, 26, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #0c080d;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 6, 10, 0.96) 0%,
    rgba(6, 6, 10, 0.88) 45%,
    rgba(6, 6, 10, 0.5) 75%,
    rgba(6, 6, 10, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.modal-title-area,
.app-modal-close {
  position: relative;
  z-index: 2;
}

.app-modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 6, 10, 0.95) 0%,
    rgba(6, 6, 10, 0.82) 50%,
    rgba(6, 6, 10, 0.5) 85%,
    rgba(6, 6, 10, 0.9) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.modal-title-area,
.app-modal-close {
  position: relative;
  z-index: 2;
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-title-area .modal-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 26, 26, 0.15);
  border: 1px solid var(--primary-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ff4d4d;
}

.modal-title-area h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #fff;
}

.app-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-smooth);
}

.app-modal-close:hover {
  background: #ff1a1a;
  color: #fff;
  border-color: #ff1a1a;
}

.app-modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.app-modal-footer {
  padding: 16px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 16, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* === FORM & INPUT ELEMENTS === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
  background: rgba(12, 8, 14, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 26, 26, 0.03);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e4ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.2px;
}

.form-group label span.unit {
  font-weight: 500;
  color: #ff6666;
  font-size: 12.5px;
}

.form-control {
  background: rgba(14, 6, 9, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.3);
  color: #ffffff;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.form-control:focus {
  border-color: #ff1a1a;
  box-shadow: 0 0 18px rgba(255, 26, 26, 0.45);
  background: rgba(24, 8, 12, 0.82);
}

.form-control:hover:not(:focus) {
  border-color: rgba(255, 26, 26, 0.55);
  background: rgba(18, 8, 12, 0.72);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff4d4d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select.form-control option {
  background: #0d0d14;
  color: #ffffff;
  padding: 10px;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: background 0.2s ease;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff1a1a;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.9);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(255, 26, 26, 1);
}

.range-val {
  min-width: 52px;
  text-align: right;
  font-weight: 800;
  font-size: 16px;
  color: #ff4d4d;
}

.btn-group-toggle {
  display: flex;
  background: rgba(10, 5, 8, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 12px;
  padding: 4px;
  gap: 5px;
}

.btn-toggle {
  flex: 1;
  background: none;
  border: none;
  color: #a5abbf;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-toggle:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 26, 26, 0.12);
}

.btn-toggle.active {
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(255, 26, 26, 0.45);
  font-weight: 700;
}

/* === RESULTS & OUTPUT PANELS === */
.results-panel {
  background: linear-gradient(135deg, rgba(30, 8, 12, 0.55) 0%, rgba(12, 6, 10, 0.68) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255, 26, 26, 0.06);
  position: relative;
  overflow: hidden;
  margin: 10px 0 24px;
}

.results-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff4d4d, #cc0000);
  box-shadow: 0 0 14px rgba(255, 26, 26, 0.8);
}

.result-subtitle {
  font-size: 0.92rem;
  font-weight: 600;
  color: #c0c6dc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.result-main-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.result-number {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
  text-shadow: 0 0 22px rgba(255, 26, 26, 0.5);
}

.result-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff4d4d;
  letter-spacing: 0.3px;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric-card {
  background: rgba(22, 6, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.22);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 14px rgba(255, 26, 26, 0.04);
}

.metric-card:hover {
  background: rgba(255, 26, 26, 0.1);
  border-color: #ff1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 26, 26, 0.25);
}

.metric-card .metric-label {
  font-size: 11.5px;
  color: #b0b5c8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.metric-card .metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.metric-card .metric-val.highlight {
  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;
  filter: none !important;
}

/* === BARBELL PLATE VISUALIZER === */
.barbell-visualizer {
  background: rgba(14, 6, 9, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 26, 26, 0.28);
  border-radius: 16px;
  padding: 24px;
  margin-top: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255, 26, 26, 0.04);
}

.barbell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #c0c6dc;
  margin-bottom: 16px;
}

.barbell-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  position: relative;
  background: radial-gradient(circle at center, rgba(32, 8, 14, 0.65) 0%, rgba(8, 6, 9, 0.8) 100%);
  border: 1px solid rgba(255, 26, 26, 0.22);
  border-radius: 12px;
  overflow-x: auto;
  padding: 0 20px;
}

.barbell-rod {
  height: 14px;
  background: linear-gradient(180deg, #b0b5c0 0%, #686e7a 50%, #202228 100%);
  width: 100%;
  position: absolute;
  border-radius: 3px;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.barbell-sleeve {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.plate {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.9), inset 0 1px 2px rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.plate:hover {
  transform: scale(1.08) translateY(-2px);
}

.plate-25 { height: 106px; width: 20px; background: linear-gradient(180deg, #ff3333, #b80000); }
.plate-20 { height: 96px; width: 18px; background: linear-gradient(180deg, #2563eb, #1e40af); }
.plate-15 { height: 84px; width: 16px; background: linear-gradient(180deg, #eab308, #a16207); }
.plate-10 { height: 72px; width: 14px; background: linear-gradient(180deg, #10b981, #047857); }
.plate-5  { height: 58px; width: 12px; background: linear-gradient(180deg, #e5e7eb, #9ca3af); color: #111; }
.plate-2_5 { height: 46px; width: 9px; background: linear-gradient(180deg, #374151, #111827); border-color: #6b7280; }
.plate-1_25 { height: 36px; width: 8px; background: linear-gradient(180deg, #9ca3af, #4b5563); }

.plate-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.plate-chip {
  background: rgba(255, 26, 26, 0.12);
  border: 1px solid rgba(255, 26, 26, 0.32);
  border-radius: 9px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff9999;
}

/* === TABLES IN CALCULATORS === */
.calc-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 26, 26, 0.25);
  background: rgba(14, 6, 9, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.calc-table th {
  background: rgba(26, 8, 12, 0.85);
  color: #ff4d4d;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  padding: 14px 18px;
  border-bottom: 2px solid rgba(255, 26, 26, 0.35);
  white-space: nowrap;
}

.calc-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 26, 26, 0.1);
  color: #d8dcee;
  transition: background 0.15s ease;
}

.calc-table tr:last-child td {
  border-bottom: none;
}

.calc-table tr:hover td {
  background: rgba(255, 26, 26, 0.12);
}

/* === SVG CHARTS (Pharma concentration / etc) === */
.chart-container {
  background: rgba(14, 6, 9, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 26, 26, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.chart-svg {
  width: 100%;
  height: 220px;
  overflow: visible;
  display: block;
}

/* === HEART RATE ZONES GAUGE === */
.hr-zones-bar {
  display: flex;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.hr-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.hr-zone:hover {
  filter: brightness(1.2);
  transform: scaleY(1.05);
  z-index: 2;
}

.hr-zone-1 { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.hr-zone-2 { background: linear-gradient(180deg, #10b981, #047857); }
.hr-zone-3 { background: linear-gradient(180deg, #f59e0b, #b45309); }
.hr-zone-4 { background: linear-gradient(180deg, #f97316, #c2410c); }
.hr-zone-5 { background: linear-gradient(180deg, #ef4444, #b91c1c); }

/* === TABATA & FASTING TIMERS === */
.timer-display {
  background: radial-gradient(circle at center, rgba(38, 10, 16, 0.7) 0%, rgba(8, 6, 10, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 26, 26, 0.4);
  border-radius: 26px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 40px rgba(255, 26, 26, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.8);
  margin: 15px 0 25px;
}

.timer-phase {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff4d4d;
}

.timer-clock {
  font-size: clamp(3.8rem, 8vw, 5.8rem);
  font-family: 'Consolas', 'Roboto Mono', monospace;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 26, 26, 0.7);
  letter-spacing: 2px;
}

.timer-info-row {
  display: flex;
  gap: 30px;
  font-size: 1.15rem;
  color: #a5abbf;
  font-weight: 600;
}

.timer-btn-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.timer-btn {
  border: none;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.timer-btn-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
}

.timer-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
}

.timer-btn-pause {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}

.timer-btn-pause:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

.timer-btn-reset {
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-btn-reset:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* === CNS FATIGUE / DIAGNOSTIC QUESTION CARDS === */
.cns-question-card {
  background: rgba(16, 6, 10, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 26, 26, 0.22);
  transition: border-color 0.2s ease;
}

.cns-question-card:hover {
  border-color: rgba(255, 26, 26, 0.45);
}

/* === NOT FOUND / EMPTY STATE === */
.apps-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.apps-empty-state i {
  font-size: 48px;
  color: #ff4d4d;
  margin-bottom: 16px;
}

/* === RESPONSIVE BREAKPOINTS (Verbatim 1:1 mobile integration from root style.css) === */
@media (max-width: 830px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 85px;
    box-sizing: border-box;
  }

  /* Вертикальне позиціонування на мобільних */
  .main-wrapper, .apps-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* Ховаємо десктопні елементи */
  .center-copy,
  .language-select,
  .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;
    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;
  }

  .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;
  }

  .main-wrapper {
    gap: 20px;
    width: 100%;
    padding-top: 15px;
  }

  .apps-wrapper {
    width: 100%;
    padding: 15px 0 30px;
  }

  .apps-hub-title {
    font-size: 1.85rem;
    line-height: 1.2;
    text-align: left;
  }

  .apps-hub-desc {
    font-size: 0.95rem;
    text-align: left;
  }

  .app-standalone-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 4px 60px 4px !important;
    box-sizing: border-box !important;
  }

  .app-standalone-header {
    padding: 16px 14px 18px !important;
    gap: 12px !important;
    border-radius: 16px !important;
  }

  .app-header-nav {
    width: 100% !important;
    justify-content: space-between !important;
    padding-bottom: 8px !important;
  }

  .app-header-main {
    flex-direction: column !important;
    text-align: center !important;
    gap: 14px !important;
  }

  .app-standalone-icon,
  .app-header-icon-box {
    width: 54px !important;
    height: 54px !important;
    font-size: 24px !important;
    margin: 0 auto !important;
  }

  .app-standalone-title h1,
  .app-standalone-header h1 {
    text-align: center !important;
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }

  .app-standalone-title p,
  .app-standalone-desc,
  #standalone-desc {
    text-align: center !important;
    font-size: 0.88rem !important;
  }

  /* Completely hide desktop bilateral ad sidebars on mobile */
  .sidebar.left-ads,
  .sidebar.right-ads {
    display: none !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    padding: 16px 12px !important;
    gap: 14px !important;
  }

  .related-article-banner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 18px 14px !important;
    gap: 14px !important;
  }

  .article-banner-content {
    flex-direction: column !important;
    text-align: center !important;
  }

  .article-banner-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Панель дій та кнопок на мобільних */
  .app-action-toolbar,
  .app-quick-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .btn-tool,
  .app-quick-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .bottom-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    min-height: 56px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
  }

  .bottom-panel .panel-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .app-modal-dialog {
    width: 100%;
    max-width: 95vw;
    max-height: 92vh;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .app-modal-body {
    padding: 14px;
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .timer-clock {
    font-size: 3.2rem;
  }
}

/* === STANDALONE APP PAGE ENHANCEMENTS === */
.app-standalone-wrapper {
  width: 62.5vw;
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px 15px 70px;
}

.app-standalone-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 28px;
  position: relative;
}

.app-standalone-header {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 26, 26, 0.4);
  border-top: 3px solid #ff1a1a;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 26, 26, 0.2);
  padding: 18px 26px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #0c080d;
}

.app-standalone-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 6, 10, 0.96) 0%,
    rgba(6, 6, 10, 0.88) 45%,
    rgba(6, 6, 10, 0.55) 75%,
    rgba(6, 6, 10, 0.8) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Верхній навігаційний рядок всередині блоку опису: зліва кнопка, справа категорія */
.app-header-nav,
.app-header-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.app-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6666;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(14, 8, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.35);
  padding: 7px 16px;
  border-radius: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.app-breadcrumb-link:hover {
  background: rgba(255, 26, 26, 0.22);
  border-color: #ff1a1a;
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 0 16px rgba(255, 26, 26, 0.5);
}

.app-header-nav .app-card-badge,
.app-header-nav-row .app-card-badge {
  background: rgba(14, 8, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.35);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ff8888;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Основний контент блоку опису */
.app-header-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
}

.app-standalone-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.22) 0%, rgba(204, 0, 0, 0.08) 100%);
  border: 1px solid rgba(255, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ff4d4d;
  box-shadow: 0 0 22px rgba(255, 26, 26, 0.35), inset 0 0 10px rgba(255, 26, 26, 0.1);
  flex-shrink: 0;
}

.app-standalone-title {
  flex: 1;
}

.app-standalone-title h1 {
  margin: 0 0 8px 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.app-standalone-title p,
.app-standalone-desc,
#standalone-desc {
  margin: 0;
  color: #c0c6dc;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 840px;
}

.app-action-toolbar {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 26, 26, 0.18);
  flex-wrap: wrap;
}

.btn-tool {
  background: rgba(16, 6, 10, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.3);
  color: #e4e7f2;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.25s ease;
}

.btn-tool:hover {
  background: rgba(255, 26, 26, 0.2);
  border-color: #ff1a1a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 26, 26, 0.35);
}

.btn-tool-accent {
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
  border-color: #ff4d4d;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 26, 26, 0.4);
}

.btn-tool-accent:hover {
  background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
  box-shadow: 0 6px 22px rgba(255, 26, 26, 0.6);
  transform: translateY(-2px);
}

/* History Box */
.app-history-panel {
  display: none;
  background: rgba(14, 6, 9, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 26, 26, 0.28);
  border-radius: 14px;
  padding: 20px;
  margin-top: 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.app-history-panel.open {
  display: block;
  animation: fadeInHistory 0.3s ease;
}

@keyframes fadeInHistory {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #c0c6dc;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  background: rgba(255, 26, 26, 0.05);
  border: 1px solid rgba(255, 26, 26, 0.18);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.history-item:hover {
  border-color: rgba(255, 26, 26, 0.4);
  background: rgba(255, 26, 26, 0.12);
}

.history-item-date {
  color: #a0a6bd;
  font-size: 12px;
}

.history-item-val {
  font-weight: 700;
  color: #ff4d4d;
}

/* Related Article Callout Banner */
.related-article-banner {
  background: linear-gradient(135deg, rgba(22, 6, 10, 0.72), rgba(35, 10, 16, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: var(--card-radius);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 26, 26, 0.15);
  transition: all 0.3s ease;
}

.related-article-banner:hover {
  border-color: rgba(255, 26, 26, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 26, 26, 0.25);
}

.article-banner-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.article-banner-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 26, 26, 0.18);
  border: 1px solid var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 26, 26, 0.35);
  flex-shrink: 0;
}

.article-banner-text h4 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.article-banner-text p {
  margin: 0;
  color: #c0c6dc;
  font-size: 0.92rem;
  line-height: 1.45;
}

.article-banner-btn {
  background: linear-gradient(135deg, #cc0000 0%, #ff1a1a 100%);
  border: 1px solid #ff4d4d;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(255, 26, 26, 0.35);
}

.article-banner-btn:hover {
  box-shadow: 0 6px 24px rgba(255, 26, 26, 0.6);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e60000 0%, #ff3333 100%);
}

/* ==========================================================================
   Interactive Badge Preview Modal (High-Tech Cyber Aesthetic)
   ========================================================================== */
.app-badge-preview-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: rgba(3, 2, 5, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  box-sizing: border-box;
}

.app-badge-preview-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.app-badge-preview-dialog {
  background: linear-gradient(145deg, rgba(16, 10, 18, 0.96), rgba(8, 6, 12, 0.98));
  border: 1px solid rgba(255, 26, 26, 0.5);
  border-top: 3px solid #ff1a1a;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 26, 26, 0.25);
  max-width: 540px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-badge-preview-backdrop.open .app-badge-preview-dialog {
  transform: scale(1) translateY(0);
}

.app-badge-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 26, 26, 0.2);
  background: rgba(255, 26, 26, 0.05);
}

.badge-preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-preview-title i {
  color: #ff334b;
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(255, 26, 26, 0.6));
}

.badge-preview-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a0a6bd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.badge-preview-close:hover {
  background: rgba(255, 26, 26, 0.25);
  border-color: #ff1a1a;
  color: #fff;
  transform: rotate(90deg);
}

.app-badge-preview-body {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  background: radial-gradient(circle at center, rgba(255, 26, 26, 0.08) 0%, transparent 70%);
}

#badge-preview-img {
  max-width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 26, 26, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 26, 26, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#badge-preview-img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 26, 26, 0.35);
}

.app-badge-preview-actions {
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 26, 26, 0.2);
  background: rgba(12, 8, 14, 0.7);
  flex-wrap: wrap;
  justify-content: center;
}

.app-badge-preview-actions .btn-tool {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}


/* ==========================================================================
   Universal Compatibility & Anti-Breakdown Styles
   Ensures absolute visual perfection across all HTML variants and markup styles
   ========================================================================== */

/* 1. Header Compatibility: Support for .site-header, .header-inner, .site-nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 10, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 26, 26, 0.22);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  padding: 12px 24px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.brand-name {
  color: #ffffff;
}

.brand-accent {
  color: #ff1a1a;
  text-shadow: 0 0 10px rgba(255, 26, 26, 0.6);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #c0c6dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 26, 26, 0.16);
  border: 1px solid rgba(255, 26, 26, 0.35);
  box-shadow: 0 0 12px rgba(255, 26, 26, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-btn {
  background: rgba(255, 26, 26, 0.15);
  border: 1px solid rgba(255, 26, 26, 0.4);
  color: #ff6666;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pwa-install-btn:hover {
  background: rgba(255, 26, 26, 0.3);
  color: #ffffff;
  border-color: #ff1a1a;
}

.lang-select-wrapper select,
select.lang-select {
  background: rgba(18, 10, 20, 0.85);
  border: 1px solid rgba(255, 26, 26, 0.35);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* 2. Standalone Header Class Aliases (.back-link, .app-category-badge, .app-header-icon-box) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6666;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(14, 8, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.35);
  padding: 7px 16px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.back-link:hover {
  background: rgba(255, 26, 26, 0.22);
  border-color: #ff1a1a;
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 0 16px rgba(255, 26, 26, 0.5);
}

.app-category-badge {
  background: rgba(14, 8, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.35);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ff8888;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-header-icon-box {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.22) 0%, rgba(204, 0, 0, 0.08) 100%);
  border: 1px solid rgba(255, 26, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ff3333;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255, 26, 26, 0.35), inset 0 0 12px rgba(255, 26, 26, 0.2);
}

/* 3. Toolbar & Button Compatibility (.app-quick-actions, .btn, .btn-secondary, .btn-sm) */
.app-quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 26, 26, 0.18);
  flex-wrap: wrap;
  align-items: center;
}

.btn,
.btn-secondary {
  background: rgba(14, 8, 12, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.32);
  color: #e4e7f2;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.btn:hover,
.btn-secondary:hover {
  background: rgba(255, 26, 26, 0.18);
  border-color: #ff1a1a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 26, 26, 0.35);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

/* 4. History Drawer Compatibility (.app-history-section, #appHistorySection) */
.app-history-section {
  background: rgba(14, 8, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 26, 26, 0.28);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 26, 26, 0.03);
}

.btn-text-danger {
  background: transparent;
  border: none;
  color: #ff4d4d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-text-danger:hover {
  background: rgba(255, 26, 26, 0.15);
  color: #ff6666;
}

/* 5. Article Reference Banner Compatibility (.app-article-reference, .ref-link) */
.app-article-reference {
  background: linear-gradient(135deg, rgba(22, 6, 10, 0.72), rgba(35, 10, 16, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 26, 26, 0.35);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 26, 26, 0.15);
  transition: all 0.3s ease;
}

.app-article-reference .ref-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 26, 26, 0.18);
  border: 1px solid #ff1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 26, 26, 0.35);
  flex-shrink: 0;
}

.app-article-reference .ref-content h4 {
  margin: 0 0 5px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.app-article-reference .ref-content p {
  margin: 0 0 10px 0;
  color: #c0c6dc;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ref-link {
  color: #ff6666;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.ref-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 26, 26, 0.6);
}

/* 6. Footer Compatibility (.site-footer, .footer-bottom) */
.site-footer {
  background: rgba(8, 6, 12, 0.95);
  border-top: 1px solid rgba(255, 26, 26, 0.2);
  padding: 24px 20px;
  text-align: center;
  color: #8890a6;
  font-size: 13px;
  margin-top: 60px;
}

/* 7. Form inputs general fallback */
.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid select,
.input-field,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select {
  background: rgba(14, 6, 9, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 26, 26, 0.3);
  color: #ffffff;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  box-sizing: border-box;
  width: 100%;
}

.form-grid input:focus,
.form-grid select:focus,
.input-field:focus,
.form-group input:focus,
.form-group select:focus {
  border-color: #ff1a1a;
  box-shadow: 0 0 18px rgba(255, 26, 26, 0.45);
  background: rgba(24, 8, 12, 0.82);
}

/* === CATEGORY BADGES & ENHANCED STANDALONE STYLING === */
.app-card-badge.badge-strength,
.badge-strength {
  background: rgba(255, 26, 26, 0.15) !important;
  border: 1px solid rgba(255, 26, 26, 0.45) !important;
  color: #ff6666 !important;
}

.app-card-badge.badge-pharma,
.badge-pharma {
  background: rgba(255, 45, 85, 0.15) !important;
  border: 1px solid rgba(255, 45, 85, 0.45) !important;
  color: #ff5e84 !important;
}

.app-card-badge.badge-nutrition,
.badge-nutrition {
  background: rgba(255, 149, 0, 0.15) !important;
  border: 1px solid rgba(255, 149, 0, 0.45) !important;
  color: #ffa524 !important;
}

.app-card-badge.badge-cardio,
.badge-cardio {
  background: rgba(255, 59, 48, 0.15) !important;
  border: 1px solid rgba(255, 59, 48, 0.45) !important;
  color: #ff756b !important;
}

.app-card-badge.badge-health,
.badge-health {
  background: rgba(52, 199, 89, 0.15) !important;
  border: 1px solid rgba(52, 199, 89, 0.45) !important;
  color: #5cdb87 !important;
}

/* Standalone container & loading state */
.app-standalone-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.app-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: #ff4d4d;
  font-size: 1.15rem;
  font-weight: 600;
}

.app-loading-state i {
  font-size: 2.5rem;
}
