/* AppleDevelopersAcc — unified navy + apple-blue system */
:root,
[data-bs-theme="light"] {
  --ada-ink: #0b1f33;
  --ada-ink-soft: #243447;
  --ada-accent: #0071e3;
  --ada-accent-2: #2f8fff;
  --ada-accent-soft: rgba(0, 113, 227, 0.12);
  --ada-tg: #229ed9;
  --ada-surface: #ffffff;
  --ada-surface-2: #f3f7fc;
  --ada-line: #d7e2ee;
  --ada-muted: #5b6b7c;
  --ada-radius: 14px;
  --ada-radius-lg: 18px;
  --ada-shadow: 0 12px 32px rgba(11, 31, 51, 0.07);
  --ada-shadow-lg: 0 18px 44px rgba(11, 31, 51, 0.12);
  --ada-grad: linear-gradient(135deg, #2f8fff, #0071e3);
  --ada-grad-deep: linear-gradient(145deg, #0b1f33, #0071e3);
  --ada-panel-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.92));
  --ada-panel-border: rgba(0, 113, 227, 0.12);
  --bg-auto-rgb: 238, 243, 249;
  --primary-color-rgba: 0, 113, 227;
  --primary-bg-rgba: 0, 113, 227, 0.14;
  --link-color-rgba: 11, 31, 51, 1;
  --link-color-second-rgba: 91, 107, 124, 1;
  --bs-body-font-family: "MiSans VF", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

[data-bs-theme="dark"] {
  --ada-ink: #e8eef5;
  --ada-ink-soft: #c5d0dc;
  --ada-accent: #4da3ff;
  --ada-accent-2: #7ec8ff;
  --ada-accent-soft: rgba(77, 163, 255, 0.16);
  --ada-tg: #4da3ff;
  --ada-surface: #121820;
  --ada-surface-2: #1a222c;
  --ada-line: #2a3542;
  --ada-muted: #9aa8b8;
  --ada-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --ada-shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.35);
  --ada-grad: linear-gradient(135deg, #4da3ff, #0071e3);
  --ada-grad-deep: linear-gradient(145deg, #152536, #0071e3);
  --ada-panel-bg: linear-gradient(160deg, rgba(26, 34, 44, 0.96), rgba(18, 24, 32, 0.94));
  --ada-panel-border: rgba(77, 163, 255, 0.16);
  --bg-auto-rgb: 10, 14, 20;
  --primary-color-rgba: 77, 163, 255;
  --primary-bg-rgba: 77, 163, 255, 0.18;
  --link-color-rgba: 232, 238, 245, 0.92;
  --link-color-second-rgba: 154, 168, 184, 1;
}

body.bg-auto {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(980px 520px at 6% -8%, rgba(0, 113, 227, 0.16), transparent 58%),
    radial-gradient(860px 460px at 96% 4%, rgba(34, 158, 217, 0.12), transparent 55%),
    radial-gradient(720px 420px at 50% 100%, rgba(11, 31, 51, 0.07), transparent 60%),
    linear-gradient(180deg, #eef4fb 0%, #f5f8fc 42%, #eef3f9 100%) !important;
  color: var(--ada-ink);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body.bg-auto::before {
  content: "";
  position: fixed;
  inset: -10% -5%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(420px 280px at 18% 28%, rgba(77, 163, 255, 0.18), transparent 70%),
    radial-gradient(380px 260px at 78% 62%, rgba(0, 113, 227, 0.12), transparent 68%),
    radial-gradient(300px 220px at 42% 78%, rgba(34, 158, 217, 0.10), transparent 70%);
  filter: blur(8px);
  animation: ada-bg-drift 18s ease-in-out infinite alternate;
}

body.bg-auto::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 31, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 51, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
}

[data-bs-theme="dark"] body.bg-auto {
  background:
    radial-gradient(980px 520px at 6% -8%, rgba(77, 163, 255, 0.14), transparent 58%),
    radial-gradient(860px 460px at 96% 4%, rgba(0, 113, 227, 0.12), transparent 55%),
    linear-gradient(180deg, #0b1016 0%, #101820 50%, #0c1219 100%) !important;
}

[data-bs-theme="dark"] body.bg-auto::before {
  background:
    radial-gradient(420px 280px at 18% 28%, rgba(77, 163, 255, 0.16), transparent 70%),
    radial-gradient(380px 260px at 78% 62%, rgba(0, 113, 227, 0.12), transparent 68%);
}

@keyframes ada-bg-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}

.container.bg-body {
  background: var(--ada-surface) !important;
  border: 1px solid var(--ada-line);
  border-radius: var(--ada-radius-lg) !important;
  box-shadow: var(--ada-shadow) !important;
  overflow: hidden;
}

/* Slightly wider content shell (theme main.css caps xxl at 1200px) */
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1240px;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1360px;
  }
}

.navbar-background,
.ada-navbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--ada-line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

[data-bs-theme="dark"] .ada-navbar {
  background: rgba(18, 24, 32, 0.88) !important;
}

.ada-nav-brand {
  max-width: none !important;
  overflow: visible !important;
  text-decoration: none !important;
  flex-shrink: 1;
  min-width: 0;
  margin-right: 0.45rem !important;
  column-gap: 0.65rem !important;
}

.ada-nav-brand:hover .ada-brand-name {
  color: var(--ada-accent);
}

.ada-nav-brand:hover .ada-brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 113, 227, 0.32);
}

.ada-brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: var(--ada-grad-deep);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.28);
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ada-brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.ada-brand-mark-main {
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ada-brand-mark-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #34a853, #0f9d58);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(15, 157, 88, 0.35);
  line-height: 1;
}

[data-bs-theme="dark"] .ada-brand-mark-badge {
  border-color: #121820;
}

.ada-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.1;
  min-width: 0;
}

.ada-brand-name {
  font-weight: 780;
  letter-spacing: -0.035em;
  color: var(--ada-ink);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.ada-brand-sub {
  font-size: 0.7rem;
  color: var(--ada-muted);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.ada-navbar .navbar-collapse {
  min-width: 0;
  flex-wrap: nowrap;
}

.ada-nav-menu {
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  column-gap: 0.08rem !important;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(11, 31, 51, 0.035);
  border: 1px solid rgba(11, 31, 51, 0.06);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ada-nav-menu::-webkit-scrollbar {
  display: none;
}

.ada-nav-menu .nav-item {
  flex-shrink: 0;
}

.ada-nav-tools {
  flex: 0 0 auto;
  margin-left: auto !important;
}

.ada-nav-link {
  color: var(--ada-ink-soft) !important;
  font-size: 0.8rem !important;
  font-weight: 450 !important;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  padding: 0.36rem 0.7rem !important;
  letter-spacing: 0.01em;
  background: transparent !important;
  box-shadow: none !important;
}

.ada-nav-link:hover {
  color: var(--ada-accent) !important;
  background: rgba(0, 113, 227, 0.06) !important;
}

.ada-nav-link.active {
  color: var(--ada-accent) !important;
  background: rgba(0, 113, 227, 0.1) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.ada-nav-tg {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  color: #1a8bb8 !important;
  background: rgba(34, 158, 217, 0.08) !important;
  border: 1px solid rgba(34, 158, 217, 0.18) !important;
  box-shadow: none !important;
  font-weight: 450 !important;
}

.ada-nav-tg:hover,
.ada-nav-tg:focus {
  color: #0f7aa6 !important;
  background: rgba(34, 158, 217, 0.14) !important;
  border-color: rgba(34, 158, 217, 0.28) !important;
  filter: none;
}

.ada-nav-tg .ti {
  font-size: 0.95rem;
  line-height: 1;
  color: #229ed9;
}

[data-bs-theme="dark"] .ada-nav-menu {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(77, 163, 255, 0.12);
}

[data-bs-theme="dark"] .ada-nav-link {
  color: var(--ada-muted) !important;
}

[data-bs-theme="dark"] .ada-nav-link:hover {
  background: rgba(77, 163, 255, 0.1) !important;
  color: var(--ada-accent-2) !important;
}

[data-bs-theme="dark"] .ada-nav-link.active {
  color: var(--ada-accent-2) !important;
  background: rgba(77, 163, 255, 0.14) !important;
}

[data-bs-theme="dark"] .ada-nav-tg {
  color: #7ec8ff !important;
  background: rgba(34, 158, 217, 0.12) !important;
  border-color: rgba(77, 163, 255, 0.2) !important;
}

[data-bs-theme="dark"] .ada-nav-tg:hover,
[data-bs-theme="dark"] .ada-nav-tg:focus {
  color: #a8dbff !important;
  background: rgba(34, 158, 217, 0.18) !important;
}

.ada-search {
  border: 1px solid var(--ada-line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: var(--ada-surface-2);
  min-width: 0;
  color: var(--ada-muted);
  flex-shrink: 0;
}

.ada-search input {
  outline: none;
  width: 96px;
  font-size: 0.8rem;
  color: var(--ada-ink);
}

.ada-tg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem 0.32rem 0.4rem;
  border-radius: 999px;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--ada-tg) 0%, var(--ada-accent) 100%);
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.ada-tg-chip:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff !important;
}

.ada-tg-chip > .ti {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
}

.ada-tg-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ada-tg-label {
  font-size: 0.68rem;
  opacity: 0.9;
  font-weight: 500;
}

.ada-tg-id {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.ada-tg-chip-sm {
  padding: 0.3rem 0.65rem;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.ada-tg-chip-sm > .ti {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 1.05rem;
}

.ada-tg-chip-block {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 0.9rem;
}

@media (max-width: 1199.98px) {
  .ada-search {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .ada-brand-sub {
    display: none !important;
  }

  .ada-brand-name {
    font-size: 0.86rem;
  }

  .ada-brand-mark {
    width: 34px;
    height: 34px;
  }
}

.ada-mobile-nav .list-group-item {
  border: 0;
  border-radius: 10px !important;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.ada-mobile-nav .list-group-item.active {
  background: var(--ada-accent-soft) !important;
  color: var(--ada-accent) !important;
}

#left .nav-link i:hover,
#left .nav-link:focus i {
  background: var(--ada-accent-soft);
  color: var(--ada-accent);
}

#index-content article.card,
#middle article.card {
  border: 0 !important;
  border-bottom: 1px solid var(--ada-line) !important;
  border-radius: 0 !important;
  background: transparent;
  transition: background-color 0.18s ease, transform 0.18s ease;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

#index-content article.card:hover {
  background: var(--ada-surface-2);
  transform: translateY(-1px);
}

#index-content .card-title a,
#post-article .card-title {
  color: var(--ada-ink) !important;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

#index-content .card-title {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#index-content .card-text.more {
  color: var(--ada-muted) !important;
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.thumbnail {
  width: 168px !important;
  min-width: 168px;
  height: 105px !important;
  border-radius: 12px !important;
  border: 1px solid var(--ada-line) !important;
  background: transparent !important;
  background-image: none !important;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: block;
  flex: 0 0 168px !important;
  align-self: center;
  padding: 0 !important;
  margin-left: 0.75rem !important;
  box-shadow: 0 6px 16px rgba(11, 31, 51, 0.06);
}

#middle .thumbnail {
  width: 168px !important;
  min-width: 168px !important;
  height: 105px !important;
  flex: 0 0 168px !important;
}

#middle .card > .d-flex {
  align-items: center;
  column-gap: 0.85rem !important;
}

.thumbnail .ada-thumb-img,
.ada-thumb-img,
#content .thumbnail img,
#middle .thumbnail img,
#index-content .thumbnail img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block !important;
  border-radius: inherit;
  vertical-align: top;
}

#post-article h1.card-title {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem) !important;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

#post-content {
  color: var(--ada-ink-soft);
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.85;
}

#post-content h2,
#post-content h3 {
  color: var(--ada-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
}

#post-content a {
  color: var(--ada-accent);
}

#post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

#post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.1rem 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--ada-line);
  border-radius: 14px;
  background: #fff;
}

#post-content thead th {
  background: var(--ada-surface-2);
  color: var(--ada-ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--ada-line);
}

#post-content td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(215, 226, 238, 0.8);
  vertical-align: top;
  font-size: 0.92rem;
}

#post-content tr:last-child td {
  border-bottom: 0;
}

#post-content blockquote {
  margin: 1.2rem 0;
  padding: 0.95rem 1.05rem;
  border-left: 3px solid var(--ada-accent);
  border-radius: 0 12px 12px 0;
  background: var(--ada-accent-soft);
  color: var(--ada-ink-soft);
}

/* Channel promo article blocks */
.ada-ch-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: center;
  margin: 0 0 1.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #0b1f33 0%, #123a5c 55%, #0d2844 100%);
  border: 1px solid rgba(77, 163, 255, 0.22);
  box-shadow: 0 16px 36px rgba(11, 31, 51, 0.14);
  color: #e8eef5;
}

.ada-ch-hero img {
  width: 88px !important;
  height: 88px !important;
  border-radius: 22px !important;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.ada-ch-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec8ff;
  margin-bottom: 0.35rem;
}

.ada-ch-hero h3 {
  margin: 0 0 0.35rem !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.ada-ch-hero p {
  margin: 0 0 0.85rem;
  color: #b7c9db;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ada-ch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ada-ch-hero-actions a {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem !important;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
}

.ada-ch-btn-main {
  background: linear-gradient(135deg, #34b3ef, #0071e3) !important;
}

.ada-ch-btn-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(158, 200, 255, 0.28);
  color: #d7e8ff !important;
}

.ada-ch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 1.4rem;
}

.ada-ch-card {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--ada-surface-2);
  border: 1px solid var(--ada-line);
}

.ada-ch-card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ada-ink);
  font-size: 0.95rem;
}

.ada-ch-card span {
  color: var(--ada-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.ada-ch-steps {
  counter-reset: ada-ch-step;
  list-style: none;
  margin: 0.8rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ada-ch-steps li {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 3.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ada-line);
}

.ada-ch-steps li::before {
  counter-increment: ada-ch-step;
  content: counter(ada-ch-step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--ada-grad);
}

.ada-ch-contact {
  margin: 1.6rem 0 0.4rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(0, 113, 227, 0.08), rgba(243, 247, 252, 0.95));
  border: 1px solid rgba(0, 113, 227, 0.14);
}

.ada-ch-contact h3 {
  margin-top: 0 !important;
  margin-bottom: 0.65rem !important;
  font-size: 1.1rem !important;
}

.ada-ch-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.ada-ch-contact-row a {
  display: inline-flex !important;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff !important;
  border: 1px solid var(--ada-line);
  color: var(--ada-ink) !important;
  text-decoration: none !important;
  font-size: 0.84rem !important;
  font-weight: 600;
}

.ada-ch-contact-row a:hover {
  border-color: rgba(0, 113, 227, 0.3);
  color: var(--ada-accent) !important;
}

@media (max-width: 767.98px) {
  .ada-ch-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .ada-ch-hero-actions {
    justify-content: center;
  }

  .ada-ch-grid {
    grid-template-columns: 1fr;
  }
}

.ada-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 0.15rem;
  margin-bottom: 0.55rem;
  padding: 0;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(165deg, #0b1f33 0%, #123454 48%, #0d2844 100%);
  box-shadow:
    0 18px 40px rgba(11, 31, 51, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e8eef5;
  animation: ada-hero-in 0.55s ease both;
}

.ada-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 240px at 92% 8%, rgba(0, 113, 227, 0.42), transparent 60%),
    radial-gradient(380px 200px at 8% 100%, rgba(77, 163, 255, 0.18), transparent 55%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.ada-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #4da3ff, #0071e3 55%, transparent);
  z-index: 1;
}

.ada-hero-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.35), transparent 68%);
  filter: blur(8px);
  animation: ada-glow-float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.ada-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.75rem 1.55rem 1.7rem 1.7rem;
}

.ada-hero .ada-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ec8ff;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(158, 200, 255, 0.22);
  backdrop-filter: blur(8px);
}

.ada-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4da3ff;
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.25);
  animation: ada-dot-pulse 2.2s ease-in-out infinite;
}

.ada-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #fff;
  font-weight: 760;
  max-width: 18em;
  text-wrap: balance;
}

.ada-hero p {
  margin: 0;
  color: rgba(232, 238, 245, 0.78);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 40rem;
}

.ada-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.ada-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ada-btn-primary {
  background: var(--ada-grad);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.35);
}

.ada-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.42);
  color: #fff !important;
}

.ada-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

.ada-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(158, 200, 255, 0.55);
  color: #fff !important;
  transform: translateY(-1px);
}

@keyframes ada-hero-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ada-glow-float {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.85; }
  50% { transform: translate3d(-12px, 10px, 0); opacity: 1; }
}

@keyframes ada-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(77, 163, 255, 0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .ada-hero,
  .ada-hero-glow,
  .ada-kicker-dot {
    animation: none !important;
  }
}

.ada-side-card {
  border: 1px solid var(--ada-panel-border);
  border-radius: var(--ada-radius-lg);
  padding: 1.05rem 1.1rem;
  background: var(--ada-panel-bg);
  box-shadow: var(--ada-shadow);
  margin: 1rem 0;
}

.ada-side-card h2 {
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
  color: var(--ada-ink);
  font-weight: 700;
}

.ada-side-card p {
  margin: 0 0 0.75rem;
  color: var(--ada-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

#pagination .page-link,
#pagination .page-item span {
  border-radius: 8px !important;
}

@media (max-width: 991.98px) {
  body > .container.bg-body {
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .thumbnail,
  #middle .thumbnail {
    width: 120px !important;
    min-width: 120px !important;
    height: 76px !important;
    flex: 0 0 120px !important;
    margin-left: 0.5rem !important;
  }

  #index-content,
  #middle > .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .ada-hero-content {
    padding: 1.2rem 1.1rem 1.25rem;
  }

  .ada-hero h1 {
    font-size: clamp(1.28rem, 6vw, 1.55rem);
  }
}

/* ===== Premium site footer — navy system (matches hero) ===== */
body > .container.text-body-tertiary {
  /* Same Bootstrap .container width as .container.bg-body; no extra inset */
  width: 100%;
  margin-top: 0.75rem !important;
  margin-bottom: 2rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  color: #9fb3c7 !important;
}

body > .container.text-body-tertiary > .row > .col-12:first-child {
  display: none !important; /* hide default theme credit line */
}

body > .container.text-body-tertiary > .row > .col-12:last-child {
  padding: 0 !important;
}

.ada-site-footer {
  --ft-ink: #eef4fb;
  --ft-muted: #93a8bd;
  --ft-soft: #c5d5e6;
  --ft-line: rgba(158, 200, 255, 0.14);
  --ft-panel: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  padding: 2.1rem 1.7rem 1.25rem;
  background:
    linear-gradient(155deg, #081926 0%, #0d2438 42%, #0a1c2e 100%);
  border: 1px solid var(--ft-line);
  box-shadow:
    0 22px 50px rgba(8, 25, 38, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--ft-ink);
}

.ada-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 260px at 8% -10%, rgba(0, 113, 227, 0.26), transparent 62%),
    radial-gradient(420px 220px at 100% 110%, rgba(34, 158, 217, 0.14), transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.ada-site-footer::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 200, 255, 0.45), transparent);
  z-index: 1;
  pointer-events: none;
}

.ada-footer-glow {
  position: absolute;
  width: 320px;
  height: 200px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.22), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  animation: ada-glow-float 8s ease-in-out infinite;
}

.ada-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 0.85fr 1.05fr;
  gap: 1.5rem 1.35rem;
  margin-bottom: 1.45rem;
}

.ada-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding-right: 0.4rem;
}

.ada-footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ec8ff;
}

.ada-footer-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: normal;
  color: #fff;
  background: linear-gradient(145deg, #1a4f86, #0071e3);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.28);
}

.ada-footer-mark i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  font-style: normal;
  color: #fff;
  background: linear-gradient(145deg, #34c759, #248a3d);
  border: 1.5px solid #0a1c2e;
}

.ada-footer-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
}

.ada-footer-desc {
  margin: 0;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ft-muted);
}

.ada-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.ada-footer-badges span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ft-soft);
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(158, 200, 255, 0.14);
}

.ada-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.ada-footer-social-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f94a8;
  margin-right: 0.2rem;
}

.ada-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7e6f5 !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(158, 200, 255, 0.14);
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ada-footer-social a:hover {
  color: #fff !important;
  background: rgba(0, 113, 227, 0.28);
  border-color: rgba(77, 163, 255, 0.35);
  transform: translateY(-1px);
}

.ada-footer-col-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ec8ff;
}

.ada-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ada-footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 450;
  color: var(--ft-soft) !important;
  text-decoration: none !important;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ada-footer-list a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(77, 163, 255, 0.55);
  flex-shrink: 0;
}

.ada-footer-list a:hover {
  color: #fff !important;
  transform: translateX(2px);
}

.ada-footer-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--ft-panel);
  border: 1px solid rgba(158, 200, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ada-footer-contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: #e8f6fc !important;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ada-footer-contact:hover {
  transform: translateY(-1px);
  background: rgba(34, 158, 217, 0.18);
  border-color: rgba(34, 158, 217, 0.4);
  color: #fff !important;
  filter: none;
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.16);
}

.ada-footer-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #34b3ef, #229ed9);
  flex-shrink: 0;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 8px 16px rgba(34, 158, 217, 0.28);
}

.ada-footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
  line-height: 1.15;
}

.ada-footer-contact-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd0e8;
}

.ada-footer-contact strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.ada-footer-contact-cta {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  color: #d9f0fa;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.ada-footer-aside-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ft-muted);
}

.ada-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--ft-line);
  font-size: 0.76rem;
  font-weight: 400;
  color: #7f94a8;
  letter-spacing: 0.01em;
}

.ada-footer-bottom-meta {
  color: #8ea3b8;
}

.ada-site-footer a {
  text-decoration: none !important;
}

@media (max-width: 1199.98px) {
  .ada-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .ada-footer-aside {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .ada-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .ada-footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .ada-footer-aside {
    grid-column: 1 / -1;
  }

  body > .container.text-body-tertiary {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none;
  }

  .ada-site-footer {
    border-radius: 0;
    padding: 1.7rem 1.15rem 1.15rem;
  }
}

@media (max-width: 575.98px) {
  .ada-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Content top breathing room under navbar */
#index-content,
#middle > .container-fluid {
  padding-top: 1.85rem !important;
  padding-bottom: 1.85rem !important;
  row-gap: 1.35rem !important;
}

#right > .sticky-top {
  padding-top: 1.15rem;
  padding-bottom: 1.25rem;
}

#right > .sticky-top > :first-child {
  margin-top: 0.25rem;
}

.ada-hot-panel,
.ada-reviews-panel,
.ada-tags-panel,
.ada-channels-panel {
  padding-top: 1.2rem !important;
  padding-bottom: 1.05rem !important;
}

.ada-hot-head,
.ada-reviews-head,
.ada-tags-head,
.ada-channels-head {
  margin-bottom: 1rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 113, 227, 0.08);
}

[data-bs-theme="dark"] .ada-hot-head,
[data-bs-theme="dark"] .ada-reviews-head,
[data-bs-theme="dark"] .ada-tags-head,
[data-bs-theme="dark"] .ada-channels-head {
  border-bottom-color: rgba(77, 163, 255, 0.12);
}

/* ===== More channels (sidebar) ===== */
.ada-channels-panel {
  position: relative;
  margin: 0.55rem 0.95rem 1.05rem;
  padding: 1.2rem 1.05rem 1rem;
  border-radius: var(--ada-radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, rgba(34, 158, 217, 0.08), rgba(243, 247, 252, 0.96) 42%, rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(34, 158, 217, 0.16);
  box-shadow: var(--ada-shadow);
}

.ada-channels-panel::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -48px;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.ada-channels-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ada-channels-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #34b3ef, #229ed9 55%, #0071e3);
  box-shadow: 0 8px 18px rgba(34, 158, 217, 0.32);
  font-size: 1.05rem;
}

.ada-channels-head h6 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ada-ink);
}

.ada-channels-head p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--ada-muted);
}

.ada-channels-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ada-channel-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.55rem;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(34, 158, 217, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  animation: ada-tag-in 0.4s ease both;
  animation-delay: calc(var(--ada-ch-i, 1) * 35ms);
}

.ada-channel-item:hover {
  transform: translateX(2px);
  background: #fff;
  border-color: rgba(34, 158, 217, 0.28);
  box-shadow: 0 10px 20px rgba(34, 158, 217, 0.12);
}

.ada-channel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #4db8ef, #229ed9);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}

.ada-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.ada-channel-avatar-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.ada-channel-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ada-channel-name {
  font-size: 0.8rem;
  font-weight: 720;
  color: var(--ada-ink);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ada-channel-tag {
  width: fit-content;
  font-size: 0.64rem;
  font-weight: 650;
  color: #1789bf;
  background: rgba(34, 158, 217, 0.12);
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  line-height: 1.3;
}

.ada-channel-go {
  color: rgba(34, 158, 217, 0.45);
  font-size: 0.95rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.ada-channel-item:hover .ada-channel-go {
  color: var(--ada-tg);
  transform: translate(1px, -1px);
}

.ada-channels-tools {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(34, 158, 217, 0.18);
}

.ada-channels-tools a {
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--ada-muted) !important;
  text-decoration: none !important;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 113, 227, 0.1);
  transition: 0.15s ease;
}

.ada-channels-tools a:hover {
  color: var(--ada-accent) !important;
  border-color: rgba(0, 113, 227, 0.22);
  background: #fff;
}

[data-bs-theme="dark"] .ada-channels-panel {
  background: linear-gradient(165deg, rgba(34, 158, 217, 0.14), rgba(26, 34, 44, 0.95) 45%, rgba(18, 24, 32, 0.94));
  border-color: rgba(77, 163, 255, 0.16);
}

[data-bs-theme="dark"] .ada-channel-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(77, 163, 255, 0.12);
}

[data-bs-theme="dark"] .ada-channel-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

[data-bs-theme="dark"] .ada-channel-name {
  color: var(--ada-ink);
}

[data-bs-theme="dark"] .ada-channels-tools a {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(77, 163, 255, 0.12);
}

/* ===== Hot posts (sidebar) ===== */
.ada-hot-panel {
  position: relative;
  margin: 0.55rem 0.95rem 0.55rem;
  padding: 1.2rem 1.05rem 1.05rem;
  border-radius: var(--ada-radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ada-panel-bg);
  border: 1px solid var(--ada-panel-border);
  box-shadow: var(--ada-shadow);
}

.ada-hot-panel::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: -42px;
  top: -56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ada-hot-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ada-hot-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #ff7a45, #e85d04);
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.28);
  font-size: 1rem;
}

.ada-hot-head h6 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ada-ink);
  letter-spacing: 0.01em;
}

.ada-hot-head p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--ada-muted);
}

.ada-hot-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ada-hot-item {
  margin: 0;
  animation: ada-tag-in 0.4s ease both;
  animation-delay: calc(var(--ada-hot-i, 1) * 35ms);
}

.ada-hot-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 0.55rem;
  padding: 0.62rem 0.55rem;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ada-hot-link:hover {
  transform: translateX(2px);
  background: #fff;
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: 0 8px 18px rgba(11, 31, 51, 0.06);
}

.ada-hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 0.05rem;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ada-muted);
  background: var(--ada-surface-2);
}

.ada-hot-item.ada-hot-top:nth-child(1) .ada-hot-rank {
  color: #fff;
  background: linear-gradient(145deg, #f6c453, #e8a317);
  box-shadow: 0 4px 10px rgba(232, 163, 23, 0.35);
}

.ada-hot-item.ada-hot-top:nth-child(2) .ada-hot-rank {
  color: #fff;
  background: linear-gradient(145deg, #b8c4d4, #8a98ab);
  box-shadow: 0 4px 10px rgba(138, 152, 171, 0.3);
}

.ada-hot-item.ada-hot-top:nth-child(3) .ada-hot-rank {
  color: #fff;
  background: linear-gradient(145deg, #d4a373, #b07848);
  box-shadow: 0 4px 10px rgba(176, 120, 72, 0.3);
}

.ada-hot-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 620;
  line-height: 1.45;
  color: var(--ada-ink-soft);
  transition: color 0.18s ease;
}

.ada-hot-link:hover .ada-hot-title {
  color: var(--ada-accent);
}

.ada-hot-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  color: var(--ada-line);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.ada-hot-link:hover .ada-hot-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--ada-accent);
}

[data-bs-theme="dark"] .ada-hot-panel {
  background: linear-gradient(160deg, rgba(26, 34, 44, 0.95), rgba(18, 24, 32, 0.92));
  border-color: rgba(77, 163, 255, 0.16);
}

[data-bs-theme="dark"] .ada-hot-link {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .ada-hot-link:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(77, 163, 255, 0.2);
}

[data-bs-theme="dark"] .ada-hot-rank {
  background: rgba(255, 255, 255, 0.06);
}

/* ===== User reviews (sidebar) ===== */
.ada-reviews-panel {
  position: relative;
  margin: 0.55rem 0.95rem 0.55rem;
  padding: 1.2rem 1.05rem 1rem;
  border-radius: var(--ada-radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ada-panel-bg);
  border: 1px solid var(--ada-panel-border);
  box-shadow: var(--ada-shadow);
}

.ada-reviews-panel::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -36px;
  top: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.2), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.ada-reviews-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.ada-reviews-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ada-grad);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.28);
  font-size: 1rem;
}

.ada-reviews-head h6 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ada-ink);
}

.ada-reviews-head p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--ada-muted);
}

.ada-reviews-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.15rem;
}

.ada-review-item {
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 113, 227, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: ada-tag-in 0.4s ease both;
  animation-delay: calc(var(--ada-rv-i, 1) * 40ms);
}

.ada-review-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 10px 20px rgba(11, 31, 51, 0.07);
}

.ada-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ada-review-user {
  font-size: 0.8rem;
  font-weight: 720;
  color: var(--ada-ink);
}

.ada-review-tag {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 650;
  color: var(--ada-accent);
  background: var(--ada-accent-soft);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.ada-review-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ada-muted);
}

[data-bs-theme="dark"] .ada-reviews-panel {
  background: linear-gradient(160deg, rgba(26, 34, 44, 0.95), rgba(18, 24, 32, 0.92));
  border-color: rgba(77, 163, 255, 0.16);
}

[data-bs-theme="dark"] .ada-review-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(77, 163, 255, 0.12);
}

/* ===== Hot tags cloud ===== */
.ada-tags-panel {
  position: relative;
  margin: 0.55rem 0.95rem 1.05rem;
  padding: 1.2rem 1.05rem 1.1rem;
  border-radius: var(--ada-radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ada-panel-bg);
  border: 1px solid var(--ada-panel-border);
  box-shadow: var(--ada-shadow);
}

.ada-tags-panel::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.22), transparent 68%);
  filter: blur(6px);
  animation: ada-glow-float 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.ada-tags-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ada-tags-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ada-grad-deep);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.28);
  font-size: 1rem;
}

.ada-tags-head h6 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ada-ink);
  letter-spacing: -0.01em;
}

.ada-tags-head p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--ada-muted);
}

.ada-tags-cloud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ada-tag-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  text-decoration: none !important;
  color: var(--ada-ink-soft) !important;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 113, 227, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  animation: ada-tag-in 0.45s ease both;
  animation-delay: calc(var(--ada-tag-i, 1) * 35ms);
}

.ada-tag-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.ada-tag-chip:hover {
  transform: translateY(-2px) scale(1.03);
  color: #fff !important;
  border-color: transparent;
  background: var(--ada-grad);
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.28);
}

.ada-tag-chip:hover::after {
  transform: translateX(120%);
}

.ada-tag-chip:hover .ada-tag-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ada-tag-name {
  max-width: 9.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ada-tag-count {
  min-width: 1.35rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 750;
  color: var(--ada-accent);
  background: var(--ada-accent-soft);
}

.ada-tag-lv-2 {
  font-size: 0.82rem;
  padding: 0.38rem 0.7rem;
  border-color: rgba(0, 113, 227, 0.2);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.85));
}

.ada-tag-lv-3 {
  font-size: 0.86rem;
  padding: 0.42rem 0.78rem;
  color: #0b1f33 !important;
  border-color: rgba(0, 113, 227, 0.28);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.16), rgba(255, 255, 255, 0.9));
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.12);
}

[data-bs-theme="dark"] .ada-tags-panel {
  background: linear-gradient(155deg, rgba(26, 34, 44, 0.95), rgba(18, 24, 32, 0.92));
  border-color: rgba(77, 163, 255, 0.16);
}

[data-bs-theme="dark"] .ada-tag-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(77, 163, 255, 0.16);
  color: #d7e3f0 !important;
}

@keyframes ada-tag-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Left floating Telegram channel ===== */
.ada-float-channel {
  position: fixed;
  left: 10px;
  top: 48%;
  transform: translateY(-50%);
  z-index: 1080;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.55rem;
  border-radius: 999px;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--ada-grad);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 28px rgba(0, 113, 227, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: ada-float-in 0.55s ease both;
}

.ada-float-channel:hover {
  color: #fff !important;
  filter: brightness(1.05);
  transform: translateY(-50%) translateX(2px);
  box-shadow: 0 16px 34px rgba(34, 158, 217, 0.45);
}

.ada-float-channel > .ti {
  font-size: 1.25rem;
  line-height: 1;
}

.ada-float-channel > span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

@keyframes ada-float-in {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 991.98px) {
  .ada-float-channel {
    left: 8px;
    top: auto;
    bottom: 88px;
    transform: none;
    flex-direction: row;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem 0.55rem 0.65rem;
    border-radius: 999px;
  }

  .ada-float-channel:hover {
    transform: translateY(-1px);
  }

  .ada-float-channel > span {
    writing-mode: horizontal-tb;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .ada-float-channel,
  .ada-tag-chip,
  .ada-hot-item,
  .ada-review-item,
  .ada-channel-item,
  body.bg-auto::before,
  .ada-tags-panel::before,
  .ada-hot-panel::before,
  .ada-reviews-panel::before,
  .ada-channels-panel::before,
  .ada-hero,
  .ada-hero-glow,
  .ada-kicker-dot,
  .ada-footer-glow {
    animation: none !important;
  }
}
