/* ====================================================
   FUNHUB555 - LUXURY EMERALD CASINO THEME (INTERNATIONAL STANDARD)
   ==================================================== */

:root {
  --app-bg: #040d08;
  --app-bg-deep: #020704;
  --app-surface: #0a1f14;
  --app-panel: #0d281a;
  --app-card: #0c2619;
  --app-card-hover: #103322;
  
  --app-primary: #00e676;
  --app-primary-rgb: 0, 230, 118;
  --app-primary-hover: #00c853;
  --app-primary-glow: rgba(0, 230, 118, 0.4);
  
  --app-accent: #6ee7b7;
  --app-cyan: #00f0ff;
  --app-gold: #ffd700;
  
  --app-border: rgba(0, 230, 118, 0.22);
  --app-border-bright: rgba(0, 230, 118, 0.55);
  
  --app-ink: #f0fdf4;
  --app-muted: #86efac;
  --app-text-subtle: #cbd5e1;
  
  --bs-body-bg: var(--app-bg);
  --bs-body-color: var(--app-ink);
  --bs-primary: #00e676;
  --bs-primary-rgb: 0, 230, 118;
  --bs-secondary-color: #86efac;
}

/* Global Reset & Base Typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--app-bg) !important;
  color: var(--app-ink) !important;
  font-family: 'Kanit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 95px; /* Space for Mobile Bottom Nav */
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 230, 118, 0.16), transparent 70%),
    radial-gradient(circle at 100% 40%, rgba(0, 230, 118, 0.06), transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(0, 240, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #040d08 0%, #020704 100%);
  background-attachment: fixed;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* ====================================================
   NAVBAR (HEADER) - NO WRAPPING
   ==================================================== */
.portal-nav {
  background: rgba(4, 13, 8, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--app-border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  padding-top: 8px;
  padding-bottom: 8px;
}

.portal-nav .navbar-brand img {
  filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.5));
  transition: transform 0.3s ease;
  height: 38px;
}

@media (min-width: 992px) {
  .portal-nav .navbar-brand img {
    height: 42px;
  }
}

.portal-nav .navbar-toggler {
  padding: 6px 10px;
  border: 1px solid var(--app-border);
  background: rgba(13, 40, 26, 0.6);
  color: var(--app-primary);
  border-radius: 10px;
}

.nav-link {
  color: #a7f3d0 !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 10px !important;
  border-radius: 8px;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

@media (min-width: 1200px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 8px 12px !important;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--app-primary) !important;
  background: rgba(0, 230, 118, 0.1);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

/* ====================================================
   TYPOGRAPHY & HERO STYLES
   ==================================================== */
.hero-title {
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero-title-accent {
  background: linear-gradient(135deg, #ffffff 15%, #a7f3d0 50%, #00e676 85%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(0, 230, 118, 0.3);
}

.hero-lede {
  font-size: clamp(0.925rem, 1.8vw, 1.05rem);
  color: #94a3b8 !important;
  line-height: 1.7;
}

.section-kicker {
  color: var(--app-primary);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-kicker::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-primary);
  box-shadow: 0 0 8px var(--app-primary);
}

/* ====================================================
   BUTTONS (LUXURY 3D NEON)
   ==================================================== */
.btn-primary {
  background: linear-gradient(135deg, #00ff87 0%, #00c853 100%) !important;
  border: 1px solid #a7f3d0 !important;
  color: #031c10 !important;
  font-weight: 800 !important;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  filter: brightness(1.08);
  color: #031c10 !important;
}

.btn-outline-light {
  border: 1px solid var(--app-border) !important;
  color: #e2e8f0 !important;
  background: rgba(14, 45, 29, 0.7) !important;
  backdrop-filter: blur(10px);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.25s ease !important;
}

.btn-outline-light:hover {
  background: rgba(18, 56, 37, 0.9) !important;
  border-color: var(--app-primary) !important;
  color: var(--app-primary) !important;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
  transform: translateY(-2px);
}

/* ====================================================
   CARDS & PANELS (GLASSMORPHISM)
   ==================================================== */
.brand-card, .card, .stprow-item, .eeat-inline-item {
  background: linear-gradient(145deg, rgba(12, 38, 25, 0.85), rgba(6, 20, 13, 0.95)) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover, .stprow-item:hover, .eeat-inline-item:hover {
  border-color: var(--app-border-bright) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 230, 118, 0.2), 0 0 20px rgba(0, 230, 118, 0.1);
}

/* ====================================================
   IMAGE FIT & FRAME STYLING (NO CROPPING)
   ==================================================== */
.funhub-frame {
  border: 2px solid var(--app-border-bright);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 230, 118, 0.25);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain !important;
  display: block;
}

.funhub-frame:hover {
  border-color: var(--app-primary);
  transform: scale(1.015);
  box-shadow: 0 15px 45px rgba(0, 230, 118, 0.4), 0 0 35px rgba(0, 230, 118, 0.45);
}

/* Card images */
.brand-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain !important;
  border-radius: 14px;
  border: 1px solid var(--app-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ====================================================
   TRUST BADGES & CHIPS (RESPONSIVE)
   ==================================================== */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(14, 45, 29, 0.75);
  border: 1px solid var(--app-border);
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #a7f3d0;
  white-space: nowrap;
}

.hero-trust-chip i {
  color: var(--app-primary);
}

/* ====================================================
   CAROUSEL PROMOTIONS (SQUARE BANNER FIT)
   ==================================================== */
.promo-carousel-container {
  max-width: 680px;
  margin: 0 auto;
}

.promo-slide {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.promo-slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain !important;
  border-radius: 20px;
}

.promo-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(4, 13, 8, 0.95) 0%, rgba(4, 13, 8, 0.7) 60%, transparent 100%);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* ====================================================
   ACCORDION FAQS
   ==================================================== */
.faq-accordion .accordion-item {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  margin-bottom: 12px;
  border-radius: 14px !important;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  background: rgba(10, 31, 20, 0.9);
  color: var(--app-ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 20px;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--app-panel);
  color: var(--app-primary);
  border-bottom: 1px solid var(--app-border);
}

.faq-accordion .accordion-button::after {
  filter: invert(1) hue-rotate(90deg);
}

.faq-accordion .accordion-body {
  background: var(--app-card);
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.7;
  padding: 18px 20px;
}

.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--app-primary);
  color: #031c10;
  font-weight: 900;
  font-size: 0.8rem;
  margin-right: 12px;
  flex-shrink: 0;
}

/* ====================================================
   SEO CONTEXTUAL LINKS
   ==================================================== */
.seo-link {
  color: var(--app-primary) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0, 230, 118, 0.5);
  transition: all 0.2s ease;
}

.seo-link:hover {
  color: #6ee7b7 !important;
  text-decoration-color: #6ee7b7;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

/* ====================================================
   FOOTER
   ==================================================== */
.portal-footer {
  background: #020704;
  border-top: 1px solid var(--app-border);
  color: #94a3b8;
}

.portal-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portal-footer a:hover {
  color: var(--app-primary);
}

/* ====================================================
   FLOATING LIVE CHAT (LINE & TELEGRAM)
   ==================================================== */
.floating-chat-container {
  position: fixed;
  right: 16px;
  bottom: 85px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 992px) {
  .floating-chat-container {
    right: 24px;
    bottom: 30px;
    gap: 14px;
  }
}

.floating-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

@media (min-width: 992px) {
  .floating-chat-btn {
    width: 54px;
    height: 54px;
  }
}

.floating-chat-btn.line {
  background: #06C755;
  border: 2px solid #66ff88;
  color: #fff;
  box-shadow: 0 0 18px rgba(6, 199, 85, 0.6);
}

.floating-chat-btn.telegram {
  background: #229ed9;
  border: 2px solid #80d4ff;
  color: #fff;
  box-shadow: 0 0 18px rgba(34, 158, 217, 0.6);
}

.floating-chat-btn svg {
  width: 28px;
  height: 28px;
}

.floating-chat-btn:hover {
  transform: scale(1.12) translateY(-3px);
  color: #fff;
}

.floating-chat-btn.line:hover {
  box-shadow: 0 0 30px rgba(6, 199, 85, 0.9);
}

.floating-chat-btn.telegram:hover {
  box-shadow: 0 0 30px rgba(34, 158, 217, 0.9);
}

.floating-chat-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(4, 13, 8, 0.96);
  color: #f0fdf4;
  border: 1px solid var(--app-border-bright);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.floating-chat-btn:hover .floating-chat-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ====================================================
   INFERNO GREEN BOTTOM NAVBAR (ORIGINAL SIGNATURE STYLE)
   ==================================================== */
.ifp-nav-wrapper {
  --ifp-nav-bg: rgba(6, 20, 14, 0.96);
  --ifp-nav-primary: #00e676;   /* Neon Emerald */
  --ifp-nav-secondary: #00c853; /* Vibrant Green */
  --ifp-nav-accent: #6ee7b7;    /* Light Mint / Gold */
  --ifp-nav-text-muted: #64967e;
  --ifp-nav-height: 70px;

  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  pointer-events: none;
  font-family: "Kanit", sans-serif;
}

/* Hide in Desktop Mode */
@media (min-width: 992px) {
  .ifp-nav-wrapper {
    display: none !important;
  }
}

.ifp-nav-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 726px;
  height: var(--ifp-nav-height);
  background: var(--ifp-nav-bg);
  background-image: linear-gradient(rgba(0, 230, 118, 0.05) 1px, transparent 1px);
  background-size: 100% 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid var(--ifp-nav-primary);
  clip-path: polygon(0 0, calc(50% - 50px) 0, 50% 35px, calc(50% + 50px) 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.9);
  position: relative;
}

.ifp-nav-deco {
  position: absolute;
  top: 0;
  width: 40px;
  height: 4px;
  background: var(--ifp-nav-accent);
  box-shadow: 0 0 10px var(--ifp-nav-accent);
}
.ifp-nav-deco.left { left: 0; }
.ifp-nav-deco.right { right: 0; }

/* Menu Item */
.ifp-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ifp-nav-text-muted);
  text-decoration: none;
  height: 100%;
  transition: 0.3s;
  position: relative;
}

.ifp-nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: 0.3s;
}

.ifp-nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.ifp-nav-item.active,
.ifp-nav-item:hover {
  color: var(--ifp-nav-primary);
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

.ifp-nav-item.active .ifp-nav-icon {
  transform: translateY(-3px) scale(1.1);
  filter: drop-shadow(0 0 8px var(--ifp-nav-primary));
  stroke: var(--ifp-nav-accent);
}

.ifp-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 3px;
  background: var(--ifp-nav-primary);
  box-shadow: 0 0 10px var(--ifp-nav-primary);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

/* FAB (Center Button - Diamond 45deg) */
.ifp-nav-fab-wrapper {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 10000;
}

.ifp-nav-fab {
  width: 68px;
  height: 68px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #092c1c 0%, #03120b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ifp-nav-accent);
  position: relative;
  transition: 0.3s;
  border: 2px solid var(--ifp-nav-primary);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.ifp-fab-inner {
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ifp-nav-fab-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
  fill: currentColor;
  filter: drop-shadow(0 0 5px var(--ifp-nav-primary));
  animation: ifpNavPulse 2s infinite;
}

.ifp-nav-fab-text {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

.ifp-nav-fab:hover {
  background: var(--ifp-nav-primary);
  color: #042416;
  box-shadow: 0 0 30px var(--ifp-nav-primary);
  border-color: var(--ifp-nav-accent);
}

.ifp-nav-fab:hover .ifp-nav-fab-icon {
  animation: none;
  transform: scale(1.1);
  fill: #042416;
}

@keyframes ifpNavPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--ifp-nav-primary)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--ifp-nav-accent)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--ifp-nav-primary)); }
}
