*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:     #2563eb;
  --blue-l:   #60a5fa;
  --blue-d:   #1e3a8a;
  --navy:     #0b1530;
  --dark:     #000509;
  --text:     #c3d2e8;
  --dim:      #7d93b3;
  --border:   rgba(59,130,246,.18);
  --navbar-h: 64px;

  --green:  #22c55e;
  --red:    #ef4444;
  --gold:   #f59e0b;
  --purple: #a855f7;
}

html {
  scroll-behavior: smooth;
}
html, body {
  width: 100%;
  background: var(--dark);
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
  overflow-y: auto;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(0,5,15,.95) 0%, rgba(0,5,9,.9) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 28px;
}
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: drop-shadow(0 0 8px rgba(37,99,235,.4));
}
.nav-name {
  font-family: 'Cinzel', serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: linear-gradient(180deg, #fff 0%, #9aa9bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  font-family: 'Cinzel', serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--dim);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue-l); background: rgba(37,99,235,.08); }
.nav-link.active { color: var(--text); background: rgba(37,99,235,.12); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
}
.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}
.nav-avatar-placeholder {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(37,99,235,.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}
.nav-username {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: .04em;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logout-form { display: contents; }

.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px;
}
.nav-wiki-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 9px;
  border: 1px solid rgba(96,165,250,.5);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: filter .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(37,99,235,.35);
}
.nav-wiki-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.nav-wiki-btn:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(37,99,235,.5); }
.nav-wiki-btn.active { box-shadow: 0 0 0 2px rgba(96,165,250,.4), 0 2px 12px rgba(37,99,235,.4); }
.nav-mobile-link.wiki { color: var(--blue-l); font-weight: 700; }

.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--dim);
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-login-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.nav-login-btn:hover { background: rgba(255,255,255,.08); color: var(--text); border-color: rgba(96,165,250,.3); }
.nav-login-btn.discord {
  background: linear-gradient(135deg, rgba(88,101,242,.2), rgba(71,82,196,.15));
  border-color: rgba(88,101,242,.35);
  color: #a5b4fc;
}
.nav-login-btn.discord svg { fill: currentColor; stroke: none; }
.nav-login-btn.discord:hover {
  background: linear-gradient(135deg, rgba(88,101,242,.35), rgba(71,82,196,.25));
  color: #c7d2fe;
  border-color: rgba(88,101,242,.5);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--dim);
  border-radius: 2px;
  transition: transform .22s, opacity .22s, background .18s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--blue-l); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--blue-l); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  z-index: 490;
  background: rgba(0,5,15,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0 14px;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .22s cubic-bezier(.22,1,.36,1), opacity .22s;
  pointer-events: none;
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-link {
  padding: 11px 24px;
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--dim);
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color .15s, background .15s;
  width: 100%;
}
.nav-mobile-link:hover, .nav-mobile-link.active { color: var(--blue-l); background: rgba(37,99,235,.07); }
.nav-mobile-link.discord { color: #a5b4fc; }
.nav-mobile-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 24px;
}

#main {
  position: relative;
  z-index: 10;
  padding-top: var(--navbar-h);
}

.auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
  height: 100%;
}
.auth-gate svg { width: 48px; height: 48px; stroke: var(--dim); fill: none; stroke-width: 1.4; }
.auth-gate p { color: var(--dim); font-size: 1rem; line-height: 1.6; }
.auth-gate strong { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.btn-sm { padding: 5px 12px; font-size: .72rem; border-radius: 8px; }
.btn-lg { padding: 12px 26px; font-size: .86rem; border-radius: 12px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  color: #fff;
  border-color: rgba(37,99,235,.4);
  box-shadow: 0 3px 14px rgba(37,99,235,.28);
}
.btn-primary:hover { filter: brightness(1.14); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-primary:active { transform: scale(.97); }

.btn-discord {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  border-color: rgba(88,101,242,.4);
  box-shadow: 0 3px 14px rgba(88,101,242,.3);
}
.btn-discord svg { fill: #fff; stroke: none; }
.btn-discord:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(88,101,242,.5); }

.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--dim);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--text); border-color: rgba(96,165,250,.3); }

.btn-danger {
  background: rgba(239,68,68,.1);
  color: var(--red);
  border-color: rgba(239,68,68,.28);
}
.btn-danger:hover { background: rgba(239,68,68,.2); }

.btn-icon {
  width: 30px; height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--dim);
  cursor: pointer;
  transition: all .15s;
}
.btn-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn-icon:hover { background: rgba(37,99,235,.15); color: var(--blue-l); border-color: rgba(96,165,250,.3); }
.btn-icon.danger:hover { background: rgba(239,68,68,.15); color: var(--red); border-color: rgba(239,68,68,.3); }

#drop-zone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
  margin-bottom: 20px;
}
#drop-zone:hover, #drop-zone.drag-over {
  border-color: var(--blue-l);
  background: rgba(37,99,235,.06);
}
#drop-zone svg { width: 40px; height: 40px; stroke: var(--dim); fill: none; stroke-width: 1.4; margin-bottom: 10px; }
#drop-zone p { color: var(--dim); font-size: .95rem; line-height: 1.6; }
#drop-zone strong { color: var(--text); }
#drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.upload-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 8px 0 16px;
  overflow: hidden;
  display: none;
}
.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-d), var(--blue-l));
  border-radius: 2px;
  width: 0;
  transition: width .3s ease;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

.upload-msg { font-size: .88rem; color: var(--dim); margin-bottom: 16px; min-height: 20px; }
.upload-msg.success { color: var(--green); }
.upload-msg.error   { color: var(--red); }

#img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }

.img-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: border-color .2s;
}
.img-card:hover { border-color: rgba(96,165,250,.4); }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,5,9,.75);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .18s;
}
.img-card:hover .img-card-overlay { opacity: 1; }
.img-card-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 4px 6px;
  background: rgba(0,5,9,.8);
  font-size: .6rem; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: monospace;
}
.img-card-overlay { flex-direction: row; flex-wrap: wrap; }

.ie-overlay[hidden], .ie-busy[hidden], .ie-pane[hidden], .ie-crop[hidden], .ie-qual[hidden], .ie-tool-wand[hidden], .ie-tool-erase[hidden] { display: none !important; }

.ie-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(0,3,10,.85); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; }
.ie-modal { width: 100%; max-width: 1100px; height: 94vh; display: flex; flex-direction: column; background: rgba(8,14,30,.98); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 32px 90px rgba(0,0,0,.65); overflow: hidden; }
.ie-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ie-title { font-family: 'Cinzel', serif; font-size: .95rem; font-weight: 700; letter-spacing: .06em; color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.ie-title svg { width: 18px; height: 18px; stroke: var(--blue-l); fill: none; stroke-width: 1.8; }
.ie-body { flex: 1; display: flex; min-height: 0; }
.ie-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 18px; background: radial-gradient(circle at 50% 40%, rgba(37,99,235,.05), transparent 70%); }
.ie-canvas-wrap { position: relative; line-height: 0; max-width: 100%; max-height: 100%; background-image: linear-gradient(45deg, #1a2238 25%, transparent 25%), linear-gradient(-45deg, #1a2238 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1a2238 75%), linear-gradient(-45deg, transparent 75%, #1a2238 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.ie-view { display: block; max-width: 100%; max-height: calc(94vh - 220px); border-radius: 6px; }
.ie-view.ie-paint { cursor: crosshair; }
.ie-crop { position: absolute; border: 1px solid rgba(255,255,255,.9); box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; touch-action: none; }
.ie-crop-h { position: absolute; width: 14px; height: 14px; background: #fff; border: 1px solid var(--blue); border-radius: 50%; }
.ie-crop-h[data-h="nw"] { left: -7px; top: -7px; cursor: nwse-resize; }
.ie-crop-h[data-h="ne"] { right: -7px; top: -7px; cursor: nesw-resize; }
.ie-crop-h[data-h="sw"] { left: -7px; bottom: -7px; cursor: nesw-resize; }
.ie-crop-h[data-h="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }
.ie-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(0,5,15,.78); color: var(--text); font-family: 'Cinzel', serif; font-size: .82rem; letter-spacing: .05em; z-index: 5; }
.ie-busy .spinner { width: 30px; height: 30px; border-width: 3px; }
.ie-side { width: 320px; flex-shrink: 0; border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: rgba(0,5,15,.5); }
.ie-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ie-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 11px 4px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--dim); font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .05em; cursor: pointer; transition: all .15s; }
.ie-tab svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.ie-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.ie-tab.active { color: var(--blue-l); background: rgba(37,99,235,.14); border-color: rgba(96,165,250,.28); }
.ie-panes { flex: 1; overflow-y: auto; padding: 22px 20px; }
.ie-pane { display: flex; flex-direction: column; gap: 18px; }
.ie-group { display: flex; flex-direction: column; gap: 14px; }
.ie-divider { height: 1px; background: var(--border); margin: 2px 0; border: 0; }
.ie-field { display: flex; flex-direction: column; gap: 8px; }
.ie-field-label { display: flex; justify-content: space-between; align-items: center; font-family: 'Cinzel', serif; font-size: .66rem; letter-spacing: .05em; color: var(--dim); }
.ie-field-label em { color: var(--blue-l); font-style: normal; font-variant-numeric: tabular-nums; font-size: .72rem; }
.ie-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px; background: rgba(96,165,250,.18); outline: none; cursor: pointer; }
.ie-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-l); border: 2px solid #fff; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ie-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--blue-l); border: 2px solid #fff; cursor: pointer; }
.ie-row { display: flex; gap: 10px; }
.ie-row > .btn { flex: 1; justify-content: center; }
.ie-pane > .btn { width: 100%; justify-content: center; }
.ie-pane-title { font-family: 'Cinzel', serif; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.ie-pane-title svg { width: 14px; height: 14px; stroke: var(--blue-l); fill: none; stroke-width: 1.8; }
.ie-hint { font-size: .82rem; color: var(--dim); line-height: 1.5; margin-top: -4px; }
.ie-ratios, .ie-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.ie-chip { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--dim); font-family: 'Cinzel', serif; font-size: .66rem; letter-spacing: .03em; cursor: pointer; transition: all .15s; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ie-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ie-chip:hover { color: var(--text); border-color: rgba(96,165,250,.3); }
.ie-chip.active { background: rgba(37,99,235,.2); color: var(--blue-l); border-color: rgba(96,165,250,.4); }
.ie-size { font-size: .85rem; color: var(--dim); display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(37,99,235,.05); }
.ie-size strong { color: var(--text); font-variant-numeric: tabular-nums; font-size: 1rem; }
.ie-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(4,12,30,.97);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: .84rem;
  font-family: 'Cinzel', serif;
  letter-spacing: .04em;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(34,197,94,.4); color: var(--green); }
.toast.error   { border-color: rgba(239,68,68,.4);  color: var(--red); }

.regl-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 8px;
}
.admin-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .04em;
  color: var(--dim); cursor: pointer; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; transition: all .2s;
}
.admin-toggle.on { color: var(--gold); border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.admin-toggle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.regl-section { margin-bottom: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.02); }
.regl-section-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; user-select: none; transition: background .15s; gap: 8px; }
.regl-section-header:hover { background: rgba(37,99,235,.06); }
.regl-section-title { font-family: 'Cinzel', serif; font-size: .88rem; font-weight: 700; letter-spacing: .05em; color: var(--blue-l); flex: 1; min-width: 0; }
.regl-section-title-input { flex: 1; background: rgba(37,99,235,.1); border: 1px solid rgba(96,165,250,.3); border-radius: 6px; color: var(--blue-l); font-family: 'Cinzel', serif; font-size: .85rem; padding: 4px 8px; outline: none; min-width: 0; }
.regl-section-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.regl-chevron { width: 16px; height: 16px; stroke: var(--dim); fill: none; stroke-width: 2; transition: transform .2s; flex-shrink: 0; }
.regl-section.open .regl-chevron { transform: rotate(180deg); }
.regl-section-body { display: none; padding: 0 16px 12px; border-top: 1px solid var(--border); }
.regl-section.open .regl-section-body { display: block; }

.regl-sub { margin: 10px 0; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.regl-sub-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.regl-sub-title { font-family: 'Cinzel', serif; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--text); }
.regl-sub-title-input { flex: 1; background: rgba(37,99,235,.08); border: 1px solid rgba(96,165,250,.2); border-radius: 6px; color: var(--text); font-family: 'Cinzel', serif; font-size: .78rem; padding: 3px 7px; outline: none; }
.regl-sub-content { font-size: .9rem; line-height: 1.7; color: var(--text); }
.regl-sub-content ul { padding-left: 1.4em; list-style: disc; }
.regl-sub-content li { margin: 2px 0; }
.regl-sub-content strong { font-weight: 700; }
.regl-sub-content em { font-style: italic; }
.regl-sub-content p { margin: 4px 0; }

.quill-wrapper { border: 1px solid rgba(96,165,250,.25); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.ql-toolbar.ql-snow { border: none !important; border-bottom: 1px solid rgba(96,165,250,.2) !important; background: rgba(37,99,235,.06) !important; padding: 5px 8px !important; }
.ql-container.ql-snow { border: none !important; background: rgba(0,5,9,.6); min-height: 80px; font-size: .9rem; color: var(--text); }
.ql-editor { min-height: 80px; color: var(--text); }
.ql-snow .ql-stroke { stroke: var(--dim) !important; }
.ql-snow .ql-fill  { fill:   var(--dim) !important; }
.ql-snow .ql-picker { color: var(--dim) !important; }
.ql-snow .ql-picker-options { background: #0b1530 !important; border-color: var(--border) !important; }

.regl-add-sub { margin-top: 8px; width: 100%; display: flex; gap: 6px; }
.regl-add-sub input { flex: 1; background: rgba(37,99,235,.08); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-family: 'Cinzel', serif; font-size: .75rem; padding: 5px 10px; outline: none; }
.regl-add-sub input::placeholder { color: var(--dim); }

.regl-add-section { display: flex; gap: 8px; margin-top: 12px; }
.regl-add-section input { flex: 1; background: rgba(37,99,235,.06); border: 1px solid var(--border); border-radius: 9px; color: var(--text); font-family: 'Cinzel', serif; font-size: .78rem; padding: 7px 12px; outline: none; }
.regl-add-section input::placeholder { color: var(--dim); }

.wiki-soon {
  min-height: calc(100vh - var(--navbar-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 60px 24px;
}
.wiki-soon-orb {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: radial-gradient(circle, rgba(37,99,235,.28) 0%, rgba(0,5,9,0) 70%);
}
.wiki-soon-spinner { width: 44px; height: 44px; border-width: 3px; }
.wiki-soon .page-title { margin: 4px 0; }
.wiki-soon .page-subtitle { max-width: 420px; }
.wiki-soon-bar {
  width: 220px; height: 4px; border-radius: 3px; margin-top: 22px;
  background: rgba(37,99,235,.15); overflow: hidden;
}
.wiki-soon-bar span {
  display: block; height: 100%; width: 40%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-l), transparent);
  animation: wikiLoad 1.5s ease-in-out infinite;
}
@keyframes wikiLoad { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.wiki-layout {
  display: flex;
  margin-top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.wiki-sidebar {
  width: 280px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(0,5,20,.6);
  overflow-y: auto;
}
.wiki-sidebar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 16px 10px;
  position: sticky; top: 0;
  background: rgba(0,5,20,.95);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.wiki-sidebar-title {
  font-family: 'Cinzel', serif; font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-l);
}
.wiki-sections { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.wiki-empty-side { color: var(--dim); font-size: .8rem; padding: 14px; text-align: center; }
.wiki-sec-item {
  display: flex; align-items: center; gap: 6px;
  width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 9px;
  border: 1px solid transparent; background: transparent;
  font-family: 'Cinzel', serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .03em; color: var(--dim); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.wiki-sec-item:hover { background: rgba(37,99,235,.08); color: var(--text); }
.wiki-sec-item.active { background: rgba(37,99,235,.14); color: var(--blue-l); border-color: rgba(96,165,250,.3); }
.wiki-sec-input {
  flex: 1; min-width: 0;
  background: rgba(37,99,235,.1); border: 1px solid rgba(96,165,250,.25);
  border-radius: 6px; color: var(--text);
  font-family: 'Cinzel', serif; font-size: .8rem; font-weight: 600;
  padding: 4px 8px; outline: none;
}
.wiki-sec-actions { display: flex; gap: 3px; flex-shrink: 0; }
.wiki-sec-actions .btn-icon { width: 24px; height: 24px; }
.wiki-sec-actions .btn-icon svg { width: 12px; height: 12px; }
.wiki-add-section { display: flex; gap: 6px; padding: 10px 12px 16px; margin-top: auto; }
.wiki-add-section input {
  flex: 1; min-width: 0;
  background: rgba(37,99,235,.06); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'Cinzel', serif; font-size: .76rem; padding: 6px 10px; outline: none;
}
.wiki-add-section input::placeholder { color: var(--dim); }

.wiki-content {
  flex: 1; min-width: 0;
  overflow-y: auto;
  padding: 28px 36px 80px;
}
.wiki-content-head { margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.wiki-content-title {
  font-family: 'Cinzel', serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: .05em;
  background: linear-gradient(180deg, #fff 0%, #9aa9bd 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wiki-page {
  margin-bottom: 26px; padding: 20px 24px;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,.02);
}
.wiki-page.has-media {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 48px);
}
.wiki-page-text { flex: 1 1 auto; min-width: 0; }
.wiki-page.has-media .wiki-page-media {
  flex: 0 0 clamp(300px, 40%, 600px);
  margin-top: 4px;
}
.wiki-page.has-media .wiki-page-media-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.wiki-page.has-media .wiki-page-media-inner > * { flex: 1 1 0; min-width: 0; max-width: 340px; margin-top: 0; }
.wiki-page.has-media .wiki-page-image {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(0,5,9,.6);
  border-radius: 10px;
}
.wiki-page.has-media .wiki-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: none;
  margin-top: 0;
}
.wiki-page-title {
  font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700;
  letter-spacing: .04em; color: var(--blue-l); margin-bottom: 12px;
}
.wiki-page-content { font-size: 1rem; line-height: 1.75; color: var(--text); padding: 0; }
.wiki-page-content ul { padding-left: 1.4em; list-style: disc; }
.wiki-page-content ol { padding-left: 1.4em; list-style: decimal; }
.wiki-page-content li { margin: 3px 0; }
.wiki-page-content p { margin: 6px 0; }
.wiki-page-content strong { font-weight: 700; }
.wiki-page-content em { font-style: italic; }
.wiki-page-image {
  display: block; max-width: 100%; height: auto;
  border-radius: 10px; margin-top: 16px;
  border: 1px solid var(--border);
}
.wiki-video-embed {
  position: relative; margin-top: 16px;
  aspect-ratio: 16 / 9; max-width: 720px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
}
.wiki-page-media {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 14px; margin-top: 16px;
}
.wiki-page-media > * {
  flex: 1 1 0; min-width: 240px; max-width: none; margin-top: 0;
}
.wiki-page-media .wiki-page-image {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(0,5,9,.6);
}
.wiki-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wiki-video-link { margin-top: 14px; }

.wiki-video-poster {
  padding: 0; cursor: pointer; display: block;
  background: rgba(0,5,9,.6);
}
.wiki-video-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.wiki-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,5,15,.28);
  transition: background .2s;
}
.wiki-video-play svg {
  box-sizing: content-box;
  width: 20px; height: 20px; fill: #fff;
  padding: 14px;
  background: rgba(220,38,38,.92);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  transition: transform .2s, background .2s;
}
.wiki-video-poster:hover .wiki-video-play { background: rgba(0,5,15,.12); }
.wiki-video-poster:hover .wiki-video-play svg { transform: scale(1.08); background: #ef4444; }

.video-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(0,3,10,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.video-lightbox.open { opacity: 1; visibility: visible; }
.video-lightbox-box {
  position: relative;
  width: min(70vw, calc((100vh - 12vh) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .22s ease;
}
.video-lightbox.open .video-lightbox-box { transform: scale(1); }
.video-lightbox-frame { position: absolute; inset: 0; z-index: 1; border-radius: 14px; overflow: hidden; }
.video-lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.video-lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 3;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(20,28,48,.95);
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer; transition: background .2s, transform .2s;
}
.video-lightbox-close svg {
  width: 18px; height: 18px;
  stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none;
}
.video-lightbox-close:hover { background: var(--red); transform: scale(1.08); }
@media (max-width: 768px) {
  .video-lightbox { padding: 0 16px; }
  .video-lightbox-box { width: 100%; }
  .video-lightbox-close { top: -46px; right: 0; }
}

.wiki-page-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wiki-page-title-input {
  flex: 1; min-width: 0;
  background: rgba(37,99,235,.1); border: 1px solid rgba(96,165,250,.3);
  border-radius: 7px; color: var(--blue-l);
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700;
  padding: 6px 10px; outline: none;
}
.wiki-media-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.wiki-image-slot { display: flex; align-items: center; gap: 8px; }
.wiki-image-preview { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.wiki-video-input {
  flex: 1; min-width: 180px;
  background: rgba(37,99,235,.06); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'Cormorant Garamond', serif; font-size: .95rem; padding: 8px 12px; outline: none;
}
.wiki-video-input::placeholder { color: var(--dim); }
.wiki-video-times { display: flex; gap: 8px; margin-top: 8px; width: 100%; }
.wiki-video-time-input {
  flex: 1; min-width: 90px;
  background: rgba(37,99,235,.06); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'Cormorant Garamond', serif; font-size: .95rem; padding: 8px 12px; outline: none;
}
.wiki-video-time-input::placeholder { color: var(--dim); }
.wiki-fallback-editor {
  width: 100%; min-height: 160px; resize: vertical;
  background: rgba(0,5,9,.6); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'Cormorant Garamond', serif; font-size: .98rem; line-height: 1.6;
  padding: 12px 14px; outline: none; margin-top: 6px;
}
.wiki-add-page { display: flex; gap: 8px; max-width: 860px; margin-top: 10px; }
.wiki-add-page input {
  flex: 1; min-width: 0;
  background: rgba(37,99,235,.06); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text);
  font-family: 'Cinzel', serif; font-size: .8rem; padding: 8px 12px; outline: none;
}
.wiki-add-page input::placeholder { color: var(--dim); }

@media (max-width: 920px) {
  .wiki-page.has-media { flex-direction: column; gap: 18px; align-items: stretch; }
  .wiki-page.has-media .wiki-page-media { flex-basis: auto; width: 100%; margin-top: 0; }
  .wiki-page.has-media .wiki-page-media-inner > * { max-width: 420px; }
}
@media (max-width: 560px) {
  .wiki-page.has-media .wiki-page-media-inner { flex-direction: column; }
  .wiki-page.has-media .wiki-page-media-inner > * { max-width: none; }
}

@media (max-width: 768px) {
  .wiki-layout { flex-direction: column; height: calc(100vh - var(--navbar-h)); }
  .wiki-sidebar {
    width: 100%; max-height: 38vh;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .wiki-add-section { margin-top: 0; }
  .wiki-content { padding: 20px 18px 60px; }
}

.upload-page { min-height: calc(100vh - var(--navbar-h) - 220px); }
.upload-page #drop-zone { max-width: 760px; margin: 0 auto 24px; padding: 48px 24px; }
.upload-page .upload-msg { text-align: center; }
.upload-page #img-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.upload-page .auth-gate { min-height: 46vh; }

.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--blue-l); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: var(--dim); text-align: center; }
.empty-state svg { width: 38px; height: 38px; stroke: var(--dim); fill: none; stroke-width: 1.4; opacity: .6; }
.empty-state p { font-size: .92rem; }
.faq-empty-icon { width: 2.4rem; height: 2.4rem; opacity: .45; color: var(--dim); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 28px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-l);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff 0%, #dce4ee 25%, #9aa9bd 50%, #cdd7e3 68%, #8b99ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}
.section-divider {
  width: 60px; height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--blue-l), transparent);
  border-radius: 1px;
}

#about, #faq { scroll-margin-top: var(--navbar-h); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

#hero {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 60px 28px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.logo-wrap {
  position: relative;
  width: 160px; height: 160px;
  margin: 0 auto 2rem;
  display: grid;
  place-items: center;
}
.logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(
    from 0deg, var(--blue-d), var(--blue-l), var(--blue), var(--blue-d), var(--blue-l), var(--blue-d)
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 9s linear infinite;
}
.logo-ring-2 {
  position: absolute; inset: 12px; border-radius: 50%;
  border: 1px dashed rgba(96,165,250,.22);
  animation: spin 6s linear infinite reverse;
}
.logo-img {
  position: relative;
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  filter: drop-shadow(0 0 16px rgba(37,99,235,.55));
  animation: logoGlow 4s ease-in-out infinite;
}
.logo-fallback {
  position: relative;
  width: 120px; height: 120px; border-radius: 50%;
  display: none; place-items: center;
  font-size: 2.6rem; color: var(--blue-l);
  background: radial-gradient(circle, rgba(37,99,235,.3) 0%, rgba(0,5,9,1) 70%);
  animation: logoGlow 4s ease-in-out infinite;
}
@keyframes logoGlow {
  0%,100% { filter: drop-shadow(0 0 16px rgba(37,99,235,.5)); }
  50%      { filter: drop-shadow(0 0 28px rgba(37,99,235,.9)); }
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #dce4ee 22%, #9aa9bd 48%, #cdd7e3 64%, #8b99ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)) drop-shadow(0 0 16px rgba(37,99,235,.25));
  margin-bottom: .6rem;
}
.hero-sub {
  display: block;
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--blue-l);
  -webkit-text-fill-color: initial;
  background: none;
}

.hero-divider {
  width: 70%; height: 1px;
  margin: 1.2rem auto;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.4), rgba(96,165,250,.45), rgba(37,99,235,.4), transparent);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
  color: var(--dim);
  letter-spacing: .02em;
  margin-bottom: 2rem;
  max-width: 600px;
}

.stats-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(4,12,30,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 150px;
  transition: border-color .25s, box-shadow .25s;
}
.stat-card:hover {
  border-color: rgba(96,165,250,.3);
  box-shadow: 0 0 24px rgba(37,99,235,.15);
}
.stat-icon { width: 17px; height: 17px; color: var(--blue-l); flex-shrink: 0; }
.stat-fa-icon { width: 22px; height: 22px; color: var(--blue-l); line-height: 1; }
.stat-val {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-family: 'Cinzel', serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-arrow svg { width: 20px; height: 20px; stroke: var(--blue-l); opacity: .6; }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: .7; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

#about {
  background: linear-gradient(180deg, transparent 0%, rgba(11,21,48,.25) 40%, rgba(11,21,48,.2) 60%, transparent 100%);
  border-top: 1px solid rgba(37,99,235,.08);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.about-card {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(4,12,30,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.about-card:hover {
  border-color: rgba(96,165,250,.25);
  box-shadow: 0 8px 32px rgba(37,99,235,.12);
  transform: translateY(-3px);
}
.about-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(96,165,250,.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.about-card-icon svg { width: 24px; height: 24px; stroke: var(--blue-l); fill: none; stroke-width: 1.5; }
.about-card-icon i { font-size: 1.4rem; color: var(--blue-l); line-height: 1; }
.about-card-icon svg.about-fivem-logo {
  width: 30px; height: 30px;
  fill: var(--blue-l);
  stroke: none;
}
.about-card-title {
  font-family: 'Cinzel', serif;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text);
  margin-bottom: 10px;
}
.about-card-desc {
  font-size: .96rem;
  line-height: 1.7;
  color: var(--dim);
}
.about-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 4px 0;
}
.about-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--dim);
}
.about-steps li span {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(96,165,250,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: .66rem;
  font-weight: 700;
  color: var(--blue-l);
  flex-shrink: 0;
  margin-top: 1px;
}
.about-steps strong { color: var(--text); }
.about-steps em { color: var(--blue-l); font-style: normal; }

#faq {
  border-top: 1px solid rgba(37,99,235,.08);
}
.faq-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
  margin-top: -28px;
}
.faq-add-form {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: rgba(4,12,30,.7);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-input, .faq-textarea {
  width: 100%;
  background: rgba(37,99,235,.06);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 10px 14px;
  outline: none;
  resize: vertical;
  transition: border-color .18s;
}
.faq-input:focus, .faq-textarea:focus { border-color: rgba(96,165,250,.4); }
.faq-input::placeholder, .faq-textarea::placeholder { color: var(--dim); }
.faq-add-actions { display: flex; gap: 8px; justify-content: flex-end; }

.faq-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0; color: var(--dim);
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: visible;
  background: rgba(4,12,30,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color .2s;
}
.faq-item:hover { border-color: rgba(96,165,250,.22); }
.faq-item.open { border-color: rgba(96,165,250,.28); background: rgba(4,12,30,.75); }

.faq-question-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
}

.faq-question {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  transition: color .18s;
  min-width: 0;
}
.faq-question:hover { color: var(--blue-l); }
.faq-item.open .faq-question { color: var(--blue-l); }

.faq-question-text { flex: 1; min-width: 0; }
.faq-question-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.faq-chevron {
  width: 18px; height: 18px;
  stroke: var(--dim); fill: none; stroke-width: 2;
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer { max-height: 2000px; }

.faq-answer-inner {
  padding: 0 20px 20px;
  font-size: .98rem;
  line-height: 1.75;
  color: var(--dim);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-edit-form {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.faq-edit-actions { display: flex; gap: 8px; justify-content: flex-end; }

.page-header {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid rgba(37,99,235,.1);
  background: linear-gradient(180deg, rgba(11,21,48,.3) 0%, transparent 100%);
}
.page-header-inner { padding: 40px 28px; }
.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: .07em;
  background: linear-gradient(180deg, #fff 0%, #9aa9bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 8px 0;
}
.page-subtitle { font-size: 1.05rem; color: var(--dim); line-height: 1.6; }

.streamers-loading {
  display: flex; align-items: center; gap: 12px;
  padding: 60px 0; color: var(--dim);
  font-family: 'Cinzel', serif; font-size: .82rem; letter-spacing: .06em;
  grid-column: 1 / -1;
}
.streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.streamer-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(4,12,30,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .22s;
  animation: fadeUp .5s ease both;
}
.streamer-card:hover {
  border-color: rgba(96,165,250,.3);
  box-shadow: 0 8px 32px rgba(37,99,235,.15);
  transform: translateY(-3px);
}
.streamer-card.live { border-color: rgba(168,85,247,.35); }
.streamer-card.live:hover { border-color: rgba(168,85,247,.55); box-shadow: 0 8px 32px rgba(168,85,247,.18); }

.streamer-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0,0,0,.4);
}
.streamer-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.streamer-card:hover .streamer-thumb img { transform: scale(1.04); }
.streamer-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(11,21,48,.8), rgba(0,5,9,1));
}
.streamer-thumb-placeholder svg { width: 40px; height: 40px; stroke: var(--dim); fill: none; stroke-width: 1.2; opacity: .4; }

.live-badge {
  position: absolute; top: 10px; left: 10px;
  background: #ef4444;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 5px;
  display: flex; align-items: center; gap: 5px;
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.viewers-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.7);
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: .62rem;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 5px;
  display: flex; align-items: center; gap: 4px;
}
.viewers-badge svg { width: 10px; height: 10px; stroke: var(--dim); fill: none; stroke-width: 2; }

.streamer-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.streamer-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.streamer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: rgba(37,99,235,.1);
}
.streamer-name {
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
.streamer-discord {
  font-size: .74rem;
  color: var(--dim);
}
.streamer-offline-badge {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .08em;
  color: var(--dim);
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: inline-block;
}
.streamer-title {
  font-size: .88rem;
  color: var(--dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.streamer-game {
  font-size: .76rem;
  color: var(--blue-l);
  font-style: italic;
}
.streamer-actions { display: flex; gap: 8px; margin-top: 4px; }

.streamers-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; gap: 14px; text-align: center; color: var(--dim);
}
.streamers-empty svg { width: 48px; height: 48px; stroke: var(--dim); fill: none; stroke-width: 1.2; opacity: .4; }
.streamers-empty h3 { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: var(--text); }

.streamers-section-label {
  grid-column: 1 / -1;
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.streamers-section-label.live-label { color: #f87171; }
.streamers-section-label svg { width: 12px; height: 12px; }

.become-section {
  border-top: 1px solid rgba(37,99,235,.1);
  padding-bottom: 100px;
}
.become-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.become-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dim);
  margin-top: 20px;
  margin-bottom: 24px;
}
.become-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.become-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .96rem;
  color: var(--dim);
}
.become-perks li svg { width: 16px; height: 16px; stroke: var(--green); flex-shrink: 0; }

.become-form-wrap {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: rgba(4,12,30,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.become-form-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text);
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label {
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.form-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(37,99,235,.05);
  transition: border-color .18s;
}
.form-input-wrap:focus-within { border-color: rgba(96,165,250,.4); }
.form-prefix {
  padding: 9px 12px;
  background: rgba(37,99,235,.1);
  border-right: 1px solid var(--border);
  font-family: 'Cinzel', serif;
  font-size: .76rem;
  color: var(--dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.form-input {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
}
.form-input::placeholder { color: var(--dim); }
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(37,99,235,.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color .18s;
}
.form-textarea:focus { border-color: rgba(96,165,250,.4); }
.form-textarea::placeholder { color: var(--dim); }
.form-counter { font-size: .7rem; color: var(--dim); text-align: right; font-family: 'Cinzel', serif; letter-spacing: .04em; }

.become-auth-gate { min-height: unset; padding: 30px 20px; }

.admin-section {
  border-top: 1px solid rgba(245,158,11,.15);
  background: rgba(245,158,11,.02);
}
.admin-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.admin-panel-header svg { width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; }
.admin-panel-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--gold);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.admin-tab {
  padding: 9px 18px;
  font-family: 'Cinzel', serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--dim);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  display: flex; align-items: center; gap: 7px;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-badge {
  background: var(--gold);
  color: #000;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.admin-tab-panel { }
.admin-tab-panel.hidden { display: none; }

.admin-add-form {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 12px;
  background: rgba(245,158,11,.03);
}
.admin-add-form h3 {
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--gold);
  margin-bottom: 12px;
}
.admin-form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-input { flex: 1; min-width: 160px; }

.admin-list { display: flex; flex-direction: column; gap: 8px; }

.admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(4,12,30,.5);
}
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-name {
  font-family: 'Cinzel', serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
}
.admin-item-sub { font-size: .78rem; color: var(--dim); margin-top: 2px; }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.admin-status-badge {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.badge-pending  { background: rgba(245,158,11,.15); color: var(--gold); border: 1px solid rgba(245,158,11,.3); }
.badge-approved { background: rgba(34,197,94,.12);  color: var(--green); border: 1px solid rgba(34,197,94,.25); }
.badge-rejected { background: rgba(239,68,68,.1);   color: var(--red);   border: 1px solid rgba(239,68,68,.25); }

.admin-request-reason {
  font-size: .82rem;
  color: var(--dim);
  line-height: 1.5;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,.02);
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.04);
}

#footer {
  border-top: 1px solid var(--border);
  background: rgba(0,5,15,.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; opacity: .7; }
.footer-name {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--dim);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--dim);
  text-decoration: none;
  transition: color .18s;
}
.footer-links a:hover { color: var(--blue-l); }
.footer-copy {
  font-family: 'Cinzel', serif;
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--dim);
}
.footer-spark { color: var(--blue-l); display: inline-block; animation: spin 5s linear infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue-d); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--blue-d) transparent; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .become-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-username { display: none; }
  .nav-hamburger { display: flex; }
  .nav-tools { gap: 2px; }
}

@media (max-width: 640px) {
  :root {
    --navbar-h: 58px;
  }
  #navbar { padding: 0 14px; }
  .nav-tools { display: none; }

  .section-inner { padding: 54px 18px; }
  .stats-row { gap: 10px; }
  .stat-card { padding: 14px 22px; min-width: 130px; }

  .about-grid { grid-template-columns: 1fr; }
  .become-inner { grid-template-columns: 1fr; }
  .become-form-wrap { padding: 20px; }

  .streamers-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }

  .ie-overlay { padding: 0; }
  .ie-modal { max-width: 100vw; height: 100vh; border-radius: 0; border: none; }
  .ie-body { flex-direction: column; }
  .ie-side { width: 100%; border-left: none; border-top: 1px solid var(--border); max-height: 44vh; }
  .ie-view { max-height: 44vh; }
  .ie-stage { padding: 10px; }

  .admin-form-row { flex-direction: column; }
  .admin-input { min-width: unset; width: 100%; }

  #img-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 7px; }
}

@media (max-width: 380px) {
  .streamers-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .stat-card { min-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   CALQUE GLASSMORPHISM — habillage doux & moderne (bleu/navy)
   Surcouche ajoutée : ne modifie que l'apparence (verre, halos,
   transitions), pas la structure (positions/grilles inchangées).
   ============================================================ */
:root {
  --g-ease: cubic-bezier(.22, 1, .36, 1);
  --g-glass: rgba(11, 21, 48, .55);
  --g-line:  rgba(96, 165, 250, .22);
  --g-edge:  inset 0 1px 0 rgba(255, 255, 255, .07);   /* reflet supérieur "verre" */
}

/* --- Surfaces en verre dépoli --- */
.about-card,
.stat-card,
.streamer-card,
.faq-item,
.become-form-wrap,
.regl-section,
.admin-section {
  background: var(--g-glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--g-line);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), var(--g-edge);
  transition: transform .35s var(--g-ease), border-color .35s var(--g-ease),
              box-shadow .35s var(--g-ease), background .35s var(--g-ease);
}

/* --- Survol doux : la carte se soulève + halo lumineux --- */
.about-card:hover,
.stat-card:hover,
.streamer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,.42);
  box-shadow: 0 20px 46px rgba(0,0,0,.45), 0 0 30px rgba(37,99,235,.22), var(--g-edge);
}
.faq-item:hover, .admin-item:hover { border-color: rgba(96,165,250,.4); }
.faq-item.open { box-shadow: 0 12px 34px rgba(0,0,0,.4), 0 0 26px rgba(168,85,247,.18), var(--g-edge); }

/* --- Navbar : flou renforcé + reflet --- */
#navbar {
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 4px 24px rgba(0,0,0,.35), var(--g-edge);
}
.nav-link, .nav-mobile-link, .nav-wiki-btn, .nav-login-btn {
  transition: color .25s var(--g-ease), background .25s var(--g-ease),
              border-color .25s var(--g-ease), box-shadow .25s var(--g-ease);
}

/* --- Boutons : transitions douces, retour au clic, halos --- */
.btn {
  transition: transform .25s var(--g-ease), box-shadow .3s var(--g-ease),
              filter .25s var(--g-ease), background .25s var(--g-ease), border-color .25s var(--g-ease);
}
.btn:active { transform: scale(.96); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(37,99,235,.45), 0 0 24px rgba(168,85,247,.28); }
.btn-ghost { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 18px rgba(96,165,250,.25); }

/* --- Champs de formulaire : verre + halo au focus --- */
.form-input-wrap, .admin-input, .faq-textarea,
.regl-section-title-input, .regl-sub-title-input, .form-textarea {
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s var(--g-ease), box-shadow .25s var(--g-ease), background .25s var(--g-ease);
}
.form-input-wrap:focus-within,
.admin-input:focus, .faq-textarea:focus,
.regl-section-title-input:focus, .regl-sub-title-input:focus, .form-textarea:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}

/* --- Modales / lightbox : verre --- */
.video-lightbox-box { border-color: var(--g-line); box-shadow: 0 30px 80px rgba(0,0,0,.6), var(--g-edge); }

/* --- Footer : fine séparation lumineuse --- */
#footer { box-shadow: var(--g-edge); }
