/* 
    Author Page V11 - Ambient Cover Engine & GSAP Flow
    A completely out-of-the-box Fihris experience.
*/

:root {
    --bg-page: #F4F1ED;
    --text-main: #1C1C19;
    --text-muted: #6B6862;

    /* Variables filled by Blade */
    --author-theme-solid: #D97706;
    --author-theme-glow: rgba(217, 119, 6, 0.4);
    --author-theme-light: rgba(217, 119, 6, 0.1);

    --font-serif: 'Aref Ruqaa', serif;
    --font-sans: 'Noto Kufi Arabic', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── 1. The Welcome Curtain (Loading) ── */
.v9-loading {
    position: fixed;
    inset: 0;
    background: var(--author-theme-solid);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    transform-origin: top;
}

.v9-loading.loaded {
    transform: translateY(-100%);
}

.v9-loading-brand {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--author-theme-solid-text);
    margin-bottom: 2rem;
}

.v9-loading-pulse {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.v9-loading-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    animation: loading-line 1.5s infinite ease-in-out;
}

@keyframes loading-line {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* ── Ambient Underlayer ── */
.v9-noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

.v9-ambient-words {
    position: fixed;
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-serif);
    font-size: 25vw;
    color: var(--text-main);
    opacity: 0.02;
    z-index: -5;
    pointer-events: none;
    user-select: none;
}

/* ── Floating Island Navigation (Creative Design) ── */
.v10-floating-island {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 300px;
    /* Opacity is handled by GSAP, but top animation is CSS for scrolling hide */
    transition: top 0.4s ease;
}

.v10-floating-island.nav-hidden {
    top: -100px;
}

.v10-island-links {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    width: 100%;
}

.v10-island-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.2rem 0;
    transition: all 0.3s;
}

.v10-island-links a:hover,
.v10-island-links a.active {
    color: var(--author-theme-solid);
}

.v10-island-progress-wrap {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.v10-island-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--author-theme-solid);
    transition: width 0.1s;
    border-radius: 4px;
}

/* ── Main Wrapper ── */
.v9-main-wrapper {
    overflow-x: hidden;
    position: relative;
    padding-top: 40px;
}

/* ── 2. The Literary Arch Hero ── */
.v9-arch-header {
    position: relative;
    height: auto !important;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 12vh 5vw 8vh 5vw;
    overflow: visible !important;
}

.v9-abstract-smoke {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at center, var(--author-theme-glow) 0%, transparent 70%);
    opacity: 0.8;
    filter: blur(80px);
    z-index: -1;
    animation: float-smoke 15s infinite alternate ease-in-out;
}

@keyframes float-smoke {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10vw, 5vh) scale(1.1);
    }
}

.v9-arch-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.v9-arch-content {
    flex: 1;
    max-width: 700px;
    z-index: 5;
    overflow: visible !important;
}

.v9-arch-name {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.v9-arch-name::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--author-theme-solid);
}

.v9-arch-bio {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    margin-top: 2rem;
    overflow: visible !important;
    white-space: normal;
    word-wrap: break-word;
    padding: 0;
}

/* Social & CTA Elements */
.v9-arch-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.v9-btn-master {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2.5rem;
    background: #252422;
    color: #ede9e1;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    max-width: 380px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.v9-btn-master:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: #111;
}

.v9-goodreads-btn {
    border-right: 4px solid var(--author-theme-solid);
}

.v9-stamps-dock {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.v9-stamp {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.v9-stamp:hover {
    background: var(--author-theme-light);
    color: var(--author-theme-solid);
    border-color: var(--author-theme-solid);
    transform: translateY(-3px);
}

/* The Arch Visual Frame */
.v9-arch-visual {
    flex: 0 0 450px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.v9-arch-frame {
    width: 100%;
    aspect-ratio: 0.75;
    border-radius: 180px 180px 30px 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    border: 8px solid var(--bg-page);
    position: relative;
    background: var(--author-theme-light);
}

.v9-arch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v9-arch-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 10rem;
    color: var(--author-theme-solid);
}


/* ── 3. The Cinematic Stage (Novels) - V11 ── */
.v9-cinematic-stage {
    position: relative;
    padding: 15vh 0;
    margin-top: 5vh;
}

/* V11: Ambient background container */
.v11-bg-cover-wrap {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    background: #1a1a1a;
    /* fallback */
}

/* V12: Double-Layer GPU-Safe Blur Engine */
.v11-bg-layer {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Safe blur (30px) + Scale (2.5x) = 75px effective blur without GPU overload on mobile */
    filter: blur(30px) brightness(0.6) saturate(1.5);
    transform: scale(2.5);
    opacity: 0;
    will-change: opacity, transform;
}

/* The active layer fades in softly */
.v11-bg-layer.active {
    opacity: 1;
}

/* V11: Dark overlay to guarantee typography is highly contrasted */
.v11-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    /* Rich dark cinematic tone */
}

.v9-stage-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
}

/* Swiper Tuning */
.swiper-v9 {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.v9-slide-item {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
    transition: filter 0.5s ease;
}

.v9-book-object {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 4px 12px 12px 4px;
    overflow: hidden;
    position: relative;
}

.v9-book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v9-book-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 5%, rgba(0, 0, 0, 0.1) 8%, transparent 100%);
    pointer-events: none;
}

/* The Clean Pure Typography Info Block */
.v9-pure-info-block {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--author-theme-solid-text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.5s;
    min-height: 200px; /* Secure height to avoid layout jumps / Glitches */
}

.v9-pure-info-block.info-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v9-pure-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--author-theme-solid-text);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.v9-pure-tags {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.v9-pure-tags span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v9-pure-tags span::after {
    content: '•';
    margin-right: 0.8rem;
    opacity: 0.3;
}

.v9-pure-tags span:last-child::after {
    content: '';
}

.v9-pure-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 2.5rem auto;
    max-width: 650px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    width: 90%;
    word-wrap: break-word;
}

.v9-pure-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.v9-pure-actions .v8-btn {
    padding: 0.85rem 2.2rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    min-width: 160px;
}

/* Beautiful Action Buttons for the stage */
.v10-btn-jarir {
    background: #fff;
    color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.v10-btn-jarir:hover {
    transform: translateY(-3px);
}

.v10-btn-publisher {
    background: rgba(255, 255, 255, 0.15);
    color: var(--author-theme-solid-text);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.v10-btn-publisher:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* V11: Explicit styling for Goodreads inside the pure actions block */
.v8-btn-goodreads {
    background: rgba(0, 0, 0, 0.5);
    color: var(--author-theme-solid-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.v8-btn-goodreads:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}


/* ── 4. Stores Section ── */
.v9-stores {
    padding: 8vh 5vw 12vh 5vw;
    text-align: center;
}

.v9-tiny-title {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2rem;
}

.v9-store-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.v9-store-pill {
    padding: 0.9rem 2.5rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.v9-store-pill:hover {
    background: var(--author-theme-solid);
    color: var(--author-theme-solid-text);
    border-color: var(--author-theme-solid);
    transform: translateY(-3px);
}

/* ── 5. Minimal Footer ── */
.v9-footer {
    padding: 6vh 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.v9-footer-mark {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.v9-footer-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.v9-footer-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.v9-footer-copy {
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.85rem;
}


/* ── Mobile Layout Master adjustments ── */
@media (max-width: 992px) {
    .v10-floating-island {
        min-width: 90%;
        border-radius: 50px;
        top: 15px;
        padding: 0.5rem 1rem;
    }

    .v10-island-links a {
        font-size: 0.85rem;
    }

    .v9-arch-header {
        padding: 15vh 6vw 5vh 6vw;
        display: block;
        height: auto !important;
        min-height: auto;
        overflow: visible !important;
    }

    .v9-arch-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        overflow: visible !important;
    }

    .v9-arch-bio {
        margin: 2rem auto;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .v9-arch-visual {
        flex: auto;
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }

    .v9-arch-frame {
        max-width: 300px;
        margin: 0 auto;
        border-radius: 150px 150px 15px 15px;
    }

    .v9-arch-name {
        font-size: clamp(2rem, 8vw, 3.2rem);
        line-height: 1.3;
    }

    .v9-arch-name::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: -15px;
    }

    /* Center the underline */

    .v9-btn-master {
        margin: 0 auto;
        width: 100%;
        max-width: none;
        justify-content: center;
        gap: 1rem;
    }

    /* ── Fix: Social Icons on Mobile ── */
    .v9-arch-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .v9-stamps-dock {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .v9-stamp {
        display: flex !important;
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }

    .v9-stamp svg {
        width: 22px !important;
        height: 22px !important;
    }

    .v11-bg-cover-wrap {
        clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
    }

    .swiper-slide {
        width: 230px;
    }

    .v9-pure-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 1024px) {
    .swiper-slide {
        width: 340px;
    }
}

/* ═══════ 6. Visual Share Setup (Story Card & Modal) ═══════ */

/* Modal */
.v11-share-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.v11-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.v11-share-modal-box {
    position: relative;
    background: var(--bg-main);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.v11-close-share {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-main);
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v11-share-title {
    font-family: 'Aref Ruqaa', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--author-theme-solid);
    text-shadow: 0 2px 10px var(--author-theme-light);
    letter-spacing: 0.5px;
}

.v11-share-loading p {
    color: #ffffff;
    margin-top: 1rem;
    font-size: 1rem;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 500;
}

.v11-share-result img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1rem;
    max-height: 55vh;
    object-fit: contain;
    background: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.v11-share-hint {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.v11-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.v11-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v11-btn-primary {
    background: var(--author-theme-solid);
    color: var(--author-theme-solid-text);
    border: 1px solid var(--author-theme-solid);
    box-shadow: 0 8px 20px var(--author-theme-light);
}

.v11-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--author-theme-light);
    filter: brightness(1.1);
}

.v11-btn-secondary {
    background: transparent;
    color: var(--author-theme-solid);
    border: 2px solid var(--author-theme-solid);
}

.v11-btn-secondary:hover {
    background: var(--author-theme-solid);
    color: var(--author-theme-solid-text);
    transform: translateY(-3px);
}

/* The 1080x1920 Story Template (Hidden but Renderable) */
.v11-story-template {
    position: absolute;
    left: -9999px;
    top: -9999px;
    /* Off-screen */
    width: 1080px;
    height: 1920px;
    background: #0F0A06;
    overflow: hidden;
    font-family: 'Noto Kufi Arabic', sans-serif;
    color: var(--author-theme-solid-text);
    display: flex;
    flex-direction: column;
}

.v11-story-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) saturate(1.5) brightness(0.6);
    opacity: 0.8;
    z-index: 1;
}

.v11-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 10, 6, 0.3) 0%, rgba(15, 10, 6, 0.8) 100%);
    z-index: 2;
}

.v11-story-glass-blobs {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.v11-story-glass-blobs .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.v11-story-glass-blobs .shape-1 {
    width: 800px;
    height: 800px;
    background: var(--author-theme-solid);
    top: -200px;
    right: -200px;
}

.v11-story-glass-blobs .shape-2 {
    width: 600px;
    height: 600px;
    background: var(--author-theme-solid);
    bottom: -100px;
    left: -200px;
    mix-blend-mode: screen;
    opacity: 0.4;
}

.v11-story-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 120px 80px;
}

.v11-story-author {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 40px;
    border-radius: 100px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.v11-story-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--author-theme-solid);
    background: #000;
}

.v11-story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v11-story-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--author-theme-solid);
    font-family: 'Aref Ruqaa', serif;
    font-size: 3.5rem;
    color: var(--author-theme-solid-text);
}

.v11-story-author-info h4 {
    font-family: 'Aref Ruqaa', serif;
    font-size: 2.8rem;
    margin: 0;
    color: var(--author-theme-solid-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.v11-story-author-info p {
    font-size: 1.5rem;
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Space Grotesk', sans-serif;
    direction: ltr;
    text-align: right;
}

.v11-story-book-frame {
    margin: auto 0;
    text-align: center;
}

.v11-story-cover {
    width: 600px;
    max-width: 80%;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
    object-fit: cover;
}

.v11-story-book-details h2 {
    font-family: 'Aref Ruqaa', serif;
    font-size: 5.5rem;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--author-theme-solid-text);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.v11-story-subtitle {
    display: inline-block;
    font-size: 2rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 40px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.05);
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.v11-story-footer-stamp {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
}

.v11-story-footer-stamp span {
    font-size: 1.8rem;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.v11-story-footer-stamp strong {
    font-family: 'Aref Ruqaa', serif;
    font-size: 3.5rem;
    color: #ffffff;
    line-height: 1;
}

/* ═══════ Leaks Section ═══════ */
.v10-leaks-link {
    position: relative;
}
.v10-leaks-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--author-theme-solid);
    transform: translate(-50%, -50%);
    animation: v9-leaks-dot 2s infinite;
    pointer-events: none;
    opacity: 0;
}
@keyframes v9-leaks-dot {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -270%) scale(1); }
}

.v9-leaks-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(circle at center, var(--author-theme-solid), #0F0A06);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.v9-leaks-transition.active { opacity: 1; pointer-events: auto; }

.v9-section-leaks {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}
.v9-leaks-inner { position: relative; z-index: 5; }
.v9-leaks-glow {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--author-theme-glow) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    opacity: 0.4;
    animation: v9-leaks-glow-pulse 4s infinite alternate ease-in-out;
    pointer-events: none;
}
@keyframes v9-leaks-glow-pulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}
.v9-leaks-content { position: relative; z-index: 10; }
.v9-leaks-icon {
    margin-bottom: 1.5rem;
    animation: v9-leaks-float 3s infinite alternate ease-in-out;
}
@keyframes v9-leaks-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@media (max-width: 600px) {
    .v9-section-leaks { min-height: 60vh; padding: 3rem 1.5rem; }
    .v9-leaks-glow { width: 250px; height: 250px; }
}