@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* =========================
   GLOBAL
   ========================= */
body {
  font-family: "Poppins", sans-serif;
}

p {
  font-size: 10pt;
}

li {
  margin-left: 10px;
  font-family: "Lato", serif;
  font-weight: 300;
  font-style: normal;
  font-size: 13pt;
  color: #1c1c1c;
}

/* =========================
   NETWORK POPUP
   ========================= */
#networkPopup {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  text-align: center;
  font-size: 1.2rem;
  padding-top: 30vh;
}

.spinner {
  margin: 0 auto 20px auto;
  width: 50px;
  height: 50px;
  border: 6px solid #fff;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =========================
   SPIN ANIMATION
   ========================= */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================
   BUTTONS (EXTRA)
   ========================= */
.extra-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  top: 5px;
  right: 13px;
  padding: 0;
  gap: 0; /* kontrol jarak antar tombol di sini */
}

.extra-buttons .btn {
  font-size: 16px;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  transition: all 0.2s ease;
}

.extra-buttons .btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.btn-youtube {
  background-color: #ff0000 !important;
  color: white !important;
}

.btn-youtube:hover {
  background-color: #cc0000 !important;
}

.btn-views {
  background-color: #f0f0f0 !important;
  color: #333 !important;
}

.btn-views:hover {
  background-color: #e0e0e0 !important;
}

/* =========================
   SLIDE / HERO IMAGE (FIXED)
   ========================= */
.slide-container {
  flex: 0 0 auto;

  width: calc(100% + 2px); /* kompensasi border card */
  margin-left: -1px;

  height: 190px;
  position: relative;
  overflow: hidden;
  background: red;
}

.slide-container img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
  display: block;
}
/* =========================
   SLIDE BUTTON NAV
   ========================= */
.btn-container {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
}

.btn-container button {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

.btn-container button:hover {
  color: #ccc;
}

/* =========================
   PRODUCT CARD
   ========================= */
.product-card {
  background-color: red;
  width: 360px;
  height: 400px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-info {
  padding: 20px;
  text-align: left;
  background: white;
}

.product-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: -2px;
  margin-top: -10px;
  color: #1a1a1a;
}

.product-price {
  color: #1a1a1a;
  font-weight: bold;
}

.product-desc {
  color: #666666;
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.btn-buy {
  background-color: #007bff;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-buy:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

/* =========================
   RATING + ICONS
   ========================= */
.rating {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  position: absolute;
  top: 170px;
  right: 225px;
  padding: 5px 10px;
}

.rating i {
  color: #ffd700;
  font-size: 0.9rem;
  margin-right: 2px;
}

.slide_new {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  position: absolute;
  top: 170px;
  right: 5px;
  padding: 5px 10px;
}

.rating-star {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s;
}

.rating-star.selected,
.rating-star.hovered {
  color: #f1c40f;
}

/* =========================
   NAVBAR + DROPDOWN
   ========================= */
.menu_navbar .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 8px 16px;
  transition:
    color 0.3s,
    background-color 0.3s;
}

.menu_navbar .nav-link:hover {
  color: #fff;
  border-radius: 5px;
}

.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu-end {
  left: -30px !important;
}

.dropdown-item {
  color: #f8f9fa;
  padding: 10px 10px;
}

.dropdown-item:hover {
  color: #007bff;
  border-radius: 4px;
}

/* =========================
   BRAND / FONT
   ========================= */
.navbar-brand {
  font-family: "Lato", serif;
  font-weight: 700;
  font-style: normal;
  font-size: 19pt;
  margin-left: 8px;
  color: black;
}

.laso-thin {
  font-family: "Lato", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 13pt;
}

/* =========================
   HOVER EFFECTS
   ========================= */
.hover-effect {
  position: relative;
  overflow: hidden;
}

.hover-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease;
}

.hover-effect.morph:hover {
  background-color: rgba(255, 0, 0, 0.3);
}

.hover-effect.pertanyaan:hover {
  background-color: rgba(0, 140, 255, 0.3);
}

.hover-effect.verif:hover {
  background-color: rgba(238, 255, 0, 0.3);
}

.hover-effect.akses:hover {
  background-color: rgba(0, 255, 217, 0.3);
}

/* =========================
   CONTAINER CUSTOM
   ========================= */
.container-custom {
  margin-bottom: 30px;
}

/* =========================
   VIDEO
   ========================= */
.video-player {
  width: 100%;
  height: 200px;
}

/* =========================
   TEMPLATE VIEW IMAGE ROW
   ========================= */
#image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 0;
}

#image-row .col-md-4 {
  flex: 1 0 30%;
  box-sizing: border-box;
}

#image-row::-webkit-scrollbar {
  height: 8px;
}

#image-row::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

#image-row::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

/* =========================
   PAGINATION
   ========================= */
.pagination-wrapper {
  max-width: 400px;
  overflow-x: auto;
  white-space: nowrap;
}

.pagination {
  background: white;
  padding: 5px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
}

.pagination .page-link {
  color: #333;
  border: none;
  padding: 8px 12px;
  margin: 0 2px;
  border-radius: 4px;
}

.pagination .page-item.active .page-link {
  background-color: #333;
  color: white;
}

/* =========================
   SCROLL BUTTON
   ========================= */
#scrollBtn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: black;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 20px;
}

#scrollBtn:hover {
  background: #0056b3;
}

/* =========================
   LOGIN PAGE
   ========================= */
.affiliate_body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f8f9fa;
}

.login-card {
  width: 400px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: white;
  text-align: center;
}

.login-card img {
  width: 50px;
  margin-bottom: 10px;
}

.btn-login {
  width: 100%;
  background-color: black;
  color: white;
}

.btn-login:hover {
  background-color: white;
  color: black;
  border: black 0.5px solid;
}

.register-link {
  color: black;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  text-align: left;
  font-size: 10pt;
}

.register-link:hover {
  color: red;
}

/* =========================
   FILTER
   ========================= */
.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-container select,
.filter-container input {
  background: white;
  padding: 8px 15px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 200px;
}

.filter-container select {
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
}

.filter-container select:focus,
.filter-container input:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-container input::placeholder {
  color: #888;
}

#searchInput {
  padding-left: 20px;
}

/* =========================
   NOTICE CARD
   ========================= */
.notice-card {
  background: #fff7df;
  border-radius: 10px;
  padding: 18px 18px;
  border-left: 6px solid #f4b400;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  color: #3a3a3a;
  width: 100%;
}

.notice-title {
  font-weight: 800;
  margin-bottom: 12px;
}

.notice-list {
  padding-left: 18px;
  margin: 0;
}

.notice-list li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.notice-footer {
  font-size: 14px;
  color: #5a5a5a;
}

/* =========================
   LOADING SCREEN
   ========================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.page-loader.show {
  display: flex;
}

.loader-wrapper {
  text-align: center;
  padding: 25px 30px;
  border-radius: 18px;
}

.loader-ring {
  width: 90px;
  height: 90px;
  position: relative;
  margin: 0 auto;
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 7px solid rgba(13, 110, 253, 0.2);
  border-top-color: #0d6efd;
  animation: spin 0.9s linear infinite;
}

.loader-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35);
  z-index: 2;
}

.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loader-text {
  margin-top: 18px;
  font-weight: 700;
  font-size: 15px;
  color: black;
  letter-spacing: 0.3px;
}

@media (max-width: 576px) {
  .loader-ring {
    width: 70px;
    height: 70px;
  }

  .loader-ring::before {
    border-width: 6px;
  }

  .loader-center {
    width: 42px;
    height: 42px;
  }

  .loader-text {
    font-size: 13px;
  }
}

.quick_link {
  color: red;
}

/* =========================
   UTIL
   ========================= */
.jarak {
  margin-bottom: 30px;
}

/* style halaman login halaman affiliate */

.login-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}
.login-card {
  background: white;
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.input-group-text {
  background: #f8f9fa;
  border: none;
  color: #6c757d;
  padding: 12px 15px;
}
.form-control {
  border: none;
  padding: 12px 15px;
  font-size: 0.95rem;
}
.form-control:focus {
  box-shadow: none;
  background: #f8f9fa;
}
.form-label {
  color: #495057;
  font-weight: 500;
  margin-bottom: 8px;
}
.btn-login {
  background: linear-gradient(135deg, #092d57 0%, #1a4980 100%);
  border: none;
  padding: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(9, 45, 87, 0.2);
  transition: all 0.3s ease;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 45, 87, 0.3);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.toggle-password {
  background: #f8f9fa;
  border: none;
  padding: 0 15px;
  color: #6c757d;
}
.toggle-password:focus {
  box-shadow: none;
}

/* STYLE HALAMAN DASHBOARD AFFILIATE */

.affiliate-dashboard {
  background-color: var(--bg-light);
  min-height: 100vh;
}

.icon-circle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrcode {
  display: flex;
  justify-content: center;
}

#qrcode img {
  border-radius: 12px;
  padding: 10px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  height: auto;
}

/* daftar tenmplate coontributor */
#image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 0;
}

#image-row .col-md-4 {
  flex: 1 0 30%;
  /* Each item takes up roughly 30% of the row width (allowing 3 items per row) */
  box-sizing: border-box;
  /* Prevents items from overflowing */
}

.rating {
  color: #ffc107;
}

#image-row::-webkit-scrollbar {
  height: 8px;
}

#image-row::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

#image-row::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

.image-container {
  position: relative;
  width: 110%;
  /* Sesuaikan ukuran container */
  height: 200px;
  /* Sesuaikan ukuran container */
  overflow: hidden;
  /* Memastikan gambar tidak keluar dari container */
}

.image-container img {
  position: absolute;
  top: 0;
  left: 100%;
  /* Mulai di luar area container (sebelah kanan) */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  /* Transisi geser ke kiri */
}

.image-container img.active {
  transform: translateX(-100%);
  /* Geser ke kiri hingga keluar dari container */
}

.btn-container {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.btn-container button {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

.btn-container button:hover {
  color: #ccc;
}

.product-tema {
  color: #4a4a4a;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.extra-buttons .btn {
  font-size: 16px;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.extra-buttons .btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.btn-youtube {
  background-color: #ff0000 !important;
  color: white !important;
}

.btn-youtube:hover {
  background-color: #cc0000 !important;
}

.btn-views {
  background-color: #f0f0f0 !important;
  color: #333 !important;
}

.btn-views:hover {
  background-color: #e0e0e0 !important;
}

.jarak {
  margin-bottom: 30px;
}

.slide_image {
  width: 105%;
  margin-left: -10px;
}

.rating-star {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s;
}

.rating-star.selected,
.rating-star.hovered {
  color: #f1c40f;
  /* warna emas */
}

.pagination {
  background: white;
  padding: 5px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pagination .page-link {
  color: #333;
  border: none;
  padding: 8px 12px;
  margin: 0 2px;
  border-radius: 4px;
}

.pagination .page-item.active .page-link {
  background-color: #333;
  color: white;
}

.rating {
  margin: 8px 0;
}

.rating i {
  color: #ffd700;
  font-size: 0.9rem;
  margin-right: 2px;
}

.modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.modal-header {
  background-color: #1a1a1a;
  color: white;
  border-bottom: 1px solid #333;
  padding: 20px;
}

.modal-header .modal-title {
  color: white;
  font-weight: 600;
}

.modal-header .btn-close {
  background-color: white;
  opacity: 0.8;
  filter: brightness(100);
}

.modal-body {
  padding: 20px;
  background: white;
}

.modal-body .form-label {
  color: #333;
  font-weight: 500;
}

.modal-body .form-control {
  background-color: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
}

.modal-body .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modal-body .form-control::placeholder {
  color: #6c757d;
}

.modal-body .text-danger {
  color: #dc3545 !important;
}

.modal-footer {
  background: white;
  border-top: 1px solid #dee2e6;
  padding: 20px;
}

.modal-footer .btn-secondary {
  background-color: #6c757d;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
}

.modal-footer .btn-secondary:hover {
  background-color: #5a6268;
}

.modal-footer .btn-primary {
  background-color: #007bff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
}

.modal-footer .btn-primary:hover {
  background-color: #0056b3;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-container select {
  background: white;
  padding: 8px 15px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 200px;
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
}

.filter-container input {
  background: white;
  padding: 8px 10px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 200px;
}

.filter-container select:focus,
.filter-container input:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-container input::placeholder {
  color: #888;
}
