body {
  font-family: 'Segoe UI', 'Plus Jakarta Sans', sans-serif !important;
  background: #eef2fb !important;
  min-height: 100vh;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(41, 82, 196, .09);
  filter: blur(90px);
  top: -130px;
  left: -130px;
  pointer-events: none;
  z-index: 0;
  animation: blobA 12s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(245, 166, 35, .08);
  filter: blur(80px);
  bottom: 60px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
  animation: blobB 10s ease-in-out infinite alternate;
}

@keyframes blobA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, 15px) scale(1.1); }
}

@keyframes blobB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-15px, -20px) scale(1.08); }
}

@keyframes fadeUp {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.container-fluid {
  position: relative;
  z-index: 1;
}

.lang-bar-wrap {
  animation: slideDown .5s ease both;
}

.lang-bar-wrap a {
  font-weight: 600 !important;
  padding: 2px 8px;
  border-radius: 20px;
  transition: all .25s ease;
  font-size: 13px;
}

.lang-bar-wrap a:not(.disabled):hover {
  background: rgba(41, 82, 196, .12);
  text-decoration: none !important;
}

.lang-bar-wrap a.disabled {
  color: #111827 !important;
  cursor: default;
}

.banner-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(26, 60, 143, .2);
  animation: fadeUp .6s .1s ease both;
  transition: transform .3s ease, box-shadow .3s ease;
}

.banner-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(26, 60, 143, .26);
}

.banner-wrap img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.banner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 30px;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, .45);
  animation: badgePulse 2s ease-in-out infinite;
}

.banner-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: dotBlink 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(239, 68, 68, .4); }
  50% { box-shadow: 0 4px 28px rgba(239, 68, 68, .7); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.main-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 50px rgba(26, 60, 143, .12), 0 1px 4px rgba(0, 0, 0, .04);
  border: 1px solid rgba(26, 60, 143, .08);
  overflow: hidden;
  animation: fadeUp .6s .2s ease both;
  position: relative;
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a3c8f, #2952c4, #f5a623);
}

.main-card-body {
  padding: 24px 20px 22px;
}

.main-card h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -.3px;
  background: linear-gradient(135deg, #1a3c8f, #2952c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

#guide-text {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.input-group-text {
  background: linear-gradient(135deg, #f0f4ff, #eaeefd) !important;
  border-color: rgba(26, 60, 143, .14) !important;
  border-right: none !important;
  border-radius: 12px 0 0 12px !important;
}

.form-control {
  border-color: rgba(26, 60, 143, .14) !important;
  font-family: 'Segoe UI', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 0 12px 12px 0 !important;
  transition: all .3s ease !important;
}

.form-control:focus {
  border-color: #2952c4 !important;
  box-shadow: 0 0 0 4px rgba(41, 82, 196, .1) !important;
  background: #fafbff !important;
}

.btn-primary {
  background: linear-gradient(135deg, #1a3c8f, #2952c4) !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: 'Segoe UI', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 32px !important;
  box-shadow: 0 6px 22px rgba(26, 60, 143, .32) !important;
  transition: all .3s ease !important;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
  transform: translateX(-100%);
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(26, 60, 143, .42) !important;
}

.btn-primary:hover::after {
  animation: shimmer .7s ease;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.btn-primary:active {
  transform: translateY(0) !important;
}

.stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  animation: fadeUp .5s .4s ease both;
}

.stat-pill {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(26, 60, 143, .1);
  border-radius: 14px;
  padding: 11px 8px;
  box-shadow: 0 2px 12px rgba(26, 60, 143, .06);
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #1a3c8f;
  line-height: 1;
}

.stat-lbl {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
}

.gender-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.gender-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid rgba(26, 60, 143, .14);
  background: #fff;
  font-family: 'Segoe UI', 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  transition: all .25s ease;
  user-select: none;
}

.gender-btn i {
  font-size: 15px;
}

.gender-btn.active-lelaki {
  border-color: #2952c4;
  background: #eff6ff;
  color: #2952c4;
  box-shadow: 0 0 0 3px rgba(41, 82, 196, .1);
}

.gender-btn.active-perempuan {
  border-color: #db2777;
  background: #fdf2f8;
  color: #db2777;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, .1);
}

.gender-btn:hover:not(.active-lelaki):not(.active-perempuan) {
  background: #f8fafc;
  border-color: rgba(26, 60, 143, .3);
}

#genderValue {
  display: none;
}

.select-wrapper {
  position: relative;
  flex: 1;
}

.select-wrapper select.form-control {
  border-left: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: #495057;
  background: #fff !important;
  padding-right: 36px !important;
  border-radius: 0 12px 12px 0 !important;
}

.select-wrapper select.form-control:focus {
  border-color: #2952c4 !important;
  box-shadow: 0 0 0 4px rgba(41, 82, 196, .1) !important;
}

.select-wrapper select.form-control option[value=""] {
  color: #adb5bd;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b7280;
  font-size: 12px;
}

#live-notif {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.notif-bubble {
  background: #fff;
  border: 1.5px solid rgba(16, 185, 129, .3);
  border-radius: 14px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
  max-width: 230px;
  animation: notifIn .5s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes notifIn {
  from { transform: translateX(-120%) scale(.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.notif-bubble.notif-out {
  animation: notifOut .4s ease forwards;
}

@keyframes notifOut {
  to { transform: translateX(-120%); opacity: 0; }
}

.notif-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  position: relative;
}

.notif-av .spin-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #10b981;
  border-right-color: #10b981;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.notif-text {
  flex: 1;
  min-width: 0;
}

.notif-name {
  font-size: 11px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.notif-gender {
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
  margin-bottom: 1px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.notif-gender.lelaki { color: #2952c4; }
.notif-gender.perempuan { color: #db2777; }

.notif-status {
  font-size: 10px;
  color: #10b981;
  font-weight: 700;
  margin-top: 1px;
}

.notif-dots {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: 2px;
}

.notif-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  animation: dotBounce 1.2s ease-in-out infinite;
}

.notif-dots span:nth-child(2) { animation-delay: .2s; }
.notif-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.testi-section {
  animation: fadeUp .5s .5s ease both;
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.testi-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

.testi-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.testi-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(26, 60, 143, .2), transparent);
}

.testi-counter {
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.testi-scroll-outer {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  max-height: 340px;
}

.testi-scroll-outer::before,
.testi-scroll-outer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  pointer-events: none;
  z-index: 2;
}

.testi-scroll-outer::before {
  top: 0;
  background: linear-gradient(to bottom, #eef2fb, transparent);
}

.testi-scroll-outer::after {
  bottom: 0;
  background: linear-gradient(to top, #eef2fb, transparent);
}

.testi-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 2px;
}

.testi-card {
  background: #fff;
  border: 1.5px solid rgba(16, 185, 129, .2);
  border-radius: 20px;
  padding: 16px 16px 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  flex-shrink: 0;
}

.testi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #10b981, #059669);
  border-radius: 4px 0 0 4px;
}

.tc-av-wrap {
  position: relative;
  flex-shrink: 0;
}

.tc-av {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  overflow: hidden;
  position: relative;
}

.tc-check {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, .4);
}

.tc-check i {
  font-size: 10px;
  color: #fff;
}

.tc-body {
  flex: 1;
  min-width: 0;
}

.tc-name {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
  line-height: 1.2;
}

.tc-gender {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 5px;
  letter-spacing: .3px;
}

.tc-gender.lelaki {
  background: #eff6ff;
  color: #2952c4;
  border: 1px solid #bfdbfe;
}

.tc-gender.perempuan {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.tc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 7px;
}

.tc-meta i {
  font-size: 9px;
  color: #9ca3af;
}

.tc-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
}

.tc-stars {
  font-size: 14px;
  color: #f59e0b;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tc-success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #6ee7b7;
  border-radius: 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tc-success-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(16, 185, 129, .35);
}

.tc-success-icon i {
  font-size: 14px;
  color: #fff;
}

.tc-success-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.2;
}

.tc-success-ref {
  font-size: 10.5px;
  color: #047857;
  font-weight: 600;
  font-family: monospace;
  margin-top: 2px;
}

.tc-msg {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.6;
  font-weight: 400;
}

#loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.loader {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 4px solid rgba(26, 60, 143, .15);
  border-top-color: #2952c4;
  animation: l1 .6s linear infinite;
}

@keyframes l1 {
  to { transform: rotate(360deg); }
}

footer {
  background: linear-gradient(135deg, #1e2d6e, #39447a) !important;
  position: relative;
  z-index: 1;
}

.min-vh-100 {
  min-height: 100vh;
}

.alert {
  border-radius: 12px;
  font-size: 13px;
}

.country-btn {
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 10px !important;
  border-radius: 12px 0 0 12px !important;
  border-right: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  white-space: nowrap;
  background: linear-gradient(135deg, #f0f4ff, #eaeefd) !important;
  border-color: rgba(26, 60, 143, .14) !important;
  transition: all .2s ease !important;
}

.country-btn:hover {
  background: linear-gradient(135deg, #e4ebfa, #dce3f5) !important;
}

.country-btn #selectedFlag {
  font-size: 20px;
  line-height: 1;
}

.country-dropdown {
  width: 280px !important;
  max-height: 320px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(26, 60, 143, .12) !important;
  box-shadow: 0 12px 40px rgba(26, 60, 143, .18) !important;
  padding: 6px 0 !important;
  overflow: hidden;
}

.country-search {
  border-radius: 10px !important;
  border: 1px solid rgba(26, 60, 143, .14) !important;
  font-size: 13px !important;
  padding: 6px 10px !important;
}

.country-search:focus {
  border-color: #2952c4 !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 196, .1) !important;
}

.country-list {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

.country-list::-webkit-scrollbar {
  width: 4px;
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(26, 60, 143, .2);
  border-radius: 4px;
}

.country-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  transition: all .15s ease !important;
  border-left: 3px solid transparent !important;
}

.country-item:hover {
  background: #f0f4ff !important;
  border-left-color: #2952c4 !important;
}

.country-item .country-flag {
  font-size: 18px;
  line-height: 1;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.country-item .country-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-item .country-code {
  color: #9ca3af;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

#phoneGroup .form-control {
  border-radius: 0 12px 12px 0 !important;
  border-left: none !important;
}

.otp-input {
  border-radius: 12px !important;
  border: 2px solid rgba(26, 60, 143, .18) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1a3c8f !important;
  height: 52px !important;
  transition: all .3s ease !important;
  text-align: center;
  letter-spacing: 8px;
}

.otp-input:focus {
  border-color: #2952c4 !important;
  box-shadow: 0 0 0 4px rgba(41, 82, 196, .1) !important;
}
