/* .::round360::. HTML5 FlipBook Stylesheet (100 % Original, Local & DSGVO-Konform) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --r360-bg-start: #1e293b;
    --r360-bg-end: #0f172a;
    --r360-toolbar-bg: #102347;
    --r360-loading-bg: #0f172a;
    --r360-accent: #0f766e;
    --r360-accent-bright: #14b8a6;
    --r360-blue: #1648a8;
    --r360-ink: #f8fafc;
    --r360-ink-muted: #cbd5e1;
    --r360-panel-bg: rgba(15, 23, 42, 0.97);
    --r360-border: rgba(255, 255, 255, 0.14);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--r360-loading-bg);
    color: var(--r360-ink);
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

.r360-app {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(155deg, var(--r360-bg-start) 0%, var(--r360-bg-end) 100%);
}

.r360-app::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.24) 100%);
    z-index: 0;
}

.r360-bg-img {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.36;
    pointer-events: none;
    z-index: 0;
}

.r360-scene-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ── Optional Floating Logo ─────────────────────────────────────────────── */
.r360-floating-logo {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 12;
    pointer-events: auto;
}

.r360-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.r360-logo-img {
    max-height: 28px;
    max-width: 140px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ── Main Stage & Book Viewport ─────────────────────────────────────────── */
.r360-workspace {
    position: relative;
    z-index: 5;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.r360-stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px 56px;
    touch-action: none;
}

.r360-stage.is-zoomed {
    cursor: grab;
}

.r360-stage.is-panning {
    cursor: grabbing;
}

.r360-zoom-layer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform;
}

.r360-book-shell {
    position: relative;
    flex: 0 0 auto;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.r360-book-shell.is-dragging-cover {
    transition: none;
}

.r360-book-shell.is-slide-out-next {
    transform: translateX(-34px);
    opacity: 0;
}

.r360-book-shell.is-slide-out-prev {
    transform: translateX(34px);
    opacity: 0;
}

.r360-book-stage-surface {
    position: absolute;
    inset: 0;
    cursor: pointer;
    touch-action: none;
    perspective: 2200px;
}

.r360-book-stage-surface.is-curling {
    cursor: grabbing;
}

.r360-page-slot {
    position: absolute;
    top: 0;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.r360-page-slot.is-left {
    left: 0;
}

.r360-page-slot.is-right {
    right: 0;
}

.r360-page-slot.is-hidden-slot {
    visibility: hidden;
}

.r360-page-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.r360-page-lock {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
    background: #e2e8f0;
    color: #0f3173;
}

.r360-page-lock.is-active {
    display: flex;
}

.r360-page-lock strong {
    font-size: 0.95rem;
}

.r360-page-lock span {
    font-size: 0.8rem;
    color: #475569;
}

.r360-spine-gutter {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    margin-left: -17px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.24) 50%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0) 100%);
}

/* ── GPU-Composited Eselsohr Layer ───────────────────────────────────────── */
.r360-curl-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    display: none;
    overflow: visible;
}

.r360-curl-layer.is-active {
    display: block;
}

.r360-curl-under,
.r360-curl-flat {
    position: absolute;
    top: 0;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    will-change: clip-path;
}

.r360-fold-cast {
    position: absolute;
    pointer-events: none;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 100%);
    will-change: transform;
}

.r360-curl-back-clip {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    will-change: clip-path;
}

.r360-curl-back-inner {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    background: #f8fafc;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
    will-change: transform;
}

.r360-curl-back-inner img.is-ghost-back {
    opacity: 0.14;
}

.r360-curl-sheen {
    position: absolute;
    pointer-events: none;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(255, 255, 255, 0.32) 20%, rgba(0, 0, 0, 0.05) 48%, rgba(0, 0, 0, 0) 100%);
    will-change: transform;
}

/* ── CSS 3D Hardcover Layer ────────────────────────────────────────────── */
.r360-hard-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    display: none;
    perspective: 2200px;
}

.r360-hard-layer.is-active {
    display: block;
}

.r360-hard-under {
    position: absolute;
    top: 0;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.r360-hard-leaf {
    position: absolute;
    top: 0;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.r360-hard-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.r360-hard-face.is-back {
    transform: rotateY(180deg);
}

.r360-drawer-pane {
    display: none;
}

.r360-drawer-pane.is-visible {
    display: block;
}

/* ── Overlay Layer: Hotspots & Search Hit Highlights ─────────────────────── */
.r360-overlay-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.16s ease;
}

.r360-overlay-layer.is-hidden {
    opacity: 0;
}

.r360-overlay-layer.is-hidden .r360-hotspot {
    pointer-events: none;
}

.r360-hotspot {
    position: absolute;
    pointer-events: auto;
    display: block;
    border-radius: 5px;
    border: 1.5px solid transparent;
    background: transparent;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.r360-hotspot:hover,
.r360-hotspot:focus-visible {
    background: rgba(20, 184, 166, 0.22);
    border-color: rgba(20, 184, 166, 0.9);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25);
    outline: none;
}

.r360-search-hit {
    position: absolute;
    background: rgba(250, 204, 21, 0.44);
    border: 1.5px solid rgba(234, 179, 8, 0.9);
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
    pointer-events: none;
}

/* ── Side Bookmark Tabs (Griffregister) ─────────────────────────────────── */
.r360-bookmarks-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.16s ease;
}

.r360-bookmarks-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.r360-bookmarks-layer.is-hidden .r360-bookmark-tab {
    pointer-events: none;
}

.r360-bookmark-tab {
    position: absolute;
    pointer-events: auto;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.r360-bookmark-tab.is-side {
    min-width: 74px;
    height: 30px;
    padding: 0 11px 0 9px;
    border-radius: 0 6px 6px 0;
    border-left: 2px solid rgba(0, 0, 0, 0.18);
}

.r360-bookmark-tab.is-side:hover,
.r360-bookmark-tab.is-side:focus-visible {
    transform: translateX(4px);
    filter: brightness(1.08);
    outline: none;
}

.r360-bookmark-tab.is-side.is-active {
    transform: translateX(6px);
    box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.48), inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.r360-bookmark-tab.is-top {
    bottom: 100%;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.18);
}

.r360-bookmark-tab.is-top:hover,
.r360-bookmark-tab.is-top:focus-visible {
    transform: translateY(-3px);
    filter: brightness(1.08);
    outline: none;
}

/* ── Floating Prev/Next Stage Arrows ────────────────────────────────────── */
.r360-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(10, 20, 42, 0.78);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.r360-nav-arrow:hover:not(:disabled) {
    background: rgba(15, 118, 110, 0.88);
    transform: translateY(-50%) scale(1.04);
}

.r360-nav-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.r360-nav-arrow.is-prev {
    left: 12px;
}

.r360-nav-arrow.is-next {
    right: 12px;
}

.r360-nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* ── Bottom Toolbar ─────────────────────────────────────────────────────── */
.r360-toolbar {
    position: relative;
    z-index: 12;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 6px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    background: var(--r360-toolbar-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.28);
}

.r360-tb-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.r360-tb-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.r360-tb-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.r360-tb-btn:hover:not(:disabled),
.r360-tb-btn:focus-visible:not(:disabled) {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    outline: none;
}

.r360-tb-btn.is-active {
    background: var(--r360-accent);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.r360-tb-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.r360-tb-btn svg {
    width: 19px;
    height: 19px;
}

.r360-tb-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.14);
    margin: 0 3px;
}

.r360-page-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.84rem;
    color: #e2e8f0;
}

.r360-page-input {
    width: 54px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    padding: 4px 2px;
    outline: none;
}

.r360-page-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.r360-page-total {
    color: rgba(226, 232, 240, 0.78);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Side Drawers (TOC, Thumbnails, Search) ─────────────────────────────── */
.r360-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(330px, 100%);
    z-index: 20;
    background: var(--r360-panel-bg);
    border-right: 1px solid var(--r360-border);
    box-shadow: 10px 0 32px rgba(0, 0, 0, 0.48);
    display: flex;
    flex-direction: column;
    transform: translateX(-104%);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.r360-drawer.is-open {
    transform: translateX(0);
}

.r360-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--r360-border);
}

.r360-drawer-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
}

.r360-drawer-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.r360-drawer-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.r360-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 14px 20px;
}

/* TOC items */
.r360-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.r360-toc-item {
    margin-bottom: 4px;
}

.r360-toc-btn {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #e2e8f0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: inherit;
    font-size: 0.87rem;
    cursor: pointer;
    transition: background-color 0.14s ease;
}

.r360-toc-btn:hover {
    background: rgba(255, 255, 255, 0.09);
}

.r360-toc-btn.is-active {
    background: rgba(20, 184, 166, 0.22);
    border-color: rgba(20, 184, 166, 0.45);
    color: #ffffff;
    font-weight: 600;
}

.r360-toc-page {
    font-size: 0.78rem;
    color: #94a3b8;
    flex: 0 0 auto;
}

/* Thumbnails grid */
.r360-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.r360-thumb-card {
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.r360-thumb-card:hover {
    border-color: rgba(125, 211, 252, 0.65);
    transform: translateY(-2px);
}

.r360-thumb-card.is-active {
    border-color: var(--r360-accent-bright);
    background: rgba(20, 184, 166, 0.14);
}

.r360-thumb-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    background: #ffffff;
}

.r360-thumb-label {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* Search panel */
.r360-search-form {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.r360-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 11px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
}

.r360-search-input:focus {
    outline: none;
    border-color: var(--r360-accent-bright);
    background: rgba(255, 255, 255, 0.13);
}

.r360-search-submit {
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: var(--r360-accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.r360-search-submit:hover {
    background: #0d665f;
}

.r360-search-summary {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.r360-search-result {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 11px;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

.r360-search-result:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(20, 184, 166, 0.6);
}

.r360-search-result-page {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5eead4;
    margin-bottom: 4px;
}

.r360-search-result-snippet {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.r360-search-result-snippet mark {
    background: rgba(250, 204, 21, 0.85);
    color: #0f172a;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* ── Modal Dialogs (QR, Phone, Print, Share, Password) ───────────────────── */
.r360-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(6, 12, 26, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.r360-dialog-backdrop.is-open {
    display: flex;
}

.r360-dialog {
    width: 100%;
    max-width: 420px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    color: #f8fafc;
}

.r360-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.r360-dialog-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.r360-dialog-body {
    padding: 18px;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.r360-qr-box {
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

.r360-qr-box svg {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: 100%;
    height: auto;
}

.r360-dialog-url {
    width: 100%;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.r360-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--r360-accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 8px;
}

.r360-btn-primary:hover {
    background: #0d665f;
}

.r360-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.r360-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
}

.r360-phone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.r360-phone-item:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: var(--r360-accent-bright);
}

.r360-phone-label {
    font-size: 0.85rem;
    color: #94a3b8;
    display: block;
}

.r360-phone-num {
    font-size: 1rem;
    font-weight: 700;
}

.r360-pw-error {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 1.2em;
}

/* ── Preloader ──────────────────────────────────────────────────────────── */
.r360-preloader {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--r360-loading-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.r360-preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.r360-preloader img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

.r360-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: r360-spin 0.85s linear infinite;
}

@keyframes r360-spin {
    to { transform: rotate(360deg); }
}

.r360-preloader-caption {
    font-size: 0.94rem;
    color: #cbd5e1;
    max-width: 420px;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.r360-toast {
    position: fixed;
    left: 50%;
    bottom: 66px;
    transform: translate(-50%, 10px);
    z-index: 50;
    padding: 8px 16px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.r360-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ── Print Sheet ────────────────────────────────────────────────────────── */
.r360-print-sheet {
    display: none;
}

@media print {
    html,
    body {
        overflow: visible !important;
        height: auto !important;
        background: #ffffff !important;
    }

    .r360-app > *:not(.r360-print-sheet) {
        display: none !important;
    }

    .r360-app {
        background: #ffffff !important;
        overflow: visible !important;
        height: auto !important;
    }

    .r360-app::before {
        display: none !important;
    }

    .r360-print-sheet {
        display: block !important;
    }

    .r360-print-page {
        page-break-after: always;
        break-after: page;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .r360-print-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .r360-print-page img {
        max-width: 100%;
        max-height: 98vh;
        height: auto;
    }
}

/* ── Optional Stage Guide Host (only when cfg.enableGuideHost === true) ─── */
.r360-guide-host {
    display: none;
    position: absolute;
    left: 16px;
    bottom: -7px;
    z-index: 9;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.r360-guide-host.is-dismissed,
.r360-guide-host.is-empty,
.r360-stage.is-zoomed .r360-guide-host {
    display: none !important;
}

.r360-guide-svg {
    width: 84px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.r360-guide-bubble {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 240px;
    padding: 7px 10px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: rgba(10, 34, 82, 0.94);
    border: 1px solid rgba(124, 196, 255, 0.35);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.r360-guide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #14b8a6;
    flex-shrink: 0;
}

.r360-guide-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.r360-guide-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.r360-guide-head {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: r360GuideBob 5.4s ease-in-out infinite;
}

.r360-guide-eyes {
    transform-box: fill-box;
    transform-origin: center;
    animation: r360GuideBlink 5.2s ease-in-out infinite;
}

@keyframes r360GuideBob {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-1px); }
}

@keyframes r360GuideBlink {
    0%, 92%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.12); }
}

@media (min-width: 1080px) and (min-height: 560px) {
    .r360-guide-host {
        display: flex;
    }
}

/* ── Responsive Adjustments ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .r360-floating-logo {
        top: 8px;
        left: 8px;
    }

    .r360-logo-img {
        max-height: 22px;
    }

    .r360-stage {
        padding: 10px 10px;
    }

    .r360-nav-arrow {
        width: 34px;
        height: 46px;
    }

    .r360-nav-arrow.is-prev {
        left: 6px;
    }

    .r360-nav-arrow.is-next {
        right: 6px;
    }

    .r360-toolbar {
        padding: 6px 8px;
        gap: 6px;
        justify-content: center;
    }

    .r360-tb-btn {
        width: 33px;
        height: 33px;
    }

    .r360-tb-divider {
        display: none;
    }

    .r360-bookmark-tab.is-side {
        min-width: 54px;
        height: 24px;
        font-size: 9.5px;
        padding: 0 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .r360-book-shell,
    .r360-drawer,
    .r360-preloader,
    .r360-toast,
    .r360-bookmark-tab,
    .r360-bookmarks-layer {
        transition: none !important;
    }

    .r360-spinner,
    .r360-guide-head,
    .r360-guide-eyes {
        animation: none !important;
    }
}
