/* =========================================================
   Finbaba shell — copied verbatim from www.thefinbaba.com/includes/styles.css
   (design tokens, base, navbar, buttons, footer, floating widgets).
   Keep in sync with the main site; free-site styles live in app.css.
   ========================================================= */
:root {
  /* Brand — Indigo primary */
  --fb-primary:       #4f46e5;   /* Indigo 600 */
  --fb-primary-dark:  #4338ca;   /* Indigo 700 */
  --fb-primary-deep:  #3730a3;   /* Indigo 800 */
  --fb-primary-ink:   #312e81;   /* Indigo 900 */
  --fb-primary-tint:  #eef2ff;   /* very light indigo */
  --fb-primary-tint2: #e0e7ff;   /* border tint */

  /* Accent — Amber (CTA, highlights, conversion) */
  --fb-accent:        #f59e0b;   /* Amber 500 */
  --fb-accent-dark:   #d97706;   /* Amber 600 */
  --fb-accent-deep:   #b45309;   /* Amber 700 */
  --fb-accent-tint:   #fef3c7;   /* very light amber */

  /* Neutrals */
  --fb-ink:          #0f172a;
  --fb-text:         #1f2937;
  --fb-muted:        #64748b;
  --fb-border:       #e2e8f0;
  --fb-bg:           #f8fafc;
  --fb-bg-soft:      #eef2ff;
  --fb-card:         #ffffff;

  /* Semantic */
  --fb-success:      #10b981;
  --fb-warn:         #f59e0b;
  --fb-danger:       #ef4444;
  --fb-info:         #06b6d4;

  /* Elevation */
  --fb-shadow-sm:    0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.03);
  --fb-shadow-md:    0 4px 10px rgba(15,23,42,.05), 0 10px 20px rgba(15,23,42,.04);
  --fb-shadow-lg:    0 14px 28px rgba(15,23,42,.08), 0 20px 40px rgba(15,23,42,.06);
  --fb-shadow-xl:    0 25px 50px rgba(15,23,42,.12), 0 30px 60px rgba(15,23,42,.08);
  --fb-ring:         0 0 0 3px rgba(79,70,229,.22);

  /* Radii */
  --fb-radius:       14px;
  --fb-radius-lg:    22px;
  --fb-radius-xl:    28px;
  --fb-nav-h:        72px;

  /* Font */
  --fb-font:         'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  --fb-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Monaco, monospace;

  /* Gradients */
  --fb-grad-primary: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  --fb-grad-accent:  linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --fb-grad-hero:    linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #6366f1 100%);
  --fb-grad-mesh:    radial-gradient(at 20% 30%, rgba(79,70,229,0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 70%, rgba(245,158,11,0.12) 0px, transparent 50%),
                     radial-gradient(at 50% 90%, rgba(99,102,241,0.10) 0px, transparent 50%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fb-font);
  background-color: var(--fb-bg);
  color: var(--fb-text);
  margin: 0; padding: 0;
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.lead { font-size: 1.05rem !important; line-height: 1.6; color: var(--fb-muted); }
small, .small { font-size: .82rem; }
.tabular { font-variant-numeric: tabular-nums; }

body.has-fixed-nav { padding-top: var(--fb-nav-h); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fb-font); font-weight: 700;
  color: var(--fb-ink);
  letter-spacing: -0.018em;
  margin-top: 0;
}
h1 { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3rem); line-height: 1.12; letter-spacing: -0.028em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.2; letter-spacing: -0.022em; font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.3; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: .95rem; font-weight: 600; }
h6 { font-size: .88rem; font-weight: 600; }

.text-muted     { color: var(--fb-muted) !important; }
.text-fb-primary{ color: var(--fb-primary) !important; }
.text-fb-accent { color: var(--fb-accent) !important; }
.bg-fb-primary  { background: var(--fb-primary) !important; }
.bg-fb-accent   { background: var(--fb-accent) !important; }
.bg-fb-soft     { background: var(--fb-bg-soft) !important; }

a { color: var(--fb-primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fb-primary-deep); }

*:focus-visible { outline: none; box-shadow: var(--fb-ring); border-radius: 6px; }

/* =========================================================
   NAVBAR (modern, sticky, glass effect on scroll)
   ========================================================= */
.fb-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1040;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  transition: box-shadow .25s, background .25s, border-color .25s;
  height: var(--fb-nav-h);
  display: flex; align-items: center;
}
.fb-navbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 6px 20px rgba(15,23,42,.06);
}
.fb-navbar .logo-img { height: 40px; width: auto; }
.fb-navbar .nav-link {
  font-weight: 500;
  color: var(--fb-text) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  font-size: .9rem;
  transition: color .2s, background .2s;
  position: relative;
}
.fb-navbar .nav-link:hover {
  color: var(--fb-primary) !important;
  background: var(--fb-primary-tint);
}
.fb-navbar .nav-link.active {
  color: var(--fb-primary) !important;
  background: var(--fb-primary-tint);
}
.fb-navbar .nav-link.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 14px; right: 14px; height: 3px;
  background: var(--fb-accent); border-radius: 3px 3px 0 0;
}
.fb-navbar .btn-login {
  background: var(--fb-primary);
  color: #fff !important;
  border: none;
  padding: 8px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: .88rem;
  transition: transform .2s, box-shadow .2s;
}
.fb-navbar .btn-login:hover {
  background: var(--fb-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(79,70,229,.35);
}
/* Derivative classes registration - login ke bagal wala amber button */
.fb-navbar .btn-register {
  background: var(--fb-grad-accent);
  color: #78350f !important;
  border: none;
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: .85rem;
  margin-right: 8px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.fb-navbar .btn-register:hover {
  background: var(--fb-accent-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(245,158,11,.35);
}
/*
 * Label width ke hisaab se badalta hai. Naapa gaya: 1200-1399px par Bootstrap container
 * 1140px ka hai aur nav me sirf ~16px khali jagah thi - koi bhi button 3 links ko do line
 * me tod deta tha. Isliye us band me label "Register" aur nav-link padding 14px -> 8px.
 * 992-1199px par links pehle se hi wrap hote the, button se wrap count nahi badhta.
 */
.fb-navbar .btn-register .reg-label-mid,
.fb-navbar .btn-register .reg-label-short { display: none; }
@media (min-width: 992px) {
  .fb-navbar .btn-register .reg-label-full  { display: none; }
  .fb-navbar .btn-register .reg-label-short { display: inline; }
  .fb-navbar .btn-register { padding: 8px 12px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .fb-navbar .nav-link { padding: 8px 8px !important; }
}
@media (min-width: 1400px) {
  .fb-navbar .btn-register .reg-label-short { display: none; }
  .fb-navbar .btn-register .reg-label-mid   { display: inline; }
  .fb-navbar .btn-register { padding: 8px 16px; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-fb-primary {
  background: var(--fb-grad-primary);
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px rgba(79,70,229,.32);
  transition: transform .18s, box-shadow .18s, filter .18s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-fb-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 14px 28px rgba(79,70,229,.42);
  filter: brightness(1.05);
}
.btn-fb-primary:active { transform: translateY(0); }

.btn-fb-accent {
  background: var(--fb-grad-accent);
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  border: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 16px rgba(245,158,11,.4);
  transition: transform .18s, box-shadow .18s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-fb-accent:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(245,158,11,.5);
}

.btn-fb-outline {
  background: #fff;
  color: var(--fb-primary-dark) !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  border: 1.5px solid var(--fb-primary);
  transition: all .18s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-fb-outline:hover {
  background: var(--fb-primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(79,70,229,.28);
}

.btn-fb-wa {
  background: #25D366;
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(37,211,102,.32);
  transition: transform .18s, box-shadow .18s;
}
.btn-fb-wa:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37,211,102,.42);
  background: #1ebe57;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.fb-breadcrumbs {
  padding: 14px 0;
  font-size: .88rem;
  background: #fff;
  border-bottom: 1px solid var(--fb-border);
}
.fb-breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fb-breadcrumbs li {
  display: flex; align-items: center;
  color: var(--fb-muted);
}
.fb-breadcrumbs li + li::before {
  content: '/'; margin: 0 8px; color: var(--fb-border);
}
.fb-breadcrumbs a { color: var(--fb-primary); }
.fb-breadcrumbs li[aria-current="page"] { color: var(--fb-ink); font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.fb-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  color: #cbd5e1;
  padding: 70px 0 0;
  margin-top: 70px;
}
.fb-footer .brand img { height: 44px; margin-bottom: 16px; }
.fb-footer p { color: #cbd5e1; font-size: .9rem; line-height: 1.65; }
.fb-footer h3 {
  color: #fff; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 18px;
  position: relative; padding-bottom: 10px;
}
.fb-footer h3::after {
  content: ''; position: absolute;
  left: 0; bottom: 0; width: 32px; height: 2px;
  background: var(--fb-accent);
}
.fb-footer ul { list-style: none; padding: 0; margin: 0; }
.fb-footer ul li { margin-bottom: 10px; }
.fb-footer ul li a {
  color: #cbd5e1; font-size: .88rem;
  text-decoration: none; transition: color .2s, padding-left .2s;
}
.fb-footer ul li a:hover {
  color: var(--fb-accent);
  padding-left: 4px;
}
.fb-footer .amfi-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .78rem;
  line-height: 1.5;
  margin-top: 12px;
}
.fb-footer .amfi-box strong { color: var(--fb-accent); font-weight: 600; }
.fb-footer .social { margin-top: 18px; display: flex; gap: 8px; }
.fb-footer .social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #cbd5e1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
  text-decoration: none;
}
.fb-footer .social a:hover {
  background: var(--fb-accent);
  color: #fff;
  transform: translateY(-2px);
}
.fb-footer .contact-item {
  display: flex; gap: 12px; margin-bottom: 10px;
  font-size: .88rem;
  color: #cbd5e1;
  align-items: flex-start;
}
.fb-footer .contact-item i {
  color: var(--fb-accent);
  margin-top: 4px;
  flex-shrink: 0;
}
.fb-footer .contact-item a { color: #cbd5e1; }
.fb-footer .contact-item a:hover { color: var(--fb-accent); }

/* Mega Footer Tabs */
.fb-mega-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 36px;
}
.fb-mega-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fb-mega-tab {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .82rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.fb-mega-tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.fb-mega-tab.active {
  color: var(--fb-accent);
  background: rgba(245,158,11,.08);
}
.fb-mega-tab.active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--fb-accent);
}
.fb-mega-panels { position: relative; min-height: 100px; }
.fb-mega-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
}
.fb-mega-panel.show { display: grid; }
.fb-mega-panel a {
  color: #cbd5e1;
  font-size: .85rem;
  padding: 6px 0;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.fb-mega-panel a:hover { color: var(--fb-accent); padding-left: 4px; }

.fb-legal {
  font-size: .8rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 18px;
  line-height: 1.7;
}

.fb-footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  background: rgba(0,0,0,.25);
  color: #94a3b8;
  font-size: .82rem;
  text-align: center;
}
.fb-footer-bottom a { color: #cbd5e1; }
.fb-footer-bottom a:hover { color: var(--fb-accent); }

/* =========================================================
   FLOATING ELEMENTS (Chat, Scroll-to-top, Cookie)
   ========================================================= */
.fb-chat-btn {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--fb-grad-accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(245,158,11,.45);
  cursor: pointer;
  z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s;
}
.fb-chat-btn:hover { transform: translateY(-3px) scale(1.03); }

.fb-chat-popup {
  position: fixed; bottom: 84px; right: 20px;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--fb-shadow-xl);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all .25s;
  z-index: 9991;
}
.fb-chat-popup.open { opacity: 1; visibility: visible; transform: translateY(0); }
.fb-chat-popup .fb-chat-header {
  background: var(--fb-grad-primary);
  color: #fff;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.fb-chat-popup .fb-chat-header h5 { color: #fff; margin: 0; font-size: 1rem; }
.fb-chat-popup .close-btn {
  background: none; border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.fb-chat-popup .fb-chat-body {
  padding: 18px;
  font-size: .9rem;
  color: var(--fb-text);
}
.fb-chat-popup .btn-wa,
.fb-chat-popup .btn-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  font-size: .9rem;
}
.fb-chat-popup .btn-wa { background: #25D366; color: #fff; }
.fb-chat-popup .btn-wa:hover { background: #1ebe57; color: #fff; }
.fb-chat-popup .btn-call { background: var(--fb-primary-tint); color: var(--fb-primary-dark); }
.fb-chat-popup .btn-call:hover { background: var(--fb-primary-tint2); color: var(--fb-primary-deep); }

.fb-to-top {
  position: fixed; bottom: 84px; left: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--fb-primary);
  color: #fff;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--fb-shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all .25s;
  z-index: 9985;
}
.fb-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fb-to-top:hover { background: var(--fb-primary-dark); }

.fb-cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--fb-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--fb-shadow-xl);
  display: none;
  flex-wrap: wrap; align-items: center; gap: 16px;
  z-index: 9999;
}
.fb-cookie.show { display: flex; }
.fb-cookie p { flex: 1; margin: 0; font-size: .85rem; color: var(--fb-muted); min-width: 260px; }
.fb-cookie button {
  border: none; padding: 8px 18px; border-radius: 8px;
  font-weight: 600; font-size: .85rem; cursor: pointer;
}
.fb-cookie .accept  { background: var(--fb-primary); color: #fff; }
.fb-cookie .decline { background: var(--fb-bg); color: var(--fb-muted); }

/* =========================================================
   UTILITY: DEMAT CTA BANNER
   ========================================================= */
.fb-demat-banner {
  background: linear-gradient(135deg, var(--fb-primary-ink) 0%, var(--fb-primary-deep) 100%);
  color: #fff;
  border-radius: var(--fb-radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.fb-demat-banner::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 70%);
  border-radius: 50%;
}
.fb-demat-banner > * { position: relative; z-index: 1; }
.fb-demat-banner h3 { color: #fff; margin-bottom: 8px; }
.fb-demat-banner p { color: rgba(255,255,255,.85); }
.fb-demat-banner .btn-fb-accent { margin-top: 8px; }


/* ---- Responsive (navbar/footer/floating parts of the main-site RESPONSIVE block) ---- */
@media (max-width: 991px) {
  .fb-navbar { background: #fff !important; box-shadow: 0 4px 12px rgba(15,23,42,.06); }
  .fb-navbar .navbar-collapse {
    background: #fff;
    border-top: 1px solid var(--fb-border);
    margin: 0 -12px;
    padding: 12px 18px 18px;
    margin-top: 12px;
    box-shadow: 0 10px 20px rgba(15,23,42,.08);
    border-radius: 0 0 16px 16px;
  }
  .fb-navbar .navbar-nav { padding: 8px 0; gap: 4px; }
  .fb-navbar .nav-link { padding: 10px 12px !important; font-size: .95rem; border-radius: 8px; }
  .fb-navbar .nav-link.active::after { display: none; }
  .fb-navbar .nav-link.active { background: var(--fb-primary-tint); }
  .fb-navbar .btn-login,
  .fb-navbar .btn-register { margin-top: 12px; width: 100%; justify-content: center; padding: 12px 18px; font-size: .95rem; }
  .fb-navbar .btn-register { margin-right: 0; }
}
@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .fb-chat-btn { padding: 10px 16px; font-size: .82rem; bottom: 14px; right: 14px; }
  .fb-chat-popup { width: calc(100vw - 28px); right: 14px; bottom: 70px; }
  .fb-to-top { left: 12px; bottom: 70px; width: 40px; height: 40px; }
  .fb-mega-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .fb-mega-tab { flex-shrink: 0; }
}
@media print {
  .fb-navbar, .fb-chat-btn, .fb-chat-popup, .fb-to-top, .fb-cookie, .fb-footer { display: none !important; }
  body.has-fixed-nav { padding-top: 0 !important; }
}
