/* ============================================================
   TypeFlowUltra v6.1 — Home (index) professional layout
   - ek consistent card system: same height rows, same icon tiles,
     aligned arrows, clear primary CTA
   - fixed controls ek 24px grid par: top-right (sound + language),
     bottom-left (profile), bottom-right (legal links)
   - mobile: profile + legal links card ke NEECHE flow me (koi overlap nahi)
   ============================================================ */

/* ---------- top-right: sound + language (ek hi pill) ---------- */
.tf-top{top:20px !important;right:24px !important;gap:4px !important;padding:4px !important;
  background:rgba(8,14,30,.88) !important;border:1px solid rgba(125,211,252,.22) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.45) !important}
.tf-snd-slot{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none}
.tf-snd-slot #tf-sound-toggle{width:34px !important;height:34px !important;border-radius:999px !important}
.tf-top-div{width:1px;height:20px;background:rgba(148,163,184,.22);margin:0 2px;flex:none}
.tf-lang-b{min-width:72px;height:34px;padding:0 14px !important;display:inline-flex;align-items:center;justify-content:center;
  letter-spacing:.08em !important}

/* ---------- menu card ---------- */
.tf-menu{max-width:560px !important;gap:12px !important;padding:30px 30px 22px !important;border-radius:28px !important;
  border:1px solid rgba(125,211,252,.22) !important;
  background:linear-gradient(180deg,rgba(13,22,42,.97),rgba(7,12,26,.97)) !important;
  box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 70px rgba(14,165,233,.12),inset 0 1px 0 rgba(255,255,255,.05) !important}
.tf-mhead{padding-bottom:20px !important;margin-bottom:8px;border-color:rgba(148,163,184,.14) !important}
.tf-menu .tf-logo{width:50px !important;height:50px !important;border-radius:14px !important;font-size:26px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 20px rgba(14,165,233,.35) !important}
.tf-title{font-size:26px !important;font-weight:800 !important;letter-spacing:-.01em !important;line-height:1.1}
.tf-badge{font-size:10px !important;padding:3px 8px !important;letter-spacing:.1em !important}
.tf-sub{font-size:12.5px !important;font-weight:500 !important;color:#8fa1bf !important;margin-top:4px !important}
.tf-chip{background:rgba(16,185,129,.1) !important;border:1px solid rgba(52,211,153,.3) !important;color:#6ee7b7 !important;
  border-radius:999px !important;padding:6px 12px !important;font-size:10.5px !important;font-weight:800 !important;
  letter-spacing:.1em;gap:7px !important}
.tf-dot{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.18)}

/* ---------- rows (sab buttons ek jaise) ---------- */
.tf-row{min-height:74px;padding:14px 16px 14px 14px !important;border-radius:16px !important;
  display:flex !important;align-items:center !important;justify-content:space-between !important;gap:12px;
  text-decoration:none !important;position:relative;overflow:hidden;
  transition:transform .14s ease,box-shadow .14s ease,border-color .15s ease,background .15s ease !important}
.tf-row > div:first-child{gap:14px !important;min-width:0}
.tf-row .text-left{min-width:0}
.tf-ico{width:46px;height:46px;flex:none;display:inline-flex !important;align-items:center;justify-content:center;
  border-radius:13px;font-size:22px !important;line-height:1;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
  transition:transform .2s ease !important}
.tf-row:hover .tf-ico{transform:scale(1.06) !important}
.tf-rt{font-size:15px !important;font-weight:800 !important;letter-spacing:.045em !important;line-height:1.25 !important}
.tf-rs{font-size:12px !important;font-weight:500 !important;text-transform:none !important;letter-spacing:0 !important;
  margin-top:3px !important;line-height:1.4}
.tf-arrow{width:34px;height:34px;flex:none;display:inline-flex !important;align-items:center;justify-content:center;
  border-radius:999px;font-size:14px !important;line-height:1;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  transition:transform .2s ease,background .2s ease !important}
.tf-row:hover .tf-arrow{transform:translateX(3px) !important;background:rgba(255,255,255,.14)}

/* primary: Start course */
.tf-row-primary{min-height:86px;margin-bottom:6px;border:1px solid rgba(186,230,253,.5) !important;
  background:linear-gradient(180deg,#3cc3fb 0%,#0ea5e9 45%,#0284c7 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 5px 0 #075985,0 18px 34px rgba(14,165,233,.35) !important}
.tf-row-primary:hover{transform:translateY(-2px) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 7px 0 #075985,0 24px 40px rgba(14,165,233,.45) !important}
.tf-row-primary:active{transform:translateY(3px) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 2px 0 #075985,0 8px 16px rgba(14,165,233,.3) !important}
.tf-row-primary .tf-rt{font-size:17px !important}
.tf-row-primary .tf-ico,.tf-row-go .tf-ico{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3)}
.tf-row-primary .tf-arrow,.tf-row-go .tf-arrow{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.35)}
.tf-row-primary .tf-rs{color:rgba(240,249,255,.88) !important}

/* continue (resume) */
.tf-row-go{border:1px solid rgba(110,231,183,.5) !important;
  background:linear-gradient(180deg,#34d399 0%,#10b981 50%,#059669 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 5px 0 #065f46,0 16px 30px rgba(16,185,129,.3) !important}
.tf-row-go:hover{transform:translateY(-2px) !important}
.tf-row-go:active{transform:translateY(3px) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 2px 0 #065f46 !important}
.tf-row-go .tf-ico{animation:none !important;font-size:18px !important}

/* secondary rows */
.tf-c-sky,.tf-c-emerald,.tf-c-violet{
  background:linear-gradient(180deg,#14213b 0%,#0e182d 100%) !important;
  border:1px solid rgba(148,163,184,.16) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 4px 0 #050a16,0 10px 20px rgba(0,0,0,.28) !important}
.tf-c-sky:hover,.tf-c-emerald:hover,.tf-c-violet:hover{transform:translateY(-2px) !important;
  background:linear-gradient(180deg,#182846 0%,#101c34 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 6px 0 #050a16,0 16px 28px rgba(0,0,0,.36) !important}
.tf-c-sky:active,.tf-c-emerald:active,.tf-c-violet:active{transform:translateY(3px) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 0 #050a16,0 4px 10px rgba(0,0,0,.25) !important}
.tf-c-sky:hover{border-color:rgba(56,189,248,.55) !important}
.tf-c-emerald:hover{border-color:rgba(52,211,153,.55) !important}
.tf-c-violet:hover{border-color:rgba(167,139,250,.6) !important}
.tf-c-sky .tf-ico{background:rgba(56,189,248,.12);border-color:rgba(56,189,248,.3)}
.tf-c-emerald .tf-ico{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.3)}
.tf-c-violet .tf-ico{background:rgba(167,139,250,.14);border-color:rgba(167,139,250,.32)}
.tf-c-sky .tf-rs{color:#8fa1bf !important}
/* chamak sirf primary par — baaki rows par shant */
.tf-c-sky.continuous-shine::after,.tf-c-emerald.continuous-shine::after,.tf-c-violet.continuous-shine::after,
.tf-mini-sky.continuous-shine::after{animation:none;opacity:0}
.tf-c-sky:hover::after,.tf-c-emerald:hover::after,.tf-c-violet:hover::after,.tf-mini-sky:hover::after{
  opacity:1;animation:ambientShine 1.1s ease-out 1}

/* bottom mini cards */
.tf-grid{gap:12px !important;margin-top:6px !important}
.tf-mini{min-height:68px;padding:12px 14px !important;border-radius:16px !important;
  transition:transform .14s ease,box-shadow .14s ease,border-color .15s ease !important}
.tf-mini > div:first-child{width:40px !important;height:40px !important;flex:none;border-radius:12px !important}
.tf-mini-sky{background:linear-gradient(180deg,#14213b 0%,#0e182d 100%) !important;border:1px solid rgba(148,163,184,.16) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 4px 0 #050a16,0 10px 20px rgba(0,0,0,.28) !important}
.tf-mini-sky:hover{border-color:rgba(56,189,248,.5) !important;transform:translateY(-2px) !important}
.tf-mini-amber{border:1px solid rgba(252,211,77,.45) !important;
  background:linear-gradient(180deg,#f59e0b 0%,#d97706 60%,#b45309 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 4px 0 #78350f,0 12px 22px rgba(245,158,11,.25) !important}
.tf-mini-amber:hover{transform:translateY(-2px) !important}
.tf-mini:active{transform:translateY(3px) !important}
.tf-mini .text-\[10px\]{font-size:11px !important}
.tf-mini span.uppercase{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:12.5px !important;letter-spacing:.02em !important}
.tf-mini span.uppercase + span{display:none}
.tf-mini > div + div > div:first-child{gap:8px}
.tf-foot{padding-top:14px !important;margin-top:4px;border-color:rgba(148,163,184,.1) !important}
.tf-foot span{font-size:11px !important;font-weight:500 !important;color:#5d6f8f !important;letter-spacing:.02em}

/* ---------- bottom-left: profile ---------- */
.tf-prof{left:24px !important;bottom:20px !important;padding:8px 14px 8px 8px !important;border-radius:16px !important;
  background:rgba(8,14,30,.88) !important;border:1px solid rgba(125,211,252,.2) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.45) !important;transform:none !important;
  transition:border-color .15s ease,background .15s ease !important}
.tf-prof:hover{transform:none !important;border-color:rgba(125,211,252,.45) !important;background:rgba(12,20,40,.92) !important}
.tf-prof > div:first-child{width:38px !important;height:38px !important;border-radius:11px !important;font-weight:800;color:#fff}

/* ---------- bottom-right: legal links (ek segmented bar) ---------- */
.tf-legal{right:24px !important;bottom:20px !important;gap:0 !important;padding:4px !important;border-radius:14px;
  background:rgba(8,14,30,.88);border:1px solid rgba(125,211,252,.2);box-shadow:0 10px 30px rgba(0,0,0,.45);
  backdrop-filter:blur(8px)}
.tf-legal-a{background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:10px !important;
  padding:9px 13px !important;font-size:10.5px !important;letter-spacing:.1em !important;color:#b6c3da !important;
  backdrop-filter:none !important;transition:background .15s ease,color .15s ease !important}
.tf-legal-a:hover{background:rgba(125,211,252,.1) !important;color:#fff !important}
.tf-legal-a + .tf-legal-a{position:relative}
.tf-legal-a + .tf-legal-a::before{content:"";position:absolute;left:0;top:25%;height:50%;width:1px;background:rgba(148,163,184,.2)}

/* ---------- tablet ---------- */
@media (max-width:1100px) and (min-width:641px){
  .tf-prof,.tf-legal{bottom:16px !important}
}
/* short desktop screens: fixed corners card ke upar na aaye */
@media (min-width:641px) and (max-height:820px){
  #root{padding-bottom:84px}
}

/* ---------- mobile ---------- */
@media (max-width:640px){
  #root{padding:64px 14px 84px !important}
  .tf-top{top:12px !important;right:12px !important}
  .tf-lang-b{min-width:0;height:32px;padding:0 12px !important}
  .tf-snd-slot,.tf-snd-slot #tf-sound-toggle{width:32px !important;height:32px !important}
  .tf-menu{padding:20px 16px 16px !important;border-radius:22px !important;gap:10px !important}
  .tf-mhead{padding-bottom:14px !important;margin-bottom:4px}
  .tf-menu .tf-logo{width:44px !important;height:44px !important;font-size:22px !important}
  .tf-title{font-size:22px !important}
  .tf-sub{font-size:11.5px !important}
  .tf-row{min-height:66px;padding:12px 12px 12px 12px !important;border-radius:14px !important}
  .tf-row-primary{min-height:76px}
  .tf-row > div:first-child{gap:12px !important}
  .tf-ico{width:40px;height:40px;border-radius:11px;font-size:19px !important}
  .tf-rt{font-size:13px !important;letter-spacing:.03em !important}
  .tf-row-primary .tf-rt{font-size:14.5px !important}
  .tf-rs{font-size:11px !important}
  .tf-arrow{width:30px;height:30px;font-size:12px !important}
  .tf-grid{gap:10px !important}
  /* profile + legal: ab fixed nahi, card ke neeche normal flow me */
  #sunny-profile-card.tf-prof{position:static !important;left:auto !important;right:auto !important;bottom:auto !important;
    width:100%;max-width:560px;margin:14px auto 0 !important}
  div.tf-legal{position:static !important;left:auto !important;right:auto !important;bottom:auto !important;
    width:100%;max-width:560px;margin:10px auto 0 !important;justify-content:space-between !important}
  .tf-legal-a{flex:1;justify-content:center}
  /* Geetu: bottom-right chhoti, content ke upar kam aaye */
  .geetu-wrapper{bottom:18px !important}
}
@media (prefers-reduced-motion:reduce){
  .tf-row,.tf-mini,.tf-ico,.tf-arrow{transition:none !important}
}
