/*
Theme Name: CULTUREBANK Portal
Theme URI: https://www.live2net.com/
Author: CULTUREBANK / LIVE2NET
Description: Premium CULTUREBANK portal with USER/GUEST dashboards and integrated Cultural Deposit workflow support.
Version: 3.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: culturebank-portal
*/

:root {
  --cb-navy: #04162f;
  --cb-blue: #0a376d;
  --cb-electric: #1b83e5;
  --cb-gold: #d5a83d;
  --cb-gold-light: #ffe397;
  --cb-white: #f8fbff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #01040b;
  color: var(--cb-white);
  overflow-x: hidden;
}

.cb-portal {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 85%, rgba(18,91,170,.32) 0, rgba(2,12,27,.08) 27%, transparent 48%),
    radial-gradient(circle at 18% 28%, rgba(8,71,145,.20) 0, transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(23,86,158,.18) 0, transparent 32%),
    linear-gradient(180deg, #01040b 0%, #020814 42%, #041225 100%);
}

.cb-portal::before,
.cb-portal::after {
  content: '';
  position: absolute;
  inset: -18%;
  z-index: -3;
  pointer-events: none;
}

.cb-portal::before {
  background:
    radial-gradient(ellipse at 20% 35%, rgba(25,108,210,.22), transparent 30%),
    radial-gradient(ellipse at 80% 30%, rgba(35,93,181,.18), transparent 27%),
    radial-gradient(ellipse at 50% 78%, rgba(219,170,58,.08), transparent 18%);
  filter: blur(22px);
}

.cb-portal::after {
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.38) 100%);
  z-index: -1;
}

#cb-starfield {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.cb-star {
  position: absolute;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: rgba(255,255,255,var(--alpha, .75));
  box-shadow: 0 0 calc(var(--size, 2px) * 4) rgba(111,184,255,.6);
}

.cb-star.is-gold {
  background: rgba(255,222,138,.95);
  box-shadow: 0 0 12px rgba(255,190,55,.75), 0 0 24px rgba(255,190,55,.35);
}

.cb-star.is-twinkle {
  animation: cb-twinkle var(--twinkle, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes cb-twinkle {
  0%, 100% { opacity: .22; transform: scale(.7); }
  45% { opacity: 1; transform: scale(1.65); }
  58% { opacity: .58; transform: scale(1.05); }
}

.cb-orbit {
  position: absolute;
  left: 50%;
  bottom: -28vw;
  width: 145vw;
  height: 47vw;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,204,94,.24) 0, transparent 14%),
    radial-gradient(ellipse at 50% 1%, rgba(39,138,255,.52) 0, rgba(4,29,65,.9) 7%, rgba(0,0,0,.96) 23%);
  box-shadow: 0 -2px 24px rgba(43,151,255,.85), 0 -4px 3px rgba(170,220,255,.7);
  opacity: .95;
  z-index: -1;
}

.cb-content {
  width: min(1180px, 92vw);
  min-height: 100vh;
  padding: clamp(34px, 5vh, 70px) 20px clamp(48px, 8vh, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cb-logo {
  display: block;
  width: min(900px, 82vw);
  max-height: 58vh;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(0,88,190,.35)) drop-shadow(0 0 18px rgba(222,171,59,.14));
  user-select: none;
  -webkit-user-drag: none;
}

.cb-entry-row {
  margin-top: clamp(10px, 2vh, 24px);
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 390px));
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  width: 100%;
}

.cb-entry {
  position: relative;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--cb-gold-light);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid rgba(225,177,70,.95);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9,62,120,.96), rgba(1,20,48,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -14px 35px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,214,112,.18),
    0 12px 38px rgba(0,0,0,.44),
    0 0 22px rgba(17,106,211,.20);
  transition: transform .22s ease, box-shadow .22s ease, color .22s ease, border-color .22s ease;
  overflow: hidden;
}

.cb-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.18) 45%, transparent 70%);
  transition: transform .55s ease;
}

.cb-entry:hover,
.cb-entry:focus-visible {
  transform: translateY(-4px) scale(1.015);
  color: #fff1bd;
  border-color: #ffe6a2;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 16px 44px rgba(0,0,0,.48),
    0 0 34px rgba(17,116,235,.42),
    0 0 26px rgba(229,178,61,.22);
  outline: none;
}

.cb-entry:hover::before,
.cb-entry:focus-visible::before { transform: translateX(120%); }

.cb-entry span { position: relative; z-index: 1; }

/* Intentionally empty USER/GUEST destination pages. */
.cb-blank-page {
  min-height: 100vh;
  background: #01040b;
}

@media (max-width: 760px) {
  .cb-content { justify-content: center; padding-left: 16px; padding-right: 16px; }
  .cb-logo { width: min(96vw, 760px); max-height: 52vh; }
  .cb-entry-row { grid-template-columns: 1fr; gap: 16px; width: min(92vw, 480px); }
  .cb-entry { min-height: 82px; font-size: 30px; border-radius: 15px; }
  .cb-orbit { bottom: -18vw; width: 185vw; height: 65vw; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-star.is-twinkle { animation: none; }
  .cb-entry, .cb-entry::before { transition: none; }
}

/* =========================================================
   CULTUREBANK DASHBOARDS — v2.0
   ========================================================= */
:root {
  --cb-bg: #020711;
  --cb-panel: rgba(5, 18, 38, .78);
  --cb-panel-strong: rgba(5, 23, 49, .94);
  --cb-line: rgba(116, 177, 239, .15);
  --cb-text: #f4f8ff;
  --cb-muted: #8fa9c8;
  --cb-blue2: #0e5dad;
  --cb-gold2: #e3b655;
  --cb-gold3: #ffdf86;
}

.cb-dashboard-page,
.cb-auth-page,
.cb-project-page {
  background: var(--cb-bg);
  color: var(--cb-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cb-dashboard-page a,
.cb-auth-page a,
.cb-project-page a { color: inherit; }

.cb-dashboard-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 6%, rgba(15, 99, 187, .13), transparent 28%),
    radial-gradient(circle at 8% 72%, rgba(218, 165, 48, .05), transparent 24%),
    linear-gradient(145deg, #01050c, #030b18 52%, #031020);
  isolation: isolate;
}

.cb-dashboard-shell #cb-starfield,
.cb-auth-shell #cb-starfield,
.cb-project-shell #cb-starfield { opacity: .42; }

.cb-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 22px;
  background: linear-gradient(180deg, rgba(2, 11, 24, .96), rgba(2, 8, 17, .92));
  border-right: 1px solid var(--cb-line);
  box-shadow: 14px 0 42px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.cb-sidebar-brand {
  display: block;
  padding: 0 10px 18px;
  text-decoration: none;
}

.cb-sidebar-brand img {
  display: block;
  width: 100%;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(25, 104, 205, .20));
}

.cb-mode-badge {
  align-self: flex-start;
  margin: 0 10px 25px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(227, 182, 85, .42);
  color: var(--cb-gold3);
  background: rgba(227, 182, 85, .08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.cb-mode-guest {
  color: #8fd0ff;
  border-color: rgba(66, 163, 236, .38);
  background: rgba(66, 163, 236, .08);
}

.cb-sidebar-nav {
  display: grid;
  gap: 6px;
}

.cb-sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  color: #9eb1cb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cb-sidebar-nav a::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 12px;
  border-radius: 50%;
  background: #37516e;
  transition: background .2s ease, box-shadow .2s ease;
}

.cb-sidebar-nav a:hover,
.cb-sidebar-nav a.is-active {
  color: #fff;
  background: rgba(26, 91, 160, .15);
  transform: translateX(2px);
}

.cb-sidebar-nav a:hover::before,
.cb-sidebar-nav a.is-active::before {
  background: #42a8ff;
  box-shadow: 0 0 12px rgba(66, 168, 255, .9);
}

.cb-sidebar-nav .cb-nav-project {
  margin-top: 12px;
  color: var(--cb-gold3);
  border: 1px solid rgba(227, 182, 85, .18);
  background: rgba(227, 182, 85, .05);
}

.cb-sidebar-nav .cb-nav-project::before {
  width: 7px;
  height: 7px;
  background: var(--cb-gold2);
  box-shadow: 0 0 14px rgba(227, 182, 85, .7);
}

.cb-sidebar-footer {
  margin-top: auto;
  padding: 22px 10px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.cb-sidebar-footer a {
  color: #7189a6;
  text-decoration: none;
  font-size: 13px;
}

.cb-dashboard-main {
  position: relative;
  z-index: 2;
  margin-left: 264px;
  width: calc(100% - 264px);
  min-height: 100vh;
  padding: 30px clamp(28px, 4vw, 68px) 90px;
}

.cb-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 520px) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.cb-topbar h1,
.cb-section h2,
.cb-project-banner h2,
.cb-join-panel h2,
.cb-profile-panel h2 {
  margin: 4px 0 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}

.cb-topbar h1 { font-size: clamp(25px, 2.4vw, 38px); }

.cb-eyebrow {
  display: inline-block;
  color: var(--cb-gold2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.cb-searchbox {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(126, 178, 230, .16);
  background: rgba(7, 22, 43, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.cb-searchbox > span {
  color: #77bfff;
  font-size: 24px;
  line-height: 1;
}

.cb-searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.cb-searchbox input::placeholder { color: #7189a6; }

.cb-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 2px;
  border-radius: 50%;
  border: 1px solid rgba(227, 182, 85, .52);
  background: rgba(227, 182, 85, .08);
  overflow: hidden;
}
.cb-avatar img { width: 100%; height: 100%; border-radius: inherit; }

.cb-guest-switch {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--cb-gold3)!important;
  border: 1px solid rgba(227,182,85,.24);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cb-hero-panel {
  position: relative;
  min-height: 355px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  align-items: center;
  gap: 30px;
  padding: clamp(34px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(87, 155, 225, .17);
  border-radius: 28px;
  background:
    linear-gradient(112deg, rgba(7, 29, 61, .98), rgba(2, 11, 25, .88)),
    radial-gradient(circle at 78% 48%, rgba(29, 121, 223, .18), transparent 38%);
  box-shadow: 0 28px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
}

.cb-hero-panel::after {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  right: -95px;
  top: -110px;
  border-radius: 50%;
  border: 1px solid rgba(72, 158, 247, .13);
  box-shadow: 0 0 90px rgba(22, 111, 213, .10);
}

.cb-guest-hero {
  background:
    linear-gradient(112deg, rgba(5, 26, 54, .98), rgba(2, 11, 25, .90)),
    radial-gradient(circle at 78% 48%, rgba(227, 182, 85, .12), transparent 38%);
}

.cb-hero-copy { position: relative; z-index: 2; max-width: 700px; }
.cb-hero-copy h2 {
  margin: 8px 0 18px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.025em;
}
.cb-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: #a8bad0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.cb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cb-primary-btn,
.cb-secondary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cb-primary-btn {
  color: #03101e!important;
  background: linear-gradient(180deg, #ffdf86, #d4a23e);
  border: 1px solid #f0ca70;
  box-shadow: 0 10px 28px rgba(210, 159, 53, .13);
}
.cb-secondary-btn {
  color: #e5effd!important;
  border: 1px solid rgba(100, 170, 237, .24);
  background: rgba(10, 47, 87, .38);
}
.cb-primary-btn:hover,
.cb-secondary-btn:hover { transform: translateY(-2px); }
.cb-primary-btn:hover { box-shadow: 0 14px 34px rgba(210,159,53,.2); }
.cb-secondary-btn:hover { border-color: rgba(100,170,237,.48); }

.cb-hero-orb {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 250px;
}
.cb-orb-ring {
  position: absolute;
  width: min(19vw, 250px);
  aspect-ratio: 1;
  border: 1px solid rgba(78, 158, 235, .26);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(42, 138, 235, .18), inset 0 0 50px rgba(42,138,235,.06);
  animation: cb-orb-pulse 4.5s ease-in-out infinite;
}
.cb-orb-ring::before,
.cb-orb-ring::after {
  content: '';
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(229, 184, 87, .22);
  border-radius: 50%;
  transform: rotate(30deg) scaleY(.45);
}
.cb-orb-ring::after { transform: rotate(-40deg) scaleX(.52); }
.cb-orb-globe {
  color: var(--cb-gold3);
  font-family: Georgia, serif;
  font-size: clamp(80px, 9vw, 126px);
  text-shadow: 0 0 42px rgba(51, 144, 240, .54), 0 0 20px rgba(227,182,85,.18);
}
@keyframes cb-orb-pulse { 0%,100% { transform: scale(.96); opacity:.72; } 50% { transform: scale(1.04); opacity:1; } }

.cb-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}
.cb-stat-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-radius: 17px;
  border: 1px solid var(--cb-line);
  background: rgba(5, 18, 38, .68);
}
.cb-stat-card strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}
.cb-stat-card span { margin-top: 5px; color: var(--cb-muted); font-size: 12px; }
.cb-stat-highlight { border-color: rgba(227,182,85,.25); background: rgba(46,34,12,.20); }
.cb-stat-highlight strong { color: var(--cb-gold3); }

.cb-section {
  scroll-margin-top: 24px;
  margin-top: 58px;
}
.cb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 20px;
}
.cb-section-head h2 { font-size: clamp(28px, 3vw, 42px); }
.cb-section-note { max-width: 420px; color: var(--cb-muted); font-size: 13px; line-height: 1.5; text-align: right; }
.cb-text-link { color: var(--cb-gold3)!important; text-decoration: none; font-size: 13px; font-weight: 750; }

.cb-world-card {
  overflow: hidden;
  border: 1px solid var(--cb-line);
  border-radius: 24px;
  background: rgba(3, 16, 34, .80);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.cb-world-map { display:block; width:100%; height:auto; }
.cb-map-grid path { stroke: #90b9df; stroke-width: 1; fill: none; }
.cb-continent path {
  fill: #0b4d8b;
  stroke: #3f91db;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(35,132,223,.18));
  transition: fill .2s ease;
}
.cb-continent path:hover { fill:#1266ae; }
.cb-map-markers a { cursor:pointer; text-decoration:none; }
.cb-map-markers circle {
  fill: var(--cb-gold3);
  stroke: #fff1bd;
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(227,182,85,.8));
}
.cb-map-markers text { fill: #eaf5ff; font-size: 16px; font-family: Inter, sans-serif; font-weight:700; }
.cb-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 15px 20px 18px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: #7891ad;
  font-size: 11px;
}
.cb-map-legend span { display:flex; align-items:center; gap:7px; }
.cb-map-legend i { width:7px; height:7px; border-radius:50%; background:#2f8cdc; box-shadow:0 0 8px rgba(47,140,220,.6); }
.cb-map-legend span:nth-child(2) i { background:var(--cb-gold2); box-shadow:0 0 8px rgba(227,182,85,.5); }
.cb-map-legend span:nth-child(3) i { background:#85e4cf; }

.cb-card-grid { display:grid; gap:16px; }
.cb-deposit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb-content-card {
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--cb-line);
  background:rgba(5,19,40,.74);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.cb-content-card:hover { transform:translateY(-4px); border-color:rgba(87,155,225,.32); box-shadow:0 22px 44px rgba(0,0,0,.22); }
.cb-card-media {
  min-height:165px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:16px;
  text-decoration:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.54)),
    radial-gradient(circle at 70% 25%, rgba(42,127,217,.48), transparent 30%),
    linear-gradient(135deg,#092b54,#051328);
  background-size:cover;
  background-position:center;
}
.cb-card-media span {
  padding:6px 9px;
  border-radius:999px;
  color:#fff;
  background:rgba(0,0,0,.34);
  backdrop-filter:blur(8px);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.cb-sample-media em { align-self:flex-end; color:rgba(255,255,255,.34); font-size:10px; font-style:normal; letter-spacing:.15em; }
.cb-card-body { padding:19px 19px 20px; }
.cb-card-body h3 { margin:0 0 9px; color:#fff; font-family:Georgia,serif; font-size:22px; font-weight:500; }
.cb-card-body p { min-height:48px; margin:0 0 14px; color:#8fa6c1; font-size:13px; line-height:1.55; }
.cb-card-body a,.cb-muted-link { color:var(--cb-gold3)!important; text-decoration:none; font-size:12px; font-weight:750; }
.cb-search-empty { padding:24px; border:1px dashed rgba(255,255,255,.14); border-radius:14px; color:var(--cb-muted); text-align:center; }
.cb-is-hidden { display:none!important; }

.cb-country-cloud { display:flex; flex-wrap:wrap; gap:10px; }
.cb-country-cloud button {
  min-height:42px;
  padding:0 16px;
  border:1px solid rgba(99,162,223,.17);
  border-radius:999px;
  color:#bdd0e6;
  background:rgba(6,28,55,.58);
  cursor:pointer;
  font:inherit;
  font-size:13px;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}
.cb-country-cloud button:hover { color:#fff; background:#0b4178; border-color:#2b7dc5; transform:translateY(-2px); }

.cb-collection-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.cb-collection-card {
  min-height:160px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:22px;
  border-radius:18px;
  color:inherit;
  text-decoration:none;
  border:1px solid var(--cb-line);
  background:
    radial-gradient(circle at 80% 15%,rgba(32,118,209,.25),transparent 32%),
    linear-gradient(150deg,rgba(5,26,54,.95),rgba(3,11,23,.95));
}
.cb-collection-card:nth-child(even) { background:radial-gradient(circle at 80% 15%,rgba(218,170,55,.14),transparent 34%),linear-gradient(150deg,rgba(18,25,42,.95),rgba(3,11,23,.95)); }
.cb-collection-card span { color:var(--cb-gold2); font-size:9px; font-weight:850; letter-spacing:.15em; }
.cb-collection-card strong { margin-top:6px; color:#fff; font-family:Georgia,serif; font-size:22px; font-weight:500; }
.cb-collection-card small { margin-top:9px; color:#8299b4; font-size:11px; }

.cb-project-banner,
.cb-join-panel,
.cb-profile-panel {
  margin-top:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:32px 36px;
  border-radius:22px;
  border:1px solid rgba(227,182,85,.25);
  background:
    radial-gradient(circle at 85% 50%,rgba(227,182,85,.14),transparent 26%),
    linear-gradient(115deg,rgba(19,28,45,.96),rgba(4,14,29,.96));
}
.cb-project-banner h2 { color:var(--cb-gold3); font-size:clamp(28px,3vw,45px); }
.cb-project-banner p,.cb-join-panel p,.cb-profile-panel p { max-width:700px; margin:8px 0 0; color:#94aac4; line-height:1.55; }
.cb-project-banner-guest { border-color:rgba(77,156,235,.24); }
.cb-join-panel { border-color:rgba(77,156,235,.18); background:rgba(4,19,39,.72); }
.cb-profile-panel { display:grid; grid-template-columns:auto 1fr auto; border-color:var(--cb-line); background:rgba(4,19,39,.68); }
.cb-profile-avatar img { border-radius:50%; border:1px solid rgba(227,182,85,.42); }

/* Login / member access screen */
.cb-auth-shell {
  position:relative;
  z-index:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:40px 20px;
  overflow:hidden;
  background:radial-gradient(circle at 50% 20%,rgba(17,91,173,.20),transparent 35%),linear-gradient(180deg,#01050d,#03101f);
  isolation:isolate;
}
.cb-auth-logo-link { position:relative; z-index:2; display:block; }
.cb-auth-logo { width:min(500px,82vw); max-height:340px; object-fit:contain; }
.cb-auth-card {
  position:relative;
  z-index:2;
  width:min(520px,92vw);
  padding:34px;
  text-align:center;
  border:1px solid rgba(98,161,224,.2);
  border-radius:22px;
  background:rgba(4,18,38,.82);
  box-shadow:0 30px 70px rgba(0,0,0,.42);
  backdrop-filter:blur(14px);
}
.cb-auth-card h1 { margin:8px 0 13px; font-family:Georgia,serif; font-size:38px; font-weight:500; }
.cb-auth-card p { margin:0 auto 24px; max-width:420px; color:#98afc9; line-height:1.6; }
.cb-auth-card .cb-primary-btn,.cb-auth-card .cb-secondary-btn { width:100%; margin-top:9px; }
.cb-auth-card .cb-text-link { display:inline-block; margin-top:20px; }

/* ONE WORLD, ONE CANVAS gateway */
.cb-project-shell {
  position:relative;
  min-height:100vh;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 50% 65%,rgba(221,170,56,.08),transparent 24%),
    radial-gradient(circle at 20% 20%,rgba(24,108,205,.20),transparent 32%),
    linear-gradient(180deg,#01050c,#031225);
}
.cb-project-top {
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:min(1320px,92vw);
  margin:auto;
  padding:24px 0;
}
.cb-project-top img { width:220px; max-height:130px; object-fit:contain; }
.cb-project-top nav { display:flex; gap:10px; }
.cb-project-top nav a { padding:9px 13px; border:1px solid rgba(255,255,255,.10); border-radius:9px; text-decoration:none; color:#bcd0e6; font-size:11px; font-weight:800; letter-spacing:.09em; }
.cb-project-hero {
  position:relative;
  z-index:2;
  width:min(1160px,90vw);
  margin:8vh auto 0;
  text-align:center;
}
.cb-project-hero h1 { margin:12px 0 24px; color:#fff; font-family:Georgia,serif; font-size:clamp(62px,9vw,132px); font-weight:400; line-height:.8; letter-spacing:-.05em; }
.cb-project-hero h1 b { color:var(--cb-gold3); font-weight:400; }
.cb-project-hero > p { max-width:820px; margin:0 auto; color:#a3b7cf; font-size:clamp(17px,1.8vw,24px); line-height:1.55; }
.cb-project-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:44px 0 30px; }
.cb-project-metrics span { display:flex; flex-direction:column; padding:20px 12px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(4,19,39,.58); color:#829ab6; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.cb-project-metrics strong { margin-bottom:4px; color:#fff; font-family:Georgia,serif; font-size:28px; font-weight:500; text-transform:none; letter-spacing:0; }
.cb-project-hero .cb-hero-actions { justify-content:center; }

@media (max-width: 1120px) {
  .cb-sidebar { width:220px; }
  .cb-dashboard-main { margin-left:220px; width:calc(100% - 220px); padding-left:28px; padding-right:28px; }
  .cb-topbar { grid-template-columns:1fr minmax(280px,420px) auto; }
  .cb-deposit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cb-collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .cb-sidebar { position:relative; width:100%; min-height:auto; padding:14px 16px; flex-direction:row; align-items:center; gap:10px; border-right:0; border-bottom:1px solid var(--cb-line); }
  .cb-sidebar-brand { width:128px; padding:0; }
  .cb-sidebar-brand img { max-height:74px; }
  .cb-mode-badge { margin:0; }
  .cb-sidebar-nav { margin-left:auto; display:flex; overflow-x:auto; max-width:54vw; }
  .cb-sidebar-nav a { white-space:nowrap; min-height:36px; padding:0 10px; font-size:12px; }
  .cb-sidebar-nav a::before { display:none; }
  .cb-sidebar-nav .cb-nav-project { margin-top:0; }
  .cb-sidebar-footer { display:none; }
  .cb-dashboard-main { margin-left:0; width:100%; padding:22px 20px 70px; }
  .cb-topbar { grid-template-columns:1fr auto; }
  .cb-searchbox { grid-column:1/-1; grid-row:2; }
  .cb-hero-panel { grid-template-columns:1fr; min-height:auto; }
  .cb-hero-orb { display:none; }
  .cb-stat-grid { grid-template-columns:repeat(2,1fr); }
  .cb-project-metrics { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 620px) {
  .cb-sidebar { flex-wrap:wrap; }
  .cb-sidebar-nav { order:3; flex-basis:100%; max-width:100%; margin:0; padding-top:6px; }
  .cb-topbar { grid-template-columns:1fr auto; }
  .cb-topbar h1 { font-size:25px; }
  .cb-guest-switch { padding:0 10px; font-size:10px; }
  .cb-hero-panel { padding:30px 22px; border-radius:20px; }
  .cb-hero-copy h2 { font-size:42px; }
  .cb-hero-actions { flex-direction:column; }
  .cb-hero-actions .cb-primary-btn,.cb-hero-actions .cb-secondary-btn { width:100%; }
  .cb-stat-grid { grid-template-columns:1fr 1fr; }
  .cb-stat-card { min-height:92px; padding:15px; }
  .cb-section { margin-top:42px; }
  .cb-section-head { align-items:flex-start; flex-direction:column; gap:8px; }
  .cb-section-note { text-align:left; }
  .cb-deposit-grid,.cb-collection-grid { grid-template-columns:1fr; }
  .cb-card-media { min-height:150px; }
  .cb-map-markers text { font-size:22px; }
  .cb-project-banner,.cb-join-panel { flex-direction:column; align-items:flex-start; padding:25px; }
  .cb-profile-panel { grid-template-columns:auto 1fr; }
  .cb-profile-panel .cb-secondary-btn { grid-column:1/-1; width:100%; }
  .cb-project-top img { width:160px; }
  .cb-project-hero { margin-top:4vh; }
  .cb-project-hero h1 { font-size:58px; }
  .cb-project-metrics { grid-template-columns:1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cb-orb-ring { animation:none; }
}

/* CULTUREBANK Portal v3 — Core integration */
.cb-user-deposits-section{scroll-margin-top:30px}.cb-core-missing{padding:22px;border:1px solid rgba(227,182,85,.35);border-radius:18px;background:rgba(72,50,8,.14);color:#dce8f5}.cb-core-missing strong{color:#ffe09a}.cb-core-missing p{color:#9fb3cb;margin-bottom:0}.cb-user-dashboard .cb-my-deposits{margin:0}.cb-user-dashboard .cb-my-deposits-head h2{font-family:inherit}
