/* Arasan SPA — PageFlip Menu v2.8 (single page, no zoom) */

html.arasan-menu-body,
body.arasan-menu-body,
html.menu-fs-active,
body.menu-fs-active {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0d0d0d;
  height: 100%;
  height: 100dvh;
  overscroll-behavior: none;
  position: fixed;
  width: 100%;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
}

html.menu-ios,
body.menu-ios {
  height: -webkit-fill-available;
  min-height: -webkit-fill-available;
}

.menu-app-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #0d0d0d;
  z-index: 999999;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

html.menu-ios .menu-app-container,
body.menu-ios .menu-app-container {
  height: -webkit-fill-available;
  min-height: -webkit-fill-available;
}

/* Fullscreen (immersive) — works on iOS even without Fullscreen API */
.menu-app-container.is-fullscreen {
  padding: 0;
}

.menu-app-container.is-fullscreen .app-top-header {
  position: absolute;
  top: env(safe-area-inset-top, 0);
  right: 0;
  left: 0;
  background: transparent;
  border: none;
  z-index: 30;
  height: 44px;
}

.menu-app-container.is-fullscreen .menu-page-indicator {
  position: absolute;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  right: 0;
  padding: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  z-index: 25;
  pointer-events: none;
}

.app-top-header {
  flex: 0 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: rgba(13, 13, 13, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 10;
}

.menu-fs-btn {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  border-radius: 6px !important;
  background: rgba(212, 175, 55, 0.12) !important;
  color: #d4af37 !important;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 50 !important;
  position: relative !important;
  -webkit-tap-highlight-color: transparent;
}

.menu-fs-btn:active {
  background: rgba(212, 175, 55, 0.2);
}

.menu-fs-btn .menu-fs-icon-exit { display: none; }
.menu-fs-btn.is-active .menu-fs-icon-enter { display: none; }
.menu-fs-btn.is-active .menu-fs-icon-exit { display: block; }

.header-lang-switcher {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.lang-switch-item {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.lang-switch-item.active-lang {
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}

.flipbook-wrapper {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  background: #0d0d0d;
}

.flipbook {
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.flipbook canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  background: transparent !important;
  touch-action: none !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.page-item {
  background: transparent;
  overflow: hidden;
}

.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.page-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.menu-page-indicator {
  flex: 0 0 auto;
  text-align: center;
  padding: 4px 16px 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(13, 13, 13, 0.9);
}

.menu-slider-wrap,
#menu-slider-wrap {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.menu-swipe-hint {
  display: none !important;
}

.arasan-menu-body .fc-form-widget,
.arasan-menu-body [class*="formcraft"],
.arasan-menu-body .fc_modal {
  display: none !important;
  visibility: hidden !important;
}

.menu-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #d4af37;
  padding: 24px;
  text-align: center;
  gap: 8px;
}

.menu-empty-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

body.arasan-menu-page .formcraft-form,
body.arasan-menu-page .fc-form,
body.arasan-menu-body #wpadminbar {
  display: none !important;
}
