/* HentaiAPK Auth Modal — dark mode (matches #1d222d theme) */
.hapk-auth-nav {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
}

.hapk-header-auth-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid #1bbc9b;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}

.hapk-header-auth-btn:hover {
  background: #1bbc9b;
  color: #fff;
}

.hapk-header-auth-signup {
  background: #1bbc9b;
  border-color: #1bbc9b;
  color: #fff;
}

.hapk-header-auth-signup:hover {
  background: #17a589;
  border-color: #17a589;
}

.hapk-header-profile {
  position: relative;
  margin-left: 0.35rem;
}

#header nav .menu > li.hapk-header-profile,
#header .menu > li.hapk-header-profile {
  display: flex;
  align-items: center;
}

.hapk-header-profile-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem !important;
  border-radius: 999px;
  border: 1px solid rgba(27, 188, 155, 0.35);
  background: linear-gradient(135deg, rgba(27, 188, 155, 0.14), rgba(29, 34, 45, 0.92));
  color: #fff !important;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.hapk-header-profile-trigger:hover,
.hapk-header-profile.is-open .hapk-header-profile-trigger {
  border-color: rgba(27, 188, 155, 0.65);
  background: linear-gradient(135deg, rgba(27, 188, 155, 0.24), rgba(29, 34, 45, 0.98));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.hapk-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #1bbc9b;
  box-shadow: 0 0 0 2px rgba(27, 188, 155, 0.15);
}

.hapk-header-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1bbc9b, #14917a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hapk-header-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.hapk-header-profile-name {
  font-size: 0.82rem;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.hapk-header-profile-label {
  font-size: 0.65rem;
  color: #9aa3b2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hapk-header-chevron {
  color: #1bbc9b;
  font-size: 0.62rem;
  transition: transform 0.15s;
  margin-left: 0.05rem;
}

.hapk-header-profile.is-open .hapk-header-chevron {
  transform: rotate(180deg);
}

.hapk-header-profile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  width: max-content;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  background: #252b38;
  border: 1px solid rgba(27, 188, 155, 0.22);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.48);
  z-index: 100001;
  box-sizing: border-box;
}

.hapk-header-profile-menu li {
  margin: 0;
  padding: 0;
  float: none !important;
  display: block;
  width: 100%;
}

.hapk-header-profile-menu a {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.75rem !important;
  border-radius: 8px;
  color: #d5d9e0 !important;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  line-height: 1.35 !important;
  position: relative;
  transition: background 0.12s, color 0.12s;
}

.hapk-header-profile-menu a::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
}

#header nav .hapk-header-profile-menu li:hover a::before {
  width: 0 !important;
}

.hapk-header-profile-menu a i {
  width: 1rem;
  flex-shrink: 0;
  color: #1bbc9b;
  text-align: center;
}

.hapk-header-profile-menu a:hover,
.hapk-header-profile-menu a:focus-visible {
  background: rgba(27, 188, 155, 0.14) !important;
  color: #fff !important;
}

.hapk-header-profile-divider {
  height: 1px;
  margin: 0.35rem 0.25rem;
  background: rgba(255, 255, 255, 0.08);
}

.hapk-header-logout,
.hapk-header-logout i {
  color: #ff8a8a !important;
}

.hapk-header-logout:hover {
  background: rgba(255, 120, 120, 0.1) !important;
}

.hapk-header-profile-mobile-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
}

.hapk-header-profile-mobile .hapk-header-avatar,
.hapk-header-profile-mobile .hapk-header-avatar-initials {
  width: 28px;
  height: 28px;
  font-size: 0.65rem;
}

@media (max-width: 900px) {
  .hapk-header-profile-meta,
  .hapk-header-chevron {
    display: none;
  }

  .hapk-header-profile-trigger {
    padding: 0.2rem !important;
    border-radius: 50%;
  }
}

/* Mobile header: menu left | logo center | search right */
.hapk-header-search-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1;
  text-shadow: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.hapk-header-search-btn:hover,
.hapk-header-search-btn:focus,
.hapk-header-search-btn:focus-visible,
.hapk-header-search-btn[aria-expanded="true"] {
  background: rgba(27, 188, 155, 0.15) !important;
  background-color: rgba(27, 188, 155, 0.15) !important;
  color: #1bbc9b !important;
  outline: none;
}

/* Desktop: logo | search | nav/tools */
@media (min-width: 901px) {
  #header .container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 12px;
  }

  #header .logo {
    flex: none;
    order: 0;
    padding: 0 !important;
    margin: 0;
    text-align: left;
  }

  #header .hapk-header-search {
    display: block;
    flex: 1 1 auto;
    order: 1;
    max-width: 420px;
    margin: 0 8px;
    position: relative;
    z-index: 1000;
  }

  #header .hapk-header-search form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #151a24;
    border: 1px solid rgba(27, 188, 155, 0.28);
    border-radius: 999px;
    overflow: hidden;
    margin: 0;
  }

  #header .hapk-header-search .sb_search[type=text] {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    padding: 0.55rem 1rem !important;
    height: 38px;
    box-shadow: none !important;
  }

  #header .hapk-header-search .sb_search[type=text]::placeholder {
    color: #9aa3b2;
  }

  #header .hapk-header-search .sb_submit,
  #header .hapk-header-search .sb_submit[type=submit] {
    flex: 0 0 34px !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    margin: 0 3px 0 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #1bbc9b !important;
    background-color: #1bbc9b !important;
    color: #fff !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    cursor: pointer;
  }

  #header .hapk-header-search .sb_submit:hover,
  #header .hapk-header-search .sb_submit:focus,
  #header .hapk-header-search .sb_submit[type=submit]:hover,
  #header .hapk-header-search .sb_submit[type=submit]:focus {
    background: #20d0ab !important;
    background-color: #20d0ab !important;
  }

  #header .hapk-header-search ul {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 0;
    list-style: none;
    background: #1d222d;
    border: 1px solid rgba(27, 188, 155, 0.2);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    max-height: 360px;
    overflow: auto;
    display: none;
  }

  .hapk-header-search-btn {
    display: none !important;
  }

  .hapk-header-tools {
    order: 3;
    margin-left: 0;
  }

  #header nav {
    margin-left: 0 !important;
    flex: none;
    order: 2;
    width: auto !important;
    min-width: 0 !important;
  }

  #header nav .menu-open {
    display: none !important;
  }

  #header nav ul.menu {
    display: block !important;
  }
}

@media (max-width: 900px) {
  #header .hapk-header-search {
    display: none !important;
  }
}

/*
 * Fixed header clearance.
 * Old #subheader.np (padding-top ~75px) used to push content below the fixed
 * header. Search moved into the header, so that bar is gone — restore offset
 * on #main-site for normal pages/archives/singles.
 */
#main-site {
  padding-top: 76px;
  box-sizing: border-box;
}

/* Homepage hero #subheader already clears the fixed header */
body.home:has(#subheader) #main-site {
  padding-top: 16px;
}

/* Full-bleed templates manage their own layout */
body.mh-page #main-site {
  padding-top: 0 !important;
}

/* Soften theme footer teal top bar */
html #footer {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  border-top-width: 1px !important;
}

/* Footer legal + social */
.hapk-footer-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 20px 0 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hapk-footer-legal {
  flex: 1 1 auto;
  min-width: 0;
}

.hapk-footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hapk-footer-legal li {
  display: inline-flex;
  align-items: center;
}

.hapk-footer-legal li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex: none;
}

.hapk-footer-legal a {
  color: #8b93a3;
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.hapk-footer-legal a:hover {
  color: #e8ecf2;
}

.hapk-footer-social {
  flex: none;
  margin-left: auto;
}

.hapk-blog-more {
  text-align: center;
  margin: 18px 0 0;
}

.hapk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hapk-section-head .title-section {
  margin: 0 !important;
  flex: 1;
  min-width: 0;
}

.hapk-section-head .hapk-section-more,
html .section .hapk-section-head a.more.hapk-section-more {
  flex: none;
  margin: 0 !important;
  white-space: nowrap;
  width: auto !important;
  min-width: 0;
  line-height: 1.2 !important;
  padding: 7px 14px !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa3b2 !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

html .section .hapk-section-head a.more.hapk-section-more:hover {
  color: #1bbc9b !important;
  background: rgba(27, 188, 155, 0.1) !important;
  border-color: rgba(27, 188, 155, 0.4) !important;
  opacity: 1 !important;
}

/* Home blog: single horizontal row (max 5), drag + arrows */
.hapk-blog-carousel {
  position: relative;
  padding: 0 36px;
}

.hapk-blog-scroller {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  /* Hide scrollbar; drag + arrows still work */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hapk-blog-scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hapk-blog-slide {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
  max-width: 340px;
  display: flex;
  min-height: 0;
}

.hapk-blog-slide .px-col {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
  display: flex;
  flex: 1;
}

.hapk-blog-slide .bloque-blog,
html .hapk-blog-slide .bloque-blog {
  display: flex !important;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 148px;
  box-sizing: border-box;
  align-items: stretch;
  border-bottom: none !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none !important;
}

.hapk-blog-slide .bb-image {
  flex: none;
}

.hapk-blog-slide .bb-c {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.hapk-blog-slide .bb-c .title {
  height: auto !important;
  max-height: 2.6em;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box !important;
  white-space: normal !important;
}

.hapk-blog-slide .bb-c .date {
  flex: none;
}

.hapk-blog-slide .bb-c .excerpt {
  flex: 1;
  margin-top: 6px;
  overflow: hidden;
}

.hapk-blog-slide .bb-c .excerpt,
.hapk-blog-slide .bb-c .excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hapk-blog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #1bbc9b;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hapk-blog-nav:hover {
  filter: brightness(1.08);
}

.hapk-blog-prev { left: 0; }
.hapk-blog-next { right: 0; }

@media (max-width: 600px) {
  .hapk-blog-carousel {
    padding: 0 28px;
  }
  .hapk-blog-slide {
    flex-basis: min(280px, 78vw);
  }
  .hapk-section-head .hapk-section-more,
  html .section .hapk-section-head a.more.hapk-section-more {
    font-size: 10px !important;
    padding: 6px 11px !important;
  }
}

/* Equal-height game cards (trending + grids): pin rating to bottom */
.section .bav1,
.section .bav2 {
  height: 100%;
  display: flex;
}

.section .bav1 > a,
.section .bav2 > a {
  height: 100%;
  min-height: 95px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  width: 100%;
}

.section .bav2 > a {
  flex-direction: row !important;
  align-items: stretch !important;
}

.section .bav1 .title,
.section .bav2 .bap-c .title {
  flex: none;
}

.section .bav1 .hapk-bav-meta,
.section .bav2 .hapk-bav-meta {
  flex: none;
  min-height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section .bav2 .bap-c {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.section .bav2 .version,
.section .bav2 .developer,
.section .bav2 .app-date,
.section .bav1 .version,
.section .bav1 .developer,
.section .bav1 .app-date {
  flex: none;
  min-height: 18px;
}

.section .bav1 .px-postmeta,
.section .bav2 .px-postmeta {
  margin-top: auto !important;
  padding-top: 4px;
}

#slidehome .px-carousel-item {
  /* Must stay inline-* so white-space:nowrap keeps the row horizontal */
  display: inline-flex;
  align-items: stretch;
  vertical-align: top;
  white-space: normal;
}

#slidehome .px-carousel-item .bav2 {
  width: 100%;
  display: flex;
}

#slidehome .px-carousel-item .bav2 > a {
  width: 100%;
}

.baps {
  align-items: stretch;
}

/* Only homepage/section grids — not .rlat related cards */
.section .baps .bav1,
.section .baps .bav2 {
  display: flex;
}

/* -------------------------------------------------------------------------
 * Related games (.rlat): horizontal scroller (10 items), like trending
 * ---------------------------------------------------------------------- */
.hapk-rlat-carousel {
  position: relative;
  padding: 0 36px;
}

.hapk-rlat-scroller.baps,
.app-s .box.rlat .hapk-rlat-scroller.baps,
.box.rlat .hapk-rlat-scroller.baps {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 0;
  margin: 0 !important;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hapk-rlat-scroller.baps::-webkit-scrollbar,
.app-s .box.rlat .hapk-rlat-scroller.baps::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app-s .box.rlat .hapk-rlat-scroller .bav1,
.box.rlat .hapk-rlat-scroller .bav1,
.app-s .box.rlat .hapk-rlat-scroller .bav1:nth-of-type(5),
.box.rlat .hapk-rlat-scroller .bav1:nth-of-type(5) {
  display: block !important;
  flex: 0 0 calc(20% - 4px);
  width: calc(20% - 4px);
  max-width: calc(20% - 4px);
  min-width: 140px;
  box-sizing: border-box;
  padding: 8px;
  scroll-snap-align: start;
}

button.hapk-rlat-nav,
button.hapk-rlat-nav:focus,
button.hapk-rlat-nav:hover,
button.hapk-rlat-nav:active,
.hapk-rlat-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #1bbc9b !important;
  background-color: #1bbc9b !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  min-width: 34px !important;
  max-width: 34px !important;
  text-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

button.hapk-rlat-nav i,
.hapk-rlat-nav i {
  color: #fff !important;
  font-size: 14px;
  line-height: 1;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}

button.hapk-rlat-nav:hover,
.hapk-rlat-nav:hover {
  filter: brightness(1.08);
}

.app-s .box.rlat .bav1 .title,
.box.rlat .bav1 .title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal !important;
  height: auto !important;
  max-height: 2.6em;
  line-height: 1.3;
  margin: 0 0 4px;
  width: 100%;
}

.app-s .box.rlat .bav1 .version,
.app-s .box.rlat .bav1 .developer,
.app-s .box.rlat .bav1 .app-date,
.box.rlat .bav1 .version,
.box.rlat .bav1 .developer,
.box.rlat .bav1 .app-date {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.hapk-rlat-prev { left: 0; }
.hapk-rlat-next { right: 0; }

@media (max-width: 900px) {
  .app-s .box.rlat .hapk-rlat-scroller .bav1,
  .box.rlat .hapk-rlat-scroller .bav1 {
    flex-basis: calc(25% - 4px);
    width: calc(25% - 4px);
    max-width: calc(25% - 4px);
  }
}

@media (max-width: 650px) {
  .hapk-rlat-carousel {
    padding: 0 28px;
  }

  .app-s .box.rlat .hapk-rlat-scroller .bav1,
  .box.rlat .hapk-rlat-scroller .bav1 {
    flex-basis: 148px;
    width: 148px;
    max-width: 148px;
  }
}

/* -------------------------------------------------------------------------
 * Blog archive / taxonomy / single — dark card layout
 * ---------------------------------------------------------------------- */
.hapk-blog-page {
  padding-top: 12px;
  padding-bottom: 30px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0;
}

.hapk-blog-page-head {
  margin: 0 0 18px;
  width: 100%;
  flex: none;
}

.hapk-blog-page-head .title-section {
  margin: 0 !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.hapk-blog-page-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  flex: 1 1 auto;
}

.hapk-blog-page-body .app-p {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hapk-blog-page-body #sidebar {
  flex: 0 0 300px;
  width: 300px;
  margin: 0 !important;
  padding: 0 !important;
  align-self: flex-start;
}

.hapk-blog-page-body #sidebar > ul {
  margin: 0;
  padding: 0;
  height: auto;
}

.section.blog.hapk-blog-archive {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible;
}

body.single-blog .hapk-blog-single {
  margin-top: 0;
}

.hapk-blog-archive .hapk-section-head {
  margin-bottom: 18px;
}

.hapk-blog-archive .title-section {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 900px) {
  .hapk-blog-page-body {
    flex-direction: column;
  }

  .hapk-blog-page-body #sidebar {
    flex-basis: auto;
    width: 100%;
  }
}

.hapk-blog-term-desc {
  color: #9aa3b2;
  margin: -6px 0 18px;
  line-height: 1.55;
}

.hapk-blog-grid.bloques {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.hapk-blog-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  background: #1d222d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin: 0 !important;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  float: none !important;
  border-bottom-style: solid !important;
  padding-bottom: 14px !important;
}

.hapk-blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hapk-blog-card-thumb {
  flex: 0 0 132px;
  width: 132px;
  margin: 0 !important;
  float: none !important;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #151a24;
  align-self: stretch;
}

.hapk-blog-card-thumb .bloque-imagen,
.hapk-blog-card-thumb .bloque-imagen img,
.hapk-blog-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-height: 132px;
  max-width: none !important;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.hapk-blog-card-thumb .bloque-imagen {
  padding-bottom: 0 !important;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hapk-blog-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible !important;
}

.hapk-blog-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hapk-blog-card-cats a {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #aeb6c4 !important;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hapk-blog-card-cats a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.hapk-blog-card .title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}

.hapk-blog-card .title:hover {
  color: #d7dde8 !important;
}

.hapk-blog-card-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 !important;
  color: #8b95a5 !important;
  font-size: 12px !important;
}

.hapk-blog-card-meta > span {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
}

.hapk-blog-card-meta i {
  color: #6b7585;
  opacity: 0.95;
}

.hapk-blog-card .excerpt {
  color: #aeb6c4;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.hapk-blog-card .excerpt,
.hapk-blog-card .excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hapk-blog-card-more {
  align-self: flex-start;
  margin-top: 4px;
  color: #c5cbd6 !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hapk-blog-card-more:hover {
  color: #fff !important;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.hapk-blog-archive .pagination-wrap {
  margin-top: 22px;
}

/* Single blog post */
.hapk-blog-single {
  border-radius: 12px !important;
  overflow: hidden;
}

.hapk-blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: #8b95a5;
  font-size: 13px;
}

.hapk-blog-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hapk-blog-crumbs li:not(:last-child)::after {
  content: "/";
  opacity: 0.5;
  margin-left: 2px;
}

.hapk-blog-crumbs a {
  color: #1bbc9b;
  text-decoration: none;
}

.hapk-blog-single .box-title {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hapk-blog-single .px-postmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #8b95a5;
  margin-bottom: 16px;
}

.hapk-blog-single .px-postmeta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hapk-blog-single .entry {
  font-size: 15px;
  line-height: 1.7;
  color: #c5cbd6;
}

.hapk-blog-single .entry h2,
.hapk-blog-single .entry h3 {
  color: #fff;
  margin-top: 1.4em;
}

.hapk-blog-single .entry a {
  color: #1bbc9b;
}

.hapk-blog-tags .box-title {
  font-size: 1rem;
  margin-bottom: 10px;
}

.hapk-blog-tags a {
  display: inline-flex;
  margin: 0 6px 6px 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #aeb6c4 !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hapk-blog-tags a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

/* Blog sidebar: no game-tag green flood */
.hapk-blog-sidebar .widget_tag_cloud,
.hapk-blog-sidebar .widget_block:has(.tag-cloud-link),
body.post-type-archive-blog #sidebar > ul > .widget_tag_cloud,
body.single-blog #sidebar > ul > .widget_tag_cloud,
body.tax-cblog #sidebar > ul > .widget_tag_cloud,
body.tax-tblog #sidebar > ul > .widget_tag_cloud {
  display: none !important;
}

.hapk-blog-side-widget {
  background: #1d222d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  list-style: none;
}

.hapk-blog-side-widget .widget-title,
.hapk-blog-side-widget .widget-title h2 {
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hapk-blog-cat-list,
.hapk-blog-recent {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hapk-blog-cat-list li,
.hapk-blog-recent li {
  margin: 0;
  padding: 0;
  border: 0;
}

.hapk-blog-cat-list a,
.hapk-blog-recent a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: #c5cbd6 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.hapk-blog-cat-list li:last-child a,
.hapk-blog-recent li:last-child a {
  border-bottom: 0;
}

.hapk-blog-cat-list a:hover,
.hapk-blog-recent a:hover {
  color: #fff !important;
}

.hapk-blog-cat-list span {
  color: #6b7585;
  font-size: 12px;
}

.hapk-blog-recent li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hapk-blog-recent li:last-child {
  border-bottom: 0;
}

.hapk-blog-recent a {
  padding: 0;
  border: 0;
  display: block;
}

.hapk-blog-recent small {
  color: #6b7585;
  font-size: 11px;
}

@media (max-width: 700px) {
  .hapk-blog-card {
    flex-direction: column;
    gap: 12px;
  }

  .hapk-blog-card-thumb {
    width: 100%;
    flex-basis: auto;
    height: 180px;
  }

  .hapk-blog-card-thumb .bloque-imagen,
  .hapk-blog-card-thumb .bloque-imagen img,
  .hapk-blog-card-thumb img {
    min-height: 180px;
  }

  .hapk-blog-single .box-title {
    font-size: 1.35rem;
  }
}

.pagination-wrap {
  text-align: center;
}

.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  float: none;
  margin: 0 auto;
  text-align: center;
}

.pagination li {
  float: none;
  display: inline-block;
  list-style: none;
}

#footer .hapk-footer-chrome .social {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer .hapk-footer-chrome .social li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .hapk-footer-chrome .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c5cbd6;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#footer .hapk-footer-chrome .social a:hover {
  background: rgba(27, 188, 155, 0.12);
  border-color: rgba(27, 188, 155, 0.45);
  color: #1bbc9b;
  filter: none;
}

#footer .hapk-footer-chrome .social a.facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.45);
  color: #4b9bff;
}

#footer .hapk-footer-chrome .social a.discord:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.45);
  color: #8b95ff;
}

@media (max-width: 640px) {
  .hapk-footer-chrome {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hapk-footer-social {
    margin-left: 0;
  }

  .hapk-footer-legal li:not(:last-child)::after {
    margin: 0 8px;
  }
}

@media (max-width: 900px) {
  #header .container {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    padding: 0 8px !important;
    gap: 0;
  }

  #header .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    padding: 0 !important;
    margin: 0;
    text-align: center;
    min-width: 0;
  }

  #header .logo a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  #header .logo a img {
    max-width: 100%;
    height: auto;
    max-height: 38px;
  }

  #header nav {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    justify-self: start;
    width: 48px;
    min-width: 48px;
  }

  #header nav .menu-open {
    float: none;
    display: block;
    margin: 0;
    padding: 0;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
  }

  .hapk-header-tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    margin-left: 0;
  }

  .hapk-header-search-btn {
    display: inline-flex;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }

  /* Slide drawer from left — overlay only, do not shove the page */
  #menu-mobile {
    left: 0 !important;
    right: auto !important;
    top: 0;
    bottom: 0;
    width: min(86vw, 320px) !important;
    max-width: 320px;
    transform: translate3d(-105%, 0, 0) !important;
    z-index: 10050 !important;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
    visibility: hidden;
    pointer-events: none;
  }

  body.toggle-nav #menu-mobile {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto;
  }

  /* Kill theme push-to-the-side behavior */
  .toggle-nav .wrapper-inside > *,
  body.toggle-nav .wrapper-inside > * {
    transform: none !important;
  }

  body.toggle-nav {
    overflow: hidden;
  }

  body.toggle-nav::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10040;
    pointer-events: auto;
  }

  /* Keep header (and X / hamburger) above the dimmer so close still works */
  body.toggle-nav #header {
    z-index: 10060 !important;
  }
}

/* Mobile search dropdown below header */
.hapk-mobile-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1d222d;
  border-bottom: 2px solid #1bbc9b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hapk-mobile-search[hidden] {
  display: none !important;
}

.hapk-mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
}

.hapk-mobile-search-inner form {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  background: #151a24 !important;
  border: 1px solid rgba(27, 188, 155, 0.28) !important;
  border-radius: 999px;
  overflow: hidden;
  margin: 0;
  box-shadow: none !important;
}

/* Theme sets input[type=search] to a light gray — beat that specificity */
.hapk-mobile-search-input,
.hapk-mobile-search input[type=search],
.hapk-mobile-search input[type=text],
#hapk-mobile-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: #151a24 !important;
  background-color: #151a24 !important;
  color: #fff !important;
  padding: 0.7rem 0.9rem !important;
  font-size: 0.95rem;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

.hapk-mobile-search-input::placeholder,
.hapk-mobile-search input::placeholder {
  color: #9aa3b2 !important;
  opacity: 1;
}

.hapk-mobile-search-input:-webkit-autofill,
.hapk-mobile-search-input:-webkit-autofill:hover,
.hapk-mobile-search-input:-webkit-autofill:focus,
.hapk-mobile-search input:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #151a24 inset !important;
  box-shadow: 0 0 0 1000px #151a24 inset !important;
  transition: background-color 99999s ease-in-out 0s;
}

.hapk-mobile-search-submit {
  flex-shrink: 0;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  margin: 3px !important;
  border: none !important;
  border-radius: 50% !important;
  background: #1bbc9b !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1 !important;
  float: none !important;
}

.hapk-mobile-search-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 901px) {
  .hapk-mobile-search {
    display: none !important;
  }
}

/* Mobile drawer account section */
#menu-mobile .hapk-mobile-account {
  float: none;
  margin: 0;
  padding: 0;
}

#menu-mobile .hapk-mobile-account > a {
  display: none;
}

/* Animated burger ↔ X */
.hapk-burger {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 16px;
  flex-direction: column;
  justify-content: space-between;
}

.hapk-burger > span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}

body.toggle-nav .menu-open .hapk-burger > span:nth-child(1),
.hapk-burger.is-close > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.toggle-nav .menu-open .hapk-burger > span:nth-child(2),
.hapk-burger.is-close > span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.toggle-nav .menu-open .hapk-burger > span:nth-child(3),
.hapk-burger.is-close > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#header nav .menu-open {
  display: none;
  color: #fff;
}

#header nav .menu-open .hapk-burger {
  margin: 0 auto;
  vertical-align: middle;
}

/* Drawer close row (top of left panel) */
#menu-mobile .hapk-drawer-toolbar {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#menu-mobile .hapk-drawer-close {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 14px 15px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

#menu-mobile .hapk-drawer-close:hover {
  background: rgba(27, 188, 155, 0.1);
  color: #1bbc9b;
}

#menu-mobile .hapk-drawer-close .hapk-burger {
  color: inherit;
}

/* Social: icon-only by default (footer/header); labeled rows in mobile drawer */
.hapk-social-label {
  display: none;
}

#menu-mobile ul.social {
  display: block !important;
  text-align: left !important;
  margin: 8px 0 16px !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  float: none !important;
  width: 100%;
}

#menu-mobile ul.social li {
  display: block !important;
  float: none !important;
  width: 100%;
  margin: 0 !important;
}

#menu-mobile ul.social li a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 15px !important;
  font-size: 14px !important;
  font-weight: 600;
  color: #fff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid #000 !important;
}

#menu-mobile ul.social li a i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  flex: none;
}

#menu-mobile ul.social li a.facebook i { background: #1877f2; }
#menu-mobile ul.social li a.discord i { background: #5865f2; }

#menu-mobile ul.social .hapk-social-label {
  display: inline !important;
}

#footer .hapk-social-label {
  display: none !important;
}

.hapk-mobile-account-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 15px;
  background: linear-gradient(135deg, rgba(27, 188, 155, 0.12), rgba(29, 34, 45, 0.5));
  border-bottom: 1px solid rgba(27, 188, 155, 0.2);
}

.hapk-mobile-account-card .hapk-header-avatar,
.hapk-mobile-account-card .hapk-header-avatar-initials {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
}

.hapk-mobile-account-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hapk-mobile-account-info strong {
  color: #fff;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hapk-mobile-account-info span {
  color: #9aa3b2;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hapk-mobile-account-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hapk-mobile-account-nav li {
  margin: 0;
  float: none;
}

.hapk-mobile-account-nav a {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 15px !important;
  color: #fff !important;
  font-size: 14px !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.hapk-mobile-account-nav a i {
  width: 1.1rem;
  color: #1bbc9b;
  text-align: center;
}

.hapk-mobile-account-nav a:hover {
  background: rgba(27, 188, 155, 0.1);
}

.hapk-mobile-account-logout a,
.hapk-mobile-account-logout a i {
  color: #ff8a8a !important;
}

#menu-mobile .hapk-auth-nav-mobile {
  padding: 0.75rem 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hapk-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.hapk-auth-overlay[hidden] {
  display: none !important;
}

.hapk-auth-modal {
  position: relative;
  width: min(400px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 12px;
  background: #1d222d;
  border: 1px solid rgba(27, 188, 155, 0.25);
  border-bottom: 2px solid #1bbc9b;
  color: #d5d9e0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.hapk-auth-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.hapk-auth-close:hover { color: #fff; }

.hapk-auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.hapk-auth-subtitle {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9aa3b2;
  line-height: 1.45;
}

.hapk-auth-google-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.hapk-google-btn-mount {
  min-height: 44px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hapk-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hapk-auth-divider::before,
.hapk-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.hapk-auth-form {
  display: none;
  flex-direction: column;
  gap: 0.7rem;
}

.hapk-auth-form.is-active {
  display: flex;
}

.hapk-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #b8c0cc;
  font-weight: 600;
}

.hapk-auth-form input[type="text"],
.hapk-auth-form input[type="email"],
.hapk-auth-form input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #151a24;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  box-sizing: border-box;
}

.hapk-auth-form input:focus {
  outline: none;
  border-color: #1bbc9b;
  box-shadow: 0 0 0 2px rgba(27, 188, 155, 0.15);
}

.hapk-auth-form input[type="checkbox"] {
  accent-color: #1bbc9b;
}

.hapk-auth-remember {
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: #9aa3b2 !important;
}

.hapk-auth-submit {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: #1bbc9b;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.hapk-auth-submit:hover {
  background: #17a589;
}

.hapk-auth-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.hapk-auth-error {
  color: #ff7b7b;
  font-size: 0.85rem;
  min-height: 1.1em;
  margin-bottom: 0.35rem;
  text-align: center;
}

.hapk-auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #9aa3b2;
}

.hapk-auth-switch-btn {
  border: none;
  background: none;
  padding: 0;
  color: #1bbc9b;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.hapk-auth-switch-btn:hover {
  color: #2dd4b0;
  text-decoration: underline;
}

.hapk-auth-nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.hapk-auth-nav-mobile .hapk-header-auth-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 600px) {
  .hapk-auth-nav { gap: 0.3rem; }
  .hapk-header-auth-btn { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
  .hapk-header-profile-name { display: none; }
}
