/* ==========================================================================
   Lioris - Фирменный стиль (Brand Hub Styles)
   Apple Liquid Dark Glass System & Deep Physical Blur
   ========================================================================== */

body {
  background-color: #08080f;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(42, 171, 238, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

.bh-container {
  width: 100%;
  max-width: var(--container-max, 672px);
  margin: 0 auto;
  padding: 24px var(--space-4) calc(100px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .bh-container {
    padding-inline: var(--space-5);
  }
}

@media (min-width: 768px) {
  .bh-container {
    padding-inline: var(--space-6);
  }
}

/* ── Header ── */
.bh-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
}

.bh-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bh-back-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--btn-radius, 12px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-white);
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.bh-back-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12);
}

.bh-back-btn svg {
  width: 20px;
  height: 20px;
}

.bh-title {
  font-size: var(--text-xl, 20px);
  font-weight: var(--fw-800, 700);
  color: var(--p-white);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  line-height: var(--leading-tight);
}

.bh-subtitle {
  font-size: var(--text-13, 13px);
  color: var(--p-white-a50);
  line-height: var(--leading-base);
  margin: 0;
  padding: 0;
  font-weight: var(--fw-500, 500);
}

/* ── Cards List (Dark Liquid Glass with Physical Blur) ── */
.bh-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.bh-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg, 20px);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(139, 92, 246, 0.08) !important;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s, background 0.28s, border-color 0.28s;
}

.bh-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

@media (hover: hover) {
  .bh-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    box-shadow: 
      0 18px 48px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
      0 0 32px rgba(168, 85, 247, 0.18) !important;
  }
  .bh-card:hover::before {
    opacity: 1;
  }
}

.bh-card:active {
  transform: scale(0.985);
}

/* ── Card Icon Wrap ── */
.bh-card-icon-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, transparent 72%);
}

.bh-icon-svg {
  width: 76px;
  height: 76px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .bh-card:hover .bh-icon-svg {
    transform: scale(1.04);
  }
}

/* ── Card Body ── */
.bh-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bh-card-title {
  font-size: var(--text-lg, 17px);
  font-weight: var(--fw-700, 700);
  color: var(--p-white);
  margin: 0 0 4px 0;
  letter-spacing: var(--tracking-tight);
}

.bh-card-desc {
  font-size: var(--text-13, 13px);
  color: var(--p-white-a62);
  line-height: var(--leading-base);
  margin: 0 0 10px 0;
}

.bh-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: none !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  font-size: var(--text-xs, 12px);
  font-weight: var(--fw-500, 500);
  color: var(--p-white-a80);
  width: fit-content;
}

/* ── Card Action Arrow ── */
.bh-card-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-white);
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bh-card-action svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .bh-card:hover .bh-card-action {
    background: rgba(168, 85, 247, 0.25) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
  }
  .bh-card:hover .bh-card-action svg {
    transform: translateX(3px);
  }
}

/* ── Footer Motivation Note ── */
.bh-footer-note {
  margin-top: auto;
  padding: 24px 16px 8px;
  text-align: center;
}

.bh-footer-line-1 {
  font-size: var(--text-13, 13px);
  font-weight: var(--fw-600, 600);
  color: var(--p-white-a85);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bh-sparkle {
  color: var(--p-purple-200);
  font-size: var(--text-md, 14px);
}

.bh-footer-line-2 {
  font-size: var(--text-sm, 13px);
  color: var(--p-white-a40);
  margin: 0;
  line-height: var(--leading-base);
}
