:root {
    --navy: #07152f;
    --navy-2: #0a2048;
    --blue: #fc5c00;
    --cyan: #65c9ff;
    --white: #f8fbff;
    --muted: #aebed8;
    --ink: #10213f;
    --paper: #f6f9ff;
    --line: rgba(132, 176, 235, .19);
    --shadow: 0 30px 90px rgba(0, 18, 59, .2);
    --radius: 28px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    margin: 0;
    color: var(--white);
    font-family: "Tajawal", sans-serif;
    background: var(--navy);
    overflow-x: hidden
}

body.menu-open {
    overflow: hidden
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

img {
    max-width: 100%;
    display: block
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto
}

.sky {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 72% 10%, #123f80 0, transparent 29%), linear-gradient(150deg, #061329 0%, #081a3c 48%, #051126 100%)
}

.sky:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0 70%, rgba(2, 9, 22, .65));
    pointer-events: none
}

.sky__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .25
}

.sky__glow--one {
    width: 430px;
    height: 430px;
    top: 28%;
    right: -240px;
    background: #0c8dff
}

.sky__glow--two {
    width: 360px;
    height: 360px;
    left: -170px;
    top: 55%;
    background: #5e5bff
}

.stars,
.stars span {
    position: absolute
}

.stars {
    inset: 0
}

.stars span {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 7px #9fe4ff;
    animation: twinkle var(--twinkle, 3s) ease-in-out infinite, drift var(--drift, 18s) linear infinite;
    animation-delay: var(--delay, 0s)
}

@keyframes twinkle {
    50% {
        opacity: .25;
        transform: scale(.65)
    }
}

@keyframes drift {
    to {
        translate: 0 -80px
    }
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    transition: .3s
}

.site-header.is-scrolled {
    background: rgba(5, 17, 39, .82);
    border-color: var(--line);
    backdrop-filter: blur(18px)
}

.site-header__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px
}

.brand img {
    height: 80px;
    width: auto;
}

.brand__mark {
    width: 38px;
    height: 38px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 13px;
    rotate: 45deg;
    background: linear-gradient(135deg, rgba(48, 156, 255, .45), rgba(20, 68, 151, .15));
    box-shadow: 0 0 25px rgba(64, 173, 255, .2)
}

.brand__mark span {
    width: 12px;
    height: 12px;
    border-radius: 50% 0 50% 50%;
    background: #fff;
    box-shadow: 0 0 18px #70d7ff
}

.brand__name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .2px
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 31px;
    color: #c4d1e7;
    font-size: 14px;
    font-weight: 500
}

.main-nav a,
.nav-logout {
    transition: .2s
}

.main-nav a:hover,
.nav-logout:hover {
    color: #fff
}

.main-nav form {
    display: flex
}

.nav-logout {
    padding: 0;
    color: #c4d1e7;
    border: 0;
    background: none;
    cursor: pointer
}

.button {
    min-height: 52px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid #fc5c00;
    border-radius: 15px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #fc5c00, #ec5f0d);
    box-shadow: 0 12px 35px rgba(18, 117, 243, .28);
    cursor: pointer;
    transition: .25s
}

.button:hover {
    translate: 0 -3px;
    box-shadow: 0 17px 43px rgba(18, 117, 243, .38)
}

.button--small {
    min-height: 43px;
    padding-inline: 20px;
    border-radius: 13px;
    font-size: 14px
}

.button--ghost {
    border-color: rgba(188, 214, 255, .24);
    background: rgba(255, 255, 255, .035);
    box-shadow: none
}

.button--ghost:hover {
    border-color: rgba(188, 214, 255, .5);
    background: rgba(255, 255, 255, .08)
}

.button--light {
    color: #0b346f;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 14px 40px rgba(1, 18, 52, .2)
}

.menu-button {
    display: none;
    width: 43px;
    height: 43px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05)
}

.menu-button span {
    height: 2px;
    display: block;
    margin: 5px;
    background: #fff
}

.hero {
    min-height: 100vh;
    position: relative;
    display: grid;
    align-items: center;
    padding: 140px 0 85px
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 40px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #86ceff;
    font-size: 14px;
    font-weight: 700
}

.eyebrow i {
    width: 23px;
    height: 1px;
    position: relative;
    display: inline-block;
    background: #46b8ff
}

.eyebrow i:after {
    content: "";
    width: 4px;
    height: 4px;
    position: absolute;
    left: 0;
    top: -1.5px;
    border-radius: 50%;
    background: #8de3ff;
    box-shadow: 0 0 9px #63cbff
}

.hero h1,
.story-intro h1 {
    margin: 20px 0 22px;
    font-size: clamp(52px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -3px
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, #55c3ff, #b2e7ff);
    -webkit-background-clip: text;
    background-clip: text
}

.hero__copy>p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.9
}

.hero__actions {
    margin-top: 37px;
    display: flex;
    gap: 13px;
    flex-wrap: wrap
}

.hero__note {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #9badca;
    font-size: 13px
}

.avatar-dots {
    display: flex
}

.avatar-dots i {
    width: 29px;
    height: 29px;
    margin-left: -8px;
    border: 2px solid #07172f;
    border-radius: 50%;
    background: linear-gradient(135deg, #399eff, #c5ecff)
}

.avatar-dots i:nth-child(2) {
    background: linear-gradient(135deg, #7776e8, #d8d6ff)
}

.avatar-dots i:nth-child(3) {
    background: linear-gradient(135deg, #1e5da4, #6dbffe)
}

.hero__visual {
    min-height: 570px;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1200px
}

.hero-book {
    width: min(325px, 70vw);
    aspect-ratio: 3/4;
    position: relative;
    z-index: 3;
    padding: 45px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(144, 207, 255, .55);
    border-radius: 13px 31px 31px 13px;
    background: radial-gradient(circle at 50% 45%, #1c6cbe 0, #10396e 37%, #081c42 75%);
    box-shadow: -19px 14px 0 -8px #dcecff, -22px 15px 0 -7px #91bde7, 0 50px 80px rgba(0, 0, 0, .43), inset 10px 0 18px rgba(0, 0, 0, .25);
    transform: rotateY(-10deg) rotateX(2deg);
    animation: bookFloat 6s ease-in-out infinite
}

.hero-book:after {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(168, 221, 255, .28);
    border-radius: 7px 22px 22px 7px
}

.hero-book__shine {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit
}

.hero-book__shine:after {
    content: "";
    width: 80px;
    height: 130%;
    position: absolute;
    top: -15%;
    left: -50%;
    rotate: 18deg;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
    animation: shine 5s ease-in-out infinite
}

.hero-book__kicker {
    position: relative;
    z-index: 2;
    color: #86cef9;
    font-size: 12px
}

.hero-book strong {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    font-size: 29px;
    line-height: 1.35
}

.hero-book small {
    position: relative;
    z-index: 2;
    margin-top: auto;
    color: #b8d7ed
}

.hero-book__planet {
    width: 128px;
    height: 128px;
    position: relative;
    z-index: 2;
    margin-top: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #eefbff 0 3%, #83d8ff 14%, #288cd0 47%, #0b4b95 76%);
    box-shadow: 0 0 50px rgba(70, 187, 255, .45)
}

.hero-book__planet:after {
    content: "";
    width: 172px;
    height: 45px;
    position: absolute;
    top: 42px;
    right: -23px;
    border: 4px solid rgba(187, 232, 255, .75);
    border-radius: 50%;
    rotate: -12deg;
    clip-path: polygon(0 49%, 100% 49%, 100% 100%, 0 100%)
}

.hero-book__planet i {
    width: 31px;
    height: 31px;
    position: absolute;
    top: 23px;
    right: 26px;
    border: 2px solid rgba(5, 61, 121, .26);
    border-radius: 50%
}

.orbit {
    position: absolute;
    border: 1px solid rgba(109, 191, 255, .15);
    border-radius: 50%;
    rotate: -18deg
}

.orbit--outer {
    width: 510px;
    height: 260px
}

.orbit--inner {
    width: 420px;
    height: 420px;
    border-color: rgba(142, 204, 255, .08)
}

.orbit i {
    width: 7px;
    height: 7px;
    position: absolute;
    border-radius: 50%;
    background: #c8efff;
    box-shadow: 0 0 15px #64c9ff
}

.orbit--outer i:first-child {
    right: 22%;
    top: 4%
}

.orbit--outer i:last-child {
    left: 8%;
    bottom: 23%
}

.orbit--inner i {
    right: 15%;
    bottom: 12%
}

.floating-star {
    position: absolute;
    color: #9edfff;
    text-shadow: 0 0 18px #65c6ff;
    animation: pulse 2.4s ease-in-out infinite
}

.floating-star--one {
    top: 12%;
    right: 9%;
    font-size: 25px
}

.floating-star--two {
    bottom: 18%;
    left: 4%;
    font-size: 30px;
    animation-delay: .8s
}

.floating-star--three {
    top: 28%;
    left: 10%;
    font-size: 14px;
    animation-delay: 1.3s
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 24px;
    height: 40px;
    border: 1px solid rgba(158, 204, 255, .3);
    border-radius: 20px
}

.scroll-cue i {
    width: 3px;
    height: 7px;
    position: absolute;
    top: 8px;
    left: 9px;
    border-radius: 4px;
    background: #88d8ff;
    animation: scroll 1.7s infinite
}

@keyframes bookFloat {
    50% {
        transform: rotateY(-10deg) rotateX(2deg) translateY(-14px)
    }
}

@keyframes shine {

    45%,
    100% {
        left: 130%
    }
}

@keyframes pulse {
    50% {
        opacity: .35;
        transform: scale(.75)
    }
}

@keyframes scroll {
    to {
        translate: 0 13px;
        opacity: 0
    }
}

.section {
    padding: 115px 0
}

.stories-section {
    position: relative;
    background: linear-gradient(180deg, rgba(4, 14, 32, .2), rgba(8, 26, 58, .92))
}

.section-heading {
    margin-bottom: 45px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px
}

.section-heading h2 {
    margin: 13px 0 0;
    font-size: clamp(35px, 4vw, 52px);
    letter-spacing: -1.5px
}

.section-heading>p {
    max-width: 400px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8
}

.section-heading--center {
    display: block;
    text-align: center
}

.section-heading--center>p {
    margin: 12px auto 0
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.story-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(11, 33, 71, .72);
    box-shadow: 0 20px 60px rgba(0, 7, 22, .16);
    transition: .3s
}

.story-card:hover {
    translate: 0 -8px;
    border-color: rgba(83, 171, 255, .45);
    box-shadow: 0 28px 70px rgba(0, 7, 22, .32)
}

.story-card__cover {
    aspect-ratio: 4/3;
    position: relative;
    display: block;
    overflow: hidden;
    background: #102f65
}

.story-card__cover:after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(4, 15, 36, .82))
}

.story-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s
}

.story-card:hover .story-card__cover img {
    scale: 1.045
}

.story-card__age {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 15px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 20px;
    font-size: 11px;
    background: rgba(5, 20, 45, .7);
    backdrop-filter: blur(9px)
}

.cover-fallback {
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    background: radial-gradient(circle at 50% 42%, #297cca, #0d356c 47%, #081d43)
}

.cover-fallback span {
    font-size: 53px;
    color: #a9e8ff;
    text-shadow: 0 0 35px #5ac9ff
}

.cover-fallback strong {
    max-width: 260px;
    font-size: 30px
}

.story-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #101d35;
    box-shadow: 0 18px 45px rgba(3, 15, 35, 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.story-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(3, 15, 35, 0.32);
}

.story-card__cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.story-card__cover>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* يعرض الغلاف كاملاً بدون قص */
    background: #101d35;
    transition: transform 0.6s ease;
}

.story-card:hover .story-card__cover>img {
    transform: scale(1.025);
}

.story-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(to top,
            rgba(5, 15, 35, 0.88) 0%,
            rgba(5, 15, 35, 0.35) 27%,
            transparent 55%);
}

.story-card__actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.story-card__view,
.story-card__create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 10px 16px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.story-card__view {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.story-card__create {
    color: #071529;
    background: #77c8ff;
    box-shadow: 0 8px 20px rgba(119, 200, 255, 0.3);
}

.story-card__view:hover,
.story-card__create:hover {
    transform: translateY(-2px);
}

.cover-fallback {
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #142a4d, #254e7a);
}


.story-card__cover {
    position: relative;
    isolation: isolate;
}

.story-card__cover>img,
.cover-fallback {
    position: relative;
    z-index: 1;
}

.story-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    pointer-events: none;
}

.story-card__actions {
    position: relative;
    z-index: 6;
    width: 100%;
    pointer-events: auto;
}

.story-card__actions a {
    position: relative;
    z-index: 7;
    pointer-events: auto;
    cursor: pointer;
}
.text-link {
    font-size: 14px;
    font-weight: 700
}

.text-link span {
    margin-right: 7px;
    color: #67c8ff
}

.button--card {
    min-height: 39px;
    padding-inline: 15px;
    border-radius: 11px;
    font-size: 12px
}

.empty-state {
    padding: 80px 20px;
    text-align: center;
    border: 1px dashed rgba(125, 183, 255, .3);
    border-radius: 28px;
    background: rgba(255, 255, 255, .025)
}

.empty-state>span {
    font-size: 34px;
    color: #8adaff
}

.empty-state h3 {
    margin: 16px 0 5px
}

.empty-state p {
    margin: 0;
    color: var(--muted)
}

.how-section {
    background: #f5f8fd;
    color: var(--ink)
}

.how-section .eyebrow {
    color: #1577df
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.steps:before {
    content: "";
    position: absolute;
    top: 76px;
    right: 16%;
    left: 16%;
    border-top: 1px dashed #bed2e9
}

.step {
    position: relative;
    padding: 35px 28px;
    text-align: center;
    border: 1px solid #e2eaf5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 56, 99, .055)
}

.step b {
    position: absolute;
    top: 15px;
    right: 19px;
    color: #b9c9dd;
    font-size: 11px
}

.step>span {
    width: 76px;
    height: 76px;
    position: relative;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: #167ee8;
    font-size: 30px;
    border-radius: 24px;
    background: #edf6ff;
    box-shadow: 0 0 0 9px #fff
}

.step h3 {
    margin: 0 0 7px
}

.step p {
    margin: 0;
    color: #75849a
}

.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #106dde, #159ced);
    text-align: center
}

.final-cta__inner {
    position: relative
}

.final-cta__star {
    font-size: 32px
}

.final-cta p {
    margin: 12px 0;
    color: #d3ecff
}

.final-cta h2 {
    margin: 0 0 27px;
    font-size: clamp(38px, 5vw, 61px)
}

.site-footer {
    padding: 35px 0;
    background: #040e20;
    border-top: 1px solid var(--line)
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: #778ba9;
    font-size: 12px
}

.brand--footer {
    color: #fff
}

.brand--footer .brand__mark {
    width: 31px;
    height: 31px
}

.brand--footer .brand__name {
    font-size: 17px
}

.site-footer p {
    margin: 0
}

/* Story details and reader */
.story-intro {
    min-height: 780px;
    padding: 170px 0 90px;
    display: grid;
    align-items: center
}

.story-intro__grid {
    display: grid;
    grid-template-columns: 1fr .82fr;
    align-items: center;
    gap: 90px
}

.back-link {
    margin-bottom: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8ea7c9;
    font-size: 13px
}

.story-intro h1 {
    font-size: clamp(48px, 6vw, 76px)
}

.story-intro__copy>p {
    max-width: 600px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9
}

.story-intro__subtitle {
    margin-bottom: 4px !important;
    color: #d9eaff !important;
    font-size: 21px !important
}

.story-meta {
    margin: 28px 0 33px;
    display: flex;
    align-items: center;
    gap: 17px;
    color: #9db0ce
}

.story-meta b {
    color: #fff;
    font-size: 20px
}

.story-meta i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #338fff
}

.story-intro__cover {
    min-height: 540px;
    position: relative;
    display: grid;
    place-items: center
}

.book-cover {
    width: min(340px, 75vw);
    /*     aspect-ratio: 3/4; */
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 12px 28px 28px 12px;
    box-shadow: -18px 14px 0 -9px #d7eaff, -22px 16px 0 -9px #79a4cf, 0 45px 80px rgba(0, 4, 18, .48);
    transform: rotateY(-9deg)
}

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

.cover-fallback--large strong {
    font-size: 36px
}

.cover-orbit {
    width: 490px;
    height: 270px;
    position: absolute;
    border: 1px solid rgba(100, 190, 255, .18);
    border-radius: 50%;
    rotate: -17deg
}

.cover-spark {
    position: absolute;
    color: #8cddff;
    text-shadow: 0 0 18px #62c6ff
}

.cover-spark--one {
    top: 12%;
    right: 7%;
    font-size: 29px
}

.cover-spark--two {
    bottom: 17%;
    left: 4%;
    font-size: 22px
}

.book-section {
    padding: 115px 0;
    background: #f4f7fc;
    color: var(--ink)
}

.book-section .eyebrow {
    color: #1577df
}

.flipbook-wrap {
    position: relative;
    margin-top: 55px;
    padding: 0 82px
}

.flipbook {
    width: min(780px, 100%);
    aspect-ratio: 16/10;
    position: relative;
    margin: auto;
    perspective: 1800px;
    touch-action: pan-y;
    user-select: none;
    outline: none
}

.book-page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    border: 1px solid #dbe5f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 35px 80px rgba(15, 47, 92, .18);
    opacity: 0;
    visibility: hidden;
    transform-origin: right center;
    transform: rotateY(22deg) translateX(30px) scale(.95);
    transition: opacity .28s, transform .55s cubic-bezier(.2, .75, .2, 1), visibility .55s
}

.book-page.is-active {
    z-index: 3;
    opacity: 1;
    visibility: visible;
    transform: none
}

.book-page.is-before {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform-origin: left center;
    transform: rotateY(-35deg) translateX(-35px) scale(.94)
}

.book-page.is-turning-next {
    animation: turnNext .52s ease
}

.book-page.is-turning-prev {
    animation: turnPrev .52s ease
}

.book-page__media {
    min-width: 0;
    overflow: hidden;
    background: #dfeaf8
}

.book-page__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none
}

.chapter-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    color: #fff;
    background: radial-gradient(circle at 50% 45%, #338fd1, #124a91 52%, #092653)
}

.chapter-placeholder span {
    font-size: 50px
}

.book-page__caption {
    padding: 42px 33px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.book-page__caption small {
    color: #1680ea;
    font-weight: 800
}

.book-page__caption h3 {
    margin: 10px 0 18px;
    font-size: 29px
}

.book-page__caption p {
    max-height: 220px;
    margin: 0;
    color: #61728a;
    font-size: 14px;
    line-height: 1.9;
    overflow: auto;
    white-space: pre-line
}

.book-page--cover {
    display: block;
    color: #fff;
    background: radial-gradient(circle at 50% 45%, #1d70c4, #0b376f 50%, #071a3c)
}

.book-page--cover>img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.book-page__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 13, 31, .1), rgba(3, 13, 31, .82))
}

.book-page__cover-copy {
    position: absolute;
    right: 9%;
    bottom: 10%;
    left: 9%;
    text-align: center
}

.book-page__cover-copy small {
    color: #9edcff
}

.book-page__cover-copy h3 {
    margin: 10px 0;
    font-size: clamp(32px, 5vw, 53px)
}

.book-page__cover-copy span {
    color: #d4e6f7
}

.book-page--end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: radial-gradient(circle at 50% 45%, #1385e8, #0a4ca9 55%, #072b69)
}

.book-page--end>span {
    font-size: 50px
}

.book-page--end small {
    margin-top: 15px;
    color: #cae8ff
}

.book-page--end h3 {
    margin: 10px 0 27px;
    font-size: 39px
}

.book-arrow {
    width: 51px;
    height: 51px;
    position: absolute;
    z-index: 5;
    top: calc(50% - 25px);
    display: grid;
    place-items: center;
    border: 1px solid #d9e5f3;
    border-radius: 50%;
    color: #154d8a;
    font-size: 20px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(26, 58, 100, .12);
    cursor: pointer;
    transition: .2s
}

.book-arrow:hover {
    color: #fff;
    border-color: #187fea;
    background: #187fea
}

.book-arrow:disabled {
    opacity: .25;
    cursor: not-allowed
}

.book-arrow--prev {
    right: 8px
}

.book-arrow--next {
    left: 8px
}

.book-progress {
    max-width: 520px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #8090a5;
    font-size: 12px
}

.book-progress i {
    height: 3px;
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #d6e1ee
}

.book-progress b {
    width: 0;
    height: 100%;
    position: absolute;
    right: 0;
    border-radius: 4px;
    background: #1682ed;
    transition: .45s
}

.create-section {
    padding: 110px 0;
    background: linear-gradient(180deg, #081b3d, #06152f)
}

.create-card {
    padding: 55px;
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 65px;
    border: 1px solid rgba(117, 184, 255, .2);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(20, 68, 130, .6), rgba(7, 28, 65, .72));
    box-shadow: 0 40px 100px rgba(0, 5, 20, .25)
}

.create-card__copy h2 {
    margin: 18px 0 12px;
    font-size: 40px;
    line-height: 1.25
}

.create-card__copy p,
.login-card p {
    color: var(--muted);
    line-height: 1.8
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px
}

.field {
    display: block
}

.field>span {
    margin-bottom: 8px;
    display: block;
    color: #c5d4e9;
    font-size: 13px;
    font-weight: 700
}

.field em {
    color: #7188a9;
    font-size: 10px;
    font-style: normal
}

.field input[type=text] {
    width: 100%;
    height: 51px;
    padding: 0 16px;
    color: #fff;
    outline: 0;
    border: 1px solid rgba(129, 177, 235, .2);
    border-radius: 13px;
    background: rgba(3, 17, 40, .55);
    transition: .2s
}

.field input[type=text]:focus {
    border-color: #2e9afc;
    box-shadow: 0 0 0 4px rgba(37, 145, 247, .1)
}

.file-field {
    position: relative
}

.file-field input {
    width: 100%;
    height: 51px;
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer
}

.file-field i {
    height: 51px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border: 1px dashed rgba(129, 177, 235, .34);
    border-radius: 13px;
    color: #8097b7;
    font-size: 12px;
    font-style: normal;
    background: rgba(3, 17, 40, .38)
}

.field small,
.form-error {
    margin-top: 6px;
    display: block;
    color: #ff8d9c;
    font-size: 11px
}

.consent {
    margin: 21px 0;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer
}

.consent input {
    position: absolute;
    opacity: 0
}

.consent>span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid #58769e;
    border-radius: 6px
}

.consent input:checked+span {
    border-color: #1889f8;
    background: #1889f8
}

.consent input:checked+span:after {
    content: "✓";
    color: #fff;
    font-size: 13px
}

.consent p {
    margin: 0;
    color: #879cba;
    font-size: 12px
}

.create-submit {
    width: 100%;
    border: 0
}

.login-card {
    align-self: center
}

.reader-head {
    padding: 145px 0 35px
}

.reader-head__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px
}

.reader-head h1 {
    margin: 14px 0 0;
    font-size: clamp(35px, 5vw, 58px)
}

.reader-book-section {
    min-height: calc(100vh - 240px);
    padding: 35px 0 100px
}

.reader-hint {
    margin-bottom: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    color: #6f88ac;
    font-size: 12px
}

.reader-hint i {
    width: 38px;
    border-top: 1px dashed #4771a6
}

.flipbook-wrap--reader {
    color: var(--ink)
}

.flipbook--reader {
    width: min(900px, 100%);
    aspect-ratio: 16/10
}

.generation-state {
    min-height: calc(100vh - 270px);
    padding: 40px 0 100px;
    display: grid;
    align-items: center
}

.generation-card {
    min-height: 350px;
    padding: 65px;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(10, 34, 76, .62)
}

.generation-orb {
    width: 150px;
    height: 150px;
    padding: 10px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(95, 199, 255, .42);
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(29, 145, 245, .15);
    animation: pulse 2.8s ease-in-out infinite
}

.generation-orb span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 25px;
    font-weight: 800;
    background: radial-gradient(circle, #177fd9, #0b3b7c)
}

.generation-card h2 {
    margin: 13px 0 8px;
    font-size: 37px
}

.generation-card p {
    margin: 0;
    color: var(--muted)
}

.generation-line {
    height: 4px;
    position: absolute;
    right: 65px;
    bottom: 55px;
    left: 65px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(255, 255, 255, .08)
}

.generation-line i {
    height: 100%;
    display: block;
    border-radius: 5px;
    background: linear-gradient(90deg, #1c7df0, #6bd8ff)
}

.generation-card--error>span {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ff95a4;
    font-size: 36px;
    background: rgba(255, 87, 113, .12)
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease, transform .75s ease
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none
}

@keyframes turnNext {
    45% {
        transform-origin: right;
        transform: perspective(1200px) rotateY(-18deg) scale(.97);
        filter: brightness(.82)
    }
}

@keyframes turnPrev {
    45% {
        transform-origin: left;
        transform: perspective(1200px) rotateY(18deg) scale(.97);
        filter: brightness(.86)
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }

    .stars {
        display: none
    }

    [data-reveal] {
        opacity: 1;
        transform: none
    }
}

@media(max-width:980px) {
    .main-nav {
        position: fixed;
        inset: 88px 20px auto;
        padding: 25px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(5, 20, 45, .98);
        box-shadow: var(--shadow)
    }

    .main-nav.is-open {
        display: flex
    }

    .menu-button {
        display: block;
        margin-right: auto
    }

    .header-cta {
        display: none
    }

    .hero__grid,
    .story-intro__grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 145px
    }

    .hero__copy {
        text-align: center
    }

    .hero__copy .eyebrow,
    .hero__actions,
    .hero__note {
        justify-content: center
    }

    .hero__copy>p {
        margin-inline: auto
    }

    .hero__visual {
        min-height: 500px
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .story-intro__grid {
        gap: 35px
    }

    .story-intro__copy {
        text-align: center
    }

    .story-intro__copy .eyebrow,
    .story-meta,
    .story-intro__copy .button {
        justify-content: center
    }

    .story-intro__copy>p {
        margin-inline: auto
    }

    .back-link {
        justify-content: center
    }

    .create-card {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .create-card__copy {
        text-align: center
    }

    .book-page {
        grid-template-columns: 1.2fr .8fr
    }
}

@media(max-width:680px) {
    .shell {
        width: min(100% - 26px, 1180px)
    }

    .site-header__inner {
        min-height: 72px
    }

    .main-nav {
        inset: 72px 13px auto
    }

    .hero {
        min-height: auto;
        padding: 120px 0 75px
    }

    .hero h1 {
        font-size: 47px;
        letter-spacing: -2px
    }

    .hero__copy>p {
        font-size: 16px
    }

    .hero__actions .button {
        width: 100%
    }

    .hero__visual {
        min-height: 410px;
        margin-top: 20px
    }

    .hero-book {
        width: 230px;
        padding: 30px 24px
    }

    .hero-book strong {
        font-size: 22px
    }

    .hero-book__planet {
        width: 92px;
        height: 92px
    }

    .hero-book__planet:after {
        width: 125px;
        height: 38px;
        top: 29px;
        right: -17px
    }

    .orbit--outer {
        width: 340px;
        height: 180px
    }

    .orbit--inner {
        width: 310px;
        height: 310px
    }

    .scroll-cue {
        display: none
    }

    .section {
        padding: 80px 0
    }

    .section-heading {
        display: block;
        text-align: center
    }

    .section-heading>p {
        margin: 14px auto 0
    }

    .stories-grid {
        grid-template-columns: 1fr
    }

    .story-card {
        max-width: 430px;
        margin-inline: auto
    }

    .steps {
        grid-template-columns: 1fr
    }

    .steps:before {
        display: none
    }

    .site-footer__inner {
        flex-direction: column;
        text-align: center
    }

    .story-intro {
        min-height: auto;
        padding: 120px 0 80px
    }

    .story-intro h1 {
        font-size: 47px
    }

    .story-intro__cover {
        min-height: 430px
    }

    .book-cover {
        width: 250px
    }

    .cover-orbit {
        width: 340px;
        height: 190px
    }

    .book-section {
        padding: 80px 0
    }

    .flipbook-wrap {
        padding: 0
    }

    .flipbook {
        width: 100%;
        aspect-ratio: 3/4
    }

    .book-page {
        grid-template-columns: 1fr;
        grid-template-rows: 1.35fr .65fr;
        border-radius: 16px
    }

    .book-page__caption {
        padding: 18px 21px
    }

    .book-page__caption h3 {
        margin: 4px 0 7px;
        font-size: 22px
    }

    .book-page__caption p {
        max-height: 95px;
        font-size: 12px;
        line-height: 1.65
    }

    .book-arrow {
        width: 45px;
        height: 45px;
        top: auto;
        bottom: -68px
    }

    .book-arrow--prev {
        right: 15px
    }

    .book-arrow--next {
        left: 15px
    }

    .book-progress {
        margin-top: 28px;
        padding: 0 72px
    }

    .create-section {
        padding: 90px 0
    }

    .create-card {
        padding: 35px 20px;
        border-radius: 24px
    }

    .create-card__copy h2 {
        font-size: 32px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .reader-head {
        padding: 115px 0 20px
    }

    .reader-head__inner {
        display: block;
        text-align: center
    }

    .reader-head .back-link {
        margin-bottom: 25px
    }

    .reader-head .button {
        margin-top: 20px
    }

    .reader-book-section {
        padding-top: 25px
    }

    .flipbook-wrap--reader {
        padding-bottom: 55px
    }

    .flipbook--reader {
        aspect-ratio: 3/4
    }

    .generation-card {
        padding: 35px 22px 75px;
        display: block;
        text-align: center
    }

    .generation-orb {
        width: 120px;
        height: 120px;
        margin: 0 auto 30px
    }

    .generation-card h2 {
        font-size: 30px
    }

    .generation-line {
        right: 22px;
        bottom: 38px;
        left: 22px
    }

    .generation-card--error>span {
        margin: 0 auto 25px
    }
}

#flipbook .page {
    position: relative;
    overflow: hidden;
}

#flipbook .page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(135deg,
            rgba(114, 87, 255, .45),
            rgba(255, 255, 255, .9) 48%,
            transparent 50%);
    filter: drop-shadow(3px 3px 4px rgba(23, 20, 43, .25));
}

/* صفحة الفصل: صورة فقط تغطي الصفحة كاملة */
.book-page.book-page--chapter {
    display: block;
    padding: 0;
    border: 0;
    background: #07152f;
}

.book-page--chapter>img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.book-page--chapter .book-page__empty {
    width: 100%;
    height: 100%;
    background: #07152f;
}

.flipbook {
    width: min(780px, 100%);
    position: relative;
    margin: auto;
    perspective: 1800px;
    touch-action: pan-y;
    user-select: none;
    outline: none;

    /* احذف aspect-ratio: 16/10 */
}

/* صورة مخفية تحدد ارتفاع الكتاب حسب نسبة الصورة الأصلية */
.flipbook__size-reference {
    display: block;
    width: 100%;
    height: auto;
    visibility: hidden;
    pointer-events: none;
}

.book-page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: block;
    border: 1px solid #dbe5f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 35px 80px rgba(15, 47, 92, .18);
}

.book-page__full-image {
    display: block;
    width: 100%;
    height: 100%;

    /* إظهار الصورة كاملة بدون قص */
    object-fit: contain;
    object-position: center;

    pointer-events: none;
    user-select: none;
}

.book-page--chapter {
    padding: 0;
    overflow: hidden;
    background: #07152f;
}

.book-page--chapter>img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   NewDay Story Flipbook
   ========================================================= */

.book-section {
    padding: 100px 0;
    overflow: hidden;
    color: var(--ink);
    background: #f4f7fc;
}

.book-section .eyebrow {
    color: #1577df;
}

.flipbook-wrap {
    position: relative;
    margin-top: 55px;
    padding: 0 75px;
}

/*
 * المقاس النهائي يوضع بواسطة JavaScript بناءً على نسبة الصورة.
 */
.flipbook,
.flipbook.turn-book {
    width: auto;
    height: auto;
    max-width: 100%;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    outline: none;
    perspective: 1800px;
    touch-action: pan-y;
    user-select: none;
    aspect-ratio: auto !important;
}

/*
 * إلغاء تنسيقات نظام التقليب القديم التي تتعارض مع Turn.js.
 */
.flipbook.turn-book .book-page {
    inset: auto;
    display: block;
    padding: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #07152f;
    box-shadow: none;
}

/*
 * صفحات الفصول: صورة فقط.
 */
.flipbook.turn-book .book-page--chapter {
    display: block;
    padding: 0;
    overflow: hidden;
    background: #07152f;
}

.flipbook.turn-book .book-page__full-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/*
 * يظهر فقط إذا لم يكن الفصل يحتوي على صورة.
 */
.flipbook.turn-book .chapter-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 50% 45%,
            #338fd1,
            #124a91 52%,
            #092653);
}

.flipbook.turn-book .chapter-placeholder span {
    font-size: 48px;
}

/*
 * أزرار التنقل.
 */
.flipbook-wrap .book-arrow {
    width: 51px;
    height: 51px;
    position: absolute;
    z-index: 30;
    top: calc(50% - 50px);
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d9e5f3;
    border-radius: 50%;
    color: #154d8a;
    font-size: 20px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(26, 58, 100, 0.12);
    cursor: pointer;
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s,
        opacity 0.2s;
}

.flipbook-wrap .book-arrow:hover:not(:disabled) {
    color: #fff;
    border-color: #187fea;
    background: #187fea;
}

.flipbook-wrap .book-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.flipbook-wrap .book-arrow--prev {
    right: 8px;
}

.flipbook-wrap .book-arrow--next {
    left: 8px;
}

/*
 * مؤشر تقدم الصفحات.
 */
.flipbook-wrap .book-progress {
    max-width: 520px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #8090a5;
    font-size: 12px;
}

.flipbook-wrap .book-progress i {
    height: 3px;
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #d6e1ee;
}

.flipbook-wrap .book-progress b {
    width: 0;
    height: 100%;
    position: absolute;
    right: 0;
    border-radius: 4px;
    background: #1682ed;
    transition: width 0.45s;
}

/*
 * الهاتف.
 */
@media (max-width: 680px) {
    .book-section {
        padding: 75px 0 95px;
    }

    .flipbook-wrap {
        padding: 0;
    }

    .flipbook,
    .flipbook.turn-book {
        max-width: 100%;
        aspect-ratio: auto !important;
    }

    .flipbook.turn-book .book-page {
        border-radius: 10px;
    }

    .flipbook-wrap .book-arrow {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: -68px;
    }

    .flipbook-wrap .book-arrow--prev {
        right: 12px;
    }

    .flipbook-wrap .book-arrow--next {
        left: 12px;
    }

    .flipbook-wrap .book-progress {
        margin-top: 27px;
        padding: 0 70px;
    }
}

.flipbook,
.flipbook.turn-book {
    width: min(860px, 100%);
    height: auto;
    aspect-ratio: 8 / 5;
    position: relative;
    margin: 0 auto;
    overflow: visible;
    outline: none;
    perspective: 1800px;
    touch-action: pan-y;
    user-select: none;
}

@media (max-width: 680px) {

    .flipbook,
    .flipbook.turn-book {
        width: min(390px, 100%);
        aspect-ratio: 4 / 5;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* زر الملف الشخصي */
.profile-dropdown {
    position: relative;
}

.profile-dropdown summary {
    list-style: none;
}

.profile-dropdown summary::-webkit-details-marker {
    display: none;
}

.profile-button,
.account-login-button {
    min-height: 43px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 12, 39, 0.15);
    cursor: pointer;
    transition: 0.25s;
}

.profile-button:hover,
.account-login-button:hover {
    translate: 0 -2px;
    background: #f4f8ff;
    box-shadow: 0 14px 35px rgba(0, 12, 39, 0.22);
}

.profile-button__icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, #188dff, #1161e6);
}

.profile-button__arrow {
    transition: transform 0.25s;
}

.profile-dropdown[open] .profile-button__arrow {
    transform: rotate(180deg);
}

/* القائمة المنسدلة */
.profile-dropdown__menu {
    width: 245px;
    position: absolute;
    z-index: 100;
    top: calc(100% + 12px);
    left: 0;
    padding: 9px;
    overflow: hidden;
    border: 1px solid rgba(15, 43, 83, 0.1);
    border-radius: 17px;
    color: var(--navy);
    background: #fff;
    box-shadow: 0 25px 65px rgba(0, 13, 45, 0.28);
    animation: profileDropdownIn 0.2s ease;
}

@keyframes profileDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown__user {
    padding: 11px 12px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e8eef7;
}

.profile-dropdown__user strong,
.profile-dropdown__user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown__user strong {
    color: var(--navy);
    font-size: 14px;
}

.profile-dropdown__user small {
    margin-top: 3px;
    color: #6d7e96;
    font-size: 11px;
    direction: ltr;
    text-align: right;
}

.profile-dropdown__item {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
}

.profile-dropdown__item:hover {
    color: #126bea;
    background: #eef5ff;
}

.profile-dropdown__item span {
    width: 21px;
    color: #1680ea;
    text-align: center;
}

.profile-dropdown__logout {
    margin: 5px 0 0;
    padding-top: 5px;
    border-top: 1px solid #e8eef7;
}

.profile-dropdown__item--logout {
    color: #d6334c;
}

.profile-dropdown__item--logout span {
    color: inherit;
}

.profile-dropdown__item--logout:hover {
    color: #c41e38;
    background: #fff0f2;
}

@media (max-width: 760px) {
    .header-actions {
        margin-right: auto;
        gap: 7px;
    }

    .profile-button,
    .account-login-button {
        min-height: 40px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .profile-button__text {
        display: none;
    }

    .profile-button__arrow {
        display: none;
    }

    .profile-button__icon {
        width: 25px;
        height: 25px;
    }

    .profile-dropdown__menu {
        position: fixed;
        top: 78px;
        right: 15px;
        left: 15px;
        width: auto;
    }

    .header-cta {
        min-height: 40px;
        padding-inline: 13px;
        font-size: 12px;
    }
}