/* Navbar logo: transparent PNG, slightly larger than before (was 48px / 38px on phones) */
.hero-logo-main img {
  height: 56px;
}

/* =====================================================================
   SRP Prime Wealth – v2 theme layer (mobile-first polish + new sections)
   Loaded after styles.css; overrides and extends it.
   ===================================================================== */

html {
  scroll-padding-top: 76px;
}

body {
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Buttons ---------- */
.btn-blue,
.btn-ghost {
  border-radius: 12px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-blue {
  background: linear-gradient(135deg, #4ba3d4, #2f7fc0);
  box-shadow: 0 8px 24px rgba(75, 163, 212, 0.35);
  border: none;
  cursor: pointer;
}

.btn-blue:hover {
  background: linear-gradient(135deg, #6bbde0, #4ba3d4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
}

.sip-btn,
.form-submit,
.btn-submit {
  border-radius: 12px;
  min-height: 50px;
}

.btn-wa {
  background: #25d366;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ---------- Navbar ---------- */
#navbar {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}

.nav-links {
  gap: 22px;
}

.nav-signup-cta {
  border-radius: 10px;
}

@media (max-width: 1150px) {
  .nav-contact-top {
    display: none;
  }
}

@media (max-width: 900px) {
  #navbar {
    padding: 0 16px;
    height: 60px;
  }

  .hero-logo-main img {
    height: 44px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.nav-keep {
    display: flex !important;
  }

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a2d5a;
    padding: 0;
    margin-left: 6px;
  }

  .nav-links.mobile-active {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column !important;
    align-items: stretch;
    text-align: center;
    gap: 2px;
    padding: 12px 20px 22px;
    border-bottom: 3px solid #4ba3d4;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
  }

  .nav-links.mobile-active a {
    display: block;
    font-size: 16px;
    padding: 13px;
  }

  .nav-links.mobile-active .nav-signup-cta {
    display: block !important;
    margin-top: 6px;
  }
}

/* ---------- Hero ---------- */
#hero {
  min-height: auto;
  padding: 124px 40px 56px;
  align-items: stretch;
  background:
    radial-gradient(1100px 600px at 88% -10%, rgba(75, 163, 212, 0.30), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(52, 211, 153, 0.14), transparent 60%),
    linear-gradient(135deg, #0a1430 0%, #152654 55%, #1e3870 100%);
}

#hero::after,
#hero::before {
  display: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: heroOrb 14s ease-in-out infinite alternate;
}

.hero-orb-a {
  width: 340px;
  height: 340px;
  background: #4ba3d4;
  opacity: 0.35;
  top: -90px;
  right: 6%;
}

.hero-orb-b {
  width: 260px;
  height: 260px;
  background: #34d399;
  opacity: 0.18;
  bottom: -100px;
  left: 28%;
  animation-delay: -6s;
}

@keyframes heroOrb {
  to {
    transform: translate(40px, 30px) scale(1.15);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-badge {
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #9fdcf7;
  background: rgba(75, 163, 212, 0.16);
  line-height: 1.5;
}

#hero h1 {
  font-size: clamp(36px, 5.2vw, 62px);
}

#hero h1 em {
  background: linear-gradient(90deg, #8fd8fa, #4ba3d4 55%, #5fe0b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#hero .hero-copy > p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 30px;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-trust li::before {
  content: "✓";
  color: #5fe0b0;
  font-weight: 700;
  margin-right: 6px;
}

/* Hero quick-illustration card */
.hero-calc {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.hc-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #9fdcf7;
  margin-bottom: 18px;
}

.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.hc-row strong {
  font-size: 17px;
  color: #fff;
}

.hero-calc input[type="range"] {
  display: block;
  width: 100%;
  height: 32px;
  margin: 4px 0 14px;
  accent-color: #4ba3d4;
  cursor: pointer;
}

.hc-result {
  background: rgba(10, 20, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 4px;
}

.hc-result span {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

#hc-corpus {
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: #8fd8fa;
  margin: 4px 0;
}

.hc-result small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.hc-link {
  display: block;
  margin-top: 14px;
  color: #9fdcf7;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

#hero .hero-calc p.hc-note {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 12px 0 0;
  max-width: none;
}

.hero-stats {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-stats > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
}

.stat-n {
  font-size: clamp(26px, 3.4vw, 36px);
  color: #8fd8fa;
}

.stat-l {
  color: rgba(255, 255, 255, 0.7);
}

#hero p.hero-foot {
  position: relative;
  z-index: 1;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 1200px;
  width: 100%;
  margin: 14px auto 0;
}

@media (max-width: 900px) {
  #hero {
    padding: 92px 18px 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-stats > div {
    padding: 14px;
  }

  #hero .hero-copy > p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btns a {
    width: 100%;
  }

  .hero-calc {
    padding: 20px;
  }
}

/* ---------- Mobile hero: clean first screen ---------- */
.hb-short {
  display: none;
}

@media (max-width: 600px) {
  #hero {
    padding: 84px 16px 32px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-badge {
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 11.5px;
    padding: 6px 14px;
    margin-bottom: 18px;
  }

  .hb-long {
    display: none;
  }

  .hb-short {
    display: inline;
  }

  #hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.12;
    margin: 0 auto 14px;
  }

  #hero h1 em {
    display: inline-block;
    padding-bottom: 4px;
  }

  #hero .hero-copy > p {
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 auto 22px;
  }

  /* Register already lives in the sticky bottom bar on phones */
  .hero-btns .btn-ghost {
    display: none;
  }

  .hero-trust {
    justify-content: center;
    gap: 6px 14px;
    margin-top: 16px;
    font-size: 12.5px;
  }

  .hero-trust li::before {
    margin-right: 4px;
  }

  /* Stats become one slim strip instead of four big boxes */
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 4px;
  }

  .hero-stats > div {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0 4px;
    text-align: center;
  }

  .hero-stats > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat-n {
    font-size: 20px;
  }

  .stat-l {
    font-size: 10.5px;
    line-height: 1.3;
    margin-top: 2px;
  }

  #hero p.hero-foot {
    font-size: 10.5px;
    text-align: center;
  }
}

/* ---------- Calculator launcher ---------- */
#calc-launch {
  padding: 56px 40px 8px;
  text-align: center;
  background: #f8f9fb;
}

#calc-launch .section-title {
  margin-bottom: 28px;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.launch-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.launch-tile:hover,
.launch-tile:focus-visible {
  transform: translateY(-4px);
  border-color: #4ba3d4;
  box-shadow: 0 12px 28px rgba(26, 45, 90, 0.12);
}

.lt-ico {
  font-size: 24px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #edf6fb;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.lt-name {
  font-weight: 700;
  font-size: 15px;
  color: #1a2d5a;
}

.lt-sub {
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.launch-tile.featured {
  background: linear-gradient(135deg, #1a2d5a, #2f5fa8);
  border-color: transparent;
}

.launch-tile.featured .lt-name {
  color: #fff;
}

.launch-tile.featured .lt-sub {
  color: rgba(255, 255, 255, 0.78);
}

.launch-tile.featured .lt-ico {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 600px) {
  #calc-launch {
    padding: 40px 16px 0;
  }

  .launch-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .launch-tile {
    padding: 14px;
  }

  .launch-tile.featured {
    grid-column: 1 / -1;
  }
}

/* ---------- Calculators ---------- */
#calculators {
  background: #f8f9fb;
  padding-top: 48px;
}

.sip-wrap {
  background: #fff;
  border-radius: 18px;
}

.calc-disclaimer {
  max-width: 960px;
  margin: 20px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: #55637a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
}

.calc-cta {
  max-width: 960px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1a2d5a, #2f5fa8);
  border-radius: 18px;
  padding: 22px 26px;
  color: #fff;
}

.calc-cta h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 4px;
}

.calc-cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.calc-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .calc-tabs {
    position: sticky;
    top: 60px;
    z-index: 20;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    margin: 0 -18px 18px;
    padding: 10px 18px;
    background: #f8f9fb;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .calc-tabs::-webkit-scrollbar {
    display: none;
  }

  .calc-tab-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
  }

  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .range-input,
  .reckoner-input {
    font-size: 16px !important;
    min-height: 44px;
  }

  .calc-cta {
    padding: 20px;
  }

  .calc-cta-btns,
  .calc-cta-btns a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .loan-mode-btn {
    padding: 9px 8px;
    font-size: 11.5px;
  }
}

/* ---------- Sections / cards ---------- */
.section-title {
  font-size: clamp(26px, 4.4vw, 40px);
}

#services {
  background: #f8f9fb;
}

.svc-card,
.testi-card,
.why-card,
.contact-form {
  border-radius: 16px;
}

.svc-note {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #55637a !important;
  margin: 12px 0 0 !important;
  padding-top: 10px;
  border-top: 1px dashed #dde6ef;
}

.why-item p,
.why-row span:first-child {
  color: rgba(255, 255, 255, 0.72);
}

.testi-loc {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 700px) {
  .section {
    padding: 52px 18px;
  }

  .section-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }

  /* swipeable card rows */
  .services-grid,
  .testi-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    margin: 0 -18px;
    padding: 4px 18px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .services-grid::-webkit-scrollbar,
  .testi-grid::-webkit-scrollbar {
    display: none;
  }

  .services-grid > *,
  .testi-grid > * {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }

  .steps {
    margin-top: 32px;
  }

  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    text-align: left;
    padding: 0 0 22px;
  }

  .step-num {
    width: 48px;
    height: 48px;
    margin: 0;
    grid-row: span 2;
    font-size: 18px;
  }

  .fgroup input,
  .fgroup select,
  .fgroup textarea {
    font-size: 16px;
    min-height: 46px;
  }
}

/* ---------- About ---------- */
#about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(26, 45, 90, 0.18);
}

.about-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #55637a;
  margin-bottom: 12px;
}

.about-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.about-creds span {
  font-size: 12px;
  font-weight: 600;
  color: #1a2d5a;
  background: #edf6fb;
  border: 1px solid #cfe6f5;
  border-radius: 20px;
  padding: 6px 12px;
}

.paid-card {
  margin-top: 20px;
  background: #f0f7fd;
  border: 1px solid #cfe6f5;
  border-radius: 14px;
  padding: 18px 20px;
}

.paid-card h4 {
  font-size: 15px;
  color: #1a2d5a;
  margin-bottom: 6px;
}

.paid-card p {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-photo {
    max-width: 240px;
    margin: 0 auto;
    display: block;
  }
}

/* ---------- FAQ ---------- */
#faq {
  background: #f8f9fb;
}

#faq .faq-head {
  text-align: center;
  margin-bottom: 28px;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 50px 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1a2d5a;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: #4ba3d4;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #55637a;
}

/* ---------- Contact ---------- */
.reg-box {
  display: block;
  border-radius: 12px;
}

.reg-box p {
  font-size: 13px;
}

.form-consent {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  margin-top: 12px;
}

.form-consent a {
  color: #2f7fc0;
}

/* ---------- Footer ---------- */
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: grid;
  gap: 8px;
}

.footer-legal p {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.88);
}

.footer-legal a,
.footer-links a {
  color: #8fd8fa;
  text-decoration: none;
}

.footer-brand p,
.footer-col a {
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom .copy,
.footer-links {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 600px) {
  footer {
    padding: 40px 18px 24px;
  }

  .footer-top {
    gap: 26px;
  }
}

/* ---------- Mobile action bar ---------- */
.mbar {
  display: none;
}

@media (max-width: 768px) {
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.35fr;
    gap: 6px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 24px rgba(15, 28, 63, 0.12);
  }

  .mbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    color: #1a2d5a;
  }

  .mbar a span {
    font-size: 10.5px;
    font-weight: 600;
  }

  .mbar a.mbar-cta {
    background: linear-gradient(135deg, #4ba3d4, #2f7fc0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  body.has-mbar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  body.has-mbar .wa-wrap {
    display: none;
  }
}

/* ---------- Legal page ---------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 110px 20px 60px;
}

.legal-wrap h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 5vw, 38px);
  color: #1a2d5a;
  margin-bottom: 8px;
}

.legal-wrap h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #1a2d5a;
  margin: 40px 0 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.legal-wrap h3 {
  font-size: 15px;
  color: #1a2d5a;
  margin: 18px 0 6px;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 14.5px;
  line-height: 1.75;
  color: #47546b;
}

.legal-wrap ul {
  padding-left: 20px;
  margin: 6px 0 10px;
}

.legal-wrap a {
  color: #2f7fc0;
}

.legal-updated {
  font-size: 13px;
  color: #64748b;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   Feature add-ons: extra calculators, SIP year view, share, quiz, install
   ===================================================================== */
.res-sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin-top: 10px;
}

.cmp-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
}

.cmp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.cmp-head strong {
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
}

.cmp-bar {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0 8px;
  overflow: hidden;
}

.cmp-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #4ba3d4, #5fe0b0);
  transition: width 0.5s ease;
}

.cmp-row small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.calc-extra {
  max-width: 960px;
  margin: 18px auto 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 24px;
}

.calc-extra h4 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  color: #1a2d5a;
  margin: 18px 0 10px;
}

.today-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 14px;
  color: #1a2d5a;
  background: #f0f7fd;
  border: 1px solid #cfe6f5;
  border-radius: 12px;
  padding: 12px 14px;
}

.today-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.today-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4ba3d4;
}

.today-inf {
  color: #55637a;
}

.mini-input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid #dde6ef;
  border-radius: 6px;
  font: 600 15px "Inter", sans-serif;
  color: #1a2d5a;
  text-align: right;
}

#sip-real-val {
  color: #1f7a56;
}

.chart-box {
  position: relative;
  height: 280px;
}

.year-table {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.year-table summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #2f7fc0;
}

.tbl-scroll {
  max-height: 340px;
  overflow: auto;
}

.year-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.year-table th,
.year-table td {
  padding: 9px 12px;
  text-align: right;
  border-top: 1px solid #f1f5f9;
  white-space: nowrap;
  color: #1a2d5a;
}

.year-table th {
  position: sticky;
  top: 0;
  background: #edf6fb;
  font-weight: 600;
}

.year-table th:first-child,
.year-table td:first-child {
  text-align: left;
}

.col-real {
  display: none;
}

.show-real .col-real {
  display: table-cell;
}

.share-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 960px;
  min-height: 50px;
  margin: 14px auto 0;
  padding: 12px 20px;
  border: 1px solid #25d366;
  border-radius: 12px;
  background: #f0fdf5;
  color: #128c4b;
  font: 600 15px "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.share-wa:hover {
  background: #25d366;
  color: #fff;
}

/* Risk quiz */
#risk-quiz {
  background: #fff;
}

.quiz-head {
  text-align: center;
}

.quiz-head .section-sub {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.quiz-card {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f1c3f, #1e3870);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(26, 45, 90, 0.25);
}

.quiz-progress {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 18px;
}

.quiz-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4ba3d4, #5fe0b0);
  transition: width 0.3s ease;
}

.quiz-step {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #9fdcf7;
}

.quiz-q {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.3;
  margin: 8px 0 18px;
}

.quiz-opts {
  display: grid;
  gap: 10px;
}

.quiz-opt {
  text-align: left;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 500 15px "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.quiz-opt:hover,
.quiz-opt:focus-visible {
  background: rgba(75, 163, 212, 0.3);
  border-color: #4ba3d4;
  transform: translateX(4px);
}

.quiz-result {
  text-align: center;
}

.quiz-profile {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 6vw, 38px);
  color: #8fd8fa;
  margin: 6px 0 14px;
}

.quiz-meter {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.quiz-meter i {
  width: 44px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.quiz-meter i.on {
  background: linear-gradient(90deg, #4ba3d4, #5fe0b0);
}

.quiz-result p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin: 0 auto 20px;
}

.quiz-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-retake {
  margin-top: 16px;
  background: none;
  border: none;
  color: #9fdcf7;
  font: 600 14px "Inter", sans-serif;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}

.quiz-note {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
  text-align: center;
}

/* Install prompt */
.install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 9997;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  background: #0f1c3f;
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(15, 28, 63, 0.35);
}

.install-bar span {
  flex: 1;
}

.install-yes {
  min-height: 40px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: #4ba3d4;
  color: #fff;
  font: 700 14px "Inter", sans-serif;
  cursor: pointer;
}

.install-no {
  width: 36px;
  height: 40px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .install-bar {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .calc-extra {
    padding: 16px;
  }

  .chart-box {
    height: 240px;
  }

  .quiz-card {
    padding: 22px 18px;
  }

  .quiz-actions a {
    width: 100%;
  }

  .mini-input {
    font-size: 16px;
  }
}
