:root{
  --bg:#F7F7FA;
  --surface:#FFFFFF;
  --text:#111827;
  --muted:#6B7280;
  --border:#E5E7EB;
  --accent:#7C3AED;
  --accent-2:#5B21B6;
  --success:#16A34A;
  --danger:#DC2626;

  --shadow: 0 10px 30px rgba(17,24,39,0.06);
  --shadow-sm: 0 6px 18px rgba(17,24,39,0.08);
  --radius-lg: 30px;
  --radius: 20px;
  --radius-sm: 14px;

  --container: 1200px;
  --gap: 24px;
}

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

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; display:block}

.skip-link{
  position:absolute;
  left:-999px;
  top:8px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{left:12px}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,247,250,0.80);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(229,231,235,0.75);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand__logo{
  width:44px; height:44px;
  border-radius:14px;
  box-shadow: var(--shadow-sm);
}
.brand__text{display:flex; flex-direction:column; min-width:0}
.brand__name{
  font-family: Sora, Inter, sans-serif;
  font-weight:700;
  letter-spacing:-0.2px;
}
.brand__tag{
  font-size:13px;
  color:var(--muted);
}

.nav{display:flex; align-items:center; gap:12px}
.nav__links{display:flex; align-items:center; gap:10px}
.nav__link{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.nav__link:hover{
  background: rgba(124,58,237,0.08);
  color: var(--text);
  text-decoration:none;
}
.nav__link.is-active{
  background: rgba(124,58,237,0.12);
  color: var(--accent-2);
}

.nav__burger{display:none}

.icon-btn{
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  box-shadow: 0 4px 12px rgba(17,24,39,0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.icon{font-size:16px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  cursor:pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  text-decoration:none !important;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow-sm)}
.btn:active{transform: translateY(0px)}
.btn--primary{
  background: var(--accent);
  color:white;
}
.btn--primary:hover{background: var(--accent-2)}
.btn--secondary{
  background:transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover{
  border-color: rgba(124,58,237,0.45);
  background: rgba(124,58,237,0.06);
}
.btn--danger{
  background: var(--danger);
  color: white;
}
.btn--block{width:100%}

.page{
  padding: 28px 0 60px;
}

.section{
  margin-top: 26px;
}

.hero{
  min-height: 60vh;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
  background:
    linear-gradient(120deg, rgba(17,24,39,0.85), rgba(17,24,39,0.35)),
    url("https://images.unsplash.com/photo-1528825871115-3581a5387919?auto=format&fit=crop&w=2000&q=80");
  background-size:cover;
  background-position:center;
}

.hero__inner{
  padding: 28px;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap);
  color:white;
  height:100%;
  align-items:stretch;
}

.hero__content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}
.hero__title{
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height:1.1;
  letter-spacing:-0.6px;
  margin:0;
}
.hero__text{
  max-width: 56ch;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
}
.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.card{
  background: var(--surface);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17,24,39,0.08);
}

.calendar{
  padding: 16px;
  color: var(--text);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.calendar__title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.calendar__title h3{
  margin:0;
  font-size:16px;
  font-family: Sora, Inter, sans-serif;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color: var(--muted);
  font-size:12px;
  background: rgba(17,24,39,0.02);
}
.calendar__list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.event{
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  background: white;
}
.event:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17,24,39,0.08);
}
.event__top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.event__name{font-weight:800}
.event__meta{color:var(--muted); font-size:13px}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.panel{
  grid-column: 1 / -1;
  padding: 18px;
}

.panel__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.h2{
  margin:0;
  font-family: Sora, Inter, sans-serif;
  letter-spacing:-0.2px;
}
.kicker{
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.input{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 220px;
}
.label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.field, select, textarea{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  background: white;
  outline:none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field:focus, select:focus, textarea:focus{
  border-color: rgba(124,58,237,0.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

.table-wrap{
  margin-top: 14px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 720px;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:middle;
  font-size:14px;
}
.table thead th{
  position: sticky;
  top: 0;
  background: #FBFBFD;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.table tbody tr{
  cursor:pointer;
  transition: background 160ms ease;
}
.table tbody tr:hover{
  background: rgba(124,58,237,0.05);
}
.table tbody tr:focus-within{
  outline: 2px solid rgba(124,58,237,0.35);
  outline-offset: -2px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  font-weight:700;
  font-size:12px;
  background: rgba(17,24,39,0.02);
}
.pill--accent{
  border-color: rgba(124,58,237,0.35);
  background: rgba(124,58,237,0.08);
  color: var(--accent-2);
}

.drawer{
  position:fixed;
  inset:0;
  z-index:60;
}
.drawer__backdrop{
  position:absolute;
  inset:0;
  background: rgba(17,24,39,0.52);
  border:0;
  width:100%;
  height:100%;
  cursor:pointer;
}
.drawer__panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(520px, 92vw);
  background: var(--surface);
  border-left:1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  animation: slideIn 180ms ease-out;
}
@keyframes slideIn{
  from{transform: translateX(12px); opacity:0}
  to{transform: translateX(0); opacity:1}
}
.drawer__header{
  padding: 14px 14px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.drawer__title{
  font-family:Sora, Inter, sans-serif;
  font-weight:700;
  letter-spacing:-0.2px;
}
.drawer__body{
  padding: 14px;
  overflow:auto;
}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-bottom: 12px;
}
.kpi{
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(17,24,39,0.02);
}
.kpi__label{color:var(--muted); font-size:12px; font-weight:800}
.kpi__value{font-size:18px; font-weight:900; margin-top:4px}

.hr{border:0; border-top:1px solid var(--border); margin: 14px 0}

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

.mobile-nav{
  position:fixed;
  inset:0;
  z-index:70;
}
.mobile-nav__backdrop{
  position:absolute;
  inset:0;
  background: rgba(17,24,39,0.52);
  border:0;
  width:100%;
  height:100%;
}
.mobile-nav__panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(360px, 92vw);
  background: var(--surface);
  border-left:1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  animation: slideIn 180ms ease-out;
}
.mobile-nav__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px;
  border-bottom:1px solid var(--border);
}
.mobile-nav__title{
  font-family:Sora, Inter, sans-serif;
  font-weight:800;
}
.mobile-nav__content{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-nav__link{
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: white;
  font-weight:800;
  color: var(--text);
}
.mobile-nav__link.is-active{
  border-color: rgba(124,58,237,0.35);
  background: rgba(124,58,237,0.08);
  color: var(--accent-2);
}
.mobile-nav__cta{margin-top: 10px}

.cards{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: 14px;
}
.member{
  grid-column: span 3;
  padding: 14px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: white;
  box-shadow: 0 10px 24px rgba(17,24,39,0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.member:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.member__top{
  display:flex;
  gap:12px;
  align-items:center;
}
.member__photo{
  width:52px; height:52px;
  border-radius: 16px;
  background: #111827;
  object-fit: cover;
}
.member__name{font-weight:900}
.member__role{color:var(--muted); font-weight:800; font-size:13px}
.member__mail{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top:1px solid var(--border);
  gap:10px;
}
.member__mail a{color: var(--accent-2); font-weight:900}

.form{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.col-6{grid-column: span 6}
.col-12{grid-column: span 12}
.help{
  font-size:12px;
  color: var(--muted);
}
.error{
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
}

.session-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top: 14px;
}
.session{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: white;
  box-shadow: 0 10px 24px rgba(17,24,39,0.05);
}
.session__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.session__meta{color: var(--muted); font-weight:800; font-size:13px}
.session__actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center}

.admin-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.admin-left{grid-column: span 5}
.admin-right{grid-column: span 7}
.box{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 24px rgba(17,24,39,0.05);
  padding: 14px;
}
.box h3{
  margin: 0 0 10px;
  font-family:Sora, Inter, sans-serif;
}
.small{
  font-size: 13px;
  color: var(--muted);
}
.table-editor{
  overflow:auto;
  border:1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.table-editor table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 900px;
}
.table-editor th, .table-editor td{
  padding: 10px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size: 13px;
}
.table-editor thead th{
  position: sticky;
  top: 0;
  background: #FBFBFD;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.cell-input{
  width: 92px;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid var(--border);
  outline:none;
}
.cell-input:focus{
  border-color: rgba(124,58,237,0.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

.toast{
  position:fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(17,24,39,0.95);
  color:white;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 80;
  max-width: min(92vw, 720px);
}

.footer{
  border-top:1px solid rgba(229,231,235,0.9);
  background: rgba(255,255,255,0.55);
}
.footer__inner{
  padding: 24px 0;
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap);
}
.footer__brand{
  font-family:Sora, Inter, sans-serif;
  font-weight:800;
}
.footer__muted{color:var(--muted); margin-top:6px}
.footer__title{font-weight:900; margin-bottom:8px}
.footer__links{display:flex; flex-direction:column; gap:6px; color:var(--muted)}
.footer__links a:hover{color:var(--text); text-decoration:none}

@media (max-width: 980px){
  .hero__inner{grid-template-columns: 1fr; padding: 20px}
  .kpis{grid-template-columns: 1fr}
  .member{grid-column: span 6}
  .admin-left{grid-column: 1 / -1}
  .admin-right{grid-column: 1 / -1}
  .footer__inner{grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav__links{display:none}
  .nav__burger{display:inline-flex}
  .member{grid-column: span 12}
  .col-6{grid-column: span 12}
}