/* =====================================================
   TOP BAR (OS STYLE)
===================================================== */
.tb-topbar-native{
  position:fixed;
  top:0;
  left:70px;
  width:calc(100% - 70px);
  height:56px;
  z-index:3000;

  background:#000;
  border-bottom:1px solid #0f172a;

  display:flex;
  align-items:center;
}

/* INNER WRAPPER — THIS FIXES CENTERING */
.tb-topbar-inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 16px;
}

.tb-top-left{
  font-size:13px;
  font-weight:600;
  color:#c7d2fe;
}

.tb-top-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.tb-top-context,
.tb-ref-pill{
  height:34px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:8px;

  border-radius:999px;

  /* 🔑 REMOVE HARD BORDERS */
  border:none;

  /* Soft surface instead of outline */
  background:rgba(255,255,255,.06);

  /* Subtle depth */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 6px 18px rgba(0,0,0,.45);

  color:#e5e7eb;
  font-size:12px;
  font-weight:700;
  cursor:pointer;

  transition:
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}
.tb-top-context:hover,
.tb-ref-pill:hover{
  background:rgba(255,255,255,.10);
  transform:translateY(-0.5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 8px 22px rgba(0,0,0,.55);
}

.tb-ref-pill{
  color:#fde68a;
  background:
    linear-gradient(
      180deg,
      rgba(250,204,21,.14),
      rgba(250,204,21,.06)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 6px 18px rgba(0,0,0,.45);
}

.tb-top-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  overflow:hidden;

  border:none;
  background:rgba(255,255,255,.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 6px 18px rgba(0,0,0,.45);

  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.tb-top-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;              /* 🔑 fixes centering */
}

.tb-logout{
  width:32px;
  height:32px;
  border-radius:50%;

  border:none;
  background:rgba(255,255,255,.06);
  color:#cbd5f5;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 6px 18px rgba(0,0,0,.45);

  cursor:pointer;
}

.tb-logout:hover{
  background:rgba(239,68,68,.20);
  color:#fff;
}

@media(max-width:900px){
  .tb-topbar-native{
    left:0;
    width:100%;
  }

  .tb-topbar-inner{
    justify-content:flex-end;
    padding:0 14px;
  }

  .tb-top-left{
    display:none;
  }
}


/* ================================
   LOGIN ENTRY (LOGGED OUT)
================================ */

.tb-login-entry{
  display:flex;
  align-items:center;
  gap:10px;

  height:34px;
  padding:0 14px;

  border-radius:999px;
  text-decoration:none;

  background:rgba(255,255,255,.06);
  color:#e5e7eb;
  font-size:12px;
  font-weight:700;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 6px 18px rgba(0,0,0,.45);

  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

.tb-login-entry:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 10px 28px rgba(0,0,0,.6);
}

.tb-login-entry-icon{
  width:20px;
  height:20px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:14px;
  color:#ffffff;
}

.tb-login-entry-text{
  letter-spacing:.02em;
}


/* =========================
   FULLSCREEN IDENTITY MODE
========================= */

.tbp-shell{
  position:fixed;
  inset:0;
  z-index:4000;
  display:none;
}

.tbp-shell.show{
  display:flex;
  align-items:center;
  justify-content:center;
}

.tbp-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(6px);
}

.tbp-center{
  position:relative;
  text-align:center;
  max-width:900px;
  padding:40px 24px;
}

.tbp-heading{
  font-size:36px;
  font-weight:800;
  margin-bottom:40px;
  color:#fff;
}

.tbp-subheading{
  font-size:18px;
  margin:50px 0 20px;
  color:#cbd5e1;
}

.tbp-grid{
  display:flex;
  gap:40px;
  justify-content:center;
}

.tbp-grid.small{
  gap:30px;
}

.tbp-card{
  width:180px;
  height:180px;

  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border:2px solid transparent;

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

  cursor:pointer;
  transition:.25s ease;
}

.tbp-card:hover{
  transform:scale(1.05);
  background:rgba(99,102,241,.15);
}

.tbp-card.active{
  border-color:#6366f1;
  transform:scale(1.08);
  box-shadow:0 20px 60px rgba(79,70,229,.5);
}

.tbp-card-icon{
  font-size:36px;
  color:#fff;
}

.tbp-card-title{
  font-weight:700;
  color:#fff;
  font-size:16px;
}

.tbp-card-sub{
  font-size:12px;
  color:#94a3b8;
  text-align:center;
  padding:0 12px;
}

.tbp-apply{
  margin-top:60px;
  padding:14px 40px;
  border-radius:999px;
  border:none;
  background:linear-gradient(180deg,#6366f1,#4f46e5);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 20px 50px rgba(79,70,229,.4);
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 900px){

  .tbp-center{
    padding:60px 20px 40px;
  }

  .tbp-heading{
    font-size:28px;
    line-height:1.2;
    margin-bottom:30px;
  }

  .tbp-subheading{
    font-size:16px;
    margin:40px 0 16px;
  }

  /* Switch to grid for better wrapping */
  .tbp-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:20px;
  }

  .tbp-grid.small{
    grid-template-columns:repeat(2, 1fr);
    gap:16px;
  }

  .tbp-card{
    width:100%;
    height:140px;
    border-radius:16px;
  }

  .tbp-card-icon{
    font-size:28px;
  }

  .tbp-card-title{
    font-size:14px;
  }

  .tbp-card-sub{
    font-size:11px;
  }

  .tbp-apply{
    margin-top:40px;
    width:100%;
    max-width:320px;
    padding:14px 0;
  }

}
