
/* Pastikan body pakai flex column agar footer tetap di bawah */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 75px;
}

.dot {
  width:6px;
  height:6px;
  margin:0 2px;
  background:#198754;
  border-radius:50%;
  display:inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}

.dot:nth-child(2){ animation-delay:0.2s; }
.dot:nth-child(3){ animation-delay:0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity:0.3; }
  40% { transform: scale(1); opacity:1; }
}

hr{ margin-top:5px; }

a{ text-decoration:none; }

@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

      /* Kurangi jarak atas bootstrap */
    .mt-5 {
        margin-top: 0.5rem !important;
    }

    .mt-4 {
        margin-top: 0.5rem !important;
    }
}

/* Konten utama fleksibel untuk mengisi ruang */
.content-wrapper {
    flex: 1; /* isi sisa ruang body */
    min-height: 60vh; /* minimal tinggi konten */
}

.alertx {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    width: 85%;
    max-width: 425px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
}

.bottom-nav .nav-item {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 700;
    text-decoration: none;
}

.bottom-nav .nav-item i {
    display: block;
    font-size: 20px;
}

.bottom-nav .nav-item.active {
    color: #0d6efd;
}

#selectPage {
    max-height: 150px;  /* tinggi maksimal dropdown */
    overflow-y: auto;   /* scroll jika isi melebihi tinggi */
}

.autocomplete-box {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%; /* tepat di bawah input */
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f1f1f1;
}

/* NOMINAL */
.nominal-item {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
}
.nominal-item.active {
  border-color: #0d6efd;
  background: #eef5ff;
  font-weight: bold;
}

/* SNAP ITEM */
.snap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-top: 6px;
  cursor: pointer;
  background: #fff;
}

.snap-item:hover {
  border-color: #0d6efd;
}

.snap-item.active {
  border-color: #0d6efd;
  background: #eef5ff;
}

/* CHECK */
.snap-item .check {
  opacity: 0;
  color: #0d6efd;
}
.snap-item.active .check {
  opacity: 1;
}

/* BANK LIST */
.bank-list {
  margin-left: 10px;
}

.package-item {
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid #eee;
}

.package-item:hover {
    border-color: #0d6efd;
    background: #f8fbff;
}

.package-item.active {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.check-icon {
    font-size: 18px;
}

/* UI CSS PAGE TERAPIS + SEARCH ========*/

.list-terapis > a {
    display: block;
    margin-bottom: 14px; /* konsisten gap */
}

a.preview-terapis {
    display: block;
    margin-bottom: 12px;
}

.terapis-card {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.terapis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.name {
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.meta {
    font-size: 13px;
    color: #777;
}

.rating {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
}

.badge-clean,
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

.badge-clean {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-live {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.badge-clean i,
.badge-live i {
    font-size: 11px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid #eee;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    margin-left: 8px;
}

.header-terapis .subtitle {
    font-size: 14px;
    color: #94a3b8;
}

.icon-elegant {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 18px;

    /* efek premium */
    box-shadow: 
        0 6px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.card-elegant {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}

.subtitle {
    font-size: 13px;
    color: #94a3b8;
}

.divider {
    height: 1px;
    background: #f1f5f9;
    margin: 14px 0 18px;
}

.desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.paket-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    margin: 18px 0;
}

.paket-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.paket-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    color: #475569;
}

.note {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
}

.btn-elegant {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.btn-elegant:hover {
    opacity: 0.9;
}

.footer-note {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin-top: 14px;
}

.badge-top {
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary-elegant {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 13px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

.btn-outline-elegant {
    border: 1px solid #e2e8f0;
    padding: 13px;
    border-radius: 14px;
    text-align: center;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
}

.pwa-float-btn {
    position: fixed;

    bottom: 15%;   /* bawah */
    right: 10px;    /* kanan */

    z-index: 9999;

    display: none;
    align-items: center;
    gap: 8px;

   background: linear-gradient(135deg, #021a39, #34a853);
   color: #fff;

    border: 1px solid rgba(255,255,255,0.15);

    padding: 10px 16px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 10px 25px rgba(0,0,0,0.35);

    cursor: pointer;

    transition: all 0.2s ease;
}