@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:   #0f1f2e;
  --navy2:  #162636;
  --navy3:  #1e3448;
  --gold:   #c9a84c;
  --gold2:  #e8c96a;
  --white:  #ffffff;
  --light:  #f4f7fa;
  --muted:  #8fa3b1;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--light);
  color: #1a2e3b;
  margin: 0;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar-premium {
  background: var(--navy);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.15));
}
.navbar-logo:hover {
  opacity: 1;
  transform: scale(1.03);
  filter: brightness(1.1) drop-shadow(0 0 18px rgba(212, 175, 55, 0.4));
}
.navbar-logo img {
  height: 72px;
  width: auto;
  display: block;
}
.navbar-toggler {
  padding: 0.5rem;
  border-color: rgba(201, 168, 76, 0.3) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201, 168, 76, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar-premium .nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  margin-left: 2rem;
  transition: color .2s;
}
.navbar-premium .nav-links a:hover { color: var(--white); }
.navbar-premium .btn-nav {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  margin-left: 2rem;
  transition: background .2s;
  display: inline-block;
}
.navbar-premium .btn-nav:hover { background: var(--gold2); color: var(--navy); }

/* ── HERO ── */
.hero-premium {
  background: var(--navy);
  padding: clamp(3rem, 10vw, 6rem) 0 0;
  position: relative;
  overflow: hidden;
}
.hero-premium::after {
  content: '';
  display: block;
  height: clamp(40px, 8vw, 80px);
  background: var(--light);
  clip-path: ellipse(55% 100% at 50% 100%);
  margin-top: 4rem;
}
.hero-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 1.5rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.btn-primary-premium {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn-primary-premium:hover { background: var(--gold2); transform: translateY(-1px); color: var(--navy); }
.btn-outline-premium {
  border: 2px solid rgba(255,255,255,.25);
  color: var(--white);
  font-weight: 600;
  padding: .85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s, background .2s;
}
.btn-outline-premium:hover { border-color: var(--white); background: rgba(255,255,255,.07); color: var(--white); }

/* feature card */
.feature-card {
  background: var(--navy2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--white);
}
.feature-card .tag {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.feature-item:last-child { border-bottom: none; }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  color: var(--gold);
}
.feature-item span { font-size: .95rem; color: rgba(255,255,255,.85); font-weight: 500; }

/* ── HOW IT WORKS ── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a2e3b;
  text-align: center;
  margin-bottom: .75rem;
}
.section-title span { color: var(--gold); }
.section-sub {
  text-align: center;
  color: #6b8394;
  margin-bottom: 3rem;
  font-size: 1rem;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  height: 100%;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.step-card h5 { font-weight: 700; margin-bottom: .5rem; color: #1a2e3b; }
.step-card p  { color: #6b8394; font-size: .93rem; margin: 0; line-height: 1.6; }

/* ── CAREGIVER CARDS ── */
.cg-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.cg-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.cg-card .photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--light);
}
.cg-card .photo-placeholder {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--navy3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--muted);
  flex-shrink: 0;
}
.badge-type {
  background: rgba(201,168,76,.15);
  color: #8a6d1c;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  letter-spacing: .03em;
}
.badge-kwal {
  background: var(--light);
  color: #4a6375;
  font-size: .72rem;
  font-weight: 500;
  padding: .2rem .65rem;
  border-radius: 50px;
}
.btn-profile {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: .85rem;
  padding: .55rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s;
}
.btn-profile:hover { background: var(--navy3); color: var(--white); }

/* ── STATS BAND ── */
.stats-band {
  background: var(--navy);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.stat-item .num { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; color: var(--gold); }
.stat-item .lbl { color: var(--muted); font-size: .9rem; }

/* ── SEARCH/FILTER ── */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.filter-bar .form-control,
.filter-bar .form-select {
  border: 1.5px solid #e2eaf0;
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: .93rem;
}
.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

/* ── FORMS ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2.5rem;
}
.form-card h2 { font-weight: 800; color: #1a2e3b; }
.form-control, .form-select {
  border: 1.5px solid #e2eaf0;
  border-radius: 10px;
  padding: .65rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.btn-submit {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: .8rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-size: .95rem;
}
.btn-submit:hover { background: var(--navy3); }

/* ── PAYMENT ── */
.payment-method-btn {
  border: 2px solid #e2eaf0;
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
  background: var(--white);
}
.payment-method-btn:hover { border-color: var(--gold); }
.payment-method-btn.active { border-color: var(--gold); background: rgba(201,168,76,.06); }
.ref-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.ref-box .ref-num { font-size: 1.6rem; font-weight: 800; color: var(--gold); letter-spacing: .05em; }

/* ── ADMIN ── */
.admin-sidebar {
  min-height: 100vh;
  background: var(--navy);
  width: 240px;
  flex-shrink: 0;
}
.admin-sidebar .brand { padding: 1.5rem; color: var(--white); font-weight: 800; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-sidebar .brand span { color: var(--gold); }
.admin-sidebar .nav-link { color: rgba(255,255,255,.6); padding: .65rem 1.5rem; font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; transition: color .15s, background .15s; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: var(--white); background: rgba(255,255,255,.07); }
.admin-sidebar .nav-link i { width: 18px; text-align: center; }
.admin-main { background: #f0f4f8; min-height: 100vh; padding: 2rem; flex-grow: 1; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 3rem 0 2rem; }
footer .footer-logo { font-weight: 800; color: var(--white); font-size: 1.1rem; }
footer .footer-logo span { color: var(--gold); }
footer a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .88rem; }
footer a:hover { color: var(--white); }
footer .divider { border-color: rgba(255,255,255,.08); }

/* ── PROFILE PAGE ── */
.profile-hero { background: var(--navy); padding: 3rem 0; color: var(--white); }
.profile-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.15); }
.profile-photo-placeholder { width: 120px; height: 120px; border-radius: 50%; background: var(--navy3); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--muted); }
.kwal-badge { background: rgba(201,168,76,.12); color: #7a5c10; border: 1px solid rgba(201,168,76,.3); border-radius: 50px; padding: .35rem 1rem; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.unlock-card { background: var(--navy2); border-radius: var(--radius); padding: 2rem; color: var(--white); border: 1px solid rgba(255,255,255,.08); }
.unlock-card .price { font-size: 2rem; font-weight: 800; color: var(--gold); }

/* ── COOKIE BANNER ── */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy2); color: rgba(255,255,255,.8); padding: 1rem 2rem; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.08); }
.cookie-bar button { background: var(--gold); color: var(--navy); border: none; padding: .45rem 1.2rem; border-radius: 50px; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }

/* utils */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.card { border: none; border-radius: var(--radius); }
img { max-width: 100%; height: auto; }

/* ── RESPONSIVE ── */

@media (max-width: 991.98px) {
  .hero-premium { padding-bottom: 2rem; }
}

@media (max-width: 767.98px) {
  .navbar-logo img { height: 44px; }

  .navbar-collapse {
    background: var(--navy2);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: .4rem;
  }

  .navbar-premium .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .navbar-premium .nav-links a {
    margin: 0;
    padding: .75rem 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }

  .navbar-premium .btn-nav {
    margin: 1rem 0 0 0;
    width: 100%;
    text-align: center;
    display: block;
  }

  .stats-band .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding-bottom: 1rem;
  }
  .stats-band .col-4:last-child { border-bottom: none; }

  .filter-bar { padding: 1rem; }

  footer .row > div { margin-bottom: 2rem; }
  footer .row > div:last-child { margin-bottom: 0; }

  .cookie-bar {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .form-card { padding: 1.5rem; }
  .ref-box { padding: 1.25rem; }
}

@media (max-width: 575.98px) {
  .hero-h1 { text-align: center; }
  .hero-tag { text-align: center; }
  .hero-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-premium .d-flex { justify-content: center; }
  .btn-primary-premium, .btn-outline-premium {
    width: 100%;
    justify-content: center;
  }
  .section-sub { font-size: .95rem; }
  .step-card { padding: 1.5rem; }
  .stat-item .lbl { font-size: .8rem; }
}
