/*================================================================================================
    Premium Header
===================================================================================================*/
.ed-topbar--premium {
  position: relative;
  z-index: 1000;
  padding: 14px 0 10px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(240, 247, 255, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.ed-topbar__promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 22px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.84));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.ed-topbar__promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 34px;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #7dd3fc);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ed-topbar__promo-badge i {
  font-size: 15px;
}

.ed-topbar__promo-text {
  flex: 1 1 auto;
  margin: 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.ed-topbar__promo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ed-topbar__promo-link:hover {
  color: #7dd3fc;
}

.ed-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ed-topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.ed-topbar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ed-topbar__logo img {
  width: auto;
  max-width: 220px;
  height: 68px;
  object-fit: contain;
  display: block;
}

.ed-topbar__brand-copy span {
  display: block;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-topbar__brand-copy strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.ed-topbar__search-widget {
  position: relative;
  flex: 1 1 auto;
  max-width: 720px;
}

.ed-topbar__search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 0 14px 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ed-topbar__search i {
  color: #4f46e5;
  font-size: 18px;
  flex: 0 0 auto;
}

.ed-topbar__search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  padding: 0 10px 0 12px;
}

.ed-topbar__search input::placeholder {
  color: #94a3b8;
}

.search-clear {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  flex: 0 0 auto;
}

.search-clear:hover {
  background: rgba(99, 102, 241, 0.18);
}

.search-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: min(760px, 92vw);
  display: none;
  z-index: 1200;
  border-radius: 24px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.search-dropdown.is-open {
  display: block;
}

.search-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(45, 212, 191, 0.06));
}

.search-dropdown__head strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.search-dropdown__head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.search-dropdown__group {
  padding: 14px 14px 4px;
}

.search-dropdown__group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #4338ca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result {
  display: grid;
  grid-template-columns: 0px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.search-result__thumb {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  flex: 0 0 auto;
}

.search-result__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-result__body {
  min-width: 0;
}

.search-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.search-result__pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.search-result__title {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.search-result__excerpt {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.search-dropdown__empty {
  padding: 18px;
  color: #64748b;
  font-size: 14px;
}

.ed-topbar__info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.ed-topbar__info-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-topbar__info-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ed-topbar__info-social a:hover {
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.ed-topbar__info-social li:nth-child(1) a:hover { background: linear-gradient(135deg, #0a66c2, #2563eb); }
.ed-topbar__info-social li:nth-child(2) a:hover { background: linear-gradient(135deg, #1d9bf0, #0ea5e9); }
.ed-topbar__info-social li:nth-child(3) a:hover { background: linear-gradient(135deg, #ff7a18, #ec4899); }
.ed-topbar__info-social li:nth-child(4) a:hover { background: linear-gradient(135deg, #ff0000, #7c3aed); }
.ed-topbar__info-social li:nth-child(5) a:hover { background: linear-gradient(135deg, #7c3aed, #db2777); }

.ed-topbar__info-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-topbar__channel-links,
.offcanvas__channel-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.channel-link-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.channel-link-btn i {
  font-size: 18px;
  line-height: 0.5;
}

.channel-link-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.channel-link-btn--telegram {
  background: linear-gradient(135deg, #2aabee, #1d93d2);
}

.channel-link-btn--block {
  width: 100%;
}

.ed-topbar__info-buttons button,
.user-dropdown__toggle--premium,
.ed-topbar__mobile-toggle {
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ed-topbar__info-buttons button:hover,
.user-dropdown__toggle--premium:hover,
.ed-topbar__mobile-toggle:hover {
  transform: translateY(-1px);
}

.register-btn,
.login-btn {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.register-btn {
  background: linear-gradient(135deg, #2563eb, #7c3aed 58%, #14b8a6);
}

.login-btn {
  background: linear-gradient(135deg, #111827, #334155);
}

.user-dropdown__toggle--premium {
  gap: 10px;
  min-height: 52px;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.user-dropdown__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #7c3aed 58%, #14b8a6);
  flex: 0 0 auto;
}

.user-dropdown__avatar img,
.user-dropdown__hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-dropdown__meta {
  text-align: left;
  line-height: 1.1;
}

.user-dropdown__meta small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-dropdown__meta strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.user-dropdown__chevron {
  color: #6366f1;
  font-size: 14px;
}

.user-dropdown__menu {
  width: min(380px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.user-dropdown__hero {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(45, 212, 191, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.user-dropdown__hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #2563eb, #7c3aed 58%, #14b8a6);
}

.user-dropdown__hero-copy {
  min-width: 0;
}

.user-dropdown__hero-copy span {
  display: block;
  color: #4338ca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-dropdown__hero-copy strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.user-dropdown__hero-copy small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  word-break: break-word;
}

.user-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0;
}

.user-dropdown__grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.user-dropdown__grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  color: #1d4ed8;
}

.user-dropdown__grid a i {
  color: #6366f1;
  font-size: 15px;
}

.user-dropdown__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.user-dropdown__footer-link,
.user-dropdown__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.user-dropdown__footer-link {
  color: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

.user-dropdown__logout {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed 58%, #ff7a18);
  box-shadow: 0 16px 28px rgba(124, 58, 237, 0.22);
}

.ed-topbar__mobile-toggle {
  display: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  background: linear-gradient(135deg, #2563eb, #7c3aed 58%, #14b8a6);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.ed-topbar__mobile-toggle .line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.ed-header--premium {
  position: sticky;
  top: 0;
  z-index: 999;
  margin-top: -1px;
  background:
    linear-gradient(135deg, rgba(5, 15, 35, 0.96), rgba(10, 21, 48, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.ed-header--premium.sticky {
  background: linear-gradient(135deg, rgba(5, 15, 35, 0.98), rgba(10, 21, 48, 0.96));
}

.ed-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.ed-header__navigation {
  flex: 1 1 auto;
}

.ed-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0;
  list-style: none;
  /* border-radius: 999px; */
  /* border: 1px solid rgba(148, 163, 184, 0.14); */
  /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); */
  backdrop-filter: blur(14px);
}

.ed-header__menu > li {
  position: relative;
}

.ed-header__menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ed-header__menu > li > a i {
  font-size: 15px;
}

.ed-header__menu > li:hover > a,
.ed-header__menu > li.active > a {
  color: #041024;
  background: linear-gradient(135deg, #fde047, #7dd3fc);
  box-shadow: 0 12px 22px rgba(125, 211, 252, 0.18);
}

.ed-header__menu li .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 250px;
  padding: 10px;
  margin: 0;
  list-style: none;
  border-radius: 22px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.98));
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 99;
}

.ed-header__menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ed-header__menu li .sub-menu li {
  display: block;
}

.ed-header__menu li .sub-menu li + li {
  margin-top: 6px;
}

.ed-header__menu li .sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.ed-header__menu li .sub-menu li a:hover {
  color: #2563eb;
  background: rgba(99, 102, 241, 0.08);
  padding-left: 18px;
}

.ed-header__highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(20, 184, 166, 0.16));
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ed-header__highlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047, #34d399);
  box-shadow: 0 0 0 6px rgba(253, 224, 71, 0.14);
}

.offcanvas-hero {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08), rgba(20, 184, 166, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.offcanvas-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #4338ca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offcanvas-hero strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}

.offcanvas-hero p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1399.98px) {
  .ed-topbar__logo img {
    max-width: 200px;
    height: 62px;
  }
}

@media (max-width: 1199.98px) {
  .ed-topbar__promo {
    flex-wrap: wrap;
  }

  .ed-topbar__search-widget {
    max-width: 520px;
  }

  .ed-topbar__info-social {
    display: none;
  }

  .ed-header__menu {
    gap: 4px;
  }
}

@media (max-width: 991.98px) {
  .ed-topbar__search-widget,
  .ed-header__highlight {
    display: none;
  }

  .ed-topbar__mobile-toggle {
    display: inline-flex;
  }

  .ed-topbar__info {
    gap: 12px;
  }

  .ed-header__inner {
    justify-content: center;
    padding: 10px 0;
  }

  .ed-header__navigation {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .ed-topbar--premium {
    padding: 12px 0 8px;
  }

  .ed-topbar__promo {
    padding: 10px 12px;
    border-radius: 18px;
  }

  .ed-topbar__promo-text {
    display: none;
  }

  .ed-topbar__logo img {
    max-width: 170px;
    height: 56px;
  }

  .ed-topbar__info-buttons .register-btn {
    display: none;
  }

  .ed-topbar__info-buttons button {
    min-height: 44px;
    padding: 0 16px;
  }

  .channel-link-btn {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .channel-link-btn span {
    display: none;
  }

  .offcanvas__channel-links {
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
  }

  .channel-link-btn--block span {
    display: inline;
  }

  .user-dropdown__menu {
    width: min(360px, calc(100vw - 24px));
  }

  .user-dropdown__grid {
    grid-template-columns: 1fr;
  }

  .user-dropdown__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .user-dropdown__footer-link,
  .user-dropdown__logout {
    width: 100%;
  }

  .ed-header__inner {
    min-height: 58px;
  }
}

@media (max-width: 575.98px) {
  .ed-topbar__promo-badge {
    padding: 0 10px;
    font-size: 11px;
  }

  .ed-topbar__mobile-toggle {
    width: 46px;
    height: 46px;
  }

  .register-btn,
  .login-btn {
    padding: 0 14px;
    font-size: 13px;
  }
}

/*================================================================================================
    End Premium Header
===================================================================================================*/
