/* =========================================================
   TOFY PAY — V201 FINAL HOME
   ========================================================= */

body[data-page="home"]{
  --tf-bg:#040611;
  --tf-panel:#090d1d;
  --tf-line:rgba(111,133,255,.20);
  --tf-text:#f8faff;
  --tf-muted:#8893b4;
  --tf-cyan:#54e9ff;
  --tf-blue:#3e72ff;
  --tf-violet:#8b46ff;
  background:
    radial-gradient(circle at 10% 12%,rgba(49,72,255,.12),transparent 24%),
    radial-gradient(circle at 88% 22%,rgba(139,52,255,.12),transparent 28%),
    #040611!important;
}

body[data-page="home"] .page-main{
  width:100%!important;
  max-width:1500px!important;
  margin:0 auto!important;
  padding:18px 22px 110px!important;
  box-sizing:border-box;
}

body[data-page="home"] .sidebar,
body[data-page="home"] .right{
  display:none!important;
}

.tofy-final-home{
  width:100%;
  max-width:1420px;
  margin:0 auto;
  direction:inherit;
  color:var(--tf-text);
}

/* ---------- PREMIUM BRAND HEADER ---------- */

.tf-brand-hero{
  position:relative;
  min-height:220px;
  display:grid;
  grid-template-columns:1fr 1.35fr 1fr;
  align-items:center;
  overflow:hidden;
  border-radius:34px;
  padding:25px 45px;
  isolation:isolate;
  background:
    linear-gradient(105deg,rgba(10,15,39,.98),rgba(7,8,25,.96) 48%,rgba(17,8,42,.96)),
    #080b1b;
  border:1px solid rgba(119,140,255,.24);
  box-shadow:
    0 30px 90px rgba(0,0,0,.45),
    inset 0 1px rgba(255,255,255,.06),
    0 0 60px rgba(65,77,255,.08);
}

.tf-brand-hero:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.45;
  background-image:
    linear-gradient(rgba(99,121,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(99,121,255,.035) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(to bottom,black,transparent);
}

.tf-brand-hero:after{
  content:"";
  position:absolute;
  left:12%;
  right:12%;
  bottom:-2px;
  height:2px;
  background:linear-gradient(90deg,transparent,#4176ff,#9d55ff,#48e8ff,transparent);
  box-shadow:0 0 25px #596fff;
}

.tf-hero-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:.34;
  z-index:-1;
}

.tf-glow-a{
  width:300px;
  height:180px;
  left:22%;
  bottom:-80px;
  background:#215eff;
}

.tf-glow-b{
  width:320px;
  height:200px;
  right:12%;
  top:-100px;
  background:#8c35ff;
}

.tf-brand-center{
  text-align:center;
  position:relative;
}

.tf-brand-name{
  font-size:clamp(48px,6vw,94px);
  line-height:.88;
  font-weight:1000;
  letter-spacing:-5px;
  color:#fff;
  text-shadow:0 0 38px rgba(125,145,255,.24);
}

.tf-brand-name span{
  background:linear-gradient(135deg,#fff 8%,#87e9ff 42%,#9a6cff 80%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.tf-brand-store{
  margin-top:17px;
  font-size:11px;
  letter-spacing:8px;
  font-weight:900;
  color:#7886ad;
}

.tf-hero-side{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#dbe1f7;
}

.tf-hero-side strong{
  font-size:14px;
  line-height:1.7;
}

.tf-hero-side small{
  font-size:11px;
  color:#737f9e;
}

.tf-hero-side-start{
  align-items:flex-start;
}

.tf-hero-side-end{
  align-items:flex-end;
  text-align:end;
}

.tf-crown{
  font-size:30px;
  line-height:1;
  color:#ffd75d;
  filter:drop-shadow(0 0 12px rgba(255,200,50,.55));
}

/* ---------- SEARCH ---------- */

.tf-search-zone{
  padding:29px 4% 25px;
}

.tf-search{
  width:min(820px,100%);
  height:62px;
  margin:0 auto;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-radius:22px;
  background:rgba(9,14,32,.88);
  border:1px solid rgba(111,137,255,.22);
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 16px 45px rgba(0,0,0,.24),
    0 0 35px rgba(70,90,255,.07);
  backdrop-filter:blur(20px);
}

.tf-search:focus-within{
  border-color:rgba(83,221,255,.55);
  box-shadow:0 0 30px rgba(58,160,255,.13);
}

.tf-search input{
  flex:1;
  min-width:0;
  height:100%;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
  padding:0 18px!important;
  font-family:inherit;
  font-size:14px;
}

.tf-search input::placeholder{
  color:#65708e;
}

.tf-search button{
  width:62px;
  height:62px;
  flex:0 0 62px;
  border:0;
  background:transparent;
  color:#6be9ff;
  font-size:31px;
  cursor:pointer;
}

.tf-search-meta{
  width:min(1050px,94%);
  margin:13px auto 0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:8px;
  letter-spacing:2.8px;
  font-weight:900;
  color:#485572;
}

/* ---------- CATEGORY GRID ---------- */

.tf-category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  padding:6px 0 26px;
}

.tf-category{
  --accent:#4c79ff;
  --accent2:#5939e8;
  position:relative;
  display:block;
  min-width:0;
  height:330px;
  overflow:hidden;
  border-radius:27px;
  text-decoration:none!important;
  color:#fff!important;
  background:#080d20;
  border:1px solid color-mix(in srgb,var(--accent) 42%,transparent);
  box-shadow:
    0 18px 55px rgba(0,0,0,.38),
    inset 0 1px rgba(255,255,255,.05),
    0 0 28px color-mix(in srgb,var(--accent) 12%,transparent);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
  isolation:isolate;
}

.tf-category:hover{
  transform:translateY(-5px);
  border-color:color-mix(in srgb,var(--accent) 78%,transparent);
  box-shadow:
    0 26px 65px rgba(0,0,0,.44),
    0 0 34px color-mix(in srgb,var(--accent) 24%,transparent);
}

.tf-category:before{
  content:"TOFY PAY";
  position:absolute;
  top:13px;
  inset-inline-start:15px;
  z-index:5;
  padding:5px 9px;
  border-radius:8px;
  font-size:7px;
  letter-spacing:1.3px;
  font-weight:1000;
  color:rgba(255,255,255,.78);
  background:rgba(4,7,19,.55);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
}

.tf-art{
  height:225px;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--accent) 45%,transparent),transparent 38%),
    radial-gradient(circle at 85% 15%,color-mix(in srgb,var(--accent2) 26%,transparent),transparent 32%),
    linear-gradient(145deg,#101a3a,#080b1d 70%);
}

.tf-art:before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);
  border-radius:50%;
  box-shadow:
    0 0 45px color-mix(in srgb,var(--accent) 17%,transparent),
    inset 0 0 45px color-mix(in srgb,var(--accent) 10%,transparent);
}

.tf-art:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:80px;
  background:linear-gradient(transparent,#080d20);
}

.tf-orb{
  position:absolute;
  width:115px;
  height:115px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.26),color-mix(in srgb,var(--accent) 58%,#071126) 42%,#050713 80%);
  box-shadow:
    0 0 65px color-mix(in srgb,var(--accent) 35%,transparent),
    inset -15px -20px 35px rgba(0,0,0,.4);
}

.tf-big-icon,
.tf-phone,
.tf-coin,
.tf-vip-crown{
  position:relative;
  z-index:2;
  font-style:normal;
  filter:drop-shadow(0 12px 22px rgba(0,0,0,.5));
}

.tf-big-icon{
  font-size:78px;
  font-weight:1000;
}

.tf-phone{
  width:72px;
  height:125px;
  display:grid;
  place-items:center;
  border-radius:17px;
  font-size:43px;
  color:#fff;
  border:4px solid #a8d8ff;
  background:linear-gradient(145deg,#295fff,#812fff);
  box-shadow:0 0 35px var(--accent);
}

.tf-coin{
  width:104px;
  height:104px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:64px;
  font-weight:1000;
  color:#fff;
  background:linear-gradient(145deg,#56efd4,#118d83);
  border:6px solid rgba(213,255,248,.78);
  box-shadow:0 0 45px rgba(41,224,196,.52);
}

.tf-float-icon{
  position:absolute;
  z-index:3;
  display:grid;
  place-items:center;
  min-width:34px;
  height:34px;
  padding:0 7px;
  border-radius:11px;
  font-size:14px;
  font-weight:1000;
  font-style:normal;
  color:#fff;
  background:rgba(11,17,40,.82);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 9px 25px rgba(0,0,0,.4),0 0 15px color-mix(in srgb,var(--accent) 30%,transparent);
  backdrop-filter:blur(9px);
}

.tf-f1{top:58px;left:16%}
.tf-f2{top:45px;right:14%}
.tf-f3{bottom:45px;right:21%}

.tf-signal{
  position:absolute;
  z-index:2;
  font-weight:1000;
  font-size:27px;
  color:#72eaff;
  transform:rotate(-35deg) translate(60px,-28px);
}

.tf-vip-crown{
  font-size:92px;
  line-height:1;
  color:#ffe66d;
  text-shadow:0 0 15px #ffb21c,0 0 45px rgba(255,175,30,.5);
}

.tf-vip-word{
  position:absolute;
  z-index:3;
  bottom:37px;
  font-size:20px;
  letter-spacing:8px;
  font-weight:1000;
  color:#ffdc67;
}

.tf-card-info{
  height:105px;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:9px;
  padding:13px 15px;
  position:relative;
  z-index:4;
  background:
    linear-gradient(180deg,rgba(10,15,34,.96),rgba(6,9,22,.99));
}

.tf-card-copy{
  min-width:0;
}

.tf-card-copy h2{
  margin:0 0 5px!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1.25!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tf-card-copy p{
  margin:0!important;
  color:#75819f!important;
  font-size:9px!important;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tf-count{
  max-width:72px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-radius:30px;
  padding:6px 8px;
  color:#98a5c8;
  background:rgba(91,112,168,.10);
  border:1px solid rgba(118,137,192,.12);
  font-size:7px;
  font-weight:900;
}

.tf-card-info i{
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:14px;
  font-style:normal;
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 18px color-mix(in srgb,var(--accent) 35%,transparent);
}

/* individual identities */

.tf-games{--accent:#277cff;--accent2:#3049dd}
.tf-social{--accent:#9c46ff;--accent2:#f02bb4}
.tf-gifts{--accent:#ffb62f;--accent2:#ff6c26}
.tf-apps{--accent:#318cff;--accent2:#5b37ff}
.tf-telecom{--accent:#2b8eff;--accent2:#27d6ff}
.tf-usdt{--accent:#26d8c0;--accent2:#187d9f}
.tf-vip{--accent:#f6bf43;--accent2:#8b5c13}
.tf-offers{--accent:#ff3ca6;--accent2:#9d3cff}

.tf-gifts .tf-art{
  background:
    radial-gradient(circle at 50% 42%,rgba(255,171,42,.40),transparent 37%),
    linear-gradient(145deg,#382312,#150e0c 72%);
}

.tf-vip .tf-art{
  background:
    radial-gradient(circle at 50% 45%,rgba(255,190,52,.25),transparent 38%),
    linear-gradient(145deg,#211a0c,#070707 72%);
}

.tf-offers .tf-art{
  background:
    radial-gradient(circle at 50% 45%,rgba(255,42,174,.42),transparent 39%),
    linear-gradient(145deg,#37103c,#14091f 72%);
}

/* ---------- PWA ---------- */

.tf-install{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  margin:4px 0 22px;
  padding:15px 18px;
  border-radius:23px;
  background:linear-gradient(145deg,rgba(15,22,49,.92),rgba(7,10,24,.95));
  border:1px solid rgba(108,133,255,.18);
}

.tf-install img{
  width:58px;
  height:58px;
  border-radius:17px;
}

.tf-install div{
  display:grid;
  gap:5px;
}

.tf-install strong{
  font-size:13px;
}

.tf-install small{
  font-size:9px;
  color:#7d88a8;
}

.tf-install button{
  border:0;
  border-radius:14px;
  padding:11px 16px;
  font-family:inherit;
  font-size:10px;
  font-weight:900;
  color:#fff;
  cursor:pointer;
  background:linear-gradient(135deg,#3376ff,#8848ff);
  box-shadow:0 0 24px rgba(85,87,255,.3);
}

.tf-footer-signature{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:9px 8px 20px;
  font-size:8px;
  letter-spacing:2px;
  font-weight:900;
  color:#46516d;
}

/* ---------- TABLET ---------- */

@media(max-width:1100px){
  .tf-brand-hero{
    min-height:190px;
    padding:24px 28px;
  }

  .tf-brand-name{
    font-size:58px;
  }

  .tf-brand-store{
    letter-spacing:6px;
  }

  .tf-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .tf-category{
    height:340px;
  }

  .tf-art{
    height:235px;
  }
}

/* ---------- MOBILE ---------- */

@media(max-width:850px){
  body[data-page="home"] .page-main{
    width:100%!important;
    max-width:none!important;
    padding:8px 11px 100px!important;
  }

  body[data-page="home"] .layout-global-side{
    display:block!important;
  }

  body[data-page="home"] footer{
    display:none!important;
  }

  .tf-brand-hero{
    min-height:174px;
    grid-template-columns:1fr;
    padding:21px 14px;
    border-radius:25px;
  }

  .tf-brand-center{
    order:1;
  }

  .tf-brand-name{
    font-size:52px;
    letter-spacing:-3px;
  }

  .tf-brand-store{
    margin-top:11px;
    font-size:8px;
    letter-spacing:5px;
  }

  .tf-hero-side{
    position:absolute;
    z-index:3;
    bottom:14px;
  }

  .tf-hero-side-start{
    inset-inline-start:14px;
  }

  .tf-hero-side-end{
    inset-inline-end:14px;
  }

  .tf-hero-side strong{
    font-size:8px;
  }

  .tf-hero-side small{
    display:none;
  }

  .tf-crown{
    font-size:18px;
  }

  .tf-search-zone{
    padding:17px 3px 18px;
  }

  .tf-search{
    height:51px;
    border-radius:17px;
  }

  .tf-search button{
    width:50px;
    height:50px;
    flex-basis:50px;
    font-size:25px;
  }

  .tf-search input{
    font-size:11px!important;
    padding:0 11px!important;
  }

  .tf-search-meta{
    width:96%;
    margin-top:9px;
    font-size:5px;
    letter-spacing:1.2px;
  }

  .tf-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .tf-category{
    height:254px;
    border-radius:20px;
  }

  .tf-category:before{
    top:9px;
    inset-inline-start:9px;
    padding:4px 6px;
    font-size:5px;
  }

  .tf-art{
    height:171px;
  }

  .tf-art:before{
    width:125px;
    height:125px;
  }

  .tf-orb{
    width:82px;
    height:82px;
  }

  .tf-big-icon{
    font-size:51px;
  }

  .tf-phone{
    width:49px;
    height:86px;
    border-width:3px;
    border-radius:12px;
    font-size:30px;
  }

  .tf-coin{
    width:73px;
    height:73px;
    border-width:4px;
    font-size:43px;
  }

  .tf-vip-crown{
    font-size:64px;
  }

  .tf-vip-word{
    bottom:25px;
    font-size:12px;
    letter-spacing:5px;
  }

  .tf-float-icon{
    min-width:25px;
    height:25px;
    border-radius:8px;
    padding:0 5px;
    font-size:9px;
  }

  .tf-f1{top:43px;left:10%}
  .tf-f2{top:34px;right:9%}
  .tf-f3{bottom:32px;right:13%}

  .tf-card-info{
    height:83px;
    grid-template-columns:minmax(0,1fr) auto;
    padding:9px 9px;
    gap:5px;
  }

  .tf-card-copy h2{
    font-size:10px!important;
    margin-bottom:4px!important;
  }

  .tf-card-copy p{
    font-size:6.5px!important;
  }

  .tf-count{
    display:none;
  }

  .tf-card-info i{
    width:25px;
    height:25px;
    font-size:11px;
  }

  .tf-install{
    grid-template-columns:46px minmax(0,1fr);
    padding:11px;
    gap:9px;
    margin-top:2px;
  }

  .tf-install img{
    width:46px;
    height:46px;
    border-radius:13px;
  }

  .tf-install strong{
    font-size:9px;
  }

  .tf-install small{
    font-size:7px;
  }

  .tf-install button{
    grid-column:1/-1;
    width:100%;
    padding:10px;
    font-size:8px;
  }

  .tf-footer-signature{
    font-size:5px;
    letter-spacing:1px;
    padding-inline:3px;
  }
}

/* ---------- VERY SMALL ---------- */

@media(max-width:390px){
  .tf-brand-name{font-size:45px}
  .tf-category-grid{gap:8px}
  .tf-category{height:238px}
  .tf-art{height:159px}
  .tf-card-info{height:79px}
  .tf-card-copy h2{font-size:9px!important}
}


/* V202.2 — desktop home uses original app.css V30.3 shell */
@media (min-width:851px){
  body[data-page="home"] > header.topbar{
    display:flex !important;
  }

  body[data-page="home"] .mobile-bottom-nav{
    display:none !important;
  }
}

/* =========================================================
   V202.3 — V201 SHELL RULES ARE MOBILE ONLY
   Desktop uses original app.css V30.3 layout/sidebar
   ========================================================= */

@media (max-width:850px){

  body[data-page="home"] > header.topbar{
    display:none !important;
  }

  body[data-page="home"] .layout.layout-global-side{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  body[data-page="home"] .layout.layout-global-side > .sidebar,
  body[data-page="home"] .layout.layout-global-side > .side{
    display:none !important;
  }

  body[data-page="home"] .layout.layout-global-side > main.page-main{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }
}

/* ===== TOFY PWA INSTALL UNDER HEADER V203 ===== */
#tofyFinalHome .tf-install-top{
  position:relative;
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:10px 12px;
  align-items:center;
  margin:10px 0 18px;
  padding:14px;
  border-radius:22px;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 0%,rgba(24,156,255,.18),transparent 36%),
    radial-gradient(circle at 100% 100%,rgba(128,62,255,.20),transparent 42%),
    linear-gradient(145deg,rgba(11,25,55,.97),rgba(7,10,25,.98));
  border:1px solid rgba(74,126,255,.48);
  box-shadow:
    0 10px 30px rgba(0,0,0,.22),
    inset 0 0 24px rgba(61,92,255,.08);
}

#tofyFinalHome .tf-install-top > img{
  width:52px;
  height:52px;
  border-radius:15px;
  box-shadow:0 0 20px rgba(37,126,255,.38);
}

#tofyFinalHome .tf-install-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

#tofyFinalHome .tf-install-copy strong{
  font-size:13px;
  font-weight:900;
  color:#fff;
}

#tofyFinalHome .tf-install-copy small{
  font-size:9px;
  color:#9ca9ca;
}

#tofyFinalHome .tf-install-actions{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:2px;
}

#tofyFinalHome .tf-install-actions button{
  width:100%;
  min-height:44px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  border-radius:14px;
  padding:10px 8px;
  border:0;
  font-family:inherit;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
  color:#fff;
}

#tofyFinalHome .tf-install-android{
  background:linear-gradient(135deg,#20d45a,#07983a)!important;
  box-shadow:0 7px 22px rgba(24,207,83,.27)!important;
}

#tofyFinalHome .tf-install-ios{
  color:#07101f!important;
  background:linear-gradient(135deg,#ffffff,#cdd9ec)!important;
  box-shadow:0 7px 22px rgba(207,223,255,.18)!important;
}

#tofyFinalHome .tf-platform-icon{
  font-size:17px;
  line-height:1;
}

@media(max-width:390px){
  #tofyFinalHome .tf-install-top{
    padding:11px;
    margin-top:8px;
  }

  #tofyFinalHome .tf-install-actions{
    gap:7px;
  }

  #tofyFinalHome .tf-install-actions button{
    font-size:9px;
    min-height:42px;
  }
}

/* ===== TOFY MOBILE SLIDER V205 ===== */

.tf-mobile-slider{
  position:relative;
  width:100%;
  margin:10px 0 14px;
  overflow:hidden;
  border-radius:26px;
  border:1px solid rgba(61,112,255,.5);
  background:#071126;
  box-shadow:0 15px 40px rgba(0,0,0,.28),inset 0 0 30px rgba(38,81,255,.08);
}

.tf-slider-track{
  position:relative;
  min-height:270px;
}

.tf-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transform:translateX(25px);
  transition:opacity .45s ease,transform .45s ease;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(110px,.75fr);
  align-items:center;
  gap:10px;
  padding:25px 24px 40px;
  overflow:hidden;
}

.tf-slide.is-active{
  position:relative;
  opacity:1;
  visibility:visible;
  transform:none;
}

.tf-slide-glow{
  position:absolute;
  width:260px;
  height:260px;
  right:-80px;
  top:-100px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(77,52,255,.42),rgba(0,174,255,.14) 42%,transparent 70%);
  filter:blur(5px);
  pointer-events:none;
}

.tf-slide-copy{
  position:relative;
  z-index:2;
}

.tf-slide-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:15px;
}

.tf-slide-brand img{
  width:46px;
  height:46px;
  border-radius:13px;
  box-shadow:0 0 20px rgba(29,130,255,.45);
}

.tf-slide-brand strong{
  display:block;
  color:#fff;
  font-size:20px;
  font-weight:1000;
  letter-spacing:-.5px;
}

.tf-slide-brand strong span{
  color:#16c8ff;
}

.tf-slide-brand small{
  display:block;
  margin-top:2px;
  color:#a8b7d7;
  font-size:7px;
  letter-spacing:3px;
}

.tf-slide h2{
  max-width:330px;
  margin:0 0 12px;
  color:#fff;
  font-size:22px;
  line-height:1.45;
  font-weight:1000;
}

.tf-slide p{
  color:#aebbd5;
  font-size:10px;
  line-height:1.7;
  margin:0 0 15px;
}

.tf-slide-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:16px;
}

.tf-slide-badges span{
  padding:6px 9px;
  border-radius:999px;
  background:rgba(11,29,65,.8);
  border:1px solid rgba(72,125,255,.28);
  color:#dce7ff;
  font-size:8px;
  font-weight:800;
}

.tf-slide-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:115px;
  padding:9px 14px;
  border-radius:999px;
  color:#fff!important;
  text-decoration:none!important;
  font-size:9px;
  font-weight:1000;
  background:linear-gradient(90deg,#079cff,#7b36ff);
  box-shadow:0 0 22px rgba(45,94,255,.38);
}

.tf-slide-visual{
  position:relative;
  z-index:2;
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.tf-slide-visual img{
  width:100px;
  height:100px;
  border-radius:27px;
  transform:rotate(7deg);
  box-shadow:0 0 45px rgba(41,100,255,.55);
}

.tf-slide-visual > span:not(.tf-slider-symbol){
  margin-top:12px;
  font-size:9px;
  font-weight:1000;
  letter-spacing:3px;
  color:#8ebcff;
}

.tf-slider-symbol{
  display:grid;
  place-items:center;
  width:115px;
  height:115px;
  border-radius:32px;
  font-size:56px;
  background:linear-gradient(145deg,rgba(20,46,100,.9),rgba(22,12,66,.92));
  border:1px solid rgba(73,120,255,.35);
  box-shadow:0 0 45px rgba(49,65,255,.38);
}

.tf-slider-arrow{
  position:absolute;
  z-index:5;
  top:50%;
  transform:translateY(-50%);
  width:31px;
  height:42px;
  border:0;
  border-radius:14px;
  background:rgba(8,24,57,.78);
  color:#c6d8ff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.tf-slider-prev{left:8px}
.tf-slider-next{right:8px}

.tf-slider-dots{
  position:absolute;
  z-index:5;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:7px;
}

.tf-slider-dots button{
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#71809e;
}

.tf-slider-dots button.is-active{
  width:19px;
  border-radius:10px;
  background:#18bfff;
  box-shadow:0 0 10px rgba(24,191,255,.7);
}

@media(max-width:390px){
  .tf-slider-track{min-height:235px}

  .tf-slide{
    grid-template-columns:minmax(0,1.35fr) minmax(85px,.65fr);
    padding:19px 17px 35px;
  }

  .tf-slide-brand img{
    width:38px;
    height:38px;
  }

  .tf-slide-brand strong{font-size:16px}
  .tf-slide h2{font-size:17px}
  .tf-slide-visual{min-height:125px}

  .tf-slide-visual img,
  .tf-slider-symbol{
    width:82px;
    height:82px;
    border-radius:23px;
  }

  .tf-slider-symbol{font-size:40px}
}

/* ===== TOFY REAL IMAGE SLIDER V206 ===== */

#tofyFinalHome .tf-real-slider{
  height:auto;
  min-height:0;
  aspect-ratio:1600/680;
  max-height:300px;
  border-radius:25px;
  overflow:hidden;
  background:#07101f;
}

#tofyFinalHome .tf-real-slider .tf-slider-track{
  height:100%;
  min-height:0;
}

#tofyFinalHome .tf-real-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  display:block;
  overflow:hidden;
  text-decoration:none;
  opacity:0;
  visibility:hidden;
  transform:scale(1.025);
  transition:
    opacity .5s ease,
    transform .7s ease,
    visibility .5s;
}

#tofyFinalHome .tf-real-slide.is-active{
  position:absolute;
  opacity:1;
  visibility:visible;
  transform:scale(1);
}

#tofyFinalHome .tf-slide-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

#tofyFinalHome .tf-slide-shade{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(
      90deg,
      rgba(3,8,24,.92) 0%,
      rgba(3,8,24,.70) 36%,
      rgba(3,8,24,.18) 72%,
      rgba(3,8,24,.08) 100%
    );
}

html[dir="rtl"] #tofyFinalHome .tf-slide-shade{
  background:
    linear-gradient(
      270deg,
      rgba(3,8,24,.92) 0%,
      rgba(3,8,24,.70) 36%,
      rgba(3,8,24,.18) 72%,
      rgba(3,8,24,.08) 100%
    );
}

#tofyFinalHome .tf-real-content{
  position:absolute;
  z-index:3;
  top:0;
  bottom:0;
  left:0;
  width:53%;
  padding:19px 20px 30px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}

html[dir="rtl"] #tofyFinalHome .tf-real-content{
  left:auto;
  right:0;
  align-items:flex-start;
}

#tofyFinalHome .tf-real-logo{
  width:min(145px,80%);
  height:auto;
  max-height:40px;
  object-fit:contain;
  object-position:left center;
  margin-bottom:11px;
  filter:drop-shadow(0 0 12px rgba(24,153,255,.28));
}

html[dir="rtl"] #tofyFinalHome .tf-real-logo{
  object-position:right center;
}

#tofyFinalHome .tf-real-text{
  display:flex;
  flex-direction:column;
  gap:4px;
}

#tofyFinalHome .tf-real-text strong{
  color:#fff;
  font-size:17px;
  line-height:1.35;
  font-weight:1000;
  text-shadow:0 2px 12px rgba(0,0,0,.5);
}

#tofyFinalHome .tf-real-text small{
  color:#b9c8e6;
  font-size:8px;
  line-height:1.5;
  font-weight:700;
}

#tofyFinalHome .tf-real-cta{
  display:inline-flex;
  margin-top:10px;
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(90deg,#078fff,#7438ff);
  color:#fff;
  font-size:8px;
  font-weight:1000;
  box-shadow:0 0 20px rgba(42,100,255,.35);
}

#tofyFinalHome .tf-real-slider .tf-slider-arrow{
  width:27px;
  height:38px;
  font-size:23px;
  background:rgba(4,13,34,.62);
  backdrop-filter:blur(7px);
}

#tofyFinalHome .tf-real-slider .tf-slider-dots{
  bottom:10px;
}

@media(max-width:390px){
  #tofyFinalHome .tf-real-slider{
    border-radius:20px;
  }

  #tofyFinalHome .tf-real-content{
    width:58%;
    padding:14px 15px 27px;
  }

  #tofyFinalHome .tf-real-logo{
    width:105px;
    max-height:30px;
    margin-bottom:7px;
  }

  #tofyFinalHome .tf-real-text strong{
    font-size:13px;
  }

  #tofyFinalHome .tf-real-text small{
    font-size:6.5px;
  }

  #tofyFinalHome .tf-real-cta{
    margin-top:7px;
    padding:6px 10px;
    font-size:7px;
  }
}


/* TOFY HOME IMAGE CARDS V212 */

#tofyFinalHome .tf-image-category-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

#tofyFinalHome .tf-image-card{
  position:relative;
  display:block;
  width:100%;
  height:auto !important;
  aspect-ratio:1.50 / 1;
  padding:0 !important;
  margin:0;
  overflow:hidden;
  border-radius:18px;
  background:#071126;
  border:1px solid rgba(80,132,255,.48);
  box-shadow:
    0 10px 25px rgba(0,0,0,.34),
    0 0 15px rgba(56,109,255,.13);
  -webkit-tap-highlight-color:transparent;
}

#tofyFinalHome .tf-image-card::before,
#tofyFinalHome .tf-image-card::after{
  display:none !important;
  content:none !important;
}

#tofyFinalHome .tf-image-card > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:inherit;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}

#tofyFinalHome .tf-image-card:active{
  transform:scale(.975);
}

@media(min-width:851px){
  #tofyFinalHome .tf-image-category-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }

  #tofyFinalHome .tf-image-card{
    border-radius:22px;
  }
}

@media(max-width:390px){
  #tofyFinalHome .tf-image-category-grid{
    gap:8px;
  }

  #tofyFinalHome .tf-image-card{
    border-radius:15px;
  }
}

/* =========================================================
   TOFY PAY - FINAL PHONE HEADER
   PHONE ONLY - DO NOT TOUCH HERO / SLIDER
   ========================================================= */

@media (max-width:760px){

    /* Compact original header */
    body .topbar{
        position:sticky !important;
        top:0 !important;

        height:64px !important;
        min-height:64px !important;
        max-height:64px !important;

        padding:0 8px !important;
        padding-top:0 !important;
        padding-bottom:0 !important;

        margin:0 !important;

        display:grid !important;
        grid-template-columns:minmax(0,1fr) auto !important;

        align-items:center !important;

        overflow:visible !important;
    }

    /* Brand stays on right */
    body .topbar > .brand-reference{
        margin:0 !important;
        padding:0 !important;

        min-height:0 !important;
        height:46px !important;

        gap:7px !important;

        align-self:center !important;
    }

    body .topbar .brand-symbol{
        width:42px !important;
        height:42px !important;
    }

    body .topbar .brand-words>b{
        font-size:15px !important;
        line-height:17px !important;
    }

    body .topbar .brand-words>small{
        display:block !important;

        margin:1px 0 0 !important;

        font-size:6.5px !important;
        line-height:8px !important;

        white-space:nowrap !important;
    }

    body .topbar>nav{
        display:none !important;
    }

    /* Left tools */
    body .topbar .top-actions{
        height:44px !important;

        margin:0 !important;
        padding:0 !important;

        align-self:center !important;
        align-items:center !important;

        gap:5px !important;
    }

    body .topbar .theme-toggle,
    body .topbar .icon-btn,
    body .topbar .tofy-pwa-install{
        width:38px !important;
        min-width:38px !important;
        height:38px !important;

        padding:0 !important;
        margin:0 !important;

        border-radius:11px !important;
    }

    /* Existing desktop wallet/account remain hidden on phone */
    body .top-actions>.wallet-chip,
    body .top-actions>.account-btn,
    body .top-actions>.logout-link{
        display:none !important;
    }

    /*
     * Phone balance:
     * right half of header, immediately left of TOFY PAY logo.
     */
    body .tp-mobile-header-balance{
        display:flex !important;

        position:absolute !important;
        top:50% !important;
        right:154px !important;

        transform:translateY(-50%) !important;

        width:auto !important;
        min-width:92px !important;
        max-width:108px !important;
        height:32px !important;

        margin:0 !important;
        padding:0 8px !important;

        align-items:center !important;
        justify-content:center !important;

        gap:5px !important;

        border-radius:10px !important;

        border:1px solid rgba(72,126,255,.62) !important;

        background:
          linear-gradient(
            135deg,
            rgba(8,20,49,.98),
            rgba(31,16,72,.98)
          ) !important;

        box-shadow:
          0 0 11px rgba(60,115,255,.24),
          inset 0 1px 0 rgba(255,255,255,.06) !important;

        color:#fff !important;
        text-decoration:none !important;

        z-index:100 !important;

        overflow:hidden !important;
    }

    body .tp-mobile-header-balance span{
        flex:0 0 auto !important;

        color:#63cfff !important;
        font-size:9px !important;
    }

    body .tp-mobile-header-balance strong{
        min-width:0 !important;

        color:#fff !important;

        font-size:10px !important;
        font-weight:900 !important;

        direction:ltr !important;
        white-space:nowrap !important;

        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }
}

/* Desktop: absolutely no new phone balance */
@media (min-width:761px){
    body .tp-mobile-header-balance{
        display:none !important;
    }
}



/* TOFY MOBILE WALLET V267 */
@media (max-width:760px){

    body .tp-mobile-header-balance{
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;

        position:absolute !important;
        right:154px !important;
        top:50% !important;
        transform:translateY(-50%) !important;

        height:32px !important;
        min-width:96px !important;
        max-width:112px !important;

        padding:0 9px !important;
        margin:0 !important;

        align-items:center !important;
        justify-content:center !important;
        gap:6px !important;

        border-radius:11px !important;
        border:1px solid rgba(74,130,255,.7) !important;

        background:
            linear-gradient(
                135deg,
                #081631,
                #211150
            ) !important;

        box-shadow:
            0 0 13px rgba(67,124,255,.34),
            inset 0 1px 0 rgba(255,255,255,.08) !important;

        color:#fff !important;
        text-decoration:none !important;

        z-index:999 !important;
    }

    body .tp-mobile-header-balance span{
        color:#66d5ff !important;
        font-size:10px !important;
    }

    body .tp-mobile-header-balance strong{
        color:#fff !important;
        font-size:10px !important;
        font-weight:900 !important;
        direction:ltr !important;
        white-space:nowrap !important;
    }
}

@media (min-width:761px){
    body .tp-mobile-header-balance{
        display:none !important;
    }
}

/* ==================================================
   TOFY PAY V321 - HOME APPLICATION ICON CARDS
   ================================================== */

#tofyFinalHome .tf-v321-card{
    position:relative;
    isolation:isolate;
}

#tofyFinalHome .tf-v321-card > img{
    transition:opacity .25s ease,transform .25s ease;
}

#tofyFinalHome .tf-v321-card.tf-v321-loaded > img{
    opacity:.20;
    transform:scale(1.05);
}

#tofyFinalHome .tf-v321-apps{
    position:absolute;
    z-index:5;
    inset:22px 16px 48px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    align-content:center;
    pointer-events:none;
}

#tofyFinalHome .tf-v321-app-icon{
    position:relative;
    aspect-ratio:1;
    min-width:0;
    overflow:hidden;
    border-radius:18px;
    border:1px solid #8f65ff7a;
    background:linear-gradient(145deg,#111936,#090b18);
    box-shadow:0 8px 20px #0009,0 0 16px #6f43ff35;
}

#tofyFinalHome .tf-v321-app-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:inherit;
    display:block;
}

#tofyFinalHome .tf-v321-app-icon small{
    position:absolute;
    z-index:3;
    left:3px;
    right:3px;
    bottom:3px;
    padding:2px 1px;
    border:1px solid #ffffff35;
    border-radius:5px;
    background:linear-gradient(90deg,#11172eef,#54227def);
    color:#fff0a8;
    font-size:5px;
    line-height:1.2;
    font-weight:1000;
    text-align:center;
    white-space:nowrap;
    text-shadow:0 1px 2px #000;
}

#tofyFinalHome .tf-v321-title{
    position:absolute;
    z-index:6;
    left:10px;
    right:10px;
    bottom:13px;
    color:#fff;
    font-size:13px;
    font-weight:1000;
    text-align:center;
    text-shadow:0 2px 8px #000;
    pointer-events:none;
}

@media(max-width:600px){
    #tofyFinalHome .tf-v321-apps{
        inset:16px 10px 42px;
        gap:5px;
    }

    #tofyFinalHome .tf-v321-app-icon{
        border-radius:12px;
    }

    #tofyFinalHome .tf-v321-app-icon small{
        font-size:4px;
    }

    #tofyFinalHome .tf-v321-title{
        bottom:10px;
        font-size:11px;
    }
}
