/* CoconutMC-style top navbar, added on top of the DeluxeTebex theme.
   Uses the theme's CSS variables so it blends with the navy/green palette. */
.cnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(19, 27, 40, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cnav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  font-family: Sora, Montserrat, sans-serif;
}
/* left / right sides flex so the centre nav stays centred */
.cnav-side { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cnav-side--right { justify-content: flex-end; }

.cnav-navlogo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 7px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.cnav-navlogo span { font-size: 15px; font-weight: 500; }
.cnav-navlogo:hover { background: rgba(255, 255, 255, 0.08); }
.cnav-navlogo.is-active { background: var(--main-color, #8b5cf6); color: var(--background-color, #131b28); }
.cnav-navlogo.is-active span { font-weight: 700; }
.cnav-navlogo img {
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}
/* the far-left logo only appears on mobile (desktop uses the one inside the nav) */
.cnav-side--left .cnav-navlogo { display: none; }

.cnav-links { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.cnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 7px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cnav-link:hover { background: rgba(255, 255, 255, 0.08); }
.cnav-link.is-active {
  background: var(--main-color, #0fce67);
  color: var(--background-color, #131b28);
  font-weight: 700;
  padding: 9px 22px;
}
.cnav-link .carret { font-size: 16px; transition: transform 0.15s ease; }
.cnav-dd.open .cnav-link .carret { transform: rotate(180deg); }

.cnav-right { display: flex; align-items: center; gap: 8px; }
.cnav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 20px;
}
.cnav-menu { background: var(--third-background, #232f44); display: none; }
.cnav-cart { position: relative; background: var(--third-background, #232f44); }
.cnav-cart:hover { color: var(--main-color, #8b5cf6); }
.cnav-cart-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--main-color, #8b5cf6);
  color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Sora, sans-serif;
}
.cnav a.profile-avatar { text-decoration: none; }
/* "MY ACCOUNT" (logged-in link) in the brand colour; login keeps its accent */
.cnav a.profile-avatar .profile-description-text { color: var(--main-color, #8b5cf6); }

/* Profile / cart trigger moved into the navbar (theme look) */
.cnav .profile-avatar { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cnav .profile-description { text-align: right; }
.cnav .profile-description p { margin: 0; line-height: 1.15; transition: margin .2s ease; }
.cnav .profile-title { font-size: 15px; color: #fff; font-weight: 500; }
.cnav .profile-description-text {
  font-size: 12px;
  color: var(--focus-text-color, #a78bfa);
  text-transform: uppercase;
  font-weight: 700;
}
.cnav .profile-avatar:hover .profile-description p { margin-right: 4px; }
.cnav .avatar-head { width: 36px; height: 36px; border-radius: 6px; display: block; }
@media (max-width: 520px) { .cnav .profile-description { display: none; } }

.cnav-dd { position: relative; }
.cnav-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  border-radius: 8px;
  padding: 6px;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.cnav-dd.open .cnav-dd-panel { display: flex; }
.cnav-dd-panel a {
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.cnav-dd-panel a:hover { background: rgba(255, 255, 255, 0.08); color: var(--main-color, #0fce67); }

.cnav-mobile { display: none; flex-direction: column; gap: 4px; padding: 6px 24px 14px; }
.cnav-mobile a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.cnav-mobile a:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 820px) {
  .cnav-links { display: none; }
  .cnav-menu { display: inline-flex; }
  .cnav.open .cnav-mobile { display: flex; }
  .cnav-side--left .cnav-navlogo { display: inline-flex; }
}

/* The navbar sits over the header-splash background image, so give it no ground
   of its own beyond a faint tint (the splash shows through). */
.cnav { background: rgba(19, 27, 40, 0.35); }

/* Login modal (#modal-login) - "Minecraft account" redesign */
#modal-login .iziModal-button-close { display: none; }
#modal-login.iziModal { border-radius: 14px !important; overflow: hidden; }
.mc-login {
  position: relative;
  padding: 44px 40px 40px;
  text-align: center;
  font-family: Sora, Montserrat, sans-serif;
  background: var(--second-background, #1e283a);
  border-radius: 14px;
}
.mc-login-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #f0576a, #e23b52);
  color: #fff; font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(226, 59, 82, 0.35);
}
.mc-login-close:hover { filter: brightness(1.06); }
.mc-login-title {
  margin: 0; font-size: 34px; font-weight: 800; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 1px; color: #fff;
}
.mc-login-sub {
  margin: 10px 0 0; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--secondary-text-color, #aeaeae);
}
.mc-login-platforms { display: flex; gap: 16px; margin: 26px 0 18px; }
.mc-plat {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 12px; border: 0; border-radius: 12px; cursor: pointer;
  color: #fff; font-family: inherit; font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
  opacity: 0.6; filter: saturate(0.85);
  transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.mc-plat i { font-size: 18px; }
.mc-plat--java { background: linear-gradient(180deg, #63d0f5, #37b4e8); }
.mc-plat--bedrock { background: linear-gradient(180deg, #c06fd8, #a24bc4); }
.mc-plat:hover { opacity: 0.85; }
.mc-plat.is-active {
  opacity: 1; filter: none; transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.mc-login-row { display: flex; gap: 12px; margin-top: 8px; }
.mc-login-input {
  flex: 1; min-width: 0;
  padding: 15px 18px; border-radius: 12px;
  background: var(--background-color, #131b28);
  border: 1px solid var(--package-border, #2b3a54);
  color: #fff; font-family: inherit; font-size: 14px; outline: none;
}
.mc-login-input::placeholder { color: var(--secondary-text-color, #aeaeae); }
.mc-login-input:focus { border-color: var(--main-color, #8b5cf6); }
.mc-login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border: 0; border-radius: 12px; cursor: pointer;
  background: #47679c; color: #fff;
  font-family: inherit; font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.mc-login-btn:hover { filter: brightness(1.08); }
.mc-login-btn:disabled { opacity: .6; cursor: default; }
.mc-login-btn--ghost { background: var(--third-background, #232f44); }

/* Step 2 - code entry */
.mc-code-inputs { display: flex; justify-content: center; gap: 12px; margin: 26px 0 18px; }
.mc-code-input {
  width: 56px; height: 64px; text-align: center;
  font-family: Sora, sans-serif; font-size: 26px; font-weight: 800; color: #fff;
  background: var(--background-color, #131b28);
  border: 1px solid var(--package-border, #2b3a54);
  border-radius: 12px; outline: none;
}
.mc-code-input:focus { border-color: var(--main-color, #8b5cf6); }
.mc-login-resend { margin: 14px 0 0; font-size: 12px; color: var(--secondary-text-color, #aeaeae); }
.mc-login-resend a { color: var(--main-color, #8b5cf6); cursor: pointer; text-decoration: none; }
.mc-login-resend a:hover { text-decoration: underline; }
.mc-login-err { margin: 12px 0 0; min-height: 16px; font-size: 13px; color: var(--error-color, #fe3c45); }

@media (max-width: 520px) {
  .mc-login { padding: 40px 22px 26px; }
  .mc-login-platforms { flex-direction: column; }
  .mc-login-row { flex-direction: column; }
  .mc-code-input { width: 48px; height: 56px; font-size: 22px; }
}

/* Cart: right-side slide-in drawer (replaces the iziModal popup) */
.cart-drawer-root { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.cart-drawer-root.open { visibility: visible; }
.cart-drawer-overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.25s ease;
}
.cart-drawer-root.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 390px; max-width: 90vw;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -22px 0 55px rgba(0, 0, 0, 0.5);
}
.cart-drawer-root.open .cart-drawer { transform: translateX(0); }
.cart-drawer .shopping-cart-overlay { height: 100%; }
.cart-drawer .shopping-cart {
  height: 100%; display: flex; flex-direction: column;
  border-radius: 0;
}
.cart-drawer .shopping-cart-body { flex: 1; overflow-y: auto; padding: 18px; }

/* Clean, compact drawer arrangement (override the theme's large-avatar header) */
.cart-drawer .shopping-cart-header {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 18px 52px 18px 18px; background: var(--third-background, #232f44);
}
.cart-drawer .avatar-shoppingcart {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 9px; overflow: hidden;
}
.cart-drawer .avatar-shoppingcart img { width: 44px; height: 44px; display: block; border-radius: 9px; }
.cart-drawer .cart-description { flex: 1; min-width: 0; }
.cart-drawer .title-cart { margin: 0; font-size: 15px; font-weight: 700; color: #fff; font-family: Sora, sans-serif; }
.cart-drawer .currency-triplezone { margin-top: 4px; }
.cart-drawer .logout-btn { margin: 0; padding: 3px 10px; font-size: 12px; }
.cart-drawer .close-shoppingcart {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 8px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fourth-background, #1c2637); color: var(--secondary-text-color, #aeaeae); font-size: 16px;
}
.cart-drawer .close-shoppingcart:hover { color: #fff; }

.cart-drawer .cart-tile { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: #fff; font-family: Sora, sans-serif; }
.cart-drawer .cart-desc { margin: 0 0 14px; font-size: 13px; color: var(--secondary-text-color, #aeaeae); }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 42px 14px; font-family: Sora, sans-serif; }
.cart-empty-icon {
  width: 76px; height: 76px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: color-mix(in oklab, var(--main-color) 14%, transparent);
  color: var(--main-color, #8b5cf6); font-size: 34px;
}
.cart-drawer .empty-cart-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: #fff; font-family: Sora, sans-serif; }
.cart-drawer .empty-cart-description { margin: 0; max-width: 260px; font-size: 13px; color: var(--secondary-text-color, #aeaeae); line-height: 1.6; }
.cart-empty-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 11px 20px; border-radius: 10px; text-decoration: none;
  background: linear-gradient(180deg, var(--light-green, #a78bfa), var(--main-color, #8b5cf6));
  color: #fff; font-weight: 700; font-size: 13.5px;
}
.cart-empty-btn:hover { filter: brightness(1.08); }

.cart-drawer .shopping-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 10px;
  background: var(--second-background, #1e283a); border: 1px solid var(--package-border, #2b3a54);
  font-family: Sora, sans-serif;
}
.cart-drawer .shopping-item .title-item { margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
.cart-drawer .shopping-item .package__quantity { color: var(--main-color, #8b5cf6); font-weight: 800; }
.cart-drawer .shopping-item .description-item { margin: 2px 0 0; font-size: 12.5px; color: var(--secondary-text-color, #aeaeae); }
.cart-drawer .shopping-item .test-to-remove {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--error-color, #fe3c45); background: color-mix(in oklab, var(--error-color) 12%, transparent); font-size: 17px; text-decoration: none;
}
.cart-drawer .shopping-item .test-to-remove:hover { background: color-mix(in oklab, var(--error-color) 22%, transparent); }

.cart-drawer .shopping-cart-footer { padding: 16px 18px; border-top: 1px solid var(--package-border, #2b3a54); }
.cart-drawer .shopping-cart-footer a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 10px; text-decoration: none;
  background: linear-gradient(180deg, var(--light-green, #a78bfa), var(--main-color, #8b5cf6));
  color: #fff; font-weight: 800; font-size: 14px; font-family: Sora, sans-serif;
}
.cart-drawer .shopping-cart-footer a:hover { filter: brightness(1.08); }

/* Full footer */
.tz-footer {
  margin-top: 40px;
  border-top: 1px solid var(--package-border, #2b3a54);
  background:
    radial-gradient(700px 260px at 100% 0%, color-mix(in oklab, var(--main-color) 12%, transparent), transparent 60%),
    var(--bg-soft, #131b28);
  font-family: Sora, Montserrat, sans-serif;
}
.tz-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 44px 24px 30px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px;
}
.tz-foot-brand { max-width: 340px; }
.tz-foot-logo { display: inline-block; }
.tz-foot-logo img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.tz-foot-logo span { font-size: 20px; font-weight: 800; color: #fff; }
.tz-foot-desc { margin: 14px 0 0; color: var(--secondary-text-color, #aeaeae); font-size: 13.5px; line-height: 1.7; }
.tz-foot-socials { display: flex; gap: 10px; margin-top: 16px; }
.tz-social {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  color: #fff; font-size: 20px; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.tz-social:hover { transform: translateY(-2px); border-color: var(--main-color, #8b5cf6); color: var(--main-color, #8b5cf6); }
.tz-social--discord:hover { color: #5865f2; border-color: #5865f2; }

.tz-foot-col { display: flex; flex-direction: column; }
.tz-foot-h {
  margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--main-color, #8b5cf6);
}
.tz-foot-col a {
  color: var(--secondary-text-color, #aeaeae); text-decoration: none;
  font-size: 14px; padding: 5px 0; transition: color .15s ease, padding-left .15s ease;
}
.tz-foot-col a:hover { color: #fff; padding-left: 4px; }

.tz-ip-box {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px; cursor: pointer;
  background: var(--second-background, #1e283a);
  border: 1px solid var(--package-border, #2b3a54);
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 600;
  transition: border-color .15s ease;
}
.tz-ip-box:hover { border-color: var(--main-color, #8b5cf6); }
.tz-ip-box i { color: var(--secondary-text-color, #aeaeae); font-size: 16px; }
.tz-ip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--main-color, #8b5cf6); box-shadow: 0 0 8px var(--main-color, #8b5cf6); }
.tz-play-note { margin: 10px 0 0; color: var(--secondary-text-color, #aeaeae); font-size: 12.5px; }

.tz-footer-bottom {
  border-top: 1px solid var(--package-border, #2b3a54);
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.tz-footer-bottom p { margin: 0; color: var(--secondary-text-color, #aeaeae); font-size: 12.5px; }
.tz-foot-mojang { opacity: .8; }

@media (max-width: 820px) {
  .tz-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .tz-foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
  .tz-footer-inner { grid-template-columns: 1fr; }
  .tz-footer-bottom { flex-direction: column; text-align: center; }
}

/* Home without the category sidebar: centered, full width */
.home-full { max-width: 1000px; margin: 40px auto 0; padding: 0 16px; }
.home-full .triplezone-main-content { position: relative; width: 100%; }
