:root{
  --bg: #070707;
  --panel: rgba(15,15,15,.70);
  --panel2: rgba(12,12,12,.60);
  --stroke: rgba(255,255,255,.10);
/* ============================= */
/* PREMIUM PORTAL BACKGROUND */
/* ============================= */

body{
  background-color:#000;
  position:relative;
  overflow-x:hidden;
}

/* Watermark Logo */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:url('../img/logo-bg.png') center center no-repeat;
  background-size:600px;
  opacity:1.04;
  z-index:-2;
  animation: luxuryFloat 25s ease-in-out infinite;
}

/* Dark Overlay */
body::after{
  content:"";
  position:fixed;
  inset:0;
  background:radial-gradient(circle at center,
              rgba(255,215,0,0.05) 0%,
              rgba(0,0,0,0.85) 60%);
  z-index:-1;
}

/* Slow floating animation */
@keyframes luxuryFloat{
  0%{
    transform:translateY(0px) scale(1);
  }
  50%{
    transform:translateY(-20px) scale(1.02);
  }
  100%{
    transform:translateY(0px) scale(1);
  }
}
  /* GOLD (not brown) */
  --gold: #f6d36b;
  --gold2: #ffea9a;
  --goldDeep: #caa246;

  --text: #f3f3f3;
  --muted: rgba(255,255,255,.75);
  --shadow: 0 22px 60px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);

  /* Premium black textured feel */
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(246,211,107,.12), transparent 55%),
    radial-gradient(900px 500px at 80% 0%, rgba(255,234,154,.10), transparent 58%),
    radial-gradient(700px 500px at 60% 80%, rgba(202,162,70,.08), transparent 55%),
    linear-gradient(180deg, #070707, #050505 60%, #040404);
}

/* Layout */
.portal-body{
  display:flex;
  min-height:100vh;
}

/* Sidebar */
.sidebar{
  width: 280px;
  background: rgba(10,10,10,.92);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand{
  padding: 12px 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
}

.sidebar-badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 11px;
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 10px 22px rgba(246,211,107,.12);
}

.sidebar-title{
  margin-top: 12px;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: .2px;
}

.sidebar-sub{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding: 8px 6px;
}

.nav-item{
  display:flex;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: rgba(255,255,255,.86);
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.nav-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}
.nav-item.active{
  background: rgba(246,211,107,.10);
  border-color: rgba(246,211,107,.22);
  color: var(--gold2);
}

.sidebar-footer{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.logout{
  display:flex;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
}

/* Main */
.main{
  flex:1;
  padding: 22px;
  max-width: 1200px;
}

/* Cards */
.card{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* Banner */
.banner{
  padding: 10px;
}
.banner-img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}

/* Typography */
.h1{
  margin:0 0 10px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.3px;
  color: var(--gold2);
}
.h2{
  margin:0 0 6px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.2px;
  color: var(--gold2);
}
.muted{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}

/* Welcome */
.welcome{
  margin-top: 14px;
  padding: 18px;
}
.welcome-inner{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  align-items:flex-start;
}
.mini-profile{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mini-chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246,211,107,.18);
  background: rgba(246,211,107,.08);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 12px;
}

/* Announcement */
.announcement{
  margin-top: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(246,211,107,.10), rgba(15,15,15,.70));
}
.announcement-top{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom: 10px;
}
.pill{
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: .3px;
  border: 1px solid rgba(246,211,107,.22);
  background: rgba(246,211,107,.10);
  color: var(--gold2);
  font-size: 12px;
}
.pill-soft{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
}
.announcement-text{
  margin: 10px 0 0;
  line-height: 1.75;
  color: rgba(255,255,255,.90);
  font-weight: 650;
}

/* Quick Actions */
.quick{
  margin-top: 14px;
  padding: 18px;
}
.section-head{
  margin-bottom: 12px;
}
.quick-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quick-btn{
  text-decoration:none;
  text-align:center;
  padding: 14px 14px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: .2px;
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, filter .18s ease;
}
.quick-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

/* Footer */
.portal-foot{
  margin-top: 16px;
  color: rgba(255,255,255,.70);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 2px 0;
}

/* Motion (professional, not distracting) */
.motion{
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .55s ease forwards;
}
.banner.motion{ animation-delay: .03s; }
.welcome.motion{ animation-delay: .08s; }
.announcement.motion{ animation-delay: .13s; }
.quick.motion{ animation-delay: .18s; }

@keyframes fadeUp{
  to{ opacity:1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 980px){
  .sidebar{ width: 240px; }
  .quick-grid{ grid-template-columns: 1fr; }
  .welcome-inner{ flex-direction: column; }
  .mini-profile{ justify-content:flex-start; }
}
@media (max-width: 760px){
  .portal-body{ flex-direction: column; }
  .sidebar{
    position: relative;
    width: 100%;
    height: auto;
  }
  .sidebar-footer{
    position: relative;
    left: auto; right:auto; bottom:auto;
    margin-top: 12px;
  }
  .main{ padding: 16px; }
}








:root{
  --bg:#070707;
  --bg2:#0b0b0b;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.09);
  --border:rgba(255,255,255,.10);
  --text:#f5f5f5;
  --muted:rgba(255,255,255,.72);
  --gold:#d4af37;          /* rich gold */
  --gold2:#ffd76a;
  --shadow: 0 18px 45px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 5%, rgba(212,175,55,.18), transparent 55%),
    radial-gradient(800px 600px at 85% 15%, rgba(255,215,106,.12), transparent 55%),
    radial-gradient(900px 700px at 40% 90%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 55%, #060606 100%);
}

/* subtle texture */
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 20px 20px;
  opacity:.12;
  pointer-events:none;
  mix-blend-mode: overlay;
}

a{color:inherit;text-decoration:none}
.container{width:min(1200px,92%);margin:0 auto}

/* Layout */
.portal-shell{
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height:100vh;
}

/* Sidebar */
.portal-side{
  position:sticky; top:0;
  height:100vh;
  padding:18px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-right:1px solid var(--border);
  backdrop-filter: blur(10px);
}
.portal-brand{
  display:flex; align-items:center; gap:10px;
  padding:10px 10px 16px;
  border-bottom:1px solid var(--border);
  margin-bottom:12px;
}
.portal-brand .dot{
  width:10px;height:10px;border-radius:999px;
  background: radial-gradient(circle, var(--gold2), var(--gold));
  box-shadow: 0 0 18px rgba(212,175,55,.45);
}
.portal-brand .title{
  font-weight:900; letter-spacing:.2px;
}
.portal-nav a{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px;
  border-radius:12px;
  color:var(--text);
  font-weight:800;
  opacity:.92;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
.portal-nav a:hover{
  background: rgba(255,255,255,.07);
  transform: translateX(3px);
  opacity:1;
}
.portal-nav a.active{
  background: linear-gradient(90deg, rgba(212,175,55,.18), rgba(255,255,255,.06));
  border:1px solid rgba(212,175,55,.25);
}

/* Main */
.portal-main{
  padding:18px 0 60px;
}

/* Top banner image */
.portal-banner{
  margin: 0 auto 18px;
  width:min(1100px,96%);
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(212,175,55,.20);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}
.portal-banner img{
  width:100%;
  display:block;
}

/* Page heading card */
.portal-hero{
  width:min(1100px,96%);
  margin: 0 auto 18px;
  padding: 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.portal-hero h1{
  margin:0 0 8px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 950;
  letter-spacing:-.3px;
}
.portal-hero p{
  margin:0;
  color: var(--muted);
  line-height:1.7;
  max-width: 980px;
}

/* Gold accent underline */
.gold-line{
  height:2px;
  width: 120px;
  margin-top:12px;
  background: linear-gradient(90deg, transparent, var(--gold2), var(--gold), transparent);
  opacity:.95;
}

/* Action cards */
.grid{
  width:min(1100px,96%);
  margin: 0 auto;
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card{
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(212,175,55,.25);
  background: rgba(255,255,255,.075);
}
.card h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 950;
}
.card p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 950;
  cursor:pointer;
  border: 1px solid rgba(212,175,55,.35);
  background: linear-gradient(180deg, rgba(212,175,55,.24), rgba(255,255,255,.06));
  color: #fff;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn:active{transform: translateY(0)}
.btn small{opacity:.85;font-weight:800}

/* Simple professional appear animation */
.reveal{
  opacity:0;
  transform: translateY(12px);
  animation: fadeUp .6s ease forwards;
}
.reveal.d2{animation-delay:.08s}
.reveal.d3{animation-delay:.16s}
@keyframes fadeUp{to{opacity:1; transform: translateY(0)}}

/* Responsive */
@media (max-width: 980px){
  .portal-shell{grid-template-columns: 1fr}
  .portal-side{position:relative;height:auto}
  .grid{grid-template-columns: 1fr}
}

/* ===== NO-BANNER STAFF HEADER FIX ===== */
.portal-pagehead{
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.portal-pagehead h1{
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
}
.portal-pagehead p{
  margin: 10px 0 0;
  max-width: 820px;
  opacity: .9;
  line-height: 1.55;
}

/* ===== Professional alignment for ALL portal pages ===== */
.portal-main{
  flex: 1;
  display: flex;              /* allows centering a container */
  justify-content: center;    /* center content column */
  padding: 42px 46px;
}

.portal-container{
  width: 100%;
  max-width: 1080px;          /* professional fixed content width */
}

/* Make headings consistent */
.portal-pagehead{
  margin: 0 0 22px 0;
}

.portal-pagehead h1{
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.portal-pagehead p{
  margin: 12px 0 0;
  max-width: 920px;
}

/* Make grids consistent */
.grid{
  width: 100%;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* Make cards consistent */
.card{
  width: 100%;
  box-sizing: border-box;
}

/* Optional: keep sidebar stable */
.portal-side{
  flex: 0 0 260px; /* fixed sidebar width */
}

/* Sidebar logout special style */
.portal-nav a.logout-link{
  margin-top: 20px;
  background: linear-gradient(135deg, #121111, #cf9503);
  border: 1px solid rgba(255, 157, 0, 0.3);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  transition: all .3s ease;
}

.portal-nav a.logout-link:hover{
  background: #cd2204;
  border-color: rgba(255, 34, 0, 0.644);
  box-shadow: 0 8px 20px rgba(255, 34, 0, 0.438);
  transform: translateY(-2px);
}

/* ===================================================
   ULTRA PREMIUM PORTAL MOBILE NAVIGATION
=================================================== */

:root{
  --portal-gold:#d6b35a;
  --portal-gold-light:#f0d48a;
  --portal-dark:#0b0b0b;
  --portal-panel:#111;
  --portal-ease:cubic-bezier(.22,.9,.32,1);
}

/* Prevent background scroll */
body.portal-nav-open{
  overflow:hidden;
}

/* =========================
   TOPBAR
========================= */
.portal-topbar{
  display:none;
}

@media (max-width:980px){

  .portal-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 22px;
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1001;

    background:rgba(12,12,12,.85);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border-bottom:1px solid rgba(214,179,90,.25);
  }

  .portal-topbar-title{
    font-weight:900;
    letter-spacing:.5px;
    color:#f5f2ea;
  }

  .portal-main{
    padding-top:85px;
  }
}

/* =========================
   HAMBURGER
========================= */
.portal-menu-toggle{
  width:36px;
  height:28px;
  border:none;
  background:transparent;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-end;
  position:relative;
}

.portal-menu-toggle span{
  height:3px;
  width:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--portal-gold),var(--portal-gold-light));
  transition:all .4s var(--portal-ease);
}

.portal-menu-toggle span:nth-child(2){ width:75%; }
.portal-menu-toggle span:nth-child(3){ width:55%; }

/* Animate to X */
body.portal-nav-open .portal-menu-toggle span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
  width:100%;
}
body.portal-nav-open .portal-menu-toggle span:nth-child(2){
  opacity:0;
}
body.portal-nav-open .portal-menu-toggle span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
  width:100%;
}

/* Subtle glow */
body.portal-nav-open .portal-menu-toggle{
  filter:drop-shadow(0 0 8px rgba(214,179,90,.6));
}

/* =========================
   SIDEBAR SLIDE SYSTEM
========================= */
@media (max-width:980px){

  .portal-side{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    width:300px;
    transform:translateX(-110%);
    transition:transform .5s var(--portal-ease);
    z-index:1002;

    background:
      radial-gradient(600px 400px at 20% 0%, rgba(214,179,90,.08), transparent 60%),
      linear-gradient(180deg,#111,#0a0a0a);

    box-shadow:0 0 60px rgba(0,0,0,.8);
  }

  body.portal-nav-open .portal-side{
    transform:translateX(0);
  }
}

/* =========================
   OVERLAY
========================= */
.portal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .4s ease;
  z-index:1000;
}

body.portal-nav-open .portal-overlay{
  opacity:1;
  pointer-events:auto;
}