/* Ad keeps the source banner's 160×600 frame. Only the lower copy changes, in three steps. */
.sazde-ad-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-light, #f0fdf4);
}

.sazde-ad {
    position: relative;
    width: 160px;
    height: 600px;
    display: block;
    overflow: hidden;
    text-decoration: none;
    font-family: Tahoma, "Segoe UI", sans-serif;
}

.sazde-ad-base {
    display: block;
    width: 160px;
    height: 600px;
}

.sazde-ad-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    pointer-events: none;
    z-index: 4;
}
.sazde-ad-stars .star {
    position: absolute;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 1px 0 #3b0764);
}
.sazde-ad-stars .star path {
    fill: #ffe14a;
    stroke: #fff;
    stroke-width: 1.4;
}
.star-a { top: 6px; right: 68px; width: 22px; height: 22px; }
.star-b { top: 36px; right: 70px; width: 14px; height: 14px; }
.star-b path { fill: #fff; }
.star-c { top: 4px; left: 8px; width: 18px; height: 18px; }
.star-c path { fill: #7dff4a; }
.star-d { top: 58px; left: 6px; width: 16px; height: 16px; }
.star-d path { fill: #21c4dc; }
.star-e { top: 102px; left: 2px; width: 14px; height: 14px; }
.star-e path { fill: #fff; }
.star-f { top: 100px; right: 2px; width: 16px; height: 16px; }

.sazde-ad-logo {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 6px;
    height: 112px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: right;
    line-height: 1;
    z-index: 3;
}

.sazde-ad-mark {
    width: 61px;
    height: 61px;
    object-fit: contain;
    display: block;
}

.sazde-ad-logo-line {
    margin-top: 3px;
    color: #21c4dc;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        2px 2px 0 #0d3f86,
        -1px 0 0 #0d3f86,
        1px 0 0 #0d3f86,
        0 1px 0 #0d3f86;
}

.sazde-ad-copy {
    position: absolute;
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    z-index: 3;
    animation: sazdeAdStage 8s infinite;
}

.sazde-ad-copy {
    top: 388px;
    height: 132px;
    color: #831a67;
    font-weight: 800;
    line-height: 1.35;
}

.sazde-ad-copy p,
.sazde-ad-btn p {
    margin: 0;
    color: inherit;
}

.sazde-ad-copy p {
    animation: sazdeGlow 1.15s infinite;
}

.sazde-ad-copy-1 { animation-delay: 0s; }
.sazde-ad-copy-2 { animation-delay: -4s; font-size: 16.25px; }

.sazde-ad-doodles {
    position: absolute;
    left: 0;
    right: 0;
    top: 368px;
    height: 156px;
    pointer-events: none;
    z-index: 2;
}
.sazde-ad-doodles .doodle {
    position: absolute;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18));
}
.doodle-pencil { top: 8px; right: 2px; transform: rotate(18deg); }
.doodle-ruler { top: 2px; left: 8px; transform: rotate(-8deg); }
.doodle-eraser { bottom: 6px; left: 2px; transform: rotate(-12deg); }
.doodle-clip { bottom: 18px; right: 4px; transform: rotate(8deg); }

.sazde-ad-copy-1 p {
    font-family: Vazirmatn, Tahoma, sans-serif;
    line-height: 1.15;
    animation: none;
    opacity: 1;
}
.sazde-ad-copy-1 p:nth-child(1) {
    font-size: 19.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    transform: scaleX(1.45);
}
.sazde-ad-copy-1 p:nth-child(2) {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transform: scaleX(1.28);
}
.sazde-ad-copy-1 p:nth-child(3) {
    font-size: 24.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transform: scaleX(1.35);
}

.sazde-ad-btn {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 529px;
    height: 42px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: "Baloo Bhaijaan 2", Vazirmatn, Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    background-image: linear-gradient(100deg, #fff 0%, #7dff4a 40%, #fff 70%, #21c4dc 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #3b0764);
    animation: sazdeFoil 2.4s ease-in-out infinite;
}

.sazde-ad-btn::before,
.sazde-ad-btn::after {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    animation: sazdeArrow 0.7s steps(1, end) infinite;
}

.sazde-ad-btn::before { content: "‹"; }
.sazde-ad-btn::after { content: "›"; }

@keyframes sazdeAdStage {
    0% { opacity: 0; }
    4% { opacity: 1; }
    46% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes sazdeGlow {
    0%, 22% {
        opacity: 1;
        text-shadow: none;
    }
    32%, 48% {
        opacity: 0.05;
        text-shadow: none;
    }
    62%, 88% {
        opacity: 1;
        text-shadow:
            1px 0 0 #fff,
            -1px 0 0 #fff,
            0 1px 0 #fff,
            0 -1px 0 #fff,
            2px 2px 0 #7dff4a,
            -2px 1px 0 #7dff4a;
    }
    100% {
        opacity: 1;
        text-shadow: none;
    }
}

@keyframes sazdeFoil {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sazdeArrow {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sazde-ad-copy,
    .sazde-ad-copy p,
    .sazde-ad-btn::before,
    .sazde-ad-btn::after {
        animation: none;
    }
