/**
 * Homepage Liquid Glass polish — aligns with downloads recipe.
 * Load after bariplux + site + shell.
 */

/* Profile shell = primary liquid surface */
.profile-shell.glass,
.profile-shell.liquid {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 100%),
    rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 56px rgba(0, 0, 0, 0.28) !important;
  isolation: isolate;
}

.profile-shell.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%);
  opacity: 0.5;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.profile-shell > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  color: var(--bp-accent-2, #a5b4fc) !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.hero-actions .bp-btn,
.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform 160ms ease, background 200ms ease, border-color 200ms ease !important;
}

.hero-actions .bp-btn--glass,
.hero-actions .btn-primary {
  background: rgba(129, 140, 248, 0.32) !important;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

.hero-actions .bp-btn--glass:hover,
.hero-actions .btn-primary:hover {
  background: rgba(129, 140, 248, 0.46) !important;
  transform: translateY(-1px);
}

.hero-actions .bp-btn--ghost,
.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--bp-text, #f5f5f7) !important;
}

.hero-actions .bp-btn--ghost:hover,
.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(129, 140, 248, 0.35) !important;
}

.profile-pill,
.profile-shell__stats .stat-item {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.profile-shell__stats .stat-number {
  color: var(--bp-accent-2, #a5b4fc) !important;
}

.profile-shell__stats .stat-label {
  color: var(--bp-text-3, #888896) !important;
}

.profile-cert.liquid-nested,
.platform-chip.liquid-nested {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Homepage download cards — same frosted feel as /pages/downloads */
#downloads .download-card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 100%),
    rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.22) !important;
}

#downloads .download-card:hover {
  border-color: rgba(129, 140, 248, 0.42) !important;
  transform: translateY(-3px);
}

#downloads .download-btn {
  background: rgba(129, 140, 248, 0.28) !important;
  border: 1px solid rgba(129, 140, 248, 0.42) !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

#downloads .download-btn:hover {
  background: rgba(129, 140, 248, 0.42) !important;
}

#downloads .ripple {
  display: none !important;
}

/* Section titles — frosted chips */
.section-title.glass {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="light"] .profile-shell.glass,
html[data-theme="light"] #downloads .download-card,
html[data-theme="light"] .section-title.glass {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(15, 20, 40, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 36px rgba(15, 20, 40, 0.08) !important;
}

/* ═══════════════ LIVE HUB — events + support ═══════════════ */
.live-hub {
  padding: clamp(2.25rem, 5vw, 4rem) 0;
}

.live-hub__shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-card, 18px);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 42%, transparent 100%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.live-hub__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  opacity: 0.45;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.live-pane {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.15rem, 2.4vw, 1.55rem) clamp(1.15rem, 2.6vw, 1.65rem);
  min-width: 0;
}

.live-hub__rule {
  position: relative;
  z-index: 1;
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.16) 18%,
    rgba(255, 255, 255, 0.16) 82%,
    transparent
  );
}

.live-pane__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(129, 140, 248, 0.34);
  border: 1px solid rgba(129, 140, 248, 0.42);
}

.live-chip--soft {
  color: var(--bp-text-2, #c0c0c8);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.live-pane__title {
  margin: 0;
  font-family: var(--bp-font-display, "Space Grotesk", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bp-text, #f5f5f7);
}

.live-pane__text {
  margin: 0;
  color: var(--bp-text-2, #c0c0c8);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 32ch;
}

.live-pane__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(129, 140, 248, 0.32);
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 160ms ease, background 160ms ease;
}

.live-pane__cta:hover {
  transform: translateY(-1px);
  background: rgba(129, 140, 248, 0.45);
}

.live-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.1rem 0 0.15rem;
}

.live-status__cell {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bp-text-3, #888896);
}

.meta-value,
.status-value {
  font-size: 0.95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--bp-text, #f5f5f7);
}

.status-value {
  color: var(--bp-accent-2, #a5b4fc);
}

.live-pane__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.live-pane__actions .bp-btn,
.live-pane__actions .contact-btn,
.live-pane__actions .timezone-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.live-pane__actions .contact-btn,
.live-pane__actions .bp-btn--glass {
  background: rgba(129, 140, 248, 0.32);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #fff;
}

.live-pane__actions .timezone-help-btn,
.live-pane__actions .bp-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bp-text, #f5f5f7);
}

@media (max-width: 720px) {
  .live-hub__shell {
    grid-template-columns: 1fr;
  }
  .live-hub__rule {
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.16) 18%,
      rgba(255, 255, 255, 0.16) 82%,
      transparent
    );
  }
  .live-pane__text { max-width: none; }
}

html[data-theme="light"] .live-hub__shell {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 20, 40, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 36px rgba(15, 20, 40, 0.08);
}

html[data-theme="light"] .live-pane__title,
html[data-theme="light"] .meta-value {
  color: #12131a;
}

html[data-theme="light"] .live-pane__text,
html[data-theme="light"] .live-chip--soft,
html[data-theme="light"] .meta-label {
  color: #3f4558;
}

html[data-theme="light"] .live-status__cell {
  background: rgba(15, 20, 40, 0.04);
  border-color: rgba(15, 20, 40, 0.08);
}

html[data-theme="light"] .live-hub__rule {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(15, 20, 40, 0.12) 18%,
    rgba(15, 20, 40, 0.12) 82%,
    transparent
  );
}

/* ═══════════════ BARI PLUX TOOL SPOTLIGHT ═══════════════ */
.bp-tool-spot {
  padding: clamp(2rem, 4.5vw, 3.25rem) 0;
}

.bp-tool-spot__shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.35rem, 3vw, 2rem);
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 42%, transparent 100%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.24);
}

.bp-tool-spot__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  opacity: 0.45;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.bp-tool-spot__shell > * {
  position: relative;
  z-index: 1;
}

.bp-tool-spot__kicker {
  margin: 0 0 0.4rem;
  color: var(--bp-accent-2, #a5b4fc);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bp-tool-spot__title {
  margin: 0 0 0.55rem;
  font-family: var(--bp-font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 12%, var(--bp-accent-2, #a5b4fc) 58%, var(--bp-accent, #818cf8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bp-tool-spot__lead {
  margin: 0 0 1.1rem;
  max-width: 42ch;
  color: var(--bp-text-2, #c0c0c8);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bp-tool-spot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bp-tool-spot__actions .bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.bp-tool-spot__actions .bp-btn--glass {
  background: rgba(129, 140, 248, 0.34);
  border: 1px solid rgba(129, 140, 248, 0.48);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.bp-tool-spot__actions .bp-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bp-text, #f5f5f7);
}

.bp-tool-spot__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-tool-spot__aside img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.3));
}

.bp-tool-spot__list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.bp-tool-spot__list li {
  position: relative;
  padding: 0.35rem 0.35rem 0.35rem 1.15rem;
  font-size: 0.84rem;
  color: var(--bp-text-2, #c0c0c8);
}

.bp-tool-spot__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bp-accent-2, #a5b4fc);
}

@media (max-width: 720px) {
  .bp-tool-spot__shell {
    grid-template-columns: 1fr;
  }
  .bp-tool-spot__lead {
    max-width: none;
  }
}

html[data-theme="light"] .bp-tool-spot__shell,
html[data-theme="light"] .bp-tool-spot__aside {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 20, 40, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 36px rgba(15, 20, 40, 0.08);
}

html[data-theme="light"] .bp-tool-spot__title {
  background: linear-gradient(135deg, #12131a 15%, #4f46e5 80%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .bp-tool-spot__lead,
html[data-theme="light"] .bp-tool-spot__list li {
  color: #3f4558;
}

/* ═══════════════ BLOG + PLUX TIMES (homepage) ═══════════════ */
#blog .blog-grid,
#plux-times .plux-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

#blog .blog-card,
#plux-times .plux-article {
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 100%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, border-color 180ms ease;
}

#blog .blog-card:hover,
#plux-times .plux-article:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.4);
}

#blog .blog-img-container {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

#plux-times .plux-article-img,
#plux-times .plux-article > img,
#plux-times .plux-article img.plux-article-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 148px;
  max-height: 148px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

#blog .blog-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: auto;
}

#blog .blog-content,
#plux-times .plux-article-content {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#blog .blog-title,
#plux-times .plux-article-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--bp-text, #f5f5f7);
}

#blog .blog-excerpt,
#plux-times .plux-article-excerpt {
  margin: 0;
  color: var(--bp-text-2, #c0c0c8);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blog .blog-link,
#plux-times .plux-article a.read-more {
  margin-top: auto;
  color: var(--bp-accent-2, #a5b4fc);
  font-weight: 650;
  font-size: 0.86rem;
}

#blog .blog-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(129, 140, 248, 0.4);
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: #fff;
}

@media (max-width: 900px) {
  #blog .blog-grid,
  #plux-times .plux-articles {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  #blog .blog-grid,
  #plux-times .plux-articles {
    grid-template-columns: 1fr;
  }
}

