body { font-family: 'Plus Jakarta Sans', sans-serif; }
html { scroll-behavior: smooth; }

.gradient-bg { background: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%); }
.gradient-text { background: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bg-gradient-primary { background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%); }
.premium-shadow { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02); }
.btn-shadow { box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.35); }

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 3D flip card */
.perspective-1000 { perspective: 1000px; }
.transform-style-3d { transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); }
.backface-hidden { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }

/* Animations (Tailwind CDN me ye custom classes nahi hoti, isliye yahin define hain) */
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes successPop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes flashGlow { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,.4); } 50% { transform: scale(1.02); box-shadow: 0 0 20px 6px rgba(16,185,129,.35); } }
@keyframes boxFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { box-shadow: 0 0 15px 4px rgba(16,185,129,.4); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes glowBrand { 0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,.4); } 50% { box-shadow: 0 0 20px 8px rgba(79,70,229,.5); } }
@keyframes glowAmber { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); } 50% { box-shadow: 0 0 20px 8px rgba(245,158,11,.5); } }
@keyframes bounceSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-fade-in-up { animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) forwards; }
.animate-success-pop { animation: successPop .6s cubic-bezier(.175,.885,.32,1.275) forwards; }
.animate-float-slow { animation: floatSlow 3s ease-in-out infinite; }
.animate-flash-best { animation: flashGlow 2s infinite ease-in-out; }
.animate-box-flash { animation: boxFlash 2s infinite ease-in-out; }
.animate-glow-brand { animation: glowBrand 1.5s infinite ease-in-out; }
.animate-glow-amber { animation: glowAmber 1.5s infinite ease-in-out; }
.animate-bounce-soft { animation: bounceSoft 1.6s infinite ease-in-out; }
.shimmer-text { background: linear-gradient(90deg, #065f46 0%, #10b981 50%, #065f46 100%); background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: shimmer 3s linear infinite; }

/* Income profiler cards (dashboard) */
.income-card { transition: all .25s cubic-bezier(.4,0,.2,1); }
.income-checkbox:checked + .income-card { background-color: #eef2ff; border-color: #4f46e5; box-shadow: 0 4px 14px 0 rgba(79,70,229,.15); transform: translateY(-2px); }
.income-checkbox:checked + .income-card .check-icon { color: #4f46e5; opacity: 1; transform: scale(1.1); }
.income-checkbox:checked + .income-card .icon-bg { background-color: #4f46e5; color: #fff; }

/* Toggle switch (admin) */
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 9999px; transition: .2s; cursor: pointer; }
.switch .slider:before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: #10b981; }
.switch input:checked + .slider:before { transform: translateX(16px); }

/* FAQ / insights accordions */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; }

:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }

/* Blog article typography */
.prose-tx { font-size: 1rem; line-height: 1.8; color: #334155; }
.prose-tx p { margin: 0 0 1.1rem; }
.prose-tx h2 { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin: 2rem 0 .75rem; line-height: 1.3; }
.prose-tx ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.1rem; }
.prose-tx li { margin: .35rem 0; }
.prose-tx strong { color: #0f172a; }


/* ===================== MOBILE-FIRST ENHANCEMENTS ===================== */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
@media (max-width: 767px) {
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px !important; } /* stops iOS zoom on focus */
  button, [role=button], select { min-height: 40px; }
}
/* bottom navigation bar */
.mbnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid #e2e8f0; padding: 0 4px env(safe-area-inset-bottom); box-shadow: 0 -4px 18px rgba(15,23,42,.06); }
.mbnav > a, .mbnav > button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px 7px; min-height: 58px; font-size: 10.5px; font-weight: 700; color: #64748b; position: relative; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
.mbnav i { font-size: 18px; }
.mbnav .on { color: #4f46e5; }
.mbnav .on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 4px 4px; background: #4f46e5; }
.mbnav .nb { position: absolute; top: 5px; left: 50%; margin-left: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9999px; background: #f43f5e; color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
@media (max-width: 767px) {
  html.has-mbnav body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  html.has-mbnav .tx-wa { bottom: calc(78px + env(safe-area-inset-bottom)) !important; right: 14px !important; width: 48px !important; height: 48px !important; font-size: 26px !important; }
  html.has-mbnav .tx-cookie { bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 44; }
}
@media (min-width: 768px) { .mbnav { display: none; } }

/* tables turn into cards on phones (labels are added by TX.mobileTables) */
@media (max-width: 767px) {
  table.rtable { min-width: 0 !important; width: 100%; display: block; }
  table.rtable thead { display: none; }
  table.rtable tbody { display: block; }
  table.rtable tr { display: block; margin: 10px; padding: 6px 4px; border: 1px solid #e2e8f0 !important; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
  table.rtable td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px !important; border: 0 !important; text-align: right; white-space: normal !important; }
  table.rtable td::before { content: attr(data-label); flex: none; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; text-align: left; }
  table.rtable td:first-child { display: block; text-align: left; padding-bottom: 10px !important; border-bottom: 1px solid #f1f5f9 !important; }
  table.rtable td:first-child::before { content: none; }
  table.rtable td[colspan] { display: block; text-align: center; }
  table.rtable td[colspan]::before { content: none; }
  table.rtable td > * { max-width: 100%; }
  .overflow-x-auto:has(> table.rtable) { overflow: visible; }
}

@media (max-width: 767px) { #chatLauncher { display: none !important; } #chatPop { padding-bottom: env(safe-area-inset-bottom); } #chatNote { display: none; } }
.mbnav .nb.hidden { display: none; }

/* =====================================================================
   MOBILE ADDITIONS (look of the site is unchanged; these only help phones)
   ===================================================================== */
:root { --bn: 62px; --brand: #4f46e5; --mute: #64748b; --line: #e2e8f0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; border-radius: 6px; }
button, a, input, select, textarea { touch-action: manipulation; }
/* iPhones zoom into inputs smaller than 16px */
@media (max-width: 767px) { input, select, textarea { font-size: 16px !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

/* bottom tab bar (phones only) */
.tx-bn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(15, 23, 42, .25); height: calc(var(--bn) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tx-bn a, .tx-bn button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--bn); font-size: 11px; font-weight: 700; color: var(--mute); background: none; border: 0; cursor: pointer; text-decoration: none; }
.tx-bn i { font-size: 19px; }
.tx-bn .on { color: var(--brand); }
.tx-bn .on::before { content: ''; position: absolute; top: 0; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 0 0 4px 4px; background: var(--brand); }
.tx-bn .tx-bn-main i { width: 42px; height: 42px; margin-top: -18px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 8px 16px -6px rgba(79, 70, 229, .7); border: 4px solid #fff; box-sizing: content-box; }
.tx-bn-badge { position: absolute; top: 6px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .tx-bn { display: none; } }
body.tx-has-bn { padding-bottom: calc(var(--bn) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { body.tx-has-bn { padding-bottom: 0; } }

/* floating WhatsApp button */
.tx-fab { position: fixed; right: 14px; bottom: calc(var(--bn) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 52px; height: 52px; border-radius: 50%; background: #1faa59; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(31, 170, 89, .8); text-decoration: none; }
@media (min-width: 768px) { .tx-fab { bottom: 24px; right: 24px; width: 56px; height: 56px; } }

/* plans: swipe carousel on phones, normal grid from tablet up */
.tx-snap { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 16px 18px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tx-snap::-webkit-scrollbar { display: none; }
.tx-snap > * { flex: 0 0 84%; max-width: 360px; scroll-snap-align: center; }
@media (min-width: 640px) { .tx-snap { margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; overflow: visible; } .tx-snap > * { max-width: none; } }
@media (min-width: 1024px) { .tx-snap { grid-template-columns: repeat(4, 1fr); } }
.tx-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* dashboard bottom bar: phones and small tablets; stays under popups and the side drawer */
.tx-bn.tx-bn-dash { z-index: 29; }
@media (min-width: 768px) and (max-width: 1023px) { .tx-bn.tx-bn-dash { display: grid; } }
@media (min-width: 1024px) { .tx-bn.tx-bn-dash { display: none; } }
@media (max-width: 1023px) { #chatLauncher { display: none !important; } }
#chatPop { max-height: 100dvh; }


/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1024px) { .how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; } }
.how-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 28px 22px 24px; box-shadow: 0 10px 30px -18px rgba(79, 70, 229, .35); transition: transform .25s, box-shadow .25s; }
.how-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, #4f46e5, #0d9488); }
.how-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(79, 70, 229, .45); }
.how-num { position: absolute; right: 18px; top: 10px; font-size: 72px; font-weight: 900; line-height: 1; color: #eef2ff; letter-spacing: -.04em; pointer-events: none; user-select: none; }
.how-ic { position: relative; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, #4f46e5, #0d9488); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .6); }
.how-card h3 { position: relative; margin-top: 18px; font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.how-card p { position: relative; margin-top: 8px; font-size: .92rem; line-height: 1.6; color: #475569; }
.how-card.done { background: linear-gradient(180deg, #ecfdf5 0%, #fff 70%); border-color: #a7f3d0; }
.how-card.done::before { background: linear-gradient(90deg, #059669, #34d399); }
.how-card.done .how-ic { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 10px 20px -8px rgba(5, 150, 105, .6); }
.how-card.done .how-num { color: #d1fae5; }
@media (min-width: 1024px) { .how-card:not(:last-child)::after { content: ''; position: absolute; right: -21px; top: 50%; width: 11px; height: 11px; border-top: 3px solid #a5b4fc; border-right: 3px solid #a5b4fc; transform: translateY(-50%) rotate(45deg); } }
@media (max-width: 1023px) and (min-width: 0px) { .how-grid .how-card { padding-right: 90px; } }

/* ---------- Notification bar (homepage) ---------- */
.notice-bar { background: linear-gradient(90deg, #fffbeb, #fef3c7); border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a; color: #78350f; }
.notice-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.notice-bell { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #f59e0b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; animation: bellRing 3s ease-in-out infinite; transform-origin: 50% 12%; }
@keyframes bellRing { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 96% { transform: rotate(8deg); } }
.notice-view { flex: 1; min-width: 0; overflow: hidden; }
.notice-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.notice-item { flex: 0 0 100%; min-width: 0; font-size: 13px; line-height: 1.5; font-weight: 600; padding: 1px 2px; }
@media (min-width: 640px) { .notice-item { font-size: 14px; } }
.notice-item a { color: #92400e; text-decoration: underline; margin-left: 6px; font-weight: 800; white-space: nowrap; }
.notice-ctl { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #92400e; }
.notice-ctl button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #fcd34d; background: #fff; color: #92400e; cursor: pointer; font-size: 11px; }
.notice-ctl button:hover { background: #fef3c7; }
.notice-dots { display: flex; gap: 5px; margin-left: 2px; }
.notice-dots i { width: 7px; height: 7px; border-radius: 50%; background: #fcd34d; display: block; }
.notice-dots i.on { background: #d97706; width: 18px; border-radius: 4px; }
