/* ═══════════════════════════════════════════════════════
   RJICT ACADEMY — NAV v3 (PLI-style structure)
   Top navbar full-width + bottom tab bar on mobile
   Sidebar hidden — content full width
═══════════════════════════════════════════════════════ */

/* ── SIDEBAR: hidden on mobile, visible on desktop ─ */
.sidebar { display: none !important; }

@media(min-width: 1024px) {
  .sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; bottom: 0;
    width: 220px;
    background: var(--card);
    border-right: 1px solid var(--line);
    z-index: 700;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sidebar-nav { flex: 1 !important; }
  .sidebar-foot {
    flex-shrink: 0;
    padding: 12px;
    border-top: 1px solid var(--line);
  }
  .main-content, .main {
    margin-left: 220px !important;
  }
  .top-navbar {
    left: 0 !important;
  }
}

/* ── TOP NAVBAR ───────────────────────────────────── */
.top-navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 62px; z-index: 800;
  background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 20px; gap: 12px;
}
[data-theme="light"] .top-navbar { box-shadow: 0 1px 8px rgba(0,0,0,.08); }

.tnav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.tnav-logo img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
.tnav-brand { font-family: var(--fd); font-size: .92rem; color: var(--text); white-space: nowrap; }
.tnav-brand em { font-style: normal; color: var(--gold); }

.tnav-spacer { flex: 1; }

.tnav-right { display: flex; align-items: center; gap: 8px; }

/* User pill */
.tnav-user { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  border-radius: 30px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
[data-theme="light"] .tnav-user { background: rgba(0,0,0,.04); }
.tnav-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: .78rem; color: #fff;
  background: linear-gradient(135deg,var(--pink),var(--violet)); }
.tnav-av img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }


/* Icon buttons */
.tnav-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; text-decoration: none; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; position: relative;
  transition: all .2s; flex-shrink: 0;
}
.tnav-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.tnav-icon:hover { border-color: var(--pink); color: var(--pink); background: rgba(232,24,109,.06); }
.tnav-notif-badge {
  position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: .58rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
}

/* Theme toggle inside navbar — sliding pill */
.tnav-theme {
  width: 44px; height: 24px; border-radius: 12px; border: 1.5px solid var(--line);
  background: rgba(255,255,255,.06); position: relative; flex-shrink: 0; cursor: pointer;
  transition: background .3s, border-color .3s;
}
[data-theme="light"] .tnav-theme { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.15); }
.tnav-knob {
  position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  transition: transform .3s;
}
[data-theme="light"] .tnav-knob { transform: translateX(20px); }

/* ── MAIN CONTENT ──────────────────────────────────── */
.main-content {
  padding: 78px 20px 90px !important;
  min-height: 100vh; position: relative; z-index: 2;
}
@media(min-width: 769px) {
  .main-content { padding: 78px 32px 40px !important; }
}
@media(min-width: 1100px) {
  .main-content { padding: 78px 48px 40px !important; max-width: 1400px; margin-left: 220px !important; }
  .top-navbar { padding: 0 48px; }
}

/* ── BOTTOM TAB BAR ────────────────────────────────── */
.bottom-tabs {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; z-index: 750;
  background: var(--card); border-top: 1px solid var(--line);
  align-items: stretch;
}
[data-theme="light"] .bottom-tabs { box-shadow: 0 -1px 8px rgba(0,0,0,.08); }

.btab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--muted); font-size: .55rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px; border: none; background: transparent;
  cursor: pointer; transition: color .2s; padding: 8px 2px; min-width: 0;
}
.btab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.btab.active { color: var(--pink); }
.btab.active svg { stroke: var(--pink); }
.btab:hover { color: var(--text); }

/* More tray */
.btab-more-tray {
  display: none; position: fixed; bottom: 64px; left: 0; right: 0; z-index: 740;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 16px; border-radius: 20px 20px 0 0;
}
.btab-more-tray.open { display: block; }
.btab-more-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.btab-more-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line);
  text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; transition: all .2s;
}
.btab-more-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btab-more-item.active, .btab-more-item:hover { color: var(--pink); border-color: rgba(232,24,109,.25); background: rgba(232,24,109,.06); }
.btab-more-overlay { display: none; position: fixed; inset: 0; z-index: 730; }
.btab-more-overlay.open { display: block; }

/* ── DESKTOP: hide bottom tabs, show wider layout ──── */
@media(min-width: 769px) {
  .bottom-tabs { display: none; }
  .main-content { padding-bottom: 40px !important; }
}

/* ── NAV BUTTONS (shared across all public pages) ── */
.nav-btn { display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 20px;
  border-radius:10px;font-family:var(--fb);font-size:.8rem;font-weight:700;letter-spacing:.5px;
  text-transform:uppercase;cursor:pointer;transition:all .22s;text-decoration:none;white-space:nowrap; }
.btn-ghost { display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 20px;
  border-radius:10px;font-family:var(--fb);font-size:.8rem;font-weight:700;letter-spacing:.5px;
  text-transform:uppercase;cursor:pointer;transition:all .22s;text-decoration:none;white-space:nowrap;
  background:transparent;color:var(--text,#fff);border:1.5px solid var(--border,rgba(255,255,255,.11)); }
.btn-ghost:hover { border-color:var(--pink,#e8186d);color:var(--pink,#e8186d);background:rgba(232,24,109,.06); }
[data-theme="light"] .btn-ghost { color:var(--text,#0e1018);border-color:rgba(0,0,0,.18); }
[data-theme="light"] .btn-ghost:hover { border-color:var(--pink,#e8186d);color:var(--pink,#e8186d); }
.btn-primary.nav-btn-desktop, a.btn-primary.nav-btn-desktop {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 22px;
  border-radius:10px;font-family:var(--fb);font-size:.8rem;font-weight:700;letter-spacing:.5px;
  text-transform:uppercase;cursor:pointer;transition:all .22s;text-decoration:none;white-space:nowrap;
  background:var(--pink,#e8186d);color:#fff;border:none;box-shadow:0 4px 18px rgba(232,24,109,.3); }
.btn-primary.nav-btn-desktop:hover, a.btn-primary.nav-btn-desktop:hover {
  background:var(--rose,#c0003a);transform:translateY(-2px);box-shadow:0 8px 28px rgba(232,24,109,.4); }


nav#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 960; height: 66px;
  background: rgba(10,12,26,.88); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border, rgba(255,255,255,.11)); transition: background .3s; }
[data-theme="light"] nav#navbar { background: rgba(240,236,229,.94); }
.nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 44px; height: 100%;
  display: flex; align-items: center; gap: 32px; position: relative; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo { height: 44px; width: auto; object-fit: contain; }
.nav-name { font-family: var(--fd); font-size: 1.02rem; color: var(--text); white-space: nowrap; }
.nav-name em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 34px; list-style: none; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--muted); text-decoration: none; position: relative; padding-bottom: 3px; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--pink); transition: width .3s; }
.nav-links a:hover,.nav-links a.active { color: var(--pink); }
.nav-links a:hover::after,.nav-links a.active::after { width: 100%; }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media(max-width:900px){
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px 0 20px; }
  .nav-btn-desktop { display: none !important; }
  .nav-ham-btn { display: flex !important; }
}
.nav-ham-btn { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; padding: 6px; margin-right: -4px; cursor: pointer; flex-shrink: 0; }
.nav-ham-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-ham-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--pink); }
.nav-ham-btn.open span:nth-child(2) { opacity: 0; }
.nav-ham-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--pink); }
.t-toggle { display: flex; align-items: center; width: 44px; height: 24px; border-radius: 12px;
  border: 1.5px solid var(--border, rgba(255,255,255,.11)); background: rgba(255,255,255,.05);
  cursor: pointer; position: relative; transition: all .3s; }
[data-theme="light"] .t-toggle { background: rgba(0,0,0,.06); }
.theme-btn { display: flex; align-items: center; width: 44px; height: 24px; border-radius: 12px;
  border: 1.5px solid var(--line); background: rgba(255,255,255,.06); cursor: pointer; position: relative; }
[data-theme="light"] .theme-btn { background: rgba(0,0,0,.06); }
.t-knob { position: absolute; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); transition: transform .3s, background .3s; }
[data-theme="light"] .t-knob { transform: translateX(20px); background: var(--gold); }

/* Old theme-btn (kept for compat) */

