/**
 * DECTO — Champagne gold frame art (logo curve language)
 * Auth, landing, green CTAs, emerald cards
 */

:root {
    --bn-gold-frame-gradient: linear-gradient(
        135deg,
        rgba(232, 212, 168, 0) 0%,
        rgba(245, 230, 184, 0.95) 22%,
        rgba(201, 166, 107, 0.88) 48%,
        rgba(232, 212, 168, 0.92) 72%,
        rgba(201, 166, 107, 0) 100%
    );
    --bn-gold-line-h: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 166, 107, 0.25) 12%,
        rgba(245, 230, 184, 0.95) 50%,
        rgba(201, 166, 107, 0.25) 88%,
        transparent 100%
    );
    --bn-gold-line-v: linear-gradient(
        180deg,
        transparent 0%,
        rgba(245, 230, 184, 0.35) 15%,
        rgba(231, 197, 111, 0.9) 45%,
        rgba(201, 166, 107, 0.85) 55%,
        rgba(245, 230, 184, 0.35) 85%,
        transparent 100%
    );
}

/* Shared gold lux frame mixin via class */
.bn-gold-lux-frame,
body.auth-page .auth-card,
body.index-page .lux-feature-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.bn-gold-lux-frame::before,
body.auth-page .auth-card::before,
body.index-page .lux-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--bn-gold-frame-gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.92;
}

.bn-gold-lux-frame::after,
body.auth-page .auth-card::after,
body.index-page .lux-feature-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--bn-gold-line-h);
    box-shadow: 0 0 10px rgba(231, 197, 111, 0.35);
    pointer-events: none;
    z-index: 3;
    opacity: 0.88;
}

/* Green primary buttons — gold ring + top shimmer */
body.auth-page .btn-primary,
body.index-page .btn-primary,
body.auth-page .auth-otp-step.is-active,
.lux-landing-actions .btn-primary,
.lux-cta .btn-primary,
.nav-actions .btn-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(201, 166, 107, 0.45) !important;
    box-shadow:
        0 8px 24px rgba(39, 72, 66, 0.22),
        0 0 0 1px rgba(231, 197, 111, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.auth-page .btn-primary::before,
body.index-page .btn-primary::before,
body.auth-page .auth-otp-step.is-active::before,
.lux-landing-actions .btn-primary::before,
.lux-cta .btn-primary::before,
.nav-actions .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--bn-gold-frame-gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.82;
    z-index: 0;
}

body.auth-page .btn-primary::after,
body.index-page .btn-primary::after,
.lux-landing-actions .btn-primary::after,
.lux-cta .btn-primary::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 14%;
    right: 14%;
    height: 1px;
    background: var(--bn-gold-line-h);
    opacity: 0.9;
    pointer-events: none;
}

/* Emerald icon tiles on landing */
body.index-page .lux-feature-icon {
    position: relative;
    isolation: isolate;
    box-shadow:
        0 10px 26px rgba(39, 72, 66, 0.28),
        0 0 0 1px rgba(201, 166, 107, 0.35) !important;
}

body.index-page .lux-feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--bn-gold-frame-gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

body.index-page .lux-feature-icon::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18%;
    right: 18%;
    height: 1px;
    background: var(--bn-gold-line-h);
    opacity: 0.85;
    pointer-events: none;
}

/* Auth OTP step pills */
body.auth-page .auth-otp-step {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(53, 89, 68, 0.12);
}

body.auth-page .auth-otp-step.is-active {
    border-color: rgba(201, 166, 107, 0.5) !important;
}

body.auth-page .auth-otp-step.is-done {
    border: 1px solid rgba(201, 166, 107, 0.28);
    box-shadow: inset 0 0 0 1px rgba(231, 197, 111, 0.12);
}

/* Auth inputs subtle gold on focus */
body.auth-page .form-control:focus {
    border-color: rgba(201, 166, 107, 0.55) !important;
    box-shadow:
        0 0 0 3px rgba(53, 89, 68, 0.12),
        0 0 0 1px rgba(231, 197, 111, 0.28) !important;
}

/* CTA section — champagne gold curves in background */
body.index-page .lux-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.index-page .lux-cta__gold-ribbons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.88;
}

body.index-page .lux-cta__gold-ribbons-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 8px rgba(231, 197, 111, 0.28));
}

body.index-page .lux-cta__gold-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: luxCtaRibbonDraw 3.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.index-page .lux-cta__gold-path--2 {
    animation-delay: 0.2s;
}

body.index-page .lux-cta__gold-path--3 {
    animation-delay: 0.4s;
}

body.index-page .lux-cta__gold-path--4 {
    animation-delay: 0.55s;
}

@keyframes luxCtaRibbonDraw {
    to { stroke-dashoffset: 0; }
}

body.index-page .lux-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 80% at 12% 50%, rgba(231, 197, 111, 0.14), transparent 62%),
        radial-gradient(ellipse 50% 70% at 88% 40%, rgba(245, 230, 184, 0.1), transparent 58%);
}

/* Landing hero CTA row */
body.index-page .lux-landing-hero .container {
    position: relative;
    padding: 28px 22px 32px;
    border-radius: 28px;
}

body.index-page .lux-landing-hero .container::before,
body.index-page .lux-landing-hero .container::after {
    border-radius: 28px;
}

/* Outline buttons — gold hairline */
body.index-page .btn-outline,
body.auth-page .btn-outline {
    border-color: rgba(201, 166, 107, 0.45) !important;
    box-shadow: inset 0 0 0 1px rgba(231, 197, 111, 0.12);
}

body.index-page .btn-outline::after,
body.auth-page .btn-outline::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: var(--bn-gold-line-h);
    opacity: 0.55;
    pointer-events: none;
}

body.index-page .btn-outline,
body.auth-page .btn-outline {
    position: relative;
}

/* Nav guest buttons on landing */
body.index-page .nav-actions .btn-outline,
body.index-page .nav-actions .btn-primary {
    position: relative;
}

[data-theme="dark"] body.auth-page .auth-card::before,
[data-theme="dark"] body.index-page .lux-feature-card::before {
    opacity: 0.78;
}

[data-theme="dark"] body.auth-page .btn-primary::before,
[data-theme="dark"] body.index-page .btn-primary::before {
    opacity: 0.65;
}

/* Guest navbar — unified minimal lux menu trigger (landing + auth) */
body.index-page .navbar--premium .lux-menu-trigger--guest,
body.auth-page .navbar--premium .lux-menu-trigger--guest {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(201, 166, 107, 0.48) !important;
    background:
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(248, 242, 232, 0.88) 100%
        ) !important;
    color: #6b5a32 !important;
    box-shadow:
        0 4px 14px rgba(22, 40, 32, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        color 0.24s ease;
}

body.index-page .navbar--premium .lux-menu-trigger--guest::before,
body.auth-page .navbar--premium .lux-menu-trigger--guest::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 8px;
    border: 1px solid rgba(231, 197, 111, 0.22);
    pointer-events: none;
}

.lux-menu-burger {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    width: 17px;
    height: 14px;
}

.lux-menu-burger span {
    display: block;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        width 0.28s ease;
}

.lux-menu-burger span:nth-child(1) {
    width: 17px;
}

.lux-menu-burger span:nth-child(2) {
    width: 13px;
    opacity: 0.88;
}

.lux-menu-burger span:nth-child(3) {
    width: 17px;
}

body.index-page .navbar--premium .lux-menu-trigger--guest:hover,
body.index-page .navbar--premium .lux-menu-trigger--guest:focus-visible,
body.auth-page .navbar--premium .lux-menu-trigger--guest:hover,
body.auth-page .navbar--premium .lux-menu-trigger--guest:focus-visible {
    transform: translateY(-1px);
    color: #4a3d22 !important;
    border-color: rgba(231, 197, 111, 0.72) !important;
    box-shadow:
        0 8px 22px rgba(22, 40, 32, 0.14),
        0 0 16px rgba(231, 197, 111, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.index-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"],
body.auth-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] {
    border-color: rgba(42, 70, 54, 0.35) !important;
    background:
        linear-gradient(
            155deg,
            rgba(42, 70, 54, 0.94) 0%,
            rgba(36, 61, 50, 0.98) 100%
        ) !important;
    color: #f5e6b8 !important;
}

body.index-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span,
body.auth-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span {
    width: 17px;
    opacity: 1;
}

body.index-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span:nth-child(1),
body.auth-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

body.index-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span:nth-child(2),
body.auth-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.index-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span:nth-child(3),
body.auth-page .navbar--premium .lux-menu-trigger--guest[aria-expanded="true"] .lux-menu-burger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Guest navbar wordmark — lux gold text + visible spin */
body.index-page .nav-brand.bn-wordmark .bn-wordmark__text,
body.auth-page .nav-brand.bn-wordmark .bn-wordmark__text {
    background: linear-gradient(
        155deg,
        #3d6654 0%,
        #2a4636 38%,
        #6b5a32 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

body.index-page .nav-brand.bn-wordmark .bn-wordmark__line,
body.auth-page .nav-brand.bn-wordmark .bn-wordmark__line {
    background: linear-gradient(
        180deg,
        rgba(201, 166, 107, 0) 0%,
        rgba(231, 197, 111, 0.95) 50%,
        rgba(201, 166, 107, 0) 100%
    );
    box-shadow: 0 0 10px rgba(231, 197, 111, 0.35);
}

body.auth-page .navbar--premium {
    background: var(--bn-glass, rgba(255, 252, 247, 0.88)) !important;
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--bn-border-soft, rgba(201, 166, 107, 0.2));
    box-shadow: none;
}

body.auth-page .bn-wordmark--auth .bn-wordmark__text {
    background: linear-gradient(
        168deg,
        #3d6654 0%,
        #2a4636 42%,
        #8a7340 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
}

/* Auth login illustration — gold ribbons + lux copy */
body.auth-page .auth-illustration--lux {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.auth-page .auth-illustration__gold-ribbons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

body.auth-page .auth-illustration__gold-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 10px rgba(231, 197, 111, 0.22));
}

body.auth-page .auth-illustration__gold-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: luxCtaRibbonDraw 3.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.auth-page .auth-illustration__gold-path--2 {
    animation-delay: 0.2s;
}

body.auth-page .auth-illustration__gold-path--3 {
    animation-delay: 0.38s;
}

body.auth-page .auth-illustration__gold-path--4 {
    animation-delay: 0.52s;
}

body.auth-page .auth-illustration--lux::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 18% 22%, rgba(255, 246, 220, 0.16), transparent 58%),
        radial-gradient(ellipse 60% 50% at 82% 78%, rgba(231, 197, 111, 0.12), transparent 55%);
}

body.auth-page .auth-illustration__content {
    position: relative;
    z-index: 2;
}

body.auth-page .auth-illustration__icon {
    font-size: 2.65rem;
    color: #e7c56f !important;
    text-shadow: 0 0 20px rgba(231, 197, 111, 0.45);
}

body.auth-page .auth-illustration__title {
    font-family: var(--bn-font-display, 'Cormorant Garamond', 'Vazirmatn', serif);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.25;
    margin: 18px 0 22px;
    color: #fff6dc;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 0 24px rgba(245, 230, 184, 0.35);
}

body.auth-page .auth-illustration__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.auth-page .auth-illustration__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-family: var(--bn-font-body, 'Vazirmatn', sans-serif);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.45;
    color: #f5e6b8;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

body.auth-page .auth-illustration__list li i {
    color: #e7c56f !important;
    font-size: 0.95rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* دوخت نخ طلایی بین ورقه‌ها — فقط موبایل (پیش‌فرض مخفی) */
.auth-sheet-stitch {
    display: none;
}

/* دسکتاپ — چیدمان قبلی (ورود | مسیر زیبایی) */
@media (min-width: 901px) {
    body.auth-page .auth-container--notebook {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    body.auth-page .auth-container--notebook .auth-notebook-sheet--login {
        grid-column: 1;
        grid-row: 1;
    }

    body.auth-page .auth-container--notebook .auth-notebook-sheet--journey {
        grid-column: 2;
        grid-row: 1;
    }

    body.auth-page .auth-sheet-stitch {
        display: none !important;
    }
}

/* موبایل — ورقه بالا: ورود | دوخت طلایی | ورقه پایین: مسیر زیبایی */
@media (max-width: 900px) {
    body.auth-page .auth-container--notebook {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0;
        position: relative;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 12px 14px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.auth-page .auth-container--notebook .auth-notebook-sheet--login {
        order: 1 !important;
        position: relative;
        flex: 0 0 auto;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 22px 20px 18px !important;
        border-radius: 22px 22px 0 0;
        border-bottom: none;
        overflow: visible;
        box-shadow:
            0 8px 24px rgba(22, 40, 32, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.72);
        z-index: 2;
    }

    body.auth-page .auth-container--notebook .auth-notebook-sheet--login::after {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: -10px;
        height: 12px;
        border-radius: 0 0 3px 3px;
        background:
            linear-gradient(180deg, #fffdf9 0%, #f6f0e6 55%, #ebe2d4 100%);
        box-shadow:
            0 3px 5px rgba(22, 40, 32, 0.06),
            inset 0 -1px 2px rgba(53, 89, 68, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.75);
        z-index: 1;
        pointer-events: none;
    }

    body.auth-page .auth-sheet-stitch {
        display: block;
        order: 2 !important;
        position: relative;
        flex: 0 0 auto;
        width: 100%;
        height: 46px;
        margin: -14px 0 -14px;
        padding: 0 4px;
        z-index: 8;
        pointer-events: none;
        overflow: visible;
        background: transparent;
    }

    body.auth-page .auth-sheet-stitch__lip {
        position: absolute;
        left: 10px;
        right: 10px;
        height: 5px;
        pointer-events: none;
        z-index: 1;
    }

    body.auth-page .auth-sheet-stitch__lip--top {
        top: 1px;
        background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(237, 228, 214, 0.72) 100%);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.7),
            0 2px 4px rgba(22, 40, 32, 0.04);
    }

    body.auth-page .auth-sheet-stitch__crease {
        position: absolute;
        left: 10px;
        right: 10px;
        top: 50%;
        height: 10px;
        transform: translateY(-50%);
        background: linear-gradient(
            180deg,
            rgba(26, 44, 36, 0) 0%,
            rgba(26, 44, 36, 0.1) 42%,
            rgba(14, 24, 20, 0.18) 50%,
            rgba(26, 44, 36, 0.1) 58%,
            rgba(26, 44, 36, 0) 100%
        );
        z-index: 0;
        pointer-events: none;
    }

    body.auth-page .auth-sheet-stitch__lip--bottom {
        bottom: 1px;
        background: linear-gradient(0deg, rgba(42, 70, 54, 0.96) 0%, rgba(63, 101, 82, 0.55) 100%);
        box-shadow:
            inset 0 1px 0 rgba(231, 197, 111, 0.16),
            0 -1px 3px rgba(0, 0, 0, 0.08);
    }

    body.auth-page .auth-sheet-stitch__svg {
        display: block;
        width: 100%;
        height: 100%;
        overflow: visible;
        position: relative;
        z-index: 2;
    }

    body.auth-page .auth-sheet-stitch__edge,
    body.auth-page .auth-sheet-stitch__crease-fill {
        opacity: 0;
        animation: authSheetStitchEdge 0.7s ease-out 0.05s forwards;
    }

    body.auth-page .auth-sheet-stitch__thread--edge-top {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: authSheetStitchDraw 1.5s cubic-bezier(0.3, 0.85, 0.35, 1) 0.1s forwards;
    }

    body.auth-page .auth-sheet-stitch__thread--edge-bot {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: authSheetStitchDraw 1.5s cubic-bezier(0.3, 0.85, 0.35, 1) 0.18s forwards;
    }

    body.auth-page .auth-sheet-stitch__thread {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: authSheetStitchDraw 3.2s cubic-bezier(0.28, 0.92, 0.32, 1) 0.3s forwards;
    }

    body.auth-page .auth-sheet-stitch__thread--shadow {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: authSheetStitchDraw 3.2s cubic-bezier(0.28, 0.92, 0.32, 1) 0.3s forwards;
    }

    body.auth-page .auth-sheet-stitch__thread--hi {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: authSheetStitchDraw 3.2s cubic-bezier(0.28, 0.92, 0.32, 1) 0.36s forwards;
    }

    body.auth-page .auth-sheet-stitch__holes {
        opacity: 0;
        animation: authSheetStitchHoles 1.1s ease-out 2.2s forwards;
    }

    body.auth-page .auth-container--notebook .auth-notebook-sheet--journey {
        display: flex !important;
        order: 3 !important;
        position: relative;
        flex: 0 0 auto;
        width: 100% !important;
        margin: 0 !important;
        padding: 20px 20px 24px !important;
        align-items: center;
        justify-content: center;
        border-radius: 0 0 22px 22px;
        border-top: none;
        overflow: visible;
        background:
            linear-gradient(165deg, #2f5242 0%, #2a4636 46%, #1f352b 100%) !important;
        box-shadow:
            0 10px 28px rgba(22, 40, 32, 0.14),
            inset 0 3px 8px rgba(0, 0, 0, 0.1);
        z-index: 1;
    }

    body.auth-page .auth-container--notebook .auth-notebook-sheet--journey::before {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        top: -10px;
        height: 12px;
        border-radius: 3px 3px 0 0;
        background: linear-gradient(0deg, #2a4636 0%, #3f6552 55%, #4a7560 100%);
        box-shadow:
            inset 0 1px 2px rgba(0, 0, 0, 0.12),
            inset 0 -1px 0 rgba(231, 197, 111, 0.12),
            0 -2px 4px rgba(0, 0, 0, 0.07);
        z-index: 1;
        pointer-events: none;
    }

    body.auth-page .auth-container--notebook .auth-illustration--lux .auth-illustration__content,
    body.auth-page .auth-container--notebook .auth-illustration--lux .illustration-content {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        text-align: center;
    }

    body.auth-page .auth-container--notebook .auth-illustration__icon {
        font-size: 2.2rem;
    }

    body.auth-page .auth-container--notebook .auth-illustration__title {
        font-size: clamp(1.42rem, 5.2vw, 1.8rem);
        margin: 12px 0 16px;
    }

    body.auth-page .auth-container--notebook .auth-illustration__list li {
        justify-content: center;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

@keyframes authSheetStitchDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes authSheetStitchEdge {
    from { opacity: 0; }
    to { opacity: 0.88; }
}

@keyframes authSheetStitchHoles {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-page .auth-sheet-stitch__edge,
    body.auth-page .auth-sheet-stitch__crease-fill,
    body.auth-page .auth-sheet-stitch__thread,
    body.auth-page .auth-sheet-stitch__thread--shadow,
    body.auth-page .auth-sheet-stitch__thread--hi,
    body.auth-page .auth-sheet-stitch__thread--edge-top,
    body.auth-page .auth-sheet-stitch__thread--edge-bot,
    body.auth-page .auth-sheet-stitch__holes {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* موبایل عمومی (ثبت‌نام و…) — بدون دفتر سیمی */
@media (max-width: 900px) {
    body.auth-page .auth-container:not(.auth-container--notebook) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.auth-page .auth-container:not(.auth-container--notebook) .auth-card {
        order: 1 !important;
        border-radius: var(--bn-radius-xl, 24px);
    }

    body.auth-page .auth-container:not(.auth-container--notebook) .auth-illustration.auth-illustration--lux {
        display: flex !important;
        order: 2 !important;
        border-radius: var(--bn-radius-xl, 24px);
    }
}

/* Toast خطا — خوانا و پررنگ (ورود / ثبت‌نام) */
#toast.toast.toast-error.show,
.toast.toast-error.show {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 210, 210, 0.7) !important;
    box-shadow: 0 10px 32px rgba(183, 28, 28, 0.52) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    padding: 14px 20px !important;
    max-width: min(420px, 92vw);
}

#toast.toast-error #toastMessage,
#toast.toast-error i {
    color: #ffffff !important;
}

#toast.toast-error i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* صفحات ورود — دکمه اکسپلور به‌جای ورود/ثبت‌نام */
body.auth-page .bn-nav-explore-cta {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px !important;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-color: rgba(201, 166, 107, 0.45) !important;
    color: var(--bn-green-deep, #2A4636) !important;
    background: linear-gradient(145deg, #F5ECD8, #fff) !important;
    box-shadow: 0 4px 14px rgba(201, 166, 107, 0.12) !important;
}

body.auth-page .bn-nav-explore-cta i {
    font-size: 0.9rem;
    opacity: 0.85;
}
