/* ==========================================================================
   shared.css
   Shared styles for freekredit4u pages
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. MOBILE BOTTOM MENU
   -------------------------------------------------------------------------- */
.mobile-bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: #062e0f;
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  z-index: 99999;
}

.mobile-bottom-menu a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  flex: 1;
  line-height: 16px;
}

.mobile-bottom-menu a br {
  display: block;
}

body {
  padding-bottom: 80px;
}


/* --------------------------------------------------------------------------
   2. FLOATING CLAIM BUTTON
   -------------------------------------------------------------------------- */
.floating-claim {
  position: fixed !important;
  right: 8px !important;
  top: 50% !important;
  width: 85px !important;
  z-index: 999999 !important;
  animation: floatingClaim 18s ease-in-out infinite;
}

.floating-claim img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

@keyframes floatingClaim {
  0%   { transform: translateY(-150px); }
  25%  { transform: translateY(-75px);  }
  50%  { transform: translateY(150px);  }
  75%  { transform: translateY(75px);   }
  100% { transform: translateY(-150px); }
}

@media (max-width: 768px) {
  .floating-claim {
    width: 70px !important;
    right: 5px !important;
    animation: floatingClaim 20s ease-in-out infinite;
  }
}


/* --------------------------------------------------------------------------
   3. IMAGE BOTTOM NAV  (.pk-img-nav)
   -------------------------------------------------------------------------- */
.pk-img-nav,
.pk-img-nav *,
.pk-img-nav-item,
.pk-img-nav-item * {
  box-sizing: border-box;
}

.pk-img-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.pk-img-nav-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("https://static.gwvkyk.com/media/8ca9c939f0b962fea3d12.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pk-img-nav-item {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pk-img-nav-item img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform .18s ease, filter .18s ease;
}

.pk-img-nav-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

@media (max-width: 480px) {
  .pk-img-nav          { height: 56px; }
  .pk-img-nav-item img { width: 42px; height: 42px; }
  body                 { padding-bottom: 66px; }
}

@media (max-width: 390px) {
  .pk-img-nav          { height: 54px; }
  .pk-img-nav-item img { width: 40px; height: 40px; }
  body                 { padding-bottom: 64px; }
}

@media (min-width: 768px) {
  .pk-img-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 24px));
    bottom: 10px;
    height: 62px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  }

  .pk-img-nav-bg        { border-radius: 16px; }
  .pk-img-nav-item img  { width: 46px; height: 46px; }
  body                  { padding-bottom: 90px; }
}


/* --------------------------------------------------------------------------
   4. NR BOTTOM BAR  (.nr-bottom-bar)
   -------------------------------------------------------------------------- */
.nr-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: #121212;
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, .3);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  -webkit-transform: translateZ(0);
  border-radius: 16px 16px 0 0;
}

@media (min-width: 768px) {
  .nr-bottom-bar { display: none !important; }
}

.nr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #dfe3ea;
  font-size: 11px;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.nr-img {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
  object-fit: contain;
}

.nr-label {
  font-size: 10px;
  color: #9aa0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  text-align: center;
}

.nr-item:hover { color: #fff; }
.nr-item.active { color: #22c55e; }

body {
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  body { padding-bottom: 90px; }
}
