
:root{
  --bg:#0b0b10;
  --surface:#17171d;
  --surface-2:#1c1c24;
  --line:#2b2b34;
  --text:#f7f7f8;
  --muted:#9a9aa5;
  --purple:#8b5cf6;
  --purple-soft:#5b3db7;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}

*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html,body{
  margin:0;
  min-height:100%;
  background:radial-gradient(circle at 50% -10%,#15151e 0,#0b0b10 38%,#09090d 100%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",sans-serif;
  overscroll-behavior:none;
}

body{
  min-height:100vh;
  padding-bottom:calc(118px + var(--safe-bottom));
}

button,input{
  font:inherit;
}

#content{
  max-width:760px;
  margin:0 auto;
  padding:
    calc(max(86px,var(--safe-top) + 58px))
    18px
    36px;
}

/* =========================
   HOME TOP
   ========================= */

.home-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:26px;
}

.brand-kicker{
  color:#aaaab4;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
}

.home-title{
  margin:7px 0 0;
  font-size:31px;
  line-height:1.12;
  font-weight:850;
}

.home-subtitle{
  margin:12px 0 0;
  color:#b0b0b9;
  font-size:14px;
  line-height:1.5;
}

.profile-button{
  width:52px;
  height:52px;
  flex:0 0 52px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:50%;
  overflow:hidden;
  background:#ececef;
  color:#24242a;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:800;
  box-shadow:0 8px 26px rgba(0,0,0,.28);
}

.profile-button img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =========================
   BANNER
   ========================= */

.carousel{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:25px;
  aspect-ratio:16/8.7;
  background:#111117;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.slides{
  display:flex;
  height:100%;
  transition:transform .42s cubic-bezier(.2,.8,.2,1);
}

.slide{
  min-width:100%;
  height:100%;
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    radial-gradient(circle at 78% 40%,rgba(130,82,255,.32),transparent 26%),
    linear-gradient(135deg,#160d28,#0f0f16 58%,#2a1225);
}

.slide:nth-child(2){
  background:
    radial-gradient(circle at 80% 25%,rgba(124,92,255,.26),transparent 28%),
    linear-gradient(135deg,#12121a,#17111f);
}

.slide:nth-child(3){
  background:
    radial-gradient(circle at 75% 45%,rgba(255,132,77,.18),transparent 30%),
    linear-gradient(135deg,#15131d,#111116);
}

.slide small{
  color:#9f7cff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.slide h2{
  margin:8px 0;
  max-width:72%;
  font-size:27px;
  line-height:1.12;
}

.slide p{
  margin:0;
  max-width:70%;
  color:#b4b4be;
  font-size:13px;
  line-height:1.55;
}

.dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin:12px 0 0;
}

.dot{
  width:7px;
  height:7px;
  border:0;
  border-radius:99px;
  padding:0;
  background:#4e4e58;
}

.dot.active{
  width:23px;
  background:#fff;
}

/* =========================
   GENERAL CARDS
   ========================= */

.section{
  margin-top:28px;
}

.section-title{
  margin:0 0 13px;
  font-size:20px;
  font-weight:850;
}

.card{
  background:linear-gradient(180deg,rgba(28,28,36,.96),rgba(20,20,27,.96));
  border:1px solid var(--line);
  border-radius:23px;
  padding:18px;
}

.video-box{
  margin-top:15px;
  aspect-ratio:16/9;
  border-radius:18px;
  border:1px solid #303039;
  background:linear-gradient(145deg,#08080b,#15151b);
  display:grid;
  place-items:center;
  color:#c6c6ce;
  font-weight:750;
}

.progress{
  height:6px;
  margin:14px 0 15px;
  border-radius:999px;
  background:#2a2a31;
  overflow:hidden;
}

.progress>span{
  display:block;
  width:35%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#995dff,#7246ee);
}

.cta{
  width:100%;
  padding:14px 16px;
  border:0;
  border-radius:14px;
  background:linear-gradient(90deg,#7d4ee8,#6240bb);
  color:#fff;
  font-weight:800;
}

.meta{
  color:var(--muted);
  font-size:12px;
}

/* =========================
   COURSES / BONUSES / RESOURCES
   ========================= */

.page-heading{
  text-align:center;
  font-size:26px;
  font-weight:850;
  margin:0 0 26px;
}

.list{
  display:grid;
  gap:10px;
}

.list-item{
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
}

.list-num{
  width:41px;
  height:41px;
  border-radius:12px;
  background:#24242c;
  display:grid;
  place-items:center;
  color:#c6c6ce;
  font-weight:800;
}

.list-copy{
  min-width:0;
  flex:1;
}

.list-copy strong{
  display:block;
  font-size:14px;
  line-height:1.35;
}

.list-copy small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:5px;
}

/* =========================
   SEARCH
   ========================= */

.search-input{
  width:100%;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  color:#fff;
  padding:15px 16px;
  outline:none;
}

.search-results{
  margin-top:14px;
}

/* =========================
   PROFILE
   ========================= */

.profile-page{
  text-align:center;
}

.profile-avatar{
  width:110px;
  height:110px;
  border-radius:50%;
  margin:0 auto 16px;
  background:#ededf0;
  color:#222;
  display:grid;
  place-items:center;
  font-size:36px;
  font-weight:800;
  overflow:hidden;
  border:1px solid #55555f;
}

.profile-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-name{
  font-size:28px;
  font-weight:850;
}

.profile-id{
  margin-top:7px;
  color:var(--muted);
}

.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:25px;
}

.stat{
  text-align:left;
  padding:17px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
}

.stat span{
  color:var(--muted);
  font-size:13px;
}

.stat strong{
  display:block;
  font-size:30px;
  margin-top:8px;
}

.menu{
  margin-top:14px;
  padding:8px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  text-align:left;
}

.menu-row{
  padding:16px 10px;
  border-bottom:1px solid #32323a;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.menu-row:last-child{
  border-bottom:0;
}

.active-status{
  color:#71d495;
  font-weight:800;
}

/* =========================
   LOCKED
   ========================= */

.locked{
  min-height:68vh;
  display:grid;
  place-items:center;
  text-align:center;
}

.locked-box{
  width:min(100%,460px);
  padding:26px 20px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:23px;
}

.locked-box p{
  color:var(--muted);
  line-height:1.6;
}

/* ==========================================================
   FIGMA NAVIGATION ONLY
   Source: QFJSKqfajiUAk4eUBd4tzO / node 1:486
   ========================================================== */

.figma-tabbar{
  position:fixed;
  left:50%;
  bottom:calc(24px + var(--safe-bottom));
  transform:translateX(-50%);
  width:min(402px,100%);
  min-width:320px;
  height:101px;
  padding:16px 24px 24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  z-index:999;
  pointer-events:none;
}

.figma-tabbar-main{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:auto;
}

.figma-tab-pills{
  flex:1 1 0;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:4px;
  border-radius:9999px;
  background:rgba(255,255,255,.20);
  box-shadow:0 2px 20px rgba(0,0,0,.10);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.figma-tab{
  flex:1 1 0;
  min-width:0;
  max-width:260px;
  margin-right:-10px;
  padding:8px;
  border:0;
  background:transparent;
  color:#000;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  overflow:hidden;
  border-radius:100px;
}

.figma-tab:last-child{
  margin-right:0;
}

.figma-tab.active{
  background:#ededed;
}

.figma-tab img{
  width:17px;
  height:17px;
  display:block;
  object-fit:contain;
}

.figma-tab span{
  min-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  color:#000;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",sans-serif;
  font-size:11px;
  font-weight:400;
  line-height:13px;
  letter-spacing:.06px;
}

.figma-tab-spacer{
  flex:0 0 16px;
  width:16px;
  align-self:stretch;
}

.figma-search{
  flex:0 0 60px;
  width:60px;
  height:60px;
  padding:0;
  border:0;
  border-radius:9999px;
  background:rgba(255,255,255,.20);
  box-shadow:0 2px 20px rgba(0,0,0,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.figma-search img{
  width:60px;
  height:60px;
  display:block;
  object-fit:contain;
}

.figma-tab:active,
.figma-search:active{
  transform:scale(.97);
}

@media(max-width:420px){
  .figma-tabbar{
    width:100%;
  }
}


/* ==========================================================
   FIGMA MOVING LIQUID GLASS ACTIVE PILL
   Based on Section 1 variants: 1:486, 2:689, 2:690, 2:723
   ========================================================== */

.figma-tab-pills{
  position:relative;
  isolation:isolate;
}

.figma-active-pill{
  position:absolute;
  top:4px;
  bottom:4px;
  left:4px;
  width:calc((100% - 8px) / 4 + 10px);
  border-radius:100px;
  background:rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.58);
  box-shadow:
    0 2px 20px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.46);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  transform:translateX(0);
  transition:
    transform .36s cubic-bezier(.22,.9,.28,1),
    width .24s ease,
    box-shadow .24s ease;
  z-index:0;
  pointer-events:none;
}

.figma-tab{
  position:relative;
  z-index:1;
  background:transparent !important;
  transition:transform .18s ease, opacity .18s ease;
}

.figma-tab.active{
  background:transparent !important;
}

.figma-tab.active img,
.figma-tab.active span{
  opacity:1;
}

.figma-tab:not(.active) img,
.figma-tab:not(.active) span{
  opacity:.92;
}

.figma-tabbar[data-active="0"] .figma-active-pill{
  transform:translateX(0%);
}

.figma-tabbar[data-active="1"] .figma-active-pill{
  transform:translateX(calc(100% - 10px));
}

.figma-tabbar[data-active="2"] .figma-active-pill{
  transform:translateX(calc(200% - 20px));
}

.figma-tabbar[data-active="3"] .figma-active-pill{
  transform:translateX(calc(300% - 30px));
}

.figma-search{
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.figma-search.search-active{
  background:rgba(255,255,255,.28);
  box-shadow:
    0 2px 20px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.figma-search:active{
  transform:scale(.94);
}


/* ==========================================================
   V8 — FINAL FIGMA MOVING LIQUID GLASS NAVIGATION
   Source: QFJSKqfajiUAk4eUBd4tzO / Section 1:405
   States: Home 1:486 / Courses 2:689 / Bonuses 2:690 / Resources 2:831
   Only navigation is overridden here. All other UI remains unchanged.
   ========================================================== */

.figma-tabbar{
  width:min(402px,100%);
  min-width:320px;
  height:101px;
  padding:16px 24px 24px;
}

.figma-tabbar-main{
  width:100%;
}

.figma-tab-pills{
  position:relative;
  flex:1 1 0;
  min-width:0;
  padding:4px;
  border-radius:9999px;
  background:rgba(255,255,255,.20);
  box-shadow:0 2px 20px rgba(0,0,0,.10);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  isolation:isolate;
}

.figma-tab{
  position:relative;
  z-index:2;
  flex:1 1 0;
  min-width:0;
  max-width:260px;
  margin-right:-10px;
  padding:8px;
  border-radius:100px;
  background:transparent !important;
  transition:transform .18s ease;
}

.figma-tab:last-child{
  margin-right:0;
}

.figma-tab img{
  width:17px;
  height:17px;
}

.figma-tab span{
  font-size:11px;
  line-height:13px;
  letter-spacing:.06px;
  font-weight:400;
}

.figma-active-pill{
  position:absolute;
  top:4px;
  bottom:4px;
  left:4px;
  width:calc((100% - 8px) / 4 + 10px);
  border-radius:100px;

  /* iOS-style liquid-glass active state */
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.34) 0%,
      rgba(255,255,255,.20) 55%,
      rgba(255,255,255,.14) 100%);
  border:1px solid rgba(255,255,255,.62);

  box-shadow:
    0 2px 20px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.62),
    inset 0 -1px 0 rgba(255,255,255,.10);

  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);

  z-index:1;
  pointer-events:none;

  transition:
    transform .38s cubic-bezier(.22,.86,.26,1),
    box-shadow .22s ease,
    background .22s ease;
}

/* Exact 4 Figma active states */
.figma-tabbar[data-active="0"] .figma-active-pill{
  transform:translateX(0);
}
.figma-tabbar[data-active="1"] .figma-active-pill{
  transform:translateX(calc(100% - 10px));
}
.figma-tabbar[data-active="2"] .figma-active-pill{
  transform:translateX(calc(200% - 20px));
}
.figma-tabbar[data-active="3"] .figma-active-pill{
  transform:translateX(calc(300% - 30px));
}

.figma-tab-spacer{
  flex:0 0 16px;
  width:16px;
}

.figma-search{
  flex:0 0 56px;
  width:56px;
  height:56px;
  padding:0;
  border-radius:9999px;
  background:rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 2px 20px rgba(0,0,0,.10);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  transition:
    transform .18s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.figma-search img{
  width:56px;
  height:56px;
}

.figma-search.search-active{
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.34),
      rgba(255,255,255,.18));
  box-shadow:
    0 2px 20px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.figma-tab:active,
.figma-search:active{
  transform:scale(.96);
}


/* ==========================================================
   V9 — 5-IN-1 MOVING LIQUID GLASS NAVIGATION
   Based on user's latest Section 2 design.
   Keeps the complete prior Mini App UI unchanged.
   ========================================================== */

.figma-tabbar-five{
  position:fixed;
  left:50%;
  bottom:calc(22px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  width:min(calc(100% - 40px),390px);
  min-width:320px;
  height:auto;
  padding:0;
  z-index:999;
  pointer-events:auto;
}

.figma-tab-pills-five{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:center;
  padding:4px;
  border-radius:9999px;

  background:
    linear-gradient(180deg,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,.14) 100%);

  border:1px solid rgba(255,255,255,.36);

  box-shadow:
    0 10px 30px rgba(0,0,0,.16),
    0 2px 20px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.34);

  backdrop-filter:blur(10px) saturate(155%);
  -webkit-backdrop-filter:blur(10px) saturate(155%);

  overflow:visible;
  isolation:isolate;
}

.figma-tabbar-five .figma-tab{
  position:relative;
  z-index:2;
  margin:0 !important;
  width:100%;
  min-width:0;
  max-width:none;
  height:52px;
  padding:6px 3px;
  border-radius:100px;
  border:0;
  background:transparent !important;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;

  color:#111;
  transition:
    transform .18s ease,
    color .22s ease,
    opacity .22s ease;
}

.figma-tabbar-five .figma-tab img{
  width:17px;
  height:17px;
  object-fit:contain;
  display:block;

  transition:
    filter .22s ease,
    opacity .22s ease,
    transform .22s ease;
}

.figma-tabbar-five .figma-tab span{
  color:#111;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",sans-serif;
  font-size:11px;
  line-height:13px;
  letter-spacing:.06px;
  font-weight:400;
  white-space:nowrap;

  transition:color .22s ease;
}

/* moving active capsule */
.figma-active-pill-five{
  position:absolute;
  z-index:1;
  top:4px;
  bottom:4px;
  left:4px;
  width:calc((100% - 8px) / 5);
  border-radius:100px;

  background:
    linear-gradient(180deg,
      rgba(255,255,255,.38) 0%,
      rgba(255,255,255,.22) 58%,
      rgba(255,255,255,.15) 100%);

  border:1px solid rgba(255,255,255,.64);

  box-shadow:
    0 2px 16px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.74),
    inset 0 -1px 0 rgba(255,255,255,.12);

  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  pointer-events:none;

  transform:translateX(0);
  transition:
    transform .38s cubic-bezier(.22,.86,.26,1),
    box-shadow .22s ease,
    background .22s ease;
}

/* 5 active states */
.figma-tabbar-five[data-active="0"] .figma-active-pill-five{
  transform:translateX(0);
}
.figma-tabbar-five[data-active="1"] .figma-active-pill-five{
  transform:translateX(100%);
}
.figma-tabbar-five[data-active="2"] .figma-active-pill-five{
  transform:translateX(200%);
}
.figma-tabbar-five[data-active="3"] .figma-active-pill-five{
  transform:translateX(300%);
}
.figma-tabbar-five[data-active="4"] .figma-active-pill-five{
  transform:translateX(400%);
}

/* Active color from the user's new design */
.figma-tabbar-five .figma-tab.active span{
  color:#0788ff;
  font-weight:500;
}

.figma-tabbar-five .figma-tab.active img{
  /*
    Approximate black-to-iOS-blue conversion while keeping the exact uploaded SVG.
    The source icons remain unchanged files.
  */
  filter:
    invert(42%)
    sepia(97%)
    saturate(4500%)
    hue-rotate(193deg)
    brightness(103%)
    contrast(105%);
  transform:translateY(-1px);
}

.figma-tabbar-five .figma-tab:not(.active) img{
  filter:none;
}

.figma-tabbar-five .figma-tab:active{
  transform:scale(.95);
}

/* Ensure page content stays clear of nav */
body{
  padding-bottom:max(105px,calc(105px + env(safe-area-inset-bottom,0px)));
}

@media(max-width:360px){
  .figma-tabbar-five{
    width:calc(100% - 24px);
    min-width:0;
  }

  .figma-tabbar-five .figma-tab span{
    font-size:10px;
  }
}


/* ==========================================================
   V10 — ACTIVE COLOR UPDATE ONLY
   Keep V9 moving Liquid Glass navigation.
   Active icon + active label remain BLACK.
   ========================================================== */

.figma-tabbar-five .figma-tab.active span{
  color:#111 !important;
  font-weight:400;
}

.figma-tabbar-five .figma-tab.active img{
  filter:none !important;
  transform:translateY(-1px);
}

.figma-tabbar-five .figma-tab:not(.active) img{
  filter:none !important;
}

.figma-tabbar-five .figma-tab span{
  color:#111 !important;
}
