:root { --lp-radius: 24px; --lp-shadow: 0 20px 44px rgba(76, 29, 149,.10); --lp-shadow-lg: 0 28px 64px rgba(76, 29, 149,.18); }
html { scroll-behavior: smooth; }
body.landing-body { font-family: 'Inter', sans-serif; background: var(--bs-body-bg); overflow-x: hidden; padding-bottom: 0; }
@media (max-width: 991.98px) { body.landing-body.has-app-nav { padding-bottom: 84px; } }

/* ---------- Top bar ---------- */
.landing-nav {
  position: sticky; top: 0; z-index: 1040;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bs-body-bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 70%, transparent);
}
.landing-nav .container { flex-wrap: nowrap; }
.landing-brand { font-family: 'Poppins', sans-serif; font-weight: 800; letter-spacing: -.01em; min-width: 0; }
.landing-brand img { height: 34px; width: 34px; object-fit: contain; border-radius: 10px; flex-shrink: 0; }
.landing-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) {
  .landing-brand { font-size: .95rem; gap: .5rem !important; }
  .landing-brand span { max-width: 50vw; }
}
.landing-nav .nav-link { font-weight: 600; color: var(--bs-body-color); padding: .5rem .9rem !important; border-radius: 999px; transition: color .15s, background .15s; }
.landing-nav .nav-link:hover { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, transparent); }
.landing-nav .nav-link.active { color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--brand-purple)); }
.lp-icon-btn {
  height: 40px; width: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color); position: relative;
  transition: transform .15s, box-shadow .15s; flex-shrink: 0;
}
.lp-icon-btn:hover { transform: translateY(-2px); box-shadow: var(--lp-shadow); }
.lp-btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-purple)); border: none; color: #fff;
  border-radius: 14px; font-weight: 700; padding: .75rem 1.5rem;
  box-shadow: 0 12px 26px rgba(79,70,229,.32); transition: transform .15s, box-shadow .15s;
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(79,70,229,.4); color: #fff; }
.lp-btn-primary.lp-btn-sm { padding: .45rem .9rem; font-size: .85rem; border-radius: 11px; box-shadow: 0 8px 18px rgba(79,70,229,.28); }
.lp-btn-outline {
  border-radius: 14px; font-weight: 700; padding: .75rem 1.5rem;
  border: 1.5px solid var(--bs-border-color); color: var(--bs-body-color); background: var(--bs-body-bg);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lp-btn-outline:hover { transform: translateY(-2px); box-shadow: var(--lp-shadow); border-color: var(--brand-primary); color: var(--brand-primary); }
.lp-badge-dot {
  position: absolute; top: -3px; right: -3px; background: var(--brand-red, #ef4444); color: #fff; font-size: .6rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--bs-body-bg);
}
.login-menu, .announce-menu { min-width: 250px; padding: .5rem; border-radius: 18px; border: 1.5px solid var(--bs-border-color); box-shadow: var(--lp-shadow-lg); }
.login-menu .dropdown-item, .announce-menu .dropdown-item { border-radius: 12px; padding: .65rem .75rem; display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; white-space: normal; }
.login-menu .dropdown-item i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0; }
.announce-menu .dropdown-item i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; background: color-mix(in srgb, var(--brand-primary) 12%, transparent); color: var(--brand-primary); }
.announce-menu .dropdown-item .txt { font-weight: 600; font-size: .84rem; line-height: 1.3; }
.announce-menu .dropdown-item .txt small { display: block; font-weight: 500; color: var(--bs-secondary-color); }

.landing-section { padding: 4.5rem 0; position: relative; z-index: 1; }
.landing-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  padding: .4rem .9rem; border-radius: 999px;
}
h1, h2, h3 { font-family: 'Poppins', sans-serif; }

/* ---------- App-style hero ---------- */
.app-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4338CA 0%, var(--brand-primary) 45%, var(--brand-purple) 100%);
  padding: 1.1rem 0 5.5rem;
}
.app-hero.app-hero--compact { padding: 1.1rem 0 3.2rem; }
.app-hero::before, .app-hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none;
}
.app-hero::before { width: 260px; height: 260px; top: -120px; right: -60px; }
.app-hero::after { width: 200px; height: 200px; bottom: -100px; left: -60px; background: rgba(255,255,255,.08); }
.app-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.app-hero-wave svg { width: 100%; height: 48px; display: block; }
.app-hero-topbar { position: relative; z-index: 2; }
.app-hero-iconbtn {
  height: 42px; width: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); color: #fff; border: none; position: relative; backdrop-filter: blur(6px);
}
.app-hero-body { position: relative; z-index: 2; text-align: center; padding-top: .5rem; }
.app-logo-tile {
  width: 78px; height: 78px; border-radius: 22px; background: #fff; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(76, 29, 149,.18);
  overflow: hidden;
}
.app-logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.app-logo-tile i { font-size: 2.1rem; background: linear-gradient(135deg, var(--brand-primary), var(--brand-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-hero-eyebrow { color: rgba(255,255,255,.85); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.app-hero-title { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.1; margin: .25rem 0 .5rem; letter-spacing: -.01em; }
.app-hero-tagline { color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; letter-spacing: .03em; }

.cta-row { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 1.6rem; }

.cta-cards { margin-top: 1.8rem; }
.cta-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  background: #fff; border-radius: 20px; padding: 1.1rem 1rem;
  text-decoration: none; height: 100%;
  box-shadow: 0 14px 30px rgba(76, 29, 149,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(76, 29, 149,.22); }
.cta-card-icon {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; margin-bottom: .3rem;
}
.cta-card-a .cta-card-icon { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.cta-card-b .cta-card-icon { background: linear-gradient(135deg, #fb923c, #db2777); }
.cta-card-title { font-weight: 800; font-size: .88rem; color: #4c1d95; line-height: 1.2; }
.cta-card-sub { font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; gap: .3rem; }
.cta-card-a .cta-card-sub { color: #4f46e5; }
.cta-card-b .cta-card-sub { color: #db2777; }
.cta-card:hover .cta-card-sub i { transform: translateX(3px); }
.cta-card-sub i { transition: transform .15s; }

/* ---------- Promo banner ---------- */
.promo-wrap { margin-top: -3.4rem; position: relative; z-index: 3; }
.promo-outer { background: var(--bs-body-bg); border-radius: 28px; padding: .8rem; box-shadow: var(--lp-shadow-lg); border: 1px solid var(--bs-border-color); }
.promo-inner {
  position: relative; overflow: hidden; border-radius: 22px; padding: 1.6rem 1.5rem;
  background: linear-gradient(120deg, #4c1d95, #4c1d95 65%, #312e81);
  min-height: 190px; display: flex; align-items: center;
}
.promo-star { position: absolute; color: rgba(255,255,255,.35); }
.promo-content { position: relative; z-index: 2; max-width: 62%; }
.promo-eyebrow { color: #FBBF24; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.promo-heading { color: #fff; font-weight: 800; font-size: 1.3rem; line-height: 1.25; margin-bottom: .3rem; }
.promo-sub { color: rgba(255,255,255,.75); font-size: .85rem; margin-bottom: 1rem; }
.promo-btn {
  display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: #4c1d95; font-weight: 700;
  border-radius: 12px; padding: .55rem 1.1rem; font-size: .88rem; text-decoration: none; transition: transform .15s;
}
.promo-btn:hover { transform: translateY(-2px); color: #4c1d95; }
.promo-badge {
  position: absolute; top: 1.2rem; right: 1.1rem; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg,#FBBF24,#F59E0B);
  display: flex; align-items: center; justify-content: center; color: #78350f; font-size: 1.3rem;
  box-shadow: 0 10px 20px rgba(245,158,11,.4);
}
.promo-illus { position: absolute; right: 1rem; bottom: .5rem; width: 110px; opacity: .95; z-index: 1; }
@media (max-width: 575.98px) { .promo-content { max-width: 100%; } .promo-illus { display: none; } .promo-badge { top: .9rem; right: .9rem; } }
.promo-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .7rem; }
.promo-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: var(--bs-border-color); padding: 0; transition: background .2s, width .2s; }
.promo-dots button.active { background: var(--brand-primary); width: 20px; border-radius: 4px; }

/* ---------- Cards ---------- */
.lp-card {
  background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); border-radius: var(--lp-radius);
  padding: 1.5rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-card:hover { transform: translateY(-6px); box-shadow: var(--lp-shadow-lg); border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--bs-border-color)); }
.lp-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin-bottom: 1.1rem; box-shadow: 0 10px 20px -6px rgba(76, 29, 149,.25); }
.lp-icon-circle { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }

.module-card { position: relative; overflow: hidden; }
.module-card.is-disabled { opacity: .6; }
.module-card.is-disabled:hover { transform: none; box-shadow: none; }
.module-soon { position: absolute; top: 1.1rem; right: 1.1rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); background: color-mix(in srgb, var(--bs-body-color) 8%, transparent); padding: .3rem .6rem; border-radius: 999px; }
.module-link { font-weight: 700; font-size: .86rem; color: var(--brand-primary); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.module-link i { transition: transform .15s; }
.module-card:hover .module-link i { transform: translateX(3px); }

/* ---------- Motivation ---------- */
.quote-card { background: color-mix(in srgb, var(--brand-primary) 8%, var(--bs-body-bg)); border: 1.5px solid var(--bs-border-color); border-radius: var(--lp-radius); padding: 2rem; display: flex; align-items: center; gap: 2rem; }
.quote-card blockquote { font-weight: 700; font-size: 1.15rem; line-height: 1.5; margin: 0 0 .6rem; font-family: 'Poppins', sans-serif; }
.quote-card cite { font-style: normal; color: var(--bs-secondary-color); font-weight: 600; font-size: .85rem; }
.quote-illus { flex-shrink: 0; width: 150px; }
@media (max-width: 767.98px) { .quote-card { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem; } }

/* ---------- Offers / updates ticker (vertical, bottom-to-top loop) ---------- */
.offer-ticker-outer { margin-top: 2.5rem; margin-bottom: 2rem; position: relative; z-index: 1; }
.offer-ticker-wrap { background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); border-radius: var(--lp-radius); overflow: hidden; box-shadow: var(--lp-shadow); height: 156px; position: relative; }
.offer-ticker-track { display: flex; flex-direction: column; animation: offer-ticker-scroll linear infinite; animation-duration: 16s; }
.offer-ticker-wrap:hover .offer-ticker-track { animation-play-state: paused; }
.offer-ticker-item { display: flex; align-items: flex-start; gap: .5rem; color: var(--brand-red); font-weight: 600; font-size: .78rem; line-height: 1.35; padding: .65rem 1.25rem; border-bottom: 1px solid var(--bs-border-color); }
.offer-ticker-item i { opacity: .9; flex-shrink: 0; margin-top: .15rem; }
@keyframes offer-ticker-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.gallery-tile { background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); border-radius: var(--lp-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; min-height: 150px; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-tile:hover { transform: translateY(-5px); box-shadow: var(--lp-shadow); }
.gallery-tile i { font-size: 2rem; }
.gallery-tile span { font-weight: 700; font-size: .9rem; }
.gallery-photo { border-radius: var(--lp-radius); overflow: hidden; aspect-ratio: 4/3; border: 1.5px solid var(--bs-border-color); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-photo:hover { transform: translateY(-5px); box-shadow: var(--lp-shadow); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.landing-footer { border-top: 1px solid var(--bs-border-color); padding: 2.5rem 0; color: var(--bs-secondary-color); position: relative; z-index: 1; }

/* ---------- Fee section ---------- */
.fee-accordion .accordion-item { border: 1.5px solid var(--bs-border-color); border-radius: var(--lp-radius) !important; overflow: hidden; margin-bottom: 1rem; }
.fee-accordion .accordion-button { font-weight: 700; font-family: 'Poppins', sans-serif; background: var(--bs-body-bg); color: var(--bs-body-color); }
.fee-accordion .accordion-button:not(.collapsed) { background: color-mix(in srgb, var(--brand-primary) 8%, var(--bs-body-bg)); color: var(--brand-primary); box-shadow: none; }
.fee-accordion .accordion-button:focus { box-shadow: none; }
.fee-accordion .accordion-body { padding: 1.25rem 1.5rem 1.5rem; }
.fee-meta { font-size: .82rem; color: var(--bs-secondary-color); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.fee-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.fee-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.fee-table th { text-align: left; font-weight: 700; color: var(--bs-secondary-color); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; padding: .5rem .6rem; border-bottom: 1.5px solid var(--bs-border-color); }
.fee-table td { padding: .65rem .6rem; border-bottom: 1px solid var(--bs-border-color); }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table .price { font-weight: 700; color: var(--brand-primary); white-space: nowrap; }
.fee-table .shift-name { font-weight: 600; }

/* ---------- Mobile app bottom nav ---------- */
.app-bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1050;
  background: color-mix(in srgb, var(--bs-body-bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(76, 29, 149,.22); display: flex; gap: 4px; border-radius: 22px; padding: 6px;
  border: 1px solid var(--bs-border-color);
}
.app-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: .5rem 0; color: var(--bs-secondary-color); text-decoration: none; font-size: .64rem; font-weight: 700; border-radius: 16px; transition: color .2s, background .2s; }
.app-bottom-nav a i { font-size: 1.25rem; }
.app-bottom-nav a.active { color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--brand-purple)); box-shadow: 0 8px 18px rgba(79,70,229,.35); }

/* ================= Library landing (modern) ================= */
.lib-hero { position: relative; overflow: hidden; color: #fff; padding: 2rem 0 5.5rem;
  background: radial-gradient(circle at 85% 10%, rgba(251,191,36,.28), transparent 40%), radial-gradient(circle at 0% 100%, rgba(236,72,153,.35), transparent 45%), linear-gradient(135deg, #1e1b8f 0%, #4338CA 45%, #7c3aed 100%); }
.lib-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; pointer-events: none; }
.lib-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.lib-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); padding: .4rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.lib-pill i { color: #FBBF24; }
.lib-title { font-weight: 800; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; margin: 1rem 0 .6rem; letter-spacing: -.02em; }
.lib-title span { display: block; background: linear-gradient(90deg, #FDE68A, #FBBF24, #FB923C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lib-hindi { display: inline-block; background: #ef4444; color: #fff; font-weight: 800; font-size: 1.05rem; padding: .35rem .9rem; border-radius: 10px; transform: rotate(-1.5deg); box-shadow: 0 10px 22px rgba(239,68,68,.35); margin: 0 0 .9rem; }
.lib-sub { color: rgba(255,255,255,.88); font-size: 1rem; line-height: 1.55; max-width: 34rem; margin-bottom: 1.4rem; }
.lib-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.lib-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 800; font-size: 1rem; padding: .85rem 1.5rem; border-radius: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s; min-height: 50px; }
.lib-btn:hover { transform: translateY(-2px); }
.lib-btn-light { background: #fff; color: #3730a3; box-shadow: 0 14px 30px rgba(76, 29, 149,.25); }
.lib-btn-light:hover { color: #3730a3; }
.lib-btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.lib-btn-ghost:hover { color: #fff; background: rgba(255,255,255,.22); }
.lib-stats { display: flex; gap: 1.6rem; margin-top: 1.8rem; }
.lib-stats div { display: flex; flex-direction: column; }
.lib-stats b { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; }
.lib-stats span { font-size: .74rem; color: rgba(255,255,255,.75); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.lib-hero-art { position: relative; display: flex; justify-content: center; }
.lib-phone { width: 230px; background: #fff; border-radius: 34px; padding: 1.1rem .9rem 1.3rem; box-shadow: 0 30px 60px rgba(76, 29, 149,.35); border: 6px solid #4c1d95; transform: rotate(4deg); }
.lib-phone-bar { width: 60px; height: 6px; border-radius: 4px; background: #e2e8f0; margin: 0 auto .9rem; }
.lib-phone-card { display: flex; align-items: center; gap: .6rem; padding: .7rem .75rem; border-radius: 14px; margin-bottom: .6rem; font-weight: 700; font-size: .82rem; color: #4c1d95; }
.lib-phone-card i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.lib-pc-1 { background: #fce7f3; } .lib-pc-1 i { background: #db2777; }
.lib-pc-2 { background: #ffedd5; } .lib-pc-2 i { background: #f97316; }
.lib-pc-3 { background: #ccfbf1; } .lib-pc-3 i { background: #0d9488; }
.lib-float { position: absolute; width: 52px; height: 52px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 14px 28px rgba(76, 29, 149,.25); animation: lib-bob 4s ease-in-out infinite; }
.lib-f1 { top: 8%; left: 6%; color: #dc2626; }
.lib-f2 { bottom: 14%; left: 2%; color: #16a34a; animation-delay: -1.3s; }
.lib-f3 { top: 24%; right: 2%; color: #4f46e5; animation-delay: -2.4s; }
@keyframes lib-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .lib-float { animation: none; } }

@media (max-width: 767.98px) {
  .lib-hero { padding: 1.4rem 0 4.5rem; }
  .lib-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; }
  .lib-sub { margin-left: auto; margin-right: auto; }
  .lib-cta, .lib-stats { justify-content: center; }
  .lib-cta .lib-btn { flex: 1 1 140px; }
  .lib-phone { width: 200px; }
}

.lib-section { padding: 2.5rem 0; position: relative; z-index: 1; }
.lib-h2 { font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); margin: .7rem 0 .3rem; letter-spacing: -.01em; }
.lib-lead { color: var(--bs-secondary-color); margin: 0; }

.feat-card { position: relative; display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1rem 1rem 1.1rem;
  background: linear-gradient(135deg, var(--fs), color-mix(in srgb, var(--fs) 40%, var(--bs-body-bg)));
  border: 1.5px solid color-mix(in srgb, var(--fc) 28%, transparent); border-radius: 20px; transition: transform .18s, box-shadow .18s; }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px color-mix(in srgb, var(--fc) 25%, transparent); }
.feat-no { position: absolute; top: -9px; left: 12px; background: var(--fc); color: #fff; font-size: .68rem; font-weight: 800; padding: .12rem .5rem; border-radius: 999px; }
.feat-ico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: var(--fc); box-shadow: 0 10px 20px color-mix(in srgb, var(--fc) 45%, transparent); }
.feat-txt { min-width: 0; }
.feat-txt h3 { font-size: 1rem; font-weight: 800; margin: 0 0 .15rem; color: var(--fc); }
.feat-txt p { margin: 0; font-size: .85rem; line-height: 1.4; color: #5b21b6; }
:root[data-theme="dark"] .feat-card, :root[data-bs-theme="dark"] .feat-card { background: color-mix(in srgb, var(--fc) 14%, var(--bs-body-bg)); }
:root[data-theme="dark"] .feat-txt p, :root[data-bs-theme="dark"] .feat-txt p { color: var(--bs-secondary-color); }

.lib-steps-sec { background: color-mix(in srgb, var(--brand-primary) 6%, var(--bs-body-bg)); }
.step-card { text-align: center; background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); border-radius: 22px; padding: 1.4rem 1.1rem; height: 100%; }
.step-card b { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-family: 'Poppins', sans-serif; font-size: 1.1rem; background: linear-gradient(135deg, var(--brand-primary), var(--brand-purple)); box-shadow: 0 10px 20px rgba(79,70,229,.32); }
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin: .8rem 0 .3rem; }
.step-card p { margin: 0; font-size: .86rem; color: var(--bs-secondary-color); }

.lib-final-wrap { padding-top: 1rem; padding-bottom: 2.5rem; }
.lib-final { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; padding: 1.8rem; border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(251,191,36,.3), transparent 45%), linear-gradient(120deg, #4c1d95, #4c1d95 60%, #312e81); box-shadow: var(--lp-shadow-lg); }
.lib-final h2 { font-size: clamp(1.2rem, 3.6vw, 1.7rem); font-weight: 800; line-height: 1.35; margin: 0 0 .4rem; }
.lib-final h2 span { color: #FBBF24; }
.lib-final p { margin: 0; color: rgba(255,255,255,.75); font-size: .9rem; }
@media (max-width: 575.98px) { .lib-final { padding: 1.4rem; text-align: center; justify-content: center; } .lib-final .lib-cta { justify-content: center; width: 100%; } .lib-final .lib-btn { flex: 1 1 140px; } }
.lib-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.lib-hero-copy { min-width: 0; }
.lib-back { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.85); font-weight: 700; font-size: .82rem; text-decoration: none; margin: 0 .5rem .5rem 0; }
.lib-back:hover { color: #fff; }
@media (max-width: 767.98px) { .lib-hero-inner { grid-template-columns: minmax(0, 1fr); } .lib-hindi { transform: none; } .lib-btn { padding: .8rem 1rem; } }

/* ================= Home hub ================= */
.hub-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 2rem 0 5.5rem;
  background: radial-gradient(circle at 85% 0%, rgba(251,191,36,.28), transparent 40%), radial-gradient(circle at 0% 100%, rgba(236,72,153,.35), transparent 45%), linear-gradient(135deg, #1e1b8f 0%, #4338CA 45%, #7c3aed 100%); }
.hub-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; pointer-events: none; }
.hub-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hub-logo { width: 84px; height: 84px; border-radius: 24px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 18px 36px rgba(76, 29, 149,.28); }
.hub-logo img { width: 100%; height: 100%; object-fit: contain; }
.hub-logo i { font-size: 2.3rem; color: var(--brand-primary); }
.hub-title { font-weight: 800; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: .9rem 0 .3rem; letter-spacing: -.02em; }
.hub-tag { color: #FDE68A; font-weight: 700; letter-spacing: .04em; margin: 0 0 .8rem; }
.hub-sub { color: rgba(255,255,255,.85); max-width: 30rem; margin: 0 auto 1.4rem; line-height: 1.55; }
.hub-hero .lib-cta { justify-content: center; }

.mod-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem; border-radius: 26px; background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mod-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--m1), var(--m2)); }
.mod-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px color-mix(in srgb, var(--m1) 22%, transparent); }
.mod-card--hero { border-color: color-mix(in srgb, var(--m1) 45%, var(--bs-border-color)); background: linear-gradient(160deg, color-mix(in srgb, var(--m1) 9%, var(--bs-body-bg)), var(--bs-body-bg) 60%); }
.mod-badge { position: absolute; top: 16px; right: 14px; background: #FBBF24; color: #78350f; font-size: .68rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; }
.mod-head { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.mod-ico { flex-shrink: 0; width: 60px; height: 60px; border-radius: 19px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff; background: linear-gradient(135deg, var(--m1), var(--m2)); box-shadow: 0 12px 24px color-mix(in srgb, var(--m1) 40%, transparent); }
.mod-head h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.mod-head p { margin: .15rem 0 0; font-size: .86rem; color: var(--bs-secondary-color); }
.mod-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.mod-chips span { font-size: .74rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; color: var(--m1); background: color-mix(in srgb, var(--m1) 10%, transparent); }
.mod-actions { display: flex; gap: .6rem; margin-top: auto; }
.mod-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; border-radius: 14px; font-weight: 800; font-size: .92rem; text-decoration: none; transition: transform .15s; }
.mod-btn:hover { transform: translateY(-2px); }
.mod-btn-solid { color: #fff; background: linear-gradient(135deg, var(--m1), var(--m2)); box-shadow: 0 10px 20px color-mix(in srgb, var(--m1) 35%, transparent); }
.mod-btn-solid:hover { color: #fff; }
.mod-btn-line { color: var(--m1); border: 1.5px solid color-mix(in srgb, var(--m1) 45%, transparent); }
.mod-btn-line:hover { color: var(--m1); background: color-mix(in srgb, var(--m1) 8%, transparent); }

.hub-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-bottom: 2.5rem; }
.hub-quick a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: 1rem .5rem; border-radius: 20px; text-decoration: none; color: var(--bs-body-color); background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); transition: transform .15s, box-shadow .15s; }
.hub-quick a:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); }
.hub-quick i { font-size: 1.5rem; color: var(--brand-primary); }
.hub-quick b { font-size: .92rem; }
.hub-quick span { font-size: .72rem; color: var(--bs-secondary-color); }

.lp-btn-primary { text-decoration: none; }
.lib-btn { white-space: nowrap; }

/* Library fees (inside library page) */
.fee-branch { background: var(--bs-body-bg); border: 1.5px solid var(--bs-border-color); border-radius: 24px; padding: 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--lp-shadow); }
.fee-branch-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; min-width: 0; }
.fee-branch-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, var(--brand-primary), var(--brand-purple)); }
.fee-branch-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.05rem; }
.fee-branch-addr { font-size: .78rem; color: var(--bs-secondary-color); }
.fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.fee-tile { border-radius: 16px; padding: .8rem .85rem; background: color-mix(in srgb, var(--fc) 11%, var(--bs-body-bg)); border: 1.5px solid color-mix(in srgb, var(--fc) 28%, transparent); }
.fee-shift { font-weight: 800; font-size: .88rem; color: var(--fc); }
.fee-shift em { font-style: normal; font-size: .6rem; text-transform: uppercase; opacity: .75; }
.fee-time { font-size: .72rem; color: var(--bs-secondary-color); margin-bottom: .5rem; }
.fee-prices { display: flex; flex-wrap: wrap; gap: .3rem; }
.fee-prices span { background: var(--bs-body-bg); border-radius: 999px; padding: .2rem .55rem; font-size: .76rem; font-weight: 800; }
.fee-prices small { font-weight: 600; opacity: .7; margin-right: .25rem; }
@media (min-width: 768px) { .fee-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mod-app { display: flex; gap: .6rem; }
.mod-app a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem; border-radius: 12px; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--bs-secondary-color); background: color-mix(in srgb, var(--m1) 6%, transparent); }
.mod-app a:hover { color: var(--m1); }

/* Real app screenshot in the library hero (shown as-is) */
.lib-app-shot { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 0; filter: drop-shadow(0 26px 40px rgba(76, 29, 149,.4)); }
@media (max-width: 767.98px) { .lib-app-shot { max-width: 230px; } }

/* Hero art: real app screen swaying gently, 3 icons left + 3 right floating around it */
.lib-hero-art { --shot: 260px; position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; }
.lib-app-shot { animation: lib-sway 5.5s ease-in-out infinite; transform-origin: 50% 60%; will-change: transform; }
@keyframes lib-sway { 0%,100% { transform: translateY(0) rotate(-2.2deg); } 50% { transform: translateY(-12px) rotate(2.2deg); } }
.lib-hero-art .lib-float { --off: calc(50% + var(--shot) / 2 + 4px); left: auto; right: auto; top: auto; bottom: auto; z-index: 2; }
.lib-l1, .lib-l2, .lib-l3 { right: var(--off) !important; }
.lib-r1, .lib-r2, .lib-r3 { left: var(--off) !important; }
.lib-l1 { top: 6% !important; color: #dc2626; }
.lib-l2 { top: 40% !important; color: #16a34a; animation-delay: -1.3s; }
.lib-l3 { top: 74% !important; color: #db2777; animation-delay: -2.6s; }
.lib-r1 { top: 12% !important; color: #4f46e5; animation-delay: -.7s; }
.lib-r2 { top: 46% !important; color: #f97316; animation-delay: -2s; }
.lib-r3 { top: 78% !important; color: #0d9488; animation-delay: -3.2s; }
@media (max-width: 767.98px) {
  .lib-hero-art { --shot: 230px; min-height: 440px; }
  .lib-hero-art .lib-float { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .lib-app-shot { animation: none; } }

/* Real screenshot shown inside a phone body, as if the app is running on it */
.lib-phone-frame { position: relative; width: var(--shot); padding: 9px; border-radius: 38px; background: linear-gradient(160deg, #5b21b6, #4c1d95 40%, #4c1d95);
  box-shadow: 0 0 0 2px #5b21b6, 0 30px 50px rgba(76, 29, 149,.45), inset 0 0 0 2px #4c1d95; animation: lib-sway 5.5s ease-in-out infinite; transform-origin: 50% 60%; will-change: transform; }
.lib-phone-frame::before, .lib-phone-frame::after { content: ""; position: absolute; width: 4px; border-radius: 3px; background: #5b21b6; }
.lib-phone-frame::before { right: -4px; top: 22%; height: 52px; }
.lib-phone-frame::after { left: -4px; top: 16%; height: 30px; box-shadow: 0 44px 0 #5b21b6; }
.lib-phone-cam { position: absolute; z-index: 3; top: 17px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #4c1d95; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.lib-phone-frame .lib-app-shot { display: block; width: 100%; max-width: none; border-radius: 29px; animation: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .lib-phone-frame { animation: none; } }
.lib-phone-frame .lib-app-shot { filter: saturate(1.4) contrast(1.1) brightness(1.02); }
