:root {
  --bg: #07101e;
  --sidebar: #0b1220;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.12);
  --text: #eef4ff;
  --muted: #9fb0c8;
  --accent: #41e7a5;
  --accent2: #7cb7ff;
  --danger: #ff6b7c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(65, 231, 165, .13), transparent 38rem),
    radial-gradient(circle at top right, rgba(124, 183, 255, .16), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px;
  background: linear-gradient(180deg, rgba(11,18,32,.96), rgba(11,18,32,.86));
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #06111d;
}
.brand span { display: block; color: var(--muted); font-size: 13px; }
nav { display: grid; gap: 8px; }
button, input, select, textarea { font: inherit; }
nav button, .secondary, .inline-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 12px 14px; border-radius: 14px; text-align: left; cursor: pointer;
}
.inline-btn { display: inline-block; margin-top: 10px; text-align: center; color: var(--text); background: var(--panel-strong); }
nav button.active, nav button:hover, .secondary:hover, .inline-btn:hover { color: var(--text); background: var(--panel-strong); }
.sidebar-footer { position: absolute; left: 22px; right: 22px; bottom: 22px; }
main { padding: 30px; max-width: 1440px; width: 100%; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent2); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1; }
h2, h3 { margin-top: 0; }
.pill {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 10px 14px; max-width: 360px; overflow: hidden; text-overflow: ellipsis;
}
.panel, .card {
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035));
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}
.panel { padding: 22px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 20px; }
.card h3 { color: var(--muted); font-size: 15px; }
.card strong { font-size: 36px; }
.form-grid { display: grid; gap: 12px; }
.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(2,8,18,.7); color: var(--text); padding: 12px 14px;
}
textarea { min-height: 100px; resize: vertical; }
form button, .panel > button {
  border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #06111d; font-weight: 800; padding: 12px 16px; cursor: pointer;
}
.list { display: grid; gap: 10px; }
.list-item, .module-item, .balance-item {
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); padding: 14px;
}
.list-item strong, .module-item strong { display: block; margin-bottom: 5px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; }
pre.meta { white-space: pre-wrap; }
.module-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.hidden { display: none !important; }
.toast {
  position: fixed; right: 22px; bottom: 22px; border: 1px solid var(--line);
  background: #0d1728; color: var(--text); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28); max-width: 420px;
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-footer { position: static; margin-top: 18px; }
  .cards, .two, .auth-grid, .module-list, .compact { grid-template-columns: 1fr; }
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 860px;
}
.hero-panel h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 14px;
}
.module-item {
  cursor: default;
}
#public-category-filter .module-item {
  cursor: pointer;
}
#public-category-filter .module-item:hover {
  background: var(--panel-strong);
}


/* GlobaPlace 3.1 Staging UI Shell - no runtime */
.gp31-top-shell{position:sticky;top:0;z-index:9998;display:flex;align-items:center;gap:18px;justify-content:space-between;padding:12px 18px;background:linear-gradient(90deg,#17111f,#26153f);color:#fff;border-bottom:1px solid rgba(157,123,255,.55);box-shadow:0 12px 30px rgba(0,0,0,.22)}
.gp31-brand{display:flex;flex-direction:column;line-height:1.15}.gp31-brand strong{font-size:18px}.gp31-brand span{font-size:12px;color:#cbbdff}.gp31-select{display:flex;flex-direction:column;font-size:11px;color:#cbbdff;gap:3px}.gp31-select select{background:#0c1220;color:#fff;border:1px solid rgba(157,123,255,.55);border-radius:10px;padding:8px 12px;min-width:180px}.gp31-shell-panel{margin:18px auto;max-width:1280px;border:1px solid rgba(157,123,255,.45);background:rgba(157,123,255,.08);border-radius:18px;padding:18px;color:#fff}.gp31-shell-panel p{margin:.35rem 0 0;color:#c8d2e6}.gp31-shell-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-top:14px}.gp31-shell-grid button{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:12px;padding:10px;cursor:default}.gp31-ai-agent{position:fixed;right:18px;bottom:18px;z-index:9999;display:flex;flex-direction:column;gap:2px;background:#17111f;color:#fff;border:1px solid #9d7bff;border-radius:18px;padding:12px 16px;box-shadow:0 16px 40px rgba(0,0,0,.35)}.gp31-ai-agent span{font-size:12px;color:#cbbdff}@media(max-width:800px){.gp31-top-shell{align-items:stretch;flex-direction:column}.gp31-select select{width:100%}.gp31-ai-agent{right:12px;bottom:12px}}


/* GlobaPlace 3.1 Place Navigation Shell */
.gp31-places-page{max-width:1320px;margin:0 auto;padding:32px;color:#eef4ff}
.gp31-places-hero{border:1px solid rgba(157,123,255,.45);background:linear-gradient(135deg,rgba(157,123,255,.22),rgba(255,255,255,.04));border-radius:26px;padding:30px;margin-bottom:22px}
.gp31-places-hero h1{font-size:38px;margin:8px 0 10px}
.gp31-places-hero p{color:#c8d2e6;max-width:980px}
.gp31-place-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.gp31-place-grid article{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);border-radius:22px;padding:20px;min-height:220px}
.gp31-place-grid article span{display:inline-block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#cbbdff;margin-bottom:8px}
.gp31-place-grid article h2{margin:0 0 10px;font-size:24px}
.gp31-place-grid article p{color:#c8d2e6;line-height:1.45}
.gp31-place-grid button{margin-top:10px;border:1px solid rgba(157,123,255,.45);background:rgba(157,123,255,.12);color:#d8ccff;border-radius:999px;padding:8px 12px;cursor:not-allowed}
.gp31-v50-link,.gp31-places-link{position:fixed;left:18px;bottom:18px;z-index:9999;background:#17111f;color:#fff;border:1px solid #9d7bff;border-radius:999px;padding:10px 14px;text-decoration:none;font:600 13px system-ui;box-shadow:0 16px 40px rgba(0,0,0,.35)}
.gp31-places-link{bottom:64px}


/* GlobaPlace 3.1 Studyplace Academy Shell */
.gp31-study-page{max-width:1320px;margin:0 auto;padding:32px;color:#eef4ff}
.gp31-study-hero{border:1px solid rgba(102,190,255,.45);background:linear-gradient(135deg,rgba(102,190,255,.18),rgba(157,123,255,.10),rgba(255,255,255,.04));border-radius:26px;padding:30px;margin-bottom:22px}
.gp31-study-hero h1{font-size:38px;margin:8px 0 10px}
.gp31-study-hero p{color:#c8d2e6;max-width:980px}
.gp31-study-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.gp31-study-card{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);border-radius:22px;padding:20px;min-height:270px}
.gp31-study-card.primary{border-color:rgba(102,190,255,.42);background:rgba(102,190,255,.08)}
.gp31-study-card span{display:inline-block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#9ed8ff;margin-bottom:8px}
.gp31-study-card h2{margin:0 0 10px;font-size:24px}
.gp31-study-card p,.gp31-study-card li{color:#c8d2e6;line-height:1.45}
.gp31-study-card ul{padding-left:18px}
.gp31-study-card button{margin-top:10px;border:1px solid rgba(102,190,255,.45);background:rgba(102,190,255,.12);color:#d8efff;border-radius:999px;padding:8px 12px;cursor:not-allowed}
.gp31-study-flow{margin-top:22px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);border-radius:22px;padding:22px}
.gp31-study-flow h2{margin-top:0}
.gp31-study-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.gp31-study-steps div{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px;background:rgba(0,0,0,.16)}
.gp31-study-steps strong{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:rgba(102,190,255,.18);color:#9ed8ff}
.gp31-study-steps span{color:#c8d2e6}
.gp31-study-link{position:fixed;left:18px;bottom:110px;z-index:9999;background:#101927;color:#fff;border:1px solid #66beff;border-radius:999px;padding:10px 14px;text-decoration:none;font:600 13px system-ui;box-shadow:0 16px 40px rgba(0,0,0,.35)}


/* GlobaPlace 3.1 Socialplace Network Shell */
.gp31-social-page{max-width:1360px;margin:0 auto;padding:32px;color:#eef4ff}
.gp31-social-hero{border:1px solid rgba(91,255,190,.42);background:linear-gradient(135deg,rgba(91,255,190,.14),rgba(102,190,255,.10),rgba(157,123,255,.08));border-radius:26px;padding:30px;margin-bottom:22px}
.gp31-social-hero h1{font-size:38px;margin:8px 0 10px}
.gp31-social-hero p{color:#c8d2e6;max-width:980px}
.gp31-social-layout{display:grid;grid-template-columns:240px minmax(320px,1fr) 280px;gap:18px;align-items:start}
.gp31-social-sidebar,.gp31-social-profile,.gp31-social-post,.gp31-social-grid article{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);border-radius:22px;padding:20px}
.gp31-social-sidebar h2,.gp31-social-profile h2{margin-top:0}
.gp31-social-sidebar nav{display:flex;flex-direction:column;gap:10px}
.gp31-social-sidebar button,.gp31-social-actions button,.gp31-social-grid button{border:1px solid rgba(91,255,190,.36);background:rgba(91,255,190,.09);color:#d8fff1;border-radius:999px;padding:9px 12px;cursor:not-allowed;text-align:left}
.gp31-social-feed{display:flex;flex-direction:column;gap:16px}
.gp31-social-post span{display:inline-block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8dffd5;margin-bottom:8px}
.gp31-social-post h2{margin:0 0 10px;font-size:24px}
.gp31-social-post p,.gp31-social-profile p,.gp31-social-profile li,.gp31-social-grid p{color:#c8d2e6;line-height:1.45}
.gp31-social-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.gp31-profile-avatar{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#5bffbe,#9d7bff);color:#101927;font-weight:900;margin-bottom:12px}
.gp31-social-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:18px}
.gp31-social-grid h2{margin-top:0}
.gp31-social-link{position:fixed;left:18px;bottom:156px;z-index:9999;background:#0d211d;color:#fff;border:1px solid #5bffbe;border-radius:999px;padding:10px 14px;text-decoration:none;font:600 13px system-ui;box-shadow:0 16px 40px rgba(0,0,0,.35)}
@media(max-width:980px){.gp31-social-layout{grid-template-columns:1fr}.gp31-social-sidebar nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}

/* GlobaPlace 3.1 Remaining Place Shell Batch */
.gp31-batch-place-page{max-width:1320px;margin:0 auto;padding:32px;color:#eef4ff}
.gp31-batch-place-hero{border:1px solid rgba(157,123,255,.42);background:linear-gradient(135deg,rgba(157,123,255,.16),rgba(102,190,255,.08),rgba(255,255,255,.04));border-radius:26px;padding:30px;margin-bottom:22px}
.gp31-batch-place-hero h1{font-size:38px;margin:8px 0 10px}
.gp31-batch-place-hero p{color:#c8d2e6;max-width:980px}
.gp31-batch-place-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.gp31-batch-place-grid article{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);border-radius:22px;padding:20px;min-height:220px}
.gp31-batch-place-grid article span{display:inline-block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#cbbdff;margin-bottom:8px}
.gp31-batch-place-grid article h2{margin:0 0 10px;font-size:24px}
.gp31-batch-place-grid article p{color:#c8d2e6;line-height:1.45}
.gp31-batch-place-grid button{margin-top:10px;border:1px solid rgba(157,123,255,.45);background:rgba(157,123,255,.12);color:#d8ccff;border-radius:999px;padding:8px 12px;cursor:not-allowed}
.gp31-place-batch-links{margin:18px auto;max-width:1280px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);border-radius:18px;padding:16px;color:#eef4ff}
.gp31-place-batch-links strong{display:block;margin-bottom:10px}
.gp31-place-batch-links div{display:flex;flex-wrap:wrap;gap:8px}
.gp31-place-batch-links a{color:#fff;text-decoration:none;border:1px solid rgba(157,123,255,.45);background:rgba(157,123,255,.12);border-radius:999px;padding:8px 12px;font-size:13px}


/* GlobaPlace 3.1 Central Place Navigation */
.gp31-central-nav{
  position:sticky;
  top:0;
  z-index:9997;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding:10px 14px;
  background:rgba(7,16,30,.96);
  border-bottom:1px solid rgba(157,123,255,.35);
  backdrop-filter:blur(14px);
}
.gp31-central-nav a{
  color:#eef4ff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  border-radius:999px;
  padding:7px 11px;
  font:600 12px system-ui;
}
.gp31-central-nav a:hover{
  border-color:rgba(157,123,255,.65);
  background:rgba(157,123,255,.16);
}
@media(max-width:760px){
  .gp31-central-nav{
    overflow-x:auto;
    flex-wrap:nowrap;
  }
  .gp31-central-nav a{
    white-space:nowrap;
  }
}
