/* ================= GLOBAL THEME VARS ================= */
:root{
  /* Backgrounds */
  --bg: rgb(239, 239, 239);
  --section: #111C33;

  /* Cards */
  --card: #151F3D;
  --card-hover: #1A2650;
  --border: rgba(255,255,255,0.06);

  /* Text */
  --text: #EAF0FF;
  --muted: #A8B3CF;
  --soft: #8B96B8;

  /* Accent (LIMITED) */
  --primary: #F97316;   /* CTA only */
  --secondary: #2563EB; /* links */

  /* Status */
  --success: #22C55E;
  --danger: #EF4444;
}


body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(30,64,175,.35), transparent 60%),
    radial-gradient(900px 500px at 70% 30%, rgba(88,28,135,.35), transparent 60%),
    linear-gradient(135deg,#020617,#020617);
  color:#e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

a{ color: inherit; text-decoration:none; }

/* ================= GLOBAL LOADER ================= */
#nidora-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 25% 10%, rgba(245,158,11,.18), transparent 60%),
    radial-gradient(900px 500px at 70% 30%, rgba(168,85,247,.22), transparent 60%),
    rgba(2,6,23,.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

html.nidora-loading #nidora-loader{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nl-card{
  width: min(420px, calc(100vw - 34px));
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.55);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  gap:14px;
}

.nl-logo{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(2,6,23,.35);
  border: 1px solid rgba(148,163,184,.20);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.nl-img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: none;
}

.nl-fallback{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fbbf24;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  color:#020617;
  letter-spacing: .3px;
  user-select:none;
  box-shadow: 0 14px 35px rgba(245,158,11,.25);
}

.nl-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.nl-text strong{
  font-size: 14px;
  letter-spacing: .2px;
  color:#e2e8f0;
}
.nl-text span{
  font-size: 12px;
  color:#cbd5f5;
  opacity: .9;
}

.nl-spin{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(148,163,184,.25);
  border-top-color: rgba(245,158,11,.95);
  animation: nlspin .9s linear infinite;
  margin-left: auto;
  flex: 0 0 auto;
}

@keyframes nlspin{ to{ transform: rotate(360deg); } }

@media (max-width: 768px){
  .nl-card{ padding: 16px; border-radius: 16px; }
  .nl-logo{ width: 48px; height: 48px; }
  .nl-fallback{ width: 40px; height: 40px; font-size: 14px; }
}

/* ================= GLOBAL CONTAINER + MAIN ================= */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing:border-box;
}

main{ padding: 26px 0 40px; }

/* ================= FOOTER (BuffBuff-like) ================= */
footer{
  background: rgba(2,6,23,.85);
  border-top: 1px solid rgba(148,163,184,.18);
  margin-top: 40px;
}

.footer-top{
  padding: 26px 0 18px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}

.footer-paybox{
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 18px;
}

:root{
  --pay-item-height: 44px;
  --pay-logo-maxh: 28px;
  --pay-logo-maxw: 120px;
  --social-btn-size: 36px;
  --social-icon-size: 18px;
}

.pay-logos{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items:center;
}

.pay-logo{
  height: var(--pay-item-height);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,.10);
  padding: 10px 8px;
  box-sizing:border-box;
}

.pay-logo img{
  max-height: var(--pay-logo-maxh);
  max-width: var(--pay-logo-maxw);
  width: auto;
  height: auto;
  object-fit: contain;
  display:block;
}

.footer-backtotop{
  padding: 16px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}

.backtotop-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(2,6,23,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  user-select:none;
}

.backtotop-text{
  color:#cbd5f5;
  font-weight:700;
  font-size:13px;
}

.footer-mid{ padding: 26px 0 18px; }

.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 24px;
}

.footer-title{
  font-weight:900;
  margin-bottom:12px;
  color:#f8fafc;
}

.footer-text{
  color:#94a3b8;
  font-size:13px;
  line-height:1.6;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:13px;
  color:#cbd5f5;
  font-weight:700;
}

.footer-links a:hover{ color:#fbbf24; }

.download-btn{
  margin-top: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(248,113,113,.35);
  background: rgba(248,113,113,.06);
  color:#fecaca;
  font-weight:900;
  box-sizing:border-box;
}

.download-btn:hover{
  border-color: rgba(248,113,113,.55);
  background: rgba(248,113,113,.10);
}

.social-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:1px;
}

.social-btn{
  width: var(--social-btn-size);
  height: var(--social-btn-size);
  border-radius:10px;
  background:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
  border: 1px solid rgba(148,163,184,.16);
  overflow:hidden;
}

.social-btn img{
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  object-fit: contain;
  display:block;
}

.hot-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
  font-weight:800;
  color:#cbd5f5;
}

.footer-bottom{
  padding: 14px 0 10px;
  border-top:1px solid rgba(148,163,184,.18);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:#9ca3af;
  font-weight:600;
}

.footer-legal{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-legal a{ color:#9ca3af; }
.footer-legal a:hover{ color:#fbbf24; }
.footer-sep{ opacity:.5; user-select:none; }

.footer-meta{
  padding: 0 0 18px;
  font-size:12px;
  color:#9ca3af;
  line-height:1.6;
}
.footer-meta a{
  color:#9ca3af;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-meta a:hover{ color:#fbbf24; }
.footer-meta .meta-line{ margin-top: 4px; opacity: .92; }

@media (max-width: 768px){
  :root{
    --pay-item-height: 46px;
    --pay-logo-maxh: 24px;
    --pay-logo-maxw: 120px;
    --social-btn-size: 60px;
    --social-icon-size: 40px;
  }

  .pay-logos{ grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .footer-grid{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    grid-template-areas:
      "brand brand"
      "company resource"
      "hot hot";
  }
  .footer-grid > div:nth-child(1){ grid-area: brand; }
  .footer-grid > div:nth-child(2){ grid-area: company; }
  .footer-grid > div:nth-child(3){ grid-area: resource; }
  .footer-grid > div:nth-child(4){ grid-area: hot; }

  .download-btn{ width: 100%; }
  .footer-backtotop{ padding: 14px 0; }

  .footer-bottom{
    justify-content:center;
    flex-direction:column;
    text-align:center;
    gap:8px;
  }
  .footer-legal{ justify-content:center; gap:10px; }
  .footer-meta{ text-align:center; }
}

/* =========================================================
   === NIDORA SUPPORT WIDGET STYLES START (ANIMATED) ===
========================================================= */

:root{
  --ns-z: 9998;
  --ns-bg: rgb(43, 44, 45);
  --ns-accent: #fbbf24;

  --ns-gap: 12px;
  --ns-fab-h: 34px;

  --ns-red-1: rgba(239,68,68,.97);
  --ns-red-2: rgba(185,28,28,.97);

  /* ============================
     CUSTOMIZE (यहाँबाट adjust)
     ============================ */
  --ns-right: 18px;
  --ns-bottom: 18px;
  --ns-raise: 20px;

  --ns-float-distance: 10px;

  --ns-icon-shift-x: -2px;
  --ns-icon-shift-y: -4px;

  --ns-peek-every-ms: 577000;
  --ns-peek-hide-ms: 4300;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* hard force bottom-right */
#nidora-support.ns-wrap{
  position: fixed !important;
  right: var(--ns-right) !important;
  bottom: calc(var(--ns-bottom) + var(--ns-raise)) !important;
  top: auto !important;
  left: auto !important;
  z-index: var(--ns-z) !important;
  pointer-events: none;
}
#nidora-support.ns-wrap *{ box-sizing: border-box; }

/* --- Animations --- */
@keyframes nsFloatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(calc(-1 * var(--ns-float-distance))); }
}

@keyframes nsGlowPulse {
  0%, 100% { box-shadow: 0 18px 55px rgba(0,0,0,.38), 0 0 0 0 rgba(239,68,68,.35); }
  50%      { box-shadow: 0 22px 70px rgba(0,0,0,.50), 0 0 0 12px rgba(239,68,68,0); }
}

@keyframes nsIconWiggle {
  0%, 100% { transform: translate(var(--ns-icon-shift-x), var(--ns-icon-shift-y)) rotate(0deg); }
  20%      { transform: translate(var(--ns-icon-shift-x), var(--ns-icon-shift-y)) rotate(-9deg); }
  40%      { transform: translate(var(--ns-icon-shift-x), var(--ns-icon-shift-y)) rotate(9deg); }
  60%      { transform: translate(var(--ns-icon-shift-x), var(--ns-icon-shift-y)) rotate(-5deg); }
  80%      { transform: translate(var(--ns-icon-shift-x), var(--ns-icon-shift-y)) rotate(5deg); }
}

@keyframes nsTextShine {
  0%   { opacity: .90; }
  50%  { opacity: 1; }
  100% { opacity: .90; }
}

@keyframes nsPeekIn {
  0%   { opacity: 0; transform: translateY(10px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nsPeekFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* greeting bubble */
.ns-peek{
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: calc(var(--ns-fab-h) + var(--ns-gap));
  max-width: min(320px, calc(100vw - 34px));
  background: rgba(251,191,36,.95);
  color: #020617;
  font-weight: 900;
  font-size: 10px;
  padding: 3px 4px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.35);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  display:none;
  align-items:center;
  gap:10px;
  white-space: nowrap;
  animation: nsPeekIn .85s ease both, nsPeekFloat 5.8s ease-in-out infinite;
}
.ns-peek.is-show{ display:flex; }

.ns-peek button{
  border:0;
  background: rgba(2,6,23,.10);
  color:#020617;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-weight:1000;
}

/* main button pill */
.ns-fab{
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 0;

  height: 34px;
  width: 120px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, var(--ns-red-1), var(--ns-red-2));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  outline: none;
  transform: translateZ(0);

  animation: nsFloatBob 20.9s ease-in-out infinite, nsGlowPulse 2.3s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.ns-fab:hover{ filter: brightness(1.06); }

/* icon wiggle loop */
.ns-fab svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  flex: 0 0 auto;
  transform-origin: 50% 50%;
  animation: nsIconWiggle 3.2s ease-in-out infinite;
}

/* label shimmer */
.ns-fab .label{
  color:#fff;
  font-weight: 1000;
  font-size: 10px;
  letter-spacing:.2px;
  animation: nsTextShine 2.2s ease-in-out infinite;
}

/* stop floating animations while panel open */
.ns-wrap.ns-open .ns-fab{
  animation: none;
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
}
.ns-wrap.ns-open .ns-fab svg,
.ns-wrap.ns-open .ns-fab .label{ animation: none; }
.ns-wrap.ns-open .ns-peek{ display:none !important; }

.ns-panel{
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: calc(var(--ns-fab-h) + var(--ns-gap));

  width: 360px;
  max-width: calc(100vw - 34px);
  max-height: min(560px, calc(100vh - 120px));
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: var(--ns-bg);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  overflow: hidden;

  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.ns-wrap.ns-open .ns-panel{
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.ns-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(148,163,184,.14);
}

.ns-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.ns-logo{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(251,191,36,.16);
  border: 1px solid rgba(251,191,36,.28);
  color: var(--ns-accent);
  font-weight: 1000;
  font-size: 14px;
  flex: 0 0 auto;
}

.ns-title strong{
  color: #f8fafc;
  font-weight: 1000;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ns-title span{
  display:block;
  font-size: 11px;
  color: rgba(232,238,252,.65);
  margin-top: 1px;
}

.ns-close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.35);
  color: #e8eefc;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.ns-close:hover{ border-color: rgba(245,158,11,.35); }

.ns-body{
  padding: 12px;
  overflow: auto;
  max-height: min(500px, calc(100vh - 180px));
}

.ns-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#cbd5f5;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.ns-pill .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.95);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.ns-msg{
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(255,255,255,.03);
  color:#e2e8f0;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
}

.ns-msg--bot{ border-top-left-radius: 8px; }

.ns-msg--user{
  margin-left:auto;
  background: rgba(78,163,255,.12);
  border-color: rgba(78,163,255,.22);
  border-top-right-radius: 8px;
}

.ns-tabs{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin: 10px 0 8px;
}

.ns-tabs .left{ display:flex; gap: 8px; }

.ns-tab{
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
  color:#cbd5f5;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.ns-tab.is-active{
  border-color: rgba(245,158,11,.35);
  color:#f8fafc;
}

.ns-switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
  color:#cbd5f5;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  user-select:none;
}
.ns-switch:hover{ border-color: rgba(245,158,11,.35); }

.ns-faq{
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  overflow:hidden;
}

.ns-faq-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border:0;
  border-bottom: 1px solid rgba(148,163,184,.10);
  background: transparent;
  color:#e5e7eb;
  font-size: 13px;
  text-align:left;
  cursor:pointer;
}
.ns-faq-item:hover{ background: rgba(255,255,255,.03); }
.ns-faq-item:last-child{ border-bottom:0; }
.ns-faq-item .chev{ opacity:.75; }

.ns-answer{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(255,255,255,.03);
  color:#cbd5f5;
  font-size: 12px;
  line-height: 1.6;
  display:none;
}
.ns-answer.is-show{ display:block; }

.ns-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.ns-actions a{
  flex: 1 1 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
  color:#e5e7eb;
  font-weight: 900;
  font-size: 12px;
}
.ns-actions a:hover{ border-color: rgba(245,158,11,.35); }

.ns-input{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  align-items:center;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.35);
  border-radius: 14px;
  padding: 8px;
}

.ns-input input{
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  color:#e5e7eb;
  font-size: 13px;
  padding: 8px 8px;
  min-width:0;
}
.ns-input input::placeholder{ color: rgba(232,238,252,.55); }

.ns-send{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
  color:#e5e7eb;
  font-weight: 1000;
  cursor:pointer;
  display:grid;
  place-items:center;
  user-select:none;
}
.ns-send:hover{ border-color: rgba(245,158,11,.35); }

.ns-view[hidden]{ display:none !important; }

@media (max-width: 480px){
  /* mobile tweaks */
  :root{
    --ns-right: 1px;     /* FIX: previously invalid CSS */
    --ns-raise: 90px;    /* mobile मा अझ माथि */
  }

  #nidora-support.ns-wrap{
    right: var(--ns-right) !important;
    bottom: calc(var(--ns-bottom) + var(--ns-raise)) !important;
  }

  .ns-panel{ width: min(380px, calc(100vw - 24px)); }
  .ns-fab{ height: 32px; padding: 0 16px 0 12px; width: 103px; }
}

/* =========================================================
   === NIDORA SUPPORT WIDGET STYLES END ===
========================================================= */
