@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

:root {
    --sand: #fbf2e2;
    --sand2: #f1e1c5;
    --line: #e6d2ac;
    --ink: #2b1d12;
    --soft: #6e5a45;
    --faint: #9c8768;
    --orange: #c1521b;
    --orange2: #8f3a12;
    --orangeTint: #fbe3d2;
    --teal: #0e8e8a;
    --teal2: #0a6663;
    --tealTint: #dcf2ef;
    --gold: #d9a441;
    --white: #fff;
    --dark: #17221f;
    --dark2: #10201d;
    --darkCard: #1c2f2a;
    --shadow: 0 18px 55px rgba(43, 29, 18, .12);
    --radius: 1.35rem;
    --pill: 999px;
    --container: 78rem;
    --transition: .35s cubic-bezier(.2, .8, .2, 1)
}

html {
    scroll-behavior: smooth
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

body.dark {
    background: var(--dark2);
    color: #f4eee5;
    --soft: #c4b7a4;
    --faint: #9d9386;
    --line: #314740;
    --sand2: #22332f;
    --white: #1c2f2a;
    --orangeTint: #4b2b1d;
    --tealTint: #173d3a;
    --shadow: 0 18px 55px rgba(0, 0, 0, .28)
}

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

button,
input,
textarea,
select {
    font: inherit
}

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

.container {
    max-width: var(--container);
    margin: auto;
    padding: 0 1.25rem
}

.page {
    min-height: calc(100vh - 78px)
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--sand) 82%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: var(--transition)
}

body.dark .navbar {
    background: rgba(16, 32, 29, .82)
}

.navbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08)
}

.nav-inner {
    max-width: var(--container);
    margin: auto;
    padding: .8rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0
}

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08)
}

.brand-title {
    font-weight: 900;
    font-size: .98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.brand-sub {
    font-size: .72rem;
    color: var(--soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nav-links {
    display: flex;
    gap: .25rem;
    margin-inline-start: auto
}

.nav-links a {
    padding: .55rem .85rem;
    border-radius: 999px;
    color: var(--soft);
    font-size: .9rem;
    font-weight: 700;
    transition: var(--transition)
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--orangeTint);
    color: var(--orange2);
    transform: translateY(-1px)
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-inline-start: .5rem
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06)
}

.icon-btn:hover {
    transform: translateY(-2px) rotate(3deg);
    border-color: var(--teal);
    color: var(--teal)
}

.hamb {
    display: none
}

.mobile-menu {
    display: none
}

.hero {
    position: relative;
    min-height: 680px;
    display: grid;
    align-items: center;
    overflow: hidden
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .38;
    pointer-events: none
}

.hero::before {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--tealTint), transparent 68%);
    left: -100px;
    top: 80px;
    animation: float 8s ease-in-out infinite
}

.hero::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--orangeTint), transparent 68%);
    right: -160px;
    bottom: -100px;
    animation: float 10s ease-in-out infinite reverse
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3rem;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: var(--pill);
    background: var(--tealTint);
    color: var(--teal2);
    font-size: .8rem;
    font-weight: 800
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 12%, transparent);
    animation: pulse 2s infinite
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.9rem);
    line-height: 1.28;
    margin: 1rem 0;
    font-weight: 900;
    letter-spacing: -.03em
}

.accent {
    color: var(--orange)
}

.hero-copy p {
    max-width: 44rem;
    color: var(--soft);
    font-size: 1.05rem
}

.actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin: 1.5rem 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid transparent;
    border-radius: var(--pill);
    padding: .85rem 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition)
}

.btn.primary {
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    color: #fff;
    box-shadow: 0 16px 35px rgba(193, 82, 27, .28)
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 45px rgba(193, 82, 27, .35)
}

.btn.outline {
    border-color: var(--teal);
    color: var(--teal2);
    background: transparent
}

.btn.outline:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-3px)
}

.hero-visual {
    position: relative;
    min-height: 440px
}

.orbit {
    position: absolute;
    inset: 18% 8%;
    border: 1px dashed color-mix(in srgb, var(--teal) 38%, transparent);
    border-radius: 50%;
    animation: spin 24s linear infinite
}

.orbit.two {
    inset: 28% 20%;
    animation-duration: 18s;
    animation-direction: reverse;
    border-color: color-mix(in srgb, var(--orange) 32%, transparent)
}

.heart-card {
    position: absolute;
    inset: 12% 12%;
    background: linear-gradient(145deg, color-mix(in srgb, var(--white) 94%, transparent), color-mix(in srgb, var(--sand2) 88%, transparent));
    border: 1px solid var(--line);
    border-radius: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate
}

.heart-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tealTint), transparent 65%);
    inset: auto auto -50px -50px;
    z-index: -1;
    animation: breath 5s ease-in-out infinite
}

.heart-icon {
    font-size: 6rem;
    animation: heartBeat 2.4s ease-in-out infinite;
    filter: drop-shadow(0 14px 20px rgba(193, 82, 27, .2))
}

.floating-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    animation: float 5s ease-in-out infinite
}

.fi1 {
    top: 2%;
    right: 4%
}

.fi2 {
    bottom: 12%;
    left: 0;
    animation-delay: -1.3s
}

.fi3 {
    top: 24%;
    left: 2%;
    animation-delay: -2s
}

.fi4 {
    bottom: 2%;
    right: 6%;
    animation-delay: -.6s
}

.section {
    padding: 5.5rem 0
}

.section.alt {
    background: color-mix(in srgb, var(--sand2) 72%, transparent)
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.1rem
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    margin: .25rem 0;
    font-weight: 900
}

.section-head p {
    color: var(--soft);
    max-width: 46rem
}

.tiny-link {
    font-weight: 800;
    color: var(--teal2)
}

.grid {
    display: grid;
    gap: 1.1rem
}

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

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

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .06);
    transition: var(--transition)
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.stat-card {
    padding: 1.3rem
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--orange)
}

.stat-label {
    color: var(--soft);
    font-size: .88rem
}

.feature {
    padding: 1.5rem;
    position: relative;
    overflow: hidden
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--tealTint);
    color: var(--teal2);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    animation: wiggle 4s ease-in-out infinite
}

.feature:nth-child(2) .feature-icon {
    animation-delay: -1s
}

.feature:nth-child(3) .feature-icon {
    animation-delay: -2s
}

.feature h3 {
    margin-bottom: .45rem
}

.feature p {
    color: var(--soft);
    font-size: .9rem
}

.stories-row {
    display: flex;
    gap: 1rem;
    overflow: auto;
    padding: .5rem .25rem 1rem;
    scrollbar-width: none
}

.stories-row::-webkit-scrollbar {
    display: none
}

.story {
    flex: 0 0 94px;
    text-align: center
}

.story-button {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(var(--orange), var(--gold), var(--teal), var(--orange));
    border: 0;
    position: relative;
    transition: var(--transition);
    cursor: pointer
}

.story-button:hover {
    transform: translateY(-4px) scale(1.04)
}

.story-button img,
.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sand2);
    border: 3px solid var(--white)
}

.story-add .story-button {
    background: var(--white);
    border: 2px dashed var(--teal);
    padding: 0
}

.story-add .story-avatar {
    display: grid;
    place-items: center;
    border: 0;
    color: var(--teal);
    font-size: 1.8rem
}

.story-label {
    font-size: .75rem;
    margin-top: .5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.story-unread .story-button {
    animation: storyPulse 2.4s infinite
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem
}

.ad-card {
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.ad-media {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--tealTint), var(--orangeTint));
    position: relative;
    overflow: hidden
}

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

.ad-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    color: var(--orange2)
}

.ad-body {
    padding: 1.2rem
}

.ad-body h3 {
    font-size: 1.05rem;
    margin-bottom: .35rem
}

.ad-desc {
    font-size: .84rem;
    color: var(--soft);
    min-height: 3.4em
}

.money-row {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    margin: 1rem 0 .55rem;
    font-size: .82rem
}

.money-row strong {
    font-size: .92rem
}

.progress {
    height: 9px;
    background: var(--sand2);
    border-radius: 999px;
    overflow: hidden
}

.progress>span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--orange));
    width: 0;
    transition: width 1.2s var(--transition);
    border-radius: 999px
}

.ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem
}

.muted {
    color: var(--soft);
    font-size: .78rem
}

.page-hero {
    padding: 4.5rem 0 2rem;
    position: relative
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 2rem;
    align-items: center
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.3;
    margin: .7rem 0
}

.page-hero p {
    color: var(--soft);
    max-width: 48rem
}

.hero-panel {
    padding: 1.5rem;
    min-height: 240px;
    background: linear-gradient(145deg, var(--teal2), var(--orange2));
    color: #fff;
    overflow: hidden;
    position: relative
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    right: -60px;
    top: -60px;
    animation: spin 20s linear infinite
}

.hero-panel-inner {
    position: relative;
    z-index: 1
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14)
}

.mini-stat:last-child {
    border-bottom: 0
}

.mini-stat strong {
    font-size: 1.5rem
}

.toolbar {
    display: flex;
    gap: .7rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem
}

.field {
    padding: .82rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    min-width: 180px;
    outline: 0
}

.field:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent)
}

.field.full {
    width: 100%
}

.upload-box {
    border: 2px dashed var(--line);
    border-radius: 1.25rem;
    padding: 1.2rem;
    text-align: center;
    background: color-mix(in srgb, var(--tealTint) 28%, var(--white));
    transition: var(--transition)
}

.upload-box.drag {
    border-color: var(--teal);
    transform: scale(1.01)
}

.preview {
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    display: none
}

.preview img {
    width: 100%;
    max-height: 260px;
    object-fit: cover
}

.form-card {
    padding: 1.5rem
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .45rem
}

.form-group.full {
    grid-column: 1/-1
}

.form-label {
    font-size: .82rem;
    font-weight: 800
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
    margin-top: 1rem
}

.notice {
    padding: .9rem 1rem;
    border-radius: 12px;
    background: var(--tealTint);
    color: var(--teal2);
    font-size: .85rem;
    display: none;
    margin-top: 1rem
}

.notice.show {
    display: block;
    animation: pop .45s var(--transition)
}

.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem
}

.story-modal.open {
    display: flex
}

.story-viewer {
    width: min(420px, 94vw);
    aspect-ratio: 9/15;
    background: #000;
    border-radius: 1.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .45)
}

.story-viewer img,
.story-viewer video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.story-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    gap: 8px
}

.story-bar {
    height: 4px;
    background: rgba(255, 255, 255, .3);
    border-radius: 999px;
    overflow: hidden;
    flex: 1
}

.story-bar span {
    display: block;
    height: 100%;
    background: #fff;
    width: 100%;
    transform-origin: right;
    animation: storyTimer 5s linear
}

.story-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, .38);
    color: #fff
}

.story-caption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 3rem 1.2rem 1.4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    color: #fff
}

.story-caption strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: .2rem
}

.story-caption small {
    opacity: .8
}

.footer {
    margin-top: 5rem;
    background: var(--dark);
    color: #fff;
    padding: 3.4rem 0 1.5rem
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 2rem
}

.footer p,
.footer a {
    color: #d5cec3;
    font-size: .86rem
}

.footer h3 {
    margin: 0 0 .8rem
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #b9b0a5;
    font-size: .78rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s ease, transform .8s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.35);
        opacity: .7
    }
}

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

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1)
    }

    14% {
        transform: scale(1.12)
    }

    28% {
        transform: scale(1)
    }

    42% {
        transform: scale(1.08)
    }
}

@keyframes breath {

    0%,
    100% {
        transform: scale(1);
        opacity: .8
    }

    50% {
        transform: scale(1.15);
        opacity: 1
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0)
    }

    50% {
        transform: rotate(-6deg)
    }
}

@keyframes storyPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(193, 82, 27, .18)
    }

    50% {
        box-shadow: 0 0 0 12px rgba(193, 82, 27, 0)
    }
}

@keyframes storyTimer {
    from {
        transform: scaleX(1)
    }

    to {
        transform: scaleX(0)
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.98)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media (max-width:1050px) {
    .nav-links {
        display: none
    }

    .hamb {
        display: grid
    }

    .hero-grid,
    .page-hero-grid {
        grid-template-columns: 1fr
    }

    .hero {
        min-height: auto;
        padding: 5rem 0 3rem
    }

    .hero-visual {
        min-height: 390px
    }

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

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

@media (max-width:720px) {
    .brand-sub {
        display: none
    }

    .brand-title {
        max-width: 160px
    }

    .hero h1 {
        font-size: 2.35rem
    }

    .section {
        padding: 4rem 0
    }

    .grid-3,
    .ad-grid {
        grid-template-columns: 1fr
    }

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

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

    .form-group.full {
        grid-column: auto
    }

    .hero-visual {
        min-height: 320px
    }

    .heart-card {
        inset: 10% 5%
    }

    .floating-icon {
        width: 54px;
        height: 54px
    }

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

    .page-hero {
        padding-top: 3rem
    }

    .section-head {
        align-items: start;
        flex-direction: column
    }

    .mobile-menu {
        position: fixed;
        inset: 70px 14px auto;
        z-index: 150;
        background: var(--white);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        border-radius: 1.25rem;
        padding: .6rem;
        display: none
    }

    .mobile-menu.open {
        display: block;
        animation: pop .3s
    }

    .mobile-menu a {
        display: block;
        padding: .85rem 1rem;
        border-radius: 10px;
        color: var(--soft);
        font-weight: 800
    }

    .mobile-menu a.active,
    .mobile-menu a:hover {
        background: var(--orangeTint);
        color: var(--orange2)
    }
}

/* === Dynamic 2.0 === */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden
}

.ambient i {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(24px);
    opacity: .16;
    animation: drift 16s ease-in-out infinite
}

.ambient i:nth-child(1) {
    background: var(--teal);
    top: 8%;
    left: -4%
}

.ambient i:nth-child(2) {
    background: var(--orange);
    top: 45%;
    right: -5%;
    animation-delay: -5s
}

.ambient i:nth-child(3) {
    background: var(--gold);
    bottom: -6%;
    left: 28%;
    animation-delay: -10s
}

.glow-card {
    position: relative;
    overflow: hidden
}

.glow-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--teal) 18%, transparent), transparent 70%);
    top: -80px;
    left: -70px;
    animation: drift 8s ease-in-out infinite;
    pointer-events: none
}

.shine {
    position: relative;
    overflow: hidden
}

.shine::before {
    content: "";
    position: absolute;
    top: -35%;
    left: -50%;
    width: 35%;
    height: 170%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent);
    transform: rotate(18deg);
    animation: shine 5s infinite
}

.counter {
    font-variant-numeric: tabular-nums
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: .45rem
}

.live-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 12%, transparent);
    animation: pulse 1.8s infinite
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1.1rem
}

.chart-card {
    padding: 1.4rem;
    min-height: 360px
}

.chart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem
}

.chart-title h3 {
    margin: 0
}

.chart-wrap {
    height: 260px;
    position: relative
}

.line-chart {
    width: 100%;
    height: 100%;
    overflow: visible
}

.line-grid {
    stroke: color-mix(in srgb, var(--line) 80%, transparent);
    stroke-width: 1
}

.line-path {
    fill: none;
    stroke: var(--teal);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: drawLine 1.7s .15s forwards ease-out
}

.line-glow {
    fill: none;
    stroke: color-mix(in srgb, var(--teal) 35%, transparent);
    stroke-width: 12;
    filter: blur(7px);
    opacity: .35
}

.line-dot {
    fill: var(--white);
    stroke: var(--orange);
    stroke-width: 3;
    animation: dotPop .6s both
}

.chart-label {
    fill: var(--soft);
    font-size: 11px
}

.donut-wrap {
    height: 260px;
    display: grid;
    place-items: center;
    position: relative
}

.donut {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: conic-gradient(var(--teal) 0 46%, var(--orange) 46% 71%, var(--gold) 71% 86%, #9aa 86% 100%);
    position: relative;
    animation: rotateIn 1.2s ease-out
}

.donut::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line)
}

.donut-center {
    position: absolute;
    z-index: 2;
    text-align: center
}

.donut-center strong {
    font-size: 1.8rem;
    display: block
}

.legend {
    display: grid;
    gap: .55rem;
    margin-top: 1rem
}

.legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    font-size: .82rem
}

.legend-left {
    display: flex;
    align-items: center;
    gap: .5rem
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.legend-dot.teal {
    background: var(--teal)
}

.legend-dot.orange {
    background: var(--orange)
}

.legend-dot.gold {
    background: var(--gold)
}

.legend-dot.gray {
    background: #9aa
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
}

.rank-card {
    padding: 1.15rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .9rem;
    align-items: center
}

.rank-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--orangeTint), var(--tealTint));
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    box-shadow: inset 0 0 0 1px var(--line);
    animation: float 5s ease-in-out infinite
}

.rank-card:nth-child(even) .rank-badge {
    animation-delay: -1.5s
}

.rank-name {
    font-weight: 900
}

.rank-alias {
    font-size: .76rem;
    color: var(--soft)
}

.rank-amount {
    font-weight: 900;
    color: var(--orange)
}

.rank-meter {
    height: 7px;
    border-radius: 99px;
    background: var(--sand2);
    overflow: hidden;
    margin-top: .5rem
}

.rank-meter span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--orange));
    border-radius: 99px;
    width: 0;
    animation: fillMeter 1.1s ease forwards
}

.rank-tag {
    padding: .28rem .6rem;
    border-radius: 99px;
    background: var(--tealTint);
    color: var(--teal2);
    font-size: .7rem;
    font-weight: 900
}

.rank-top {
    position: relative
}

.rank-top::before {
    content: "TOP";
    position: absolute;
    top: .7rem;
    left: .7rem;
    font-size: .58rem;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: .12em
}

.privacy-note {
    padding: .8rem 1rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--gold) 14%, var(--white));
    border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line));
    font-size: .8rem;
    color: var(--soft)
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 76px)
}

.admin-sidebar {
    background: linear-gradient(180deg, var(--dark), var(--dark2));
    color: #fff;
    padding: 1.2rem;
    position: sticky;
    top: 78px;
    height: calc(100vh - 78px);
    overflow: auto
}

.admin-brand {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .6rem;
    margin-bottom: 1rem
}

.admin-brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12)
}

.admin-brand strong {
    font-size: .92rem
}

.admin-side-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    color: #cfc6ba;
    margin: .2rem 0;
    transition: var(--transition)
}

.admin-side-link:hover,
.admin-side-link.active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transform: translateX(-3px)
}

.admin-main {
    padding: 2rem;
    min-width: 0
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem
}

.kpi {
    padding: 1.2rem;
    position: relative;
    overflow: hidden
}

.kpi small {
    color: var(--soft)
}

.kpi strong {
    display: block;
    font-size: 1.8rem;
    margin-top: .25rem
}

.kpi .kpi-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--tealTint);
    color: var(--teal);
    display: grid;
    place-items: center
}

.admin-columns {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 1rem;
    margin-top: 1rem
}

.table-wrap {
    overflow: auto
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px
}

.data-table th,
.data-table td {
    padding: .8rem;
    border-bottom: 1px solid var(--line);
    text-align: right;
    font-size: .82rem
}

.data-table th {
    color: var(--soft);
    font-weight: 800
}

.status {
    padding: .28rem .55rem;
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 900
}

.status.ok {
    background: var(--tealTint);
    color: var(--teal2)
}

.status.wait {
    background: var(--orangeTint);
    color: var(--orange2)
}

.admin-actions {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap
}

.mini-chart {
    height: 150px;
    margin-top: .8rem
}

.sparkline {
    width: 100%;
    height: 100%
}

.sparkline path {
    fill: none;
    stroke: var(--orange);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 1.4s forwards
}

.toast-stack {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 500;
    display: grid;
    gap: .6rem
}

.toast {
    background: var(--dark);
    color: #fff;
    padding: .8rem 1rem;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    animation: pop .4s
}

.badge-live {
    background: var(--orangeTint);
    color: var(--orange2);
    padding: .28rem .6rem;
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 900
}

.section-kicker {
    font-size: .76rem;
    color: var(--soft);
    font-weight: 800
}

.milestone {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 0
}

.milestone i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px var(--tealTint)
}

.milestone strong {
    font-size: .8rem
}

.milestone span {
    margin-inline-start: auto;
    font-size: .75rem;
    color: var(--soft)
}

@keyframes drift {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1)
    }

    50% {
        transform: translate3d(30px, -20px, 0) scale(1.12)
    }
}

@keyframes shine {
    0% {
        transform: translateX(-180%) rotate(18deg)
    }

    45%,
    100% {
        transform: translateX(420%) rotate(18deg)
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0
    }
}

@keyframes dotPop {
    from {
        opacity: 0;
        transform: scale(.3)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-80deg) scale(.8);
        opacity: .2
    }

    to {
        transform: rotate(0) scale(1);
        opacity: 1
    }
}

@keyframes fillMeter {
    from {
        width: 0
    }

    to {
        width: var(--rank-fill, 72%)
    }
}

@media (max-width:1000px) {

    .analytics-grid,
    .admin-columns {
        grid-template-columns: 1fr
    }

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

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

    .admin-shell {
        grid-template-columns: 1fr
    }

    .admin-sidebar {
        position: relative;
        top: auto;
        height: auto
    }

    .admin-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: .35rem
    }

    .admin-side-link {
        justify-content: center;
        font-size: .8rem
    }

    .admin-brand {
        display: none
    }
}

@media (max-width:720px) {
    .admin-main {
        padding: 1rem
    }

    .admin-kpis {
        grid-template-columns: 1fr 1fr
    }

    .admin-sidebar-nav {
        grid-template-columns: 1fr 1fr
    }

    .chart-card {
        min-height: 320px
    }
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
    color: var(--ink)
}

.story-item {
    text-align: center;
    min-width: 95px
}

.story-bubble {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--orange);
    padding: 3px;
    margin: auto auto .5rem
}

.story-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%
}

/* ===== اجزای جدید بک‌اند (بدون تغییر ظاهر بخش‌های موجود) ===== */
.notice.error {
    background: #fde8e6;
    color: #b42318
}

.form-group input[type=checkbox] {
    width: auto
}

.form-group small {
    display: block
}

.form-group input[type=file] {
    padding: .6rem 1rem
}

.calc-input {
    display: flex;
    gap: .5rem;
    align-items: center
}

.calc-input .field {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800
}

.calc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .6rem
}

.calc-progress {
    margin-top: 1rem
}

.progress.has-preview {
    position: relative
}

.progress.has-preview .preview {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: block;
    background: color-mix(in srgb, var(--orange) 35%, transparent);
    border-radius: 999px;
    transition: width .4s var(--transition)
}

.progress.has-preview>span {
    position: relative;
    z-index: 1
}

body.dark .notice.error {
    background: #3a1d1a;
    color: #ffb4ab
}

/* ===== افزوده‌ها: فوتر (شبکه‌های اجتماعی، آدرس، تلفن، حساب) ===== */
.social-row {
    display: flex;
    gap: .45rem;
    margin-top: .8rem
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    transition: var(--transition)
}

.icon-link svg {
    width: 15px;
    height: 15px;
    display: block
}

a.icon-link:hover,
.phone-row:hover .icon-link {
    transform: translateY(-3px);
    background: var(--orange);
    border-color: transparent;
    color: #fff
}

.social-telegram:hover {
    background: #229ed9 !important
}

.social-whatsapp:hover {
    background: #25d366 !important
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888) !important
}

.footer-extra {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .12)
}

.address-row {
    display: flex;
    align-items: flex-start;
    gap: .6rem
}

.address-row .icon-link {
    width: 28px;
    height: 28px;
    margin-top: .15rem
}

.address-row .icon-link svg {
    width: 14px;
    height: 14px
}

.address-row p {
    margin: 0;
    line-height: 1.9
}

.phone-list {
    display: grid;
    gap: .35rem
}

.phone-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #d5cec3;
    line-height: 1.6
}

.phone-row .icon-link {
    width: 26px;
    height: 26px
}

.phone-row .icon-link svg {
    width: 13px;
    height: 13px
}

.phone-label {
    font-size: .82rem;
    flex: 1
}

.phone-num {
    font-size: .86rem;
    font-weight: 800;
    color: #fff;
    unicode-bidi: isolate
}

.bank-item {
    margin-bottom: .9rem
}

.bank-label {
    display: block;
    font-size: .78rem;
    color: #b9b0a5;
    margin-bottom: .15rem
}

.bank-value {
    display: block;
    color: #fff;
    font-size: .95rem;
    letter-spacing: .02em;
    unicode-bidi: isolate;
    text-align: right
}

.bank-value span {
    margin-inline-end: .5em
}

.bank-value span:last-child {
    margin-inline-end: 0
}

.bank-item small {
    display: block;
    color: #b9b0a5;
    font-size: .74rem;
    margin-top: .2rem
}

@media (max-width:1050px) {
    .footer-extra {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:720px) {
    .footer-extra {
        grid-template-columns: 1fr
    }
}

/* ===== افزوده‌ها: اسلایدر تصویر/فیلم (صفحه‌ی اصلی و آگهی‌ها) ===== */
.media-slider {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s
}

.media-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1
}

.media-slide img,
.media-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.media-dots {
    position: absolute;
    bottom: 10px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none
}

.media-dot {
    pointer-events: auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: width .3s, background .3s
}

.media-dot.active {
    width: 22px;
    background: #fff
}

.ad-media .media-dots {
    bottom: auto;
    top: 14px
}

.ad-media .ad-badge {
    z-index: 4
}

.ad-single-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000
}

.story-bubble video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    display: block
}

/* ===== نمودارها: برچسب محور، مقدار روی نقطه‌ها، راهنمای رنگ ===== */
.axis-label,
.value-label {
    fill: var(--soft);
    font-family: inherit
}

.value-label {
    font-weight: 800;
    fill: var(--ink)
}

.legend {
    border-top: 1px dashed var(--line);
    padding-top: .9rem
}

.legend-dot {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--white) 80%, transparent)
}

.legend-row strong {
    font-size: .9rem
}

/* ===== اسلایدر افقی داخل heart-card: هر ۵ ثانیه تصویر بعدی از کنار وارد می‌شود ===== */
.hero-slider .media-slide {
    opacity: 1;
    visibility: visible;
    transform: translateX(-100%);
    transition: transform .8s cubic-bezier(.65, 0, .35, 1);
    will-change: transform
}

.hero-slider .media-slide.active {
    transform: translateX(0);
    z-index: 2
}

.hero-slider .media-slide.leaving {
    transform: translateX(100%);
    z-index: 1
}

.hero-slider .media-slide.no-anim {
    transition: none
}

@media (prefers-reduced-motion:reduce) {
    .hero-slider .media-slide {
        transition-duration: .01s
    }
}