/* =============== THEME =============== */
:root{
  --page-navy:   #37647e;  /* body */
  --navy-900:    #0a5c75;  /* navbar/footer base (optional) */
  --navy-border: #172451;

  /* hero tones */
  --hero-c1:#37647e;
  --hero-c2:#37647e;
  --hero-c3:#457c9c;

  /* accents */
  --btn-accent:#24465a;    /* primary btn/card */
  --btn-accent-hover:#2b5b75;
}
/* Jab App Install ho kar khule, to Download button na dikhaye */
@media all and (display-mode: standalone) {
    #installAppBtn {
        display: none !important;
    }
}
/* ==== Global ==== */
body.bg-dark-main{
  background: var(--page-navy);
  color:#cdd3e2;
  font-family: Arial, Helvetica, sans-serif;
}

/* container gutters */
.container,.container-sm,.container-md,.container-lg,.container-xl,.container-xxl{
  max-width:100% !important;
  padding-left:30px !important;
  padding-right:30px !important;
}

/* ==== Navbar ==== */
.bg-dark-nav{ background:#37647e; border-bottom:1px solid var(--navy-border); }
.navbar .nav-link{ color:#cfe3ee; padding:.75rem 1rem; font-weight:500; opacity:.9; }
.navbar .nav-link.active, .navbar .nav-link:hover{ color:#fff; opacity:1; }

.btn-register{
  background: var(--btn-accent);
  border:none; border-radius:10px; padding:.45rem 1rem; font-weight:600;
}
.btn-register:hover{ background: var(--btn-accent-hover); }

/* =============== HERO (boxed, aligned) =============== */
.hero-frame{ padding:18px 0; }

.hero-box{
  position: relative;
  min-height: 440px;
  padding: 56px 40px;
  border: 1px solid rgba(126,146,228,.55);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,.35);

  /* ✅ pure image background – no gradient/mask */
  background-image: url('/assets/img/image_blue.png');
  background-size: cover;
  background-position: center right; /* zarurat ho to 'center' ya 'right' tweak */
  background-repeat: no-repeat;
}

/* overlay/hatch band — remove */
.hero-box::after{ content: none; }

/* left text */
.hero-content{ max-width: 620px; position: relative; z-index: 2; }
.hero-title{
  font-size: 2.6rem; line-height: 1.15; font-weight: 800; color: #fff;
  margin-bottom: .75rem; letter-spacing: -.2px;
  /* readability over image */
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.hero-sub{
  font-size: 1rem; color: rgba(255,255,255,.86); margin-bottom: 1.25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.hero-cta{
  border-radius: 12px; padding: .75rem 1.4rem; font-weight: 700;
  background: linear-gradient(180deg, #24465a 0%, #24465a 100%);
  border: 1px solid rgba(118,139,255,.25);
  box-shadow: 0 6px 16px rgba(50,78,239,.25);
}
.hero-cta:hover{ background: linear-gradient(180deg, #2b5b75 0%, #2b5b75 100%); }

/* Responsive */
@media (max-width: 992px){
  .hero-box{ padding: 20px; min-height: 0; background-position: center; }
  .hero-title{ font-size: 2.1rem; }
}

/* =============== PROMO BANNERS =============== */
.promo-banner-img{
  width:100%; height:250px; object-fit:cover;
  border-radius:10px; transition:.25s ease;
  border:1px solid #0a5069;
}

/* =============== MARKET TREND =============== */
.market-title{ font-size:1.75rem; }
#marketList .col-md-6.col-lg-3{ display:flex; }

.coin-card{
  background: var(--btn-accent);
  color:#cfe3ee;
  border:1px solid #2a2c33; border-radius:12px;
  padding:1.25rem; width:100%;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow:0 8px 18px rgba(2,9,43,.22);
}
.coin-card:hover{ transform:translateY(-4px); border-color:#9bd3ff; box-shadow:0 12px 24px rgba(0,0,0,.3); }
.coin-card .sym{ font-weight:700; font-size:.95rem; color:#e7f5ff; }
.coin-card .price{ color:#fff; font-size:1.7rem; line-height:1.1; margin:.3rem 0 .35rem; }
.price-up{ color:#4bffc9c2; } .price-down{ color:#f03d3d; } .price-neutral{ color:#b7c5cf; }
.coin-card:focus{ outline:none; }

/* =============== SERVICES =============== */
.product-title{ font-size:2rem; }
.service-card{
  background: var(--btn-accent);
  border:1px solid #052a38; border-radius:15px;
  text-align:center; padding:2rem; height:100%;
  box-shadow:0 10px 22px #4e8eb3;
}
.service-icon-img{ width:64px; height:64px; }

/* =============== FOOTER =============== */
.footer-main{
  background:#37647e;
  border-top:1px solid var(--navy-border);
  padding:1.25rem 0 2rem;
  margin-top:3rem;
}

/* top links */
.footer-links{
  list-style:none; padding:0; margin:0 0 12px;
  display:grid; grid-template-columns:repeat(4,1fr); align-items:center; gap:0;
}
.footer-links li{ text-align:center; }
.footer-links a{
  color:rgba(255,255,255,.72); text-decoration:none;
  font-size:.95rem; font-weight:500;
}
.footer-links a:hover{ color:#fff; text-decoration:underline; }

.footer-logo{ font-size:1.25rem; color:#3772ff; }

@media (max-width:576px){
  .footer-links{ grid-template-columns:repeat(2,1fr); gap:8px 12px; }
  .footer-links a{ font-size:.9rem; }
}

/* =============== DROPDOWN (language) =============== */
.custom-dropdown-menu{ background-color:#37647e; }
.custom-dropdown-menu .dropdown-item{ color:#fff; }
.custom-dropdown-menu .dropdown-item:hover{ background-color:#2a7aa8; color:#fff; }

/* =============== NAV RIGHT (assets + logout) =============== */
.nav-actions{ gap:.6rem !important; }

/* assets pill */
.badge-assets{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.45rem .75rem; border-radius:999px;
  font-weight:600; font-size:.95rem; color:#cdd3e2;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
  line-height:1;
}

/* logout button — rounded pill */
.btn-logout{
  display:inline-flex; align-items:center; gap:.45rem;
  height:36px; padding:.45rem .75rem;
  border-radius:12px; line-height:1;
  color:#e6ecff; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(4px);
  transition:background .2s, border-color .2s, transform .08s;
}
.btn-logout i{ font-size:1rem; transform:translateY(-.5px); }
.btn-logout:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.28); }
.btn-logout:active{ transform:translateY(1px); }
.btn-logout:focus-visible{ outline:2px solid #3772ff; outline-offset:2px; }

@media (max-width:575.98px){
  .btn-logout{ padding:.45rem .55rem; width:36px; justify-content:center; }
}

/* ──────────────────────────────────────────────────────────────── */
/* ── MOBILE STYLES (White Theme) ───────────────────────────────── */
/* ──────────────────────────────────────────────────────────────── */

/* Mobile container */
.mbl-container{
  padding-left:5px; 
  padding-right:5px; 
  margin-top:10px; 
  background:#ffffff; /* White bg */
}

/* Mobile topbar */
.mbl-topbar{
  background:#ffffff; 
  padding:8px 5px 10px;
  border-bottom:1px solid #e9eef3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03); /* Subtle shadow */
}
.mbl-topbar-row{ 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
}
.mbl-logo{ height:26px; }
.mbl-actions{ display:flex; gap:10px; }
.mbl-icon{
  background:#ffffff; 
  border:1px solid #e3e9ef;
  width:32px; 
  height:32px; 
  border-radius:10px;
  display:flex; 
  align-items:center; 
  justify-content:center; 
  color:#2b2f33;
}
.mbl-search{
  margin-top:8px; 
  background:#ffffff; 
  border:1px solid #e3e9ef;
  border-radius:12px; 
  padding:8px 10px; 
  display:flex; 
  align-items:center; 
  gap:8px;
}
.mbl-search input{ 
  border:0; 
  outline:0; 
  width:100%; 
  background:transparent; 
  font-size:14px; 
}

/* Mobile carousel */
.mbl-container .carousel,
.mbl-container .carousel-inner,
.mbl-container .carousel-item,
.mbl-container .carousel-item img{
  background:#ffffff;
  border-radius: 10px; /* Rounded corners */
}

/* Mobile tabs */
.mbl-tabs{ 
  display:flex; 
  gap:10px; 
  background:#f8f9fa; /* Lighter bg */
  border-radius:14px; 
  padding:6px; 
  margin:6px 0 10px; 
}
.mbl-tab{ 
  flex:1; 
  border:0; 
  background:transparent; 
  color:#64748b; 
  font-weight:600; 
  padding:10px; 
  border-radius:12px; 
  transition: all 0.2s ease;
}
.mbl-tab:hover {
  background: #e9ecef;
}
.mbl-tab.active{ 
  background:#e6f1ff; 
  color:#1e89ff; 
}

/* Mobile lists */
.mbl-list{ 
  background:#ffffff; 
  border:1px solid #e3e9ef; 
  border-radius:14px; 
  overflow:hidden; 
  margin-bottom:70px; 
}
.mbl-row{ 
  display:flex; 
  align-items:center; 
  gap:12px; 
  padding:12px 10px; 
  border-bottom:1px solid #eef2f6; 
}
.mbl-row:last-child{ border-bottom:0; }
.mbl-ico{ 
  width:30px; 
  height:30px; 
  border-radius:50%; 
}
.mbl-sym {
  color: #1f2937;
  font-weight: 700;      /* 800 se kam kiya taake text thora patla ho */
  font-size: 0.85rem;    /* .98rem se chota kiya taake lambe naam fit ayen */
  white-space: nowrap;   /* Yeh text ko neechay wali line mein jane se rokega */
  letter-spacing: -0.3px; /* Thora space kam kiya taake text condense ho */
}
.mbl-vol{ 
  color:#8aa0b2; 
  font-size:.78rem; 
}
.mbl-price{ 
  margin-left:auto; 
  color:#111827; 
  font-weight:800; 
}
.mbl-chg{ 
  min-width:78px; 
  text-align:center; 
  font-weight:800; 
  border-radius:10px; 
  padding:6px 8px; 
}
.mbl-chg.up{ 
  background:#e6fbf4; 
  color:#10b981; 
}
.mbl-chg.down{ 
  background:#ffecec; 
  color:#ef4444; 
}

/* Mobile bottom tabbar */
.mbl-tabbar{
  position:fixed; 
  left:0; 
  right:0; 
  bottom:0; 
  height:62px;
  background:#ffffff; 
  border-top:1px solid #e3e9ef;
  display:flex; 
  justify-content:space-around; 
  align-items:center;
  padding:6px 5px; 
  z-index:2147483647;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}
.mbl-tabbar .tab{
  text-align:center; 
  color:#8694a3; 
  text-decoration:none; 
  font-size:12px;
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap:4px;
}
.mbl-tabbar .tab i{ 
  font-size:18px; 
}
.mbl-tabbar .tab.active, 
.mbl-tabbar .tab:focus{ 
  color:#1e89ff; 
}

/* Mobile Top-3 (3 cards) */
.tm3-wrap{ 
  background:#fff; 
}
.tm3{ 
  background:#fff; 
}

.tm3-row{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:6px;
}

.tm3-card{
  box-sizing:border-box;
  background:#fff;
  border:1px solid #e3e9ef;
  border-radius:12px;
  padding:8px 6px;
  min-height:70px;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
  display:flex; 
  flex-direction:column;
  align-items:center; 
  justify-content:center;
  text-align:center;
}
.tm3-card *{ 
  line-height:1.1; 
}

.tm3-head{
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:6px;
  max-width:100%; 
  min-width:0; 
  overflow:hidden;
}
.tm3-ico{ 
  width:18px; 
  height:18px; 
  border-radius:50%; 
  flex:0 0 18px; 
}
.tm3-sym{
  color:#1f2937; 
  font-weight:800; 
  font-size:.78rem;
  white-space:nowrap; 
  overflow:hidden; 
  text-overflow:ellipsis;
  max-width:100%;
}

.tm3-pct{ 
  margin-top:3px; 
  font-weight:800; 
  font-size:.8rem; 
  white-space:nowrap; 
}
.tm3-pct.up{ 
  color:#10b981; 
}
.tm3-pct.down{ 
  color:#ef4444; 
}

.tm3-price{ 
  margin-top:2px; 
  color:#111827; 
  font-weight:800; 
  font-size:.96rem; 
}
.tm3-approx{ 
  margin-top:2px; 
  color:#7a8a98; 
  font-size:.72rem; 
}

/* Mobile Quick Actions */
.qa-wrap{ 
  background:#ffffff; 
}
.qa-grid{
  background:#ffffff;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  padding-top:6px; 
  padding-bottom:6px;
}

.qa-item{
  background:#ffffff;
  border:1px solid #e3e9ef;
  border-radius:12px;
  padding:10px 8px;
  text-align:center;
  text-decoration:none;
  display:flex; 
  flex-direction:column;
  align-items:center; 
  justify-content:center;
  gap:6px;
  color:#1f2937;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
  transition: transform 0.15s ease;
}
.qa-item:hover {
  transform: translateY(-2px);
}

.qa-ico{
  position:relative;
  width:34px; 
  height:34px;
  display:flex; 
  align-items:center; 
  justify-content:center;
  border-radius:10px;
  background:#fff;
  border:1px solid #e6eef5;
}
.qa-ico i{ 
  font-size:18px; 
  color:#2b3037; 
}

.qa-ico::after{
  content:"";
  position:absolute; 
  left:50%; 
  bottom:-6px; 
  transform:translateX(-50%);
  width:28px; 
  height:10px; 
  border-radius:8px;
  background:linear-gradient(180deg, #cfe6ff 0%, #9fd1ff 100%);
  filter:blur(2px);
  z-index:-1;
}

.qa-txt{
  font-size:.88rem; 
  font-weight:600; 
  color:#4a5568;
  white-space:nowrap; 
  overflow:hidden; 
  text-overflow:ellipsis;
}

/* Mobile language dropdown */
.mbl-topbar{ 
  position:relative; 
}
.mbl-lang-menu{
  position:absolute; 
  right:5px; 
  top:52px; 
  width:190px;
  background:#fff; 
  border:1px solid #e3e9ef; 
  border-radius:12px;
  padding:6px; 
  box-shadow:0 10px 24px rgba(0,0,0,.12); 
  z-index:2147483646;
}
.mbl-lang-item{
  display:flex; 
  align-items:center; 
  gap:10px;
  padding:8px 10px; 
  border-radius:10px; 
  color:#1f2937;
  text-decoration:none; 
  font-weight:600;
}
.mbl-lang-item:hover{ 
  background:#f2f6fb; 
}

@media (max-width:400px){ 
  .mbl-lang-menu{ 
    width:176px; 
  } 
}

/* ── Mobile Overrides ── */
@media (max-width: 991.98px){
  /* force white page even if body has bg-dark-main */
  body, .bg-dark-main{ 
    background:#ffffff !important; 
  }
  body{ 
    padding-bottom:70px; 
  }
  .navbar.bg-dark-nav{ 
    display:none !important; 
  }
  .footer-main{ 
    display:none !important; 
  }
  .mbl-topbar{ 
    display:block !important; 
  }
  .mbl-tabbar{ 
    display:flex !important; 
  }
}

/* desktop me mobile tabbar hide */
@media (min-width: 992px){
  .mbl-tabbar{ 
    display:none !important; 
  }
}

/* Small screen tuning */
@media (max-width: 380px){
  .tm3-row{ 
    gap:5px; 
  }
  .tm3-card{ 
    padding:7px 5px; 
  }
  .tm3-price{ 
    font-size:.9rem; 
  }
  .tm3-sym{ 
    font-size:.75rem; 
  }
}
@media (max-width: 340px){
  .tm3-card{ 
    padding:6px 4px; 
  }
  .tm3-ico{ 
    width:16px; 
    height:16px; 
    flex-basis:16px; 
  }
  .tm3-price{ 
    font-size:.86rem; 
  }
  .tm3-approx{ 
    font-size:.68rem; 
  }
}
@media (max-width:400px){
  .qa-item{ 
    padding:9px 6px; 
  }
  .qa-txt{ 
    font-size:.84rem; 
  }
  .qa-ico{ 
    width:32px; 
    height:32px; 
  }
}
@media (max-width:340px){
  .qa-txt{ 
    font-size:.8rem; 
  }
}
/* Language Dropdown ko Aapke Color (#37647e) se Fix karna */

/* Yeh selector zyada specific (taqatwar) hai.
   Yeh Bootstrap ke default .dropdown-menu (white) ko override kar dega.
*/
.navbar .custom-dropdown-menu {
  background-color: #37647e;  /* Aapka requested background color */
  border: 1px solid #2f566b;  /* Thora sa dark border (optional) */
  border-radius: 8px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Dropdown ke andar ke links (ab text white hoga) */
.navbar .custom-dropdown-menu .dropdown-item {
  color: #FFFFFF; /* Text white (taake blue par nazar aaye) */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Jab link par mouse le kar jayein (Hover) */
.navbar .custom-dropdown-menu .dropdown-item:hover,
.navbar .custom-dropdown-menu .dropdown-item:focus {
  background-color: #2f566b;  /* Thora dark blue hover/focus */
  color: #FFFFFF;
}
/* ============================================================ */
/* ========= 🌙 MOBILE DARK MODE FIXES (Home Page) ============ */
/* ============================================================ */

/* 1. Main Body & Background Override */
@media (max-width: 991.98px) {
    [data-bs-theme="dark"] body,
    [data-bs-theme="dark"] .bg-dark-main,
    [data-bs-theme="dark"] .mobile-layout {
        background-color: #121212 !important; /* Pitch Black Background */
        color: #e0e0e0 !important;
    }
}

/* 2. Containers & Sections (Jo abhi White boxes hain) */
[data-bs-theme="dark"] .mbl-container,
[data-bs-theme="dark"] .mbl-topbar,
[data-bs-theme="dark"] .tm3-wrap, 
[data-bs-theme="dark"] .tm3,
[data-bs-theme="dark"] .qa-wrap, 
[data-bs-theme="dark"] .qa-grid {
    background-color: #121212 !important; /* Matches body */
    border-color: #2c2c2c !important;
    color: #ffffff !important;
}

/* 3. Cards & List Items (Top 3, Quick Actions, Coin Lists) */
[data-bs-theme="dark"] .tm3-card,
[data-bs-theme="dark"] .qa-item,
[data-bs-theme="dark"] .mbl-list,
[data-bs-theme="dark"] .mbl-row {
    background-color: #1e1e1e !important; /* Dark Grey Box */
    border-color: #2c2c2c !important;      /* Halki Grey Border */
    color: #ffffff !important;
}

/* 4. Icons & Buttons Backgrounds */
[data-bs-theme="dark"] .mbl-icon,
[data-bs-theme="dark"] .qa-ico {
    background-color: #2d2d2d !important; /* Thora light grey icon k liye */
    border-color: #404040 !important;
}
[data-bs-theme="dark"] .mbl-icon i,
[data-bs-theme="dark"] .qa-ico i {
    color: #ffffff !important;
}

/* 5. Input Fields (Search Bar) */
[data-bs-theme="dark"] .mbl-search {
    background-color: #1e1e1e !important;
    border-color: #404040 !important;
}
[data-bs-theme="dark"] .mbl-search input {
    color: #ffffff !important;
}

/* 6. Text Colors Fix */
[data-bs-theme="dark"] .mbl-sym,
[data-bs-theme="dark"] .tm3-sym,
[data-bs-theme="dark"] .qa-txt,
[data-bs-theme="dark"] .header-title,
[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .mbl-vol,
[data-bs-theme="dark"] .tm3-approx {
    color: #a0a0a0 !important; /* Dim text */
}

/* 7. Bottom Tab Bar (Footer Menu) */
[data-bs-theme="dark"] .mbl-tabbar {
    background-color: #1e1e1e !important;
    border-top: 1px solid #2c2c2c !important;
}

/* 8. Tabs (Increasing/Drop List) */
[data-bs-theme="dark"] .mbl-tabs {
    background-color: #1e1e1e !important;
}
[data-bs-theme="dark"] .mbl-tab {
    color: #a0a0a0;
}
[data-bs-theme="dark"] .mbl-tab.active {
    background-color: #2d2d2d !important;
    color: #3772ff !important; /* Active Blue waisa hi rahe */
}