/* Zenix.az — rotating rectangular black mirrors (does not change site palette) */

.hero {
  padding: 88px 0 36px;
  align-items: flex-start;
  overflow: hidden;
}

.hero__inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
}

.hero__content,
.hero__actions,
.hero__stats,
.hero__visual {
  display: none !important;
}

.mirror-stage {
  --orbit: 400px;
  --panel-w: 236px;
  --panel-h: 330px;
  position: relative;
  width: min(100%, 1180px);
  height: min(84vh, 820px);
  margin-top: 8px;
  display: grid;
  place-items: center;
  perspective: 1800px;
  user-select: none;
  touch-action: manipulation;
  cursor: grab;
}

.mirror-stage.is-dragging,
.mirror-stage.is-dragging .mirror-orb {
  cursor: grabbing;
}

.mirror-stage__glow {
  position: absolute;
  width: 460px;
  height: 140px;
  bottom: 54px;
  border-radius: 0;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.mirror-world {
  position: relative;
  width: 460px;
  height: 460px;
  transform-style: preserve-3d;
  transform: rotateX(10deg);
  -webkit-box-reflect: below 20px linear-gradient(to bottom, transparent 8%, rgba(0, 0, 0, 0.15) 36%, rgba(255, 255, 255, 0.18));
}

.mirror-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.mirror-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--panel-w);
  height: var(--panel-h);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #e8eef6;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(0, 136, 255, 0.25);
  will-change: transform, opacity;
}

.mirror-orb__glass {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 18%, rgba(0, 0, 0, 0.55) 46%, #05070b 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -40px 50px rgba(0, 0, 0, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

.mirror-orb__glass::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.mirror-orb__glass::after {
  content: '';
  position: absolute;
  left: -20%;
  top: -30%;
  width: 55%;
  height: 140%;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  transform: rotate(18deg);
  pointer-events: none;
}

.mirror-orb__ico,
.mirror-orb__label {
  position: relative;
  z-index: 1;
}

.mirror-orb__ico {
  width: 40px;
  height: 40px;
  color: #f3f7fb;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.mirror-orb__ico svg {
  width: 100%;
  height: 100%;
}

.mirror-orb__label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.mirror-orb:hover .mirror-orb__glass,
.mirror-orb:focus-visible .mirror-orb__glass {
  border-color: rgba(0, 136, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(0, 136, 255, 0.35),
    0 22px 46px rgba(0, 0, 0, 0.6);
}

.mirror-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 176px;
  height: 176px;
  margin: -88px 0 0 -88px;
  border-radius: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background:
    linear-gradient(160deg, #1a1f28 0%, #05070b 55%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 36px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.mirror-core__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.14) 50%, transparent 64%);
  animation: zenix-sheen 5.5s ease-in-out infinite;
}

.mirror-core__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.mirror-core strong {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0f4f8;
}

.mirror-hint {
  position: absolute;
  bottom: 4px;
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes zenix-sheen {
  0%, 100% { transform: translateX(-28%); opacity: 0.3; }
  50% { transform: translateX(28%); opacity: 0.65; }
}

@media (max-width: 768px) {
  .hero {
    padding: 72px 0 20px;
    overflow: auto;
  }

  .mirror-stage {
    --orbit: 0;
    --panel-w: 100%;
    --panel-h: 108px;
    width: 100%;
    height: auto;
    min-height: 0;
    perspective: none;
    touch-action: manipulation;
    cursor: default;
  }

  .mirror-stage__glow,
  .mirror-core,
  .mirror-hint {
    display: none !important;
  }

  .mirror-world {
    width: 100%;
    height: auto;
    transform: none !important;
    transform-style: flat !important;
    -webkit-box-reflect: none;
  }

  .mirror-ring {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    transform: none !important;
    transform-style: flat;
  }

  .mirror-orb {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 108px !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    will-change: auto;
    cursor: pointer;
  }

  .mirror-orb:nth-child(6) {
    display: none !important;
  }

  .mirror-orb__label { font-size: 0.82rem; }
  .mirror-orb__ico { width: 28px; height: 28px; }
}

body.mobile-app-mode .hero {
  padding: 0;
  overflow: hidden;
}

body.mobile-app-mode .hero__inner {
  display: flex !important;
  flex: 1;
  align-items: stretch;
  justify-content: center;
  padding: 12px 0 16px;
}

body.mobile-app-mode .mirror-stage {
  width: 100%;
  height: auto;
  margin-top: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .logo--header {
    max-width: 220px;
  }

  .logo__tagline {
    font-size: 0.68rem;
  }

  .header-auth__guest .auth-header-btn--login,
  .auth-header-btn {
    padding: 11px 16px;
    font-size: 0.92rem;
  }

  .mobile-tabbar {
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-tabbar__item {
    gap: 6px;
    padding: 10px 6px;
    font-size: 0.84rem;
    min-height: 64px;
  }

  .mobile-tabbar__item span {
    max-width: 88px;
  }

  .mobile-tabbar__item svg {
    width: 28px;
    height: 28px;
  }

  body.mobile-app-mode .header__inner {
    position: relative;
    min-height: 64px;
    gap: 12px;
  }

  body.mobile-app-mode .logo__text {
    font-size: 1.35rem;
  }

  body.mobile-app-mode .logo__mark:not(.logo__mark--spin) .logo__img {
    width: 46px;
    height: 46px;
  }

  body.mobile-app-mode .header__actions,
  body.mobile-app-mode .header__tools {
    gap: 8px;
  }

  body.mobile-app-mode .theme-toggle-mobile,
  body.mobile-app-mode .lang-picker__trigger {
    width: 48px;
    height: 44px;
  }

  body.mobile-app-mode .theme-toggle-mobile__icon {
    width: 24px;
    height: 24px;
  }

  body.mobile-app-mode .lang-picker__trigger svg {
    width: 32px;
    height: 22px;
  }

  body.mobile-app-mode .header-auth {
    display: none;
  }

  .mobile-tabbar__item--profile {
    position: relative;
  }

  .mobile-tabbar__item--profile .mobile-profile-tab__face {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
  }

  .mobile-tabbar__item--profile .mobile-profile-tab__face svg {
    width: 28px;
    height: 28px;
  }

  .mobile-profile-tab__avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0088ff center/cover no-repeat;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.35);
  }

  .mobile-tabbar__item--profile.is-user {
    color: var(--primary);
  }

  body.mobile-app-mode .header-auth__profile {
    padding: 8px 10px;
  }

  body.mobile-app-mode .header-auth__avatar,
  body.mobile-app-mode .header-auth__initial {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mirror-core__shine { animation: none; }
}
