/* Cover media clips only its own inner layer; paid frames and pets stay outside. */
.pc-cover[data-profile-cover-media] { position: relative; }
.gn-cover-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; font-family: Arial, sans-serif; letter-spacing: 0; }
.gn-cover-track { width: 100%; height: 100%; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom; pointer-events: auto; }
.gn-cover-track::-webkit-scrollbar, .gn-cover-dots::-webkit-scrollbar { display: none; }
.gn-cover-track.is-mouse-draggable { cursor: grab; }
.gn-cover-track.is-mouse-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gn-cover-track:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.gn-cover-slide { position: relative; flex: 0 0 100%; width: 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; background: #17191e; overflow: hidden; }
.gn-cover-slide:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); pointer-events: none; }
.gn-cover-media.is-frame-only .gn-cover-slide:after { display: none; }
.gn-cover-image, .gn-cover-video { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; }
.gn-cover-video { pointer-events: none; }
.admin-profile-photo-preview.cover-preview video { width: 100%; height: 100%; object-fit: cover; }
.gn-cover-media-error { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 50px 20px; background: #17191e; color: #fff; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.45; }
.gn-cover-slide.has-error .gn-cover-media-error { display: flex; }
.gn-cover-video-actions { position: absolute; z-index: 2; top: 9px; left: 9px; display: flex; gap: 6px; pointer-events: auto; }
.gn-cover-navigation { position: absolute; z-index: 2; bottom: 12px; left: 50%; max-width: calc(100% - 20px); display: flex; align-items: center; gap: 5px; transform: translateX(-50%); pointer-events: auto; }
.gn-cover-navigation[hidden], .gn-cover-overlay-button[hidden] { display: none !important; }
.gn-cover-dots { display: flex; max-width: min(70vw, 280px); overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: transparent; }
.gn-cover-media .gn-cover-overlay-button { flex: 0 0 38px; width: 38px; min-width: 38px; height: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(8,10,14,.9) !important; color: #fff !important; cursor: pointer; font: 700 12px Arial,sans-serif; box-shadow: none !important; filter: none !important; }
.gn-cover-media .gn-cover-overlay-button svg { width: 17px; height: 17px; color: #fff !important; }
.gn-cover-media .gn-cover-overlay-button:hover { background: #252a32 !important; border-color: #fff; filter: none !important; }
.gn-cover-media .gn-cover-overlay-button:active { transform: scale(.96); }
.gn-cover-media .gn-cover-overlay-button:disabled { opacity: .48; cursor: default; }
.gn-cover-media .gn-cover-overlay-button:focus-visible, .gn-cover-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gn-cover-media .gn-cover-edge-arrow { position: absolute; z-index: 2; top: 50%; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent !important; opacity: .46; transform: translateY(-50%); pointer-events: auto; }
.gn-cover-media .gn-cover-edge-arrow.is-previous { left: 2px; }
.gn-cover-media .gn-cover-edge-arrow.is-next { right: 2px; }
.gn-cover-media .gn-cover-edge-arrow svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 2px #000); }
.gn-cover-media .gn-cover-edge-arrow .gn-cover-icon-fallback { font-size: 32px; text-shadow: 0 1px 3px #000; }
.gn-cover-media .gn-cover-edge-arrow:hover:not(:disabled), .gn-cover-media .gn-cover-edge-arrow:focus-visible { background: rgba(8,10,14,.22) !important; opacity: 1; }
.gn-cover-media .gn-cover-edge-arrow:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
.gn-cover-media .gn-cover-edge-arrow:disabled { opacity: .14; }
.gn-cover-icon-fallback { line-height: 1; }
button:has(> svg) > .gn-cover-icon-fallback { display: none; }
.gn-cover-media .gn-cover-dot { flex: 0 0 24px; width: 24px; min-width: 24px; height: 32px; min-height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: transparent !important; color: #fff !important; border-radius: 999px; cursor: pointer; filter: none !important; box-shadow: none !important; }
.gn-cover-dot > span { display: block; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 999px; background: transparent; box-shadow: 0 1px 3px #000; }
.gn-cover-dot.is-current > span { width: 14px; background: #fff; }
.gn-cover-dot:hover > span { background: #fff; }
.gn-cover-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Match the existing modal family, with theme-local semantic tokens. */
.gn-cover-editor { --gc-surface: #14171d; --gc-raised: #1c2027; --gc-text: #f4f5f7; --gc-muted: #bdc5d0; --gc-line: #45505e; --gc-accent: #57a6ff; --gc-action: #172d45; --gc-action-text: #eaf3ff; --gc-error: #ffbac3; --gc-error-bg: #351c24; width: min(680px, calc(100vw - 24px)); max-width: none; max-height: min(88dvh, 860px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--gc-line); border-radius: 12px; background: var(--gc-surface); color: var(--gc-text); font: 14px/1.45 Arial,sans-serif; box-shadow: 0 18px 65px #0008; }
html[data-theme="soft"] .gn-cover-editor { --gc-surface: #fff; --gc-raised: #f5f5f5; --gc-text: #171717; --gc-muted: #454545; --gc-line: #a3a3a3; --gc-accent: #171717; --gc-action: #171717; --gc-action-text: #fff; --gc-error: #811a2d; --gc-error-bg: #fff0f3; box-shadow: 0 18px 65px #17171733; }
html[data-theme="pink"] .gn-cover-editor { --gc-surface: #3d0d29; --gc-raised: #50143a; --gc-text: #fff5fb; --gc-muted: #e4b1ca; --gc-line: #a04470; --gc-accent: #ff7eb5; --gc-action: #ff7eb5; --gc-action-text: #2b071c; --gc-error: #ffd1df; --gc-error-bg: #53122f; box-shadow: 0 18px 65px #19001088; }
.gn-cover-editor::backdrop { background: rgba(0,0,0,.68); }
.gn-cover-editor.is-fallback { position: fixed; inset: 6dvh 0 auto; z-index: 100020; box-shadow: 0 0 0 100vmax #000a; }
.gn-cover-editor-form { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.gn-cover-editor-header, .gn-cover-editor-footer { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 14px 16px; }
.gn-cover-editor-header { justify-content: space-between; border-bottom: 1px solid var(--gc-line); }
.gn-cover-editor-header h2 { margin: 0; color: var(--gc-text) !important; font: 800 17px/1.3 Arial,sans-serif; }
.gn-cover-editor-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.gn-cover-editor-description { margin: 0 0 6px; color: var(--gc-text) !important; font-weight: 700; }
.gn-cover-editor-note { margin: 0 0 14px; color: var(--gc-muted) !important; font-size: 12px; }
.gn-cover-editor button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; gap: 5px; padding: 7px 12px; border: 1px solid var(--gc-line); border-radius: 6px; background: var(--gc-raised) !important; color: var(--gc-text) !important; font: 700 13px/1.3 Arial,sans-serif; white-space: nowrap; cursor: pointer; box-shadow: none !important; filter: none !important; }
.gn-cover-editor button svg { width: 17px; height: 17px; color: inherit !important; }
.gn-cover-editor button:hover:not(:disabled) { border-color: var(--gc-accent); filter: none !important; }
.gn-cover-editor button:focus-visible { outline: 3px solid var(--gc-accent); outline-offset: 2px; }
.gn-cover-editor button:active:not(:disabled) { transform: scale(.98); }
.gn-cover-editor button:disabled { opacity: .5; cursor: not-allowed; }
.gn-cover-editor .gn-cover-editor-close { width: 38px; padding: 0; }
.gn-cover-editor-list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.gn-cover-editor-item { min-width: 0; display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--gc-line); border-radius: 8px; background: var(--gc-raised); }
.gn-cover-editor-thumbnail { width: 112px; height: 62px; display: block; object-fit: cover; border: 1px solid var(--gc-line); border-radius: 4px; background: #17191e; }
.gn-cover-editor-copy { min-width: 0; }
.gn-cover-editor-copy strong, .gn-cover-editor-copy small { display: block; overflow: hidden; text-overflow: ellipsis; }
.gn-cover-editor-copy strong { color: var(--gc-text) !important; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.gn-cover-editor-copy small { margin-top: 4px; color: var(--gc-muted) !important; font-size: 11px; }
.gn-cover-editor-item-actions { display: flex; gap: 5px; }
.gn-cover-editor-item-actions button { width: 34px; min-height: 36px; padding: 0; }
.gn-cover-editor-error { margin: 12px 0 0; padding: 10px; border: 1px solid var(--gc-error); border-radius: 6px; background: var(--gc-error-bg); color: var(--gc-error) !important; font-weight: 700; overflow-wrap: anywhere; }
.gn-cover-editor-empty { margin: 18px 0; padding: 24px 12px; text-align: center; border: 1px dashed var(--gc-line); border-radius: 8px; color: var(--gc-muted) !important; }
.gn-cover-editor-status { margin: 12px 0 0; color: var(--gc-muted) !important; font-size: 12px; overflow-wrap: anywhere; }
.gn-cover-editor-footer { justify-content: flex-end; border-top: 1px solid var(--gc-line); background: var(--gc-raised); }
.gn-cover-editor .gn-cover-editor-save { background: var(--gc-action) !important; color: var(--gc-action-text) !important; border-color: var(--gc-accent); }
.gn-cover-editor [hidden] { display: none !important; }
@media(max-width: 480px) {
  .gn-cover-navigation { bottom: 8px; }
  .gn-cover-video-actions { top: 8px; left: 8px; }
  .gn-cover-media .gn-cover-overlay-button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; flex-basis: 36px; }
  .gn-cover-media .gn-cover-edge-arrow { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .gn-cover-editor { max-height: 90dvh; }
  .gn-cover-editor-header, .gn-cover-editor-footer, .gn-cover-editor-body { padding: 12px; }
  .gn-cover-editor-item { grid-template-columns: 80px minmax(0,1fr); gap: 8px; }
  .gn-cover-editor-thumbnail { width: 80px; height: 48px; }
  .gn-cover-editor-item-actions { grid-column: 2; justify-content: flex-end; }
  .gn-cover-editor-item-actions button { min-height: 36px; }
}
@media(prefers-reduced-motion: reduce) {
  .gn-cover-track { scroll-behavior: auto; }
  .gn-cover-media button, .gn-cover-editor button { transition: none !important; }
}

/* Keep each cover navigation icon centered in its circular control. */
.gn-cover-media .gn-cover-edge-arrow{display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid #ffffff8c;border-radius:50%;background:rgba(8,10,14,.7) !important;opacity:.85;line-height:1;box-sizing:border-box}
.gn-cover-media .gn-cover-edge-arrow.is-previous{left:9px}.gn-cover-media .gn-cover-edge-arrow.is-next{right:9px}.gn-cover-media .gn-cover-edge-arrow svg{display:block;width:20px;height:20px;margin:0}.gn-cover-media .gn-cover-edge-arrow .gn-cover-icon-fallback{font-size:25px;line-height:1;margin:0}
.gn-cover-media .gn-cover-edge-arrow>*{grid-area:1 / 1;align-self:center;justify-self:center}
