/* =========================================================
   🧪 آسون — لایه‌ی «نسخه‌ی پرو» (نسخه‌ی ۲: ریدیزاینِ کامل)
   =========================================================
   روی CSSهای فعلی سوار می‌شود و هیچ متن/دکمه/گزینه‌ای را عوض
   نمی‌کند. همه‌چیز زیرِ html.pro-ui است؛ با ?pro=0 بی‌اثر می‌شود.

   جهتِ طراحی
   ----------
   • پوسته: هدرِ باریکِ شناور، سایدبارِ «داک» با آیکون، بدنه‌ی بدونِ
     قاب (محتوا خودش کارت است، نه کارت داخلِ کارت).
   • رنگ: آبیِ الکتریکی → فیروزه‌ای = اکشن و حالتِ فعال؛ طلایی فقط
     برای کوین. صورتی عمداً فقط در لوگو و خودِ ماسکات مانده — وقتی رنگِ
     همه‌ی دکمه‌ها و حالت‌ها صورتی بود، سایت حسِ «دخترانه» می‌داد.
   • سطح‌ها: شیشه‌ی تیره با لبه‌ی گرادیانیِ یک‌پیکسلی
     (padding-box + border-box؛ شبه‌عنصرها جای دیگر مصرف شده‌اند).
   • ماسکات فقط سه جا: کارتِ کیف پول، پایینِ سایدبار، باکسِ پرامپت.
========================================================= */

html.pro-ui {
    --pro-ink: #07061a;
    --pro-ink-2: #0c0a24;
    --pro-accent: #4f7cff;
    --pro-accent-2: #9cc2ff;
    --pro-accent-deep: #5b3df5;
    --pro-violet: #8b5cf6;
    --pro-cyan: #22d3ee;
    --pro-gold: #ffc53d;
    --pro-muted: #aeaacb;
    --pro-card: linear-gradient(160deg, rgba(32, 26, 72, .72), rgba(12, 10, 32, .82));
    --pro-edge: linear-gradient(140deg, rgba(156, 194, 255, .55), rgba(255, 255, 255, .07) 38%, rgba(34, 211, 238, .38));
    --pro-edge-soft: linear-gradient(140deg, rgba(156, 194, 255, .26), rgba(255, 255, 255, .05) 40%, rgba(34, 211, 238, .18));
    --pro-cta: linear-gradient(135deg, #22c7e6, #4f7cff 50%, #5b3df5);
    --pro-ease: cubic-bezier(.22, .8, .24, 1);
    --pro-spring: cubic-bezier(.34, 1.56, .64, 1);

    background: var(--pro-ink);
    accent-color: var(--pro-accent);
    scrollbar-color: rgba(156, 194, 255, .35) transparent;
}

html.pro-ui ::selection {
    background: rgba(79, 124, 255, .45);
    color: #fff;
}

/* ---------- پس‌زمینه: شفق + توریِ محو + دانه ---------- */

html.pro-ui body {
    background:
        radial-gradient(1100px 650px at 92% -8%, rgba(79, 124, 255, .22), transparent 60%),
        radial-gradient(900px 600px at -5% 25%, rgba(34, 211, 238, .12), transparent 60%),
        radial-gradient(900px 600px at 45% 115%, rgba(139, 92, 246, .18), transparent 60%),
        linear-gradient(180deg, var(--pro-ink), var(--pro-ink-2));
    background-attachment: fixed;
}

/* توریِ ظریف، فقط بالای صفحه دیده می‌شود */
html.pro-ui body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000, transparent 75%);
}

html.pro-ui body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ---------- فوکوس و حسِ فشردن ---------- */

html.pro-ui a:focus-visible,
html.pro-ui button:focus-visible,
html.pro-ui summary:focus-visible,
html.pro-ui select:focus-visible,
html.pro-ui input:focus-visible {
    outline: 2px solid var(--pro-accent-2);
    outline-offset: 3px;
}

/* چیپ‌های انتخابگر: حلقه‌ی فوکوس روی خودِ چیپ، نه روی <select> داخلش.
   select کوچک‌تر از چیپ است و گوشه‌ی دیگری دارد، پس outlineِ بالا یک
   مستطیلِ ناهم‌اندازه دورش می‌کشید. outline لبه‌ی گردِ چیپ را دنبال می‌کند.
   فقط برای کیبورد (:focus-visible)؛ بعد از انتخاب با ماوس/لمس، select-menu.js
   فوکوس را اصلاً برنمی‌گرداند. */
html.pro-ui .mini-select-box select:focus-visible {
    outline: none;
}

html.pro-ui .mini-select-box:has(select:focus-visible) {
    outline: 2px solid var(--pro-accent-2);
    outline-offset: 2px;
}

html.pro-ui .btn-publish:active,
html.pro-ui .wallet-add-btn:active,
html.pro-ui .buy-btn:active,
html.pro-ui .coin-pack:active,
html.pro-ui .navbar-wallet:active,
html.pro-ui .menu-link:active,
html.pro-ui .studio-model:active,
html.pro-ui .new-chat-btn:active,
html.pro-ui .assets-tab:active,
html.pro-ui .feature-card:active {
    transform: scale(.97);
}

/* =========================================================
   پوسته — هدر
========================================================= */

html.pro-ui .dashboard-header {
    margin: 14px 18px 0;
}

html.pro-ui .dashboard-navbar {
    min-height: 66px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 20px;
    background:
        linear-gradient(rgba(14, 12, 36, .72), rgba(14, 12, 36, .72)) padding-box,
        var(--pro-edge-soft) border-box;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(22px) saturate(150%);
}

html.pro-ui .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border-color: rgba(156, 194, 255, .5);
    background: linear-gradient(135deg, var(--pro-accent-2), #fff 46%, var(--pro-cyan));
    box-shadow: 0 6px 20px rgba(79, 124, 255, .35);
}

html.pro-ui .brand-name {
    font-size: 18px;
    background: linear-gradient(90deg, #fff, var(--pro-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* کیف پولِ هدر — چیپِ طلایی، مقصدِ بارانِ کوین */
html.pro-ui .navbar-wallet {
    position: relative;
    min-height: 48px;
    padding: 5px 7px 5px 14px;
    border: 1px solid transparent;
    border-radius: 15px;
    background:
        linear-gradient(135deg, rgba(52, 22, 58, .95), rgba(20, 15, 46, .95)) padding-box,
        linear-gradient(135deg, rgba(255, 197, 61, .7), rgba(79, 124, 255, .6)) border-box;
    box-shadow: 0 6px 22px rgba(79, 124, 255, .16);
    transition: transform .22s var(--pro-ease), box-shadow .22s var(--pro-ease);
}

html.pro-ui .navbar-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 124, 255, .32);
}

html.pro-ui .navbar-wallet .wallet-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    color: #3a2300;
    background: radial-gradient(circle at 35% 30%, #fff1b8, var(--pro-gold) 55%, #e09a00);
    box-shadow: 0 4px 14px rgba(255, 197, 61, .35), inset 0 -2px 0 rgba(0, 0, 0, .15);
}

html.pro-ui .navbar-wallet .wallet-label {
    color: #d9c9e6;
}

html.pro-ui .navbar-wallet strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

html.pro-ui .navbar-wallet strong small {
    color: var(--pro-gold);
}

html.pro-ui .navbar-wallet.pro-gulp {
    animation: pro-gulp .42s var(--pro-spring);
}

html.pro-ui .navbar-wallet.pro-charged {
    box-shadow: 0 0 0 3px rgba(255, 197, 61, .3), 0 12px 40px rgba(79, 124, 255, .45);
}

@keyframes pro-gulp {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.12, .9); }
    65%  { transform: scale(.95, 1.06); }
    100% { transform: scale(1); }
}

html.pro-ui .navbar-user-icon {
    border-color: rgba(156, 194, 255, .45);
    background: var(--pro-cta);
    box-shadow: 0 6px 18px rgba(79, 124, 255, .3);
}

html.pro-ui .menu-toggle {
    border-radius: 13px;
    background: rgba(255, 255, 255, .06);
}

/* ---------- هدر روی موبایل ----------
   اندازه‌های بزرگ‌ترِ بالا (نام ۱۸px، لوگو ۴۲px، چیپِ کیف پول) روی
   گوشی‌های ۴۱۱ تا ۶۲۰ پیکسل جا نمی‌شد و نامِ برند بریده می‌شد
   («…oon AI»). اینجا به اندازه‌ی موبایلِ خودِ dashboard-header.css برمی‌گردیم
   و چیپ را جمع‌وجورتر می‌کنیم. */
@media (max-width: 620px) {
    html.pro-ui .dashboard-navbar {
        gap: 10px;
        padding: 8px 10px;
    }

    html.pro-ui .navbar-user-area {
        gap: 8px;
    }

    html.pro-ui .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    /* نام لاتین است: جهتِ ltr یعنی اگر روزی جا کم آمد، ته‌اش بریده شود
       نه اولش. flex-shrink صفر: اول بقیه جمع شوند، نه نامِ برند. */
    html.pro-ui .brand-name {
        font-size: 15px;
        direction: ltr;
        flex-shrink: 0;
    }

    html.pro-ui .navbar-brand {
        flex-shrink: 0;
    }

    html.pro-ui .navbar-wallet {
        min-height: 42px;
        padding: 4px 5px 4px 10px;
        gap: 7px;
    }

    html.pro-ui .navbar-wallet .wallet-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    html.pro-ui .navbar-wallet strong {
        font-size: 14px;
    }

    html.pro-ui .menu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   پوسته — سایدبارِ «داک»
========================================================= */

html.pro-ui .dashboard {
    gap: 18px;
    padding: 18px;
}

html.pro-ui .sidebar {
    display: flex;
    flex-direction: column;
    flex-basis: 250px;
    top: 18px;
    padding: 18px 12px 14px;
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(rgba(14, 12, 36, .72), rgba(14, 12, 36, .72)) padding-box,
        var(--pro-edge-soft) border-box;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    backdrop-filter: blur(22px) saturate(150%);
}

/* «پنل کاربری» → برچسبِ کوچکِ بالای منو */
html.pro-ui .sidebar .logo {
    margin: 2px 12px 16px;
    text-align: start;
    font-size: 12px;
    font-weight: 800;
    color: var(--pro-muted);
    background: none;
    -webkit-text-fill-color: currentColor;
}

html.pro-ui .menu {
    gap: 4px;
}

html.pro-ui .menu-item {
    position: relative;
    overflow: visible;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: background .2s var(--pro-ease), border-color .2s var(--pro-ease);
}

html.pro-ui .menu-item:hover,
html.pro-ui .menu-item:focus-within {
    transform: none;
    border-color: transparent;
    background: rgba(255, 255, 255, .06);
}

html.pro-ui .menu-link {
    gap: 12px;
    min-height: 50px;
    padding: 0 8px;
    color: #d8d5ee;
    font-size: 14px;
    font-weight: 700;
}

/* کاشیِ آیکون */
html.pro-ui .menu-link::before {
    content: "";
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background-color: rgba(255, 255, 255, .06);
    background-image: var(--ico);
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    transition: background-color .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
}

html.pro-ui .menu-link[href$="/dashboard/"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.6L18.5 9l-4.7 1.4L12 15l-1.8-4.6L5.5 9l4.7-1.4z'/%3E%3Cpath d='M19 15l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8z'/%3E%3C/svg%3E"); }
html.pro-ui .menu-link[href*="my_assets"]   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
html.pro-ui .menu-link[href*="wallet"]      { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h16a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpath d='M3 7V6a2 2 0 012-2h11'/%3E%3Ccircle cx='16.5' cy='13.5' r='1.3'/%3E%3C/svg%3E"); }
html.pro-ui .menu-link[href*="orders"]      { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }
html.pro-ui .menu-link[href*="profile"]     { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.2 3.6-7 8-7s8 2.8 8 7'/%3E%3C/svg%3E"); }
html.pro-ui .menu-link[href*="logout"]      { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb7185' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h3a2 2 0 012 2v12a2 2 0 01-2 2h-3'/%3E%3Cpath d='M10 16l-4-4 4-4M6 12h10'/%3E%3C/svg%3E"); }

/* حالتِ فعال: کاشیِ رنگیِ پر + نشانگرِ لبه‌ی سایدبار */
html.pro-ui .menu-item.active {
    border-color: rgba(156, 194, 255, .28);
    background: linear-gradient(270deg, rgba(79, 124, 255, .2), rgba(79, 124, 255, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

html.pro-ui .menu-item.active .menu-link {
    color: #fff;
    font-weight: 900;
}

html.pro-ui .menu-item.active .menu-link::before {
    background-color: var(--pro-accent);
    box-shadow: 0 6px 18px rgba(79, 124, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
}

html.pro-ui .menu-item.active::before {
    content: "";
    position: absolute;
    inset-inline-start: -13px;
    top: 50%;
    width: 4px;
    height: 24px;
    border-start-end-radius: 99px;
    border-end-end-radius: 99px;
    background: var(--pro-accent);
    box-shadow: 0 0 14px rgba(79, 124, 255, .9);
    transform: translateY(-50%);
}

/* «خروج» جدا از بقیه، با خطِ جداکننده */
html.pro-ui .menu-item:has(.menu-link[href*="logout"]) {
    margin-top: 12px;
}

html.pro-ui .menu-item:has(.menu-link[href*="logout"])::after {
    content: "";
    position: absolute;
    inset-inline: 10px;
    top: -8px;
    height: 1px;
    background: rgba(255, 255, 255, .08);
}

html.pro-ui .menu-link[href*="logout"] {
    color: #fda4af;
}

html.pro-ui .menu-item:has(.menu-link[href*="logout"]):hover {
    background: rgba(251, 113, 133, .1);
}

/* ماسکاتِ کفِ سایدبار — روی یک «صحنه‌ی» شیشه‌ای */
html.pro-ui .pro-sidebar-mascot {
    position: relative;
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

html.pro-ui .pro-sidebar-mascot::before {
    content: "";
    position: absolute;
    inset: 54px 4px 0;
    border-radius: 18px;
    background:
        radial-gradient(60% 55% at 50% 100%, rgba(79, 124, 255, .35), transparent 70%),
        rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

html.pro-ui .pro-sidebar-mascot .pro-mascot {
    width: 84px;
    margin-bottom: 12px;
    pointer-events: auto;
}

@media (max-height: 700px) {
    html.pro-ui .pro-sidebar-mascot { display: none; }
}

/* =========================================================
   پوسته — بدنه (بدونِ قاب؛ محتوا خودش کارت است)
========================================================= */

html.pro-ui .main {
    padding: 14px 10px 40px;
    border: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

html.pro-ui .section-title,
html.pro-ui .wallet-title,
html.pro-ui .orders-title,
html.pro-ui .profile-title {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.35;
    background: linear-gradient(90deg, #fff 20%, var(--pro-accent-2) 70%, var(--pro-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* خطِ کوتاهِ برند زیرِ تیترها */
html.pro-ui .section-title::after,
html.pro-ui .wallet-title::after,
html.pro-ui .orders-title::after,
html.pro-ui .profile-title::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 12px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pro-accent), var(--pro-cyan));
    box-shadow: 0 0 16px rgba(79, 124, 255, .6);
}

html.pro-ui .wallet-desc,
html.pro-ui .orders-desc,
html.pro-ui .section-subtitle,
html.pro-ui .profile-desc {
    color: var(--pro-muted);
}

/* =========================================================
   داشبورد — کارت‌های پوستری
========================================================= */

html.pro-ui .studio-grid {
    gap: 20px;
}

html.pro-ui .studio-card {
    position: relative;
    border: 1px solid transparent;
    border-radius: 26px;
    background:
        linear-gradient(160deg, rgba(26, 21, 60, .9), rgba(10, 8, 28, .95)) padding-box,
        var(--pro-edge) border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    transition: transform .3s var(--pro-ease), box-shadow .3s var(--pro-ease);
}

html.pro-ui .studio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 50px rgba(79, 124, 255, .2);
}

html.pro-ui .studio-card[open] {
    transform: none;
}

html.pro-ui .studio-card__head {
    position: relative;
    isolation: isolate;
    justify-content: flex-end;
    gap: 10px;
    min-height: 400px;
    padding: 26px;
    overflow: hidden;
    border-radius: 25px;
}

/* تصویرِ تمام‌قد */
html.pro-ui .studio-card__head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--art) center top / cover no-repeat;
    transition: transform .8s var(--pro-ease);
}

/* پرده‌ی تیره از پایین تا متن خوانا بماند */
html.pro-ui .studio-card__head::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(8, 6, 24, .98) 0%, rgba(8, 6, 24, .9) 32%, rgba(8, 6, 24, .35) 58%, rgba(8, 6, 24, 0) 78%),
        linear-gradient(270deg, rgba(79, 124, 255, .18), transparent 60%);
}

html.pro-ui .studio-card:hover .studio-card__head::before {
    transform: scale(1.06);
}

html.pro-ui .studio-grid > .studio-card:nth-of-type(1) { --art: url("../images/dashboard/studio-image-cover.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) { --art: url("../images/dashboard/studio-video-cover.webp"); }

/* ویدیوی کارت — فقط با hover ساخته و لود می‌شود (pro.js).
   تا وقتی واقعاً پخش نشده، کاور زیرش دیده می‌شود؛ بعد نرم رویش می‌آید. */
/* فقط ۷۰٪ بالای کارت: پرامپت و نتیجه‌ی داخلِ ویدیو وسطِ کادرند و
   اگر تمام‌قد باشد زیرِ تیترِ کارت می‌روند. لبه‌ی پایین محو می‌شود. */
html.pro-ui .pro-card-video {
    position: absolute;
    inset: 0 0 auto;
    z-index: -2;
    width: 100%;
    height: 70%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
    opacity: 0;
    transition: opacity .5s var(--pro-ease);
    pointer-events: none;
}

html.pro-ui .pro-card-video.is-ready {
    opacity: 1;
}

html.pro-ui .studio-card__head:has(.pro-card-video.is-ready)::before {
    opacity: 0;
    transition: opacity .5s var(--pro-ease);
}

html.pro-ui .studio-card__tag {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(10, 8, 28, .45);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
}

html.pro-ui .studio-card__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.3;
}

html.pro-ui .studio-card__desc {
    flex: 0 0 auto;
    max-width: 38ch;
    color: #d5d2ea;
    font-size: 14px;
}

html.pro-ui .studio-card__foot {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

html.pro-ui .studio-card__cta {
    padding: 9px 16px;
    border-radius: 12px;
    color: #fff;
    background: var(--pro-cta);
    box-shadow: 0 8px 22px rgba(79, 124, 255, .4);
}

html.pro-ui .studio-card__count {
    padding: 6px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
    color: #e7e4f7;
}

/* فهرستِ مدل‌ها: کاشی‌های دوستونه با بندانگشتی */
html.pro-ui .studio-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}

html.pro-ui .studio-model {
    gap: 12px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    transition: background .2s var(--pro-ease), border-color .2s var(--pro-ease), transform .2s var(--pro-ease);
}

html.pro-ui .studio-model:hover {
    background: rgba(79, 124, 255, .12);
    border-color: rgba(156, 194, 255, .5);
    transform: translateY(-2px);
}

html.pro-ui .studio-model::before {
    content: "";
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--thumb, var(--pro-cta)) center / cover no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 14px rgba(0, 0, 0, .4);
}

html.pro-ui .studio-model__text {
    flex: 1;
}

html.pro-ui .studio-model__arrow::after {
    color: var(--pro-accent-2);
}

html.pro-ui .studio-grid > .studio-card:nth-of-type(1) .studio-model:nth-child(1) { --thumb: url("../images/landing/nano-banana-2.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(1) .studio-model:nth-child(2) { --thumb: url("../images/landing/gpt-image-2.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(1) .studio-model:nth-child(3) { --thumb: url("../images/banners/slider1-nano banan 2.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) .studio-model:nth-child(1) { --thumb: url("../images/landing/kling-2.6.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) .studio-model:nth-child(2) { --thumb: url("../images/landing/veo-3.1.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) .studio-model:nth-child(3) { --thumb: url("../images/landing/seedance-2.5.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) .studio-model:nth-child(4) { --thumb: url("../images/landing/gemini-omni.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) .studio-model:nth-child(5) { --thumb: url("../images/landing/kling-motion-control.webp"); }
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) .studio-model:nth-child(6) { --thumb: url("../images/dashboard/norsoon-thumb.webp"); }
/* Kling 4.0 */
html.pro-ui .studio-grid > .studio-card:nth-of-type(2) .studio-model:nth-child(7) { --thumb: url("../images/dashboard/kling4-thumb.webp"); }

@media (max-width: 1100px) {
    html.pro-ui .studio-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    html.pro-ui .studio-card__head { min-height: 280px; padding: 20px; }
}

/* =========================================================
   ماسکات — کامپوننتِ مشترک
========================================================= */

html.pro-ui .pro-mascot {
    position: relative;
    display: block;
    width: 110px;
    aspect-ratio: 560 / 922;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .5));
    transform-origin: 50% 100%;
    animation: pro-float 3.6s ease-in-out infinite;
    transition: filter .25s var(--pro-ease);
}

/* روی لمسی رفتارِ «تصویر» نداشته باشد:
   • tap-highlight: باکسِ لحظه‌ایِ کروم اندروید موقعِ لمس؛ لرزشِ ژله‌ای
     خودش بازخوردِ لمس است.
   • touch-callout: منوی «دانلود/اشتراک تصویر» با نگه داشتنِ انگشت (iOS).
   • pointer-events روی img خاموش: لمس به قابِ span می‌رسد نه به تصویر، پس
     کروم اندروید هم منوی دانلود نشان نمی‌دهد و کلیک/لرزش همچنان کار می‌کند. */
html.pro-ui .pro-mascot {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

html.pro-ui .pro-mascot img {
    pointer-events: none;
    -webkit-touch-callout: none;
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(var(--tilt, 0deg));
    transform-origin: 50% 90%;
    transition: transform .5s var(--pro-ease);
}

html.pro-ui .pro-mascot:hover {
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6));
}

html.pro-ui .pro-mascot.is-wobble {
    animation: pro-wobble .75s var(--pro-ease);
}

@keyframes pro-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@keyframes pro-wobble {
    0%   { transform: scale(1, 1); }
    18%  { transform: scale(1.14, .84); }
    36%  { transform: scale(.9, 1.12) translateY(-10px); }
    54%  { transform: scale(1.06, .95); }
    72%  { transform: scale(.98, 1.03); }
    100% { transform: scale(1, 1); }
}

html.pro-ui .pro-perch {
    position: relative;
    height: 0;
    z-index: 3;
}

html.pro-ui .pro-perch .pro-mascot {
    position: absolute;
    bottom: -8px;
    inset-inline-end: 28px;
}

html.pro-ui .pro-perch--wallet .pro-mascot {
    width: 104px;
    inset-inline-end: 120px;
}

@media (max-width: 620px) {
    html.pro-ui .pro-perch--wallet .pro-mascot {
        width: 54px;
        bottom: -62px;
        inset-inline-end: 96px;
    }
}

/* =========================================================
   کیف پول
========================================================= */

/* کارتِ موجودی: مشِ رنگیِ متحرک.
   لایه‌ها ۱۳۰٪اند تا جابه‌جاییِ آرامشان لبه‌ی خالی نشان ندهد. */
html.pro-ui .wallet-card {
    border: 1px solid transparent;
    border-radius: 30px;
    background:
        radial-gradient(38% 70% at 85% 10%, rgba(79, 124, 255, .95), transparent 72%) padding-box,
        radial-gradient(40% 70% at 12% 92%, rgba(34, 211, 238, .6), transparent 72%) padding-box,
        radial-gradient(35% 60% at 50% 45%, rgba(139, 92, 246, .7), transparent 72%) padding-box,
        linear-gradient(135deg, #3a0f45, #1a0c3c 55%, #0b1f44) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .35)) border-box;
    background-size: 130% 130%, 130% 130%, 130% 130%, 100% 100%, 100% 100%;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .5), 0 0 90px rgba(79, 124, 255, .28);
    animation: pro-mesh 12s ease-in-out infinite alternate;
}

@keyframes pro-mesh {
    0%   { background-position: 100% 0%, 0% 100%, 50% 50%, 0 0, 0 0; }
    100% { background-position: 70% 30%, 30% 70%, 20% 80%, 0 0, 0 0; }
}

html.pro-ui .wallet-card-glow {
    display: none;
}

html.pro-ui .balance-label {
    color: #fff;
}

html.pro-ui .balance-caption {
    color: rgba(255, 255, 255, .72);
}

html.pro-ui .balance-main strong {
    font-size: clamp(60px, 7vw, 96px);
    line-height: 1;
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 6px 40px rgba(79, 124, 255, .55);
}

html.pro-ui .balance-main span {
    color: var(--pro-gold);
    font-weight: 900;
}

html.pro-ui .coin-badge {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 18px;
    color: #3a2300;
    background: radial-gradient(circle at 35% 30%, #fff1b8, var(--pro-gold) 55%, #e09a00);
    box-shadow: 0 10px 28px rgba(255, 197, 61, .4), inset 0 -3px 0 rgba(0, 0, 0, .15);
}

html.pro-ui .balance-bottom {
    border-top-color: rgba(255, 255, 255, .15);
}

html.pro-ui .balance-status {
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(0, 0, 0, .25);
}

/* روی سطحِ رنگی، دکمه‌ی سفید بیشترین کنتراست را دارد */
html.pro-ui .wallet-add-btn {
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    color: #2a0a24;
    font-weight: 900;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 255, 255, .12);
    transition: transform .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
}

html.pro-ui .wallet-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .16);
}

html.pro-ui .wallet-add-btn span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    color: #fff;
    background: var(--pro-cta);
}

/* کارت‌های ثانویه (کیف پول، سفارشات، پروفایل، محتواها) */
html.pro-ui .wallet-chart-card,
html.pro-ui .wallet-stat-card,
html.pro-ui .section-box,
html.pro-ui .buy-coins-box,
html.pro-ui .orders-table,
html.pro-ui .profile-simple-form,
html.pro-ui .referral-card,
html.pro-ui .empty-assets {
    border: 1px solid transparent;
    border-radius: 24px;
    background: var(--pro-card) padding-box, var(--pro-edge-soft) border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

html.pro-ui .section-box::before,
html.pro-ui .buy-coins-box::before,
html.pro-ui .orders-table::before {
    display: none;
}

html.pro-ui .wallet-stat-card {
    transition: transform .25s var(--pro-ease);
}

html.pro-ui .wallet-stat-card:hover {
    transform: translateY(-3px);
}

html.pro-ui .stat-icon {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
}

html.pro-ui .stat-icon.deposit      { color: #052e1c; background: linear-gradient(135deg, #6ee7b7, #10b981); box-shadow: 0 8px 20px rgba(16, 185, 129, .35); }
html.pro-ui .stat-icon.usage        { color: #fff;    background: var(--pro-cta); box-shadow: 0 8px 20px rgba(79, 124, 255, .35); }
html.pro-ui .stat-icon.transactions { color: #062a33; background: linear-gradient(135deg, #a5f3fc, #22d3ee); box-shadow: 0 8px 20px rgba(34, 211, 238, .3); }

html.pro-ui .wallet-stat-card strong {
    font-size: 26px;
}

/* جدول‌ها */
html.pro-ui .tb th,
html.pro-ui .orders-table th {
    background: rgba(255, 255, 255, .04);
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 800;
}

html.pro-ui .tb td,
html.pro-ui .orders-table td {
    border-color: rgba(255, 255, 255, .06);
}

html.pro-ui .tb tbody tr:hover,
html.pro-ui .orders-table tbody tr:hover {
    background: rgba(79, 124, 255, .06);
}

html.pro-ui .balance-main.pro-counting strong {
    animation: pro-pop .5s var(--pro-spring);
}

@keyframes pro-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* =========================================================
   سفارشات — پلن‌ها و خریدِ کوین
========================================================= */

html.pro-ui #price .plans {
    gap: 20px !important;
    align-items: stretch;
}

html.pro-ui .plan {
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    border: 1px solid transparent;
    border-radius: 26px;
    text-align: start;
    background: var(--pro-card) padding-box, var(--pro-edge-soft) border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    transition: transform .3s var(--pro-ease), box-shadow .3s var(--pro-ease);
}

html.pro-ui .plan:hover {
    transform: translateY(-4px);
}

/* پلنِ ویژه: لبه‌ی متحرکِ آبی-بنفش-فیروزه‌ای */
html.pro-ui .plan.active,
html.pro-ui .plan.active:hover {
    transform: translateY(-12px);
    background:
        radial-gradient(80% 50% at 50% 0%, rgba(79, 124, 255, .3), transparent 70%) padding-box,
        linear-gradient(160deg, rgba(48, 24, 84, .92), rgba(16, 10, 40, .95)) padding-box,
        linear-gradient(120deg, #4f7cff, #8b5cf6, #22d3ee, #4f7cff) border-box;
    background-size: 100% 100%, 100% 100%, 300% 300%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 70px rgba(79, 124, 255, .3);
    animation: pro-edge-flow 6s linear infinite;
}

@keyframes pro-edge-flow {
    to { background-position: 0 0, 0 0, 300% 0; }
}

/* نامِ پلن → چیپِ لاتین */
html.pro-ui .plan h3 {
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 6px 14px;
    border-radius: 99px;
    font-family: var(--font-latin);
    font-size: 13px;
    letter-spacing: .18em;
    color: #e9e6ff;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

html.pro-ui .plan.active h3 {
    color: #fff;
    background: var(--pro-cta);
    box-shadow: 0 8px 20px rgba(79, 124, 255, .45);
}

html.pro-ui .plan > p {
    margin: 0;
    color: var(--pro-muted);
    font-weight: 700;
}

html.pro-ui .plan .price {
    margin: 18px 0 22px;
    color: var(--pro-muted);
    font-size: 15px;
    font-weight: 800;
}

html.pro-ui .plan .price span {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.1;
}

html.pro-ui .plan.active .price span {
    background: linear-gradient(180deg, #fff 30%, var(--pro-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html.pro-ui .plan ul {
    flex: 1;
    gap: 12px;
    padding: 18px 0 0;
    margin: 0 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #e2dff5;
}

html.pro-ui .plan li {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ✦ → تیک داخلِ دایره */
html.pro-ui .plan li::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat,
        rgba(34, 211, 238, .35);
}

html.pro-ui .plan.active li::before {
    background-color: var(--pro-accent);
}

html.pro-ui .buy-btn {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
    transition: background .2s var(--pro-ease), transform .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
}

html.pro-ui .buy-btn:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}

html.pro-ui .plan.active .buy-btn,
html.pro-ui .buy-coins-box .buy-btn {
    border: 0;
    background: var(--pro-cta);
    box-shadow: 0 12px 30px rgba(79, 124, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* بسته‌های کوین → کاشی‌های قابلِ انتخاب */
html.pro-ui .coin-pack {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    font-weight: 900;
    transition: transform .2s var(--pro-ease), border-color .2s var(--pro-ease), background .2s var(--pro-ease);
}

html.pro-ui .coin-pack:hover {
    border-color: rgba(255, 197, 61, .55);
    transform: translateY(-3px);
}

html.pro-ui .coin-pack.active {
    border-color: var(--pro-gold);
    background: linear-gradient(160deg, rgba(255, 197, 61, .22), rgba(79, 124, 255, .12));
    box-shadow: 0 10px 28px rgba(255, 197, 61, .25), inset 0 0 0 1px rgba(255, 197, 61, .5);
}

/* =========================================================
   فیلدهای فرم (سفارشات + پروفایل)
========================================================= */

html.pro-ui .input-group input,
html.pro-ui .pf-field input:not([type="file"]),
html.pro-ui .pf-field select,
html.pro-ui .pf-field textarea {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(6, 5, 20, .5);
    color: #fff;
    transition: border-color .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
}

html.pro-ui .input-group input:focus,
html.pro-ui .pf-field input:focus,
html.pro-ui .pf-field select:focus,
html.pro-ui .pf-field textarea:focus {
    border-color: var(--pro-accent-2);
    background: rgba(6, 5, 20, .7);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, .18);
    outline: none;
}

html.pro-ui .input-group label,
html.pro-ui .pf-field label {
    color: #d8d5ee;
    font-weight: 800;
}

html.pro-ui .pf-field input[type="file"]::file-selector-button {
    background: var(--pro-cta);
}

html.pro-ui .btn-publish {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: var(--pro-cta);
    box-shadow: 0 12px 30px rgba(79, 124, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
}

html.pro-ui .btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(79, 124, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* آواتار با حلقه‌ی گرادیانی */
html.pro-ui .avatar-box img,
html.pro-ui .avatar-img {
    border: 3px solid transparent;
    background: linear-gradient(#07061a, #07061a) padding-box, linear-gradient(135deg, #4f7cff, #22d3ee) border-box;
    box-shadow: 0 0 40px rgba(79, 124, 255, .35);
}

html.pro-ui .referral-icon,
html.pro-ui .referral-footer-icon {
    color: #fff;
    background: var(--pro-cta);
}

/* =========================================================
   محتواهای من — تب‌های سگمنتی و حالتِ خالی
========================================================= */

html.pro-ui .assets-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

html.pro-ui .assets-tab {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #d8d5ee;
    transition: background .2s var(--pro-ease), color .2s var(--pro-ease);
}

html.pro-ui .assets-tab:hover {
    background: rgba(255, 255, 255, .07);
}

html.pro-ui .assets-tab.is-active {
    color: #fff;
    background: var(--pro-cta);
    box-shadow: 0 8px 22px rgba(79, 124, 255, .4);
}

html.pro-ui .empty-assets {
    position: relative;
    padding-top: 116px;
    background:
        radial-gradient(50% 60% at 50% 0%, rgba(79, 124, 255, .14), transparent 70%) padding-box,
        var(--pro-card) padding-box,
        var(--pro-edge-soft) border-box;
}

/* آیکونِ بزرگِ حالتِ خالی */
html.pro-ui .empty-assets::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    transform: translateX(-50%);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 9'/%3E%3C/svg%3E") center / 30px no-repeat,
        var(--pro-cta);
    box-shadow: 0 14px 34px rgba(79, 124, 255, .45);
}

/* =========================================================
   صفحه‌های ساخت — چت
========================================================= */

html.pro-ui .chat-sidebar {
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(14, 12, 36, .66), rgba(14, 12, 36, .66)) padding-box,
        var(--pro-edge-soft) border-box;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

html.pro-ui .chat-container {
    border: 1px solid transparent;
    background:
        radial-gradient(70% 50% at 50% 100%, rgba(79, 124, 255, .09), transparent 70%) padding-box,
        linear-gradient(rgba(12, 10, 32, .5), rgba(12, 10, 32, .5)) padding-box,
        var(--pro-edge-soft) border-box;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

html.pro-ui .new-chat-btn {
    border-radius: 14px;
    background: var(--pro-cta);
    box-shadow: 0 10px 26px rgba(79, 124, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: transform .2s var(--pro-ease), box-shadow .2s var(--pro-ease);
}

html.pro-ui .new-chat-btn:hover {
    transform: translateY(-2px);
}

html.pro-ui .back-btn {
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

html.pro-ui .sidebar-title {
    background: linear-gradient(90deg, #fff, var(--pro-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
}

html.pro-ui .chat-message.ai .bubble:not(.image):not(.video) {
    border: 1px solid transparent;
    border-radius: 6px 20px 20px 20px;
    background:
        linear-gradient(rgba(30, 25, 66, .88), rgba(30, 25, 66, .88)) padding-box,
        var(--pro-edge-soft) border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

html.pro-ui .chat-message.user .bubble {
    border-radius: 20px 6px 20px 20px;
    color: #fff;
    background: var(--pro-cta);
    box-shadow: 0 10px 26px rgba(79, 124, 255, .3);
}

/* ماسکات روی لبه‌ی باکسِ پرامپت */
html.pro-ui .pro-perch--composer {
    z-index: 0;
}

html.pro-ui .pro-perch--composer .pro-mascot {
    width: 58px;
    bottom: -18px;
    inset-inline-end: 64px;
}

html.pro-ui .chat-input {
    z-index: 1;
}

html.pro-ui.pro-busy .pro-perch--composer .pro-mascot {
    animation: pro-hop .9s var(--pro-ease) infinite;
}

@keyframes pro-hop {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    30%      { transform: translateY(-14px) scale(.95, 1.06); }
    55%      { transform: translateY(0) scale(1.08, .92); }
    70%      { transform: translateY(-3px) scale(1, 1); }
}

@media (max-width: 600px) {
    html.pro-ui .pro-perch--composer { display: none; }
}

/* =========================================================
   موبایل: ارتفاعِ واقعیِ صفحه (باگِ «کادر پرامپت زیرِ نوارِ مرورگر»)
   =========================================================
   generate.css همه‌جا 100vh دارد. روی موبایل 100vh یعنی «صفحه وقتی
   نوارهای مرورگر پنهان‌اند» — یعنی همیشه بلندتر از چیزی که واقعاً دیده
   می‌شود. نتیجه: ته کادرِ پرامپت و دکمه‌ی ارسال زیرِ نوارِ پایینِ کروم/سافاری
   می‌رفت. dvh ارتفاعِ همان لحظه است و نوارها را کم می‌کند.
   داخل @supports تا مرورگرِ قدیمی همان 100vh قبلی را نگه دارد.

   به‌روزرسانی: dvh نوارهای مرورگر را حساب می‌کند ولی کیبورد را نه.
   تا قبل از این، با باز شدنِ کیبورد کادرِ پیام زیرِ آن می‌افتاد، مرورگر
   لایه را بالا می‌کشید و دیگر برنمی‌گشت.

   --app-vh را static/js/mobile-viewport.js می‌نویسد و برابرِ visualViewport
   است — یعنی کیبورد را هم کم می‌کند. نبودنش = همان 100dvh قبلی.
========================================================= */

@supports (height: 100dvh) {
    @media (max-width: 900px) {
        html.pro-ui .generate-layout {
            height: calc(var(--app-vh, 100dvh) - var(--app-header-h, 0px));
        }

        html.pro-ui .chat-container {
            height: calc(var(--app-vh, 100dvh) - var(--app-header-h, 0px) - 82px);
        }

        html.pro-ui .chat-sidebar {
            height: calc(var(--app-vh, 100dvh) - var(--app-header-h, 0px) - 40px);
        }

        /* کفِ گوشی‌های بدونِ دکمه‌ی فیزیکی (نوارِ خانه) هم جا بخواهد */
        html.pro-ui .chat-input-wrap {
            bottom: max(12px, env(safe-area-inset-bottom, 0px));
        }
    }
}

/* =========================================================
   لندینگ
========================================================= */

html.pro-ui .feature-card {
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, rgba(26, 21, 60, .75), rgba(10, 8, 28, .85)) padding-box,
        var(--pro-edge) border-box;
    backdrop-filter: blur(14px);
    transition: transform .3s var(--pro-ease), box-shadow .3s var(--pro-ease);
}

html.pro-ui .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .45), 0 0 40px rgba(79, 124, 255, .28);
}

html.pro-ui .features-text h2 {
    font-size: clamp(34px, 4vw, 56px);
    text-shadow: 0 10px 40px rgba(79, 124, 255, .35);
}

/* موبایل و تبلت: «امروز چی بسازیم؟» روی سمتِ راستِ ویدیوی بالا می‌نشیند
   (بخشِ تاریکِ فریم) نه در یک ردیفِ جدا زیرش. آن ردیف حدود ۸۰ پیکسل
   جا می‌گرفت و ردیفِ دومِ کارت‌ها از صفحه بیرون می‌افتاد؛ حالا هر چهار
   کارت با هم دیده می‌شوند.
   ارتفاعِ نوارِ ویدیو = عرضِ صفحه × ۳۵۴/۱۲۸۰ (همان aspect-ratio در landing2.css). */
@media (max-width: 900px) {
    html.pro-ui .features-wrap {
        position: relative;
    }

    /* تا مرجعِ absolute خودِ features-wrap باشد، نه کانتینرِ زیرِ ویدیو */
    html.pro-ui .features-wrap .container {
        position: static;
    }

    /* سایه‌ی نرم پشتِ عنوان تا روی هر فریمِ ویدیو خوانا بماند */
    html.pro-ui .features-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 70%;
        height: calc(100vw * 354 / 1280);
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(270deg, rgba(5, 4, 20, .78) 20%, rgba(5, 4, 20, 0));
    }

    html.pro-ui .features-text {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        width: 60%;
        max-width: none;
        height: calc(100vw * 354 / 1280);
        margin: 0;
        padding-inline: 18px 8px;
        text-align: right;
    }

    html.pro-ui .features-text h2 {
        margin: 0;
        font-size: clamp(19px, 6.2vw, 34px);
        line-height: 1.3;
        text-shadow: none;
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6));
    }

    html.pro-ui .features-bg {
        margin-bottom: 18px;
    }
}

/* =========================================================
   بارانِ کوین
========================================================= */

.pro-rain {
    position: fixed;
    inset: 0;
    z-index: 9995;
    pointer-events: none;
    overflow: hidden;
}

.pro-rain__bit {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, opacity;
}

.pro-rain__bit--mascot {
    width: 38px;
    aspect-ratio: 560 / 922;
    background: center / contain no-repeat;
    filter: drop-shadow(0 6px 10px rgba(79, 124, 255, .45));
}

.pro-rain__bit--coin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff6c9 0 12%, transparent 13%),
        radial-gradient(circle at 50% 50%, #ffd666 0 52%, #f5a524 53% 62%, #ffd666 63%);
    box-shadow: 0 0 0 1.5px #c77d0a inset, 0 4px 12px rgba(255, 170, 0, .45);
}

.pro-rain__spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px 2px #22d3ee;
}

/* =========================================================
   کاهشِ حرکت
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html.pro-ui .pro-mascot,
    html.pro-ui.pro-busy .pro-perch--composer .pro-mascot,
    html.pro-ui .pro-mascot.is-wobble,
    html.pro-ui .navbar-wallet.pro-gulp,
    html.pro-ui .wallet-card,
    html.pro-ui .plan.active {
        animation: none;
    }

    html.pro-ui .studio-card:hover,
    html.pro-ui .feature-card:hover,
    html.pro-ui .plan:hover,
    html.pro-ui .navbar-wallet:hover {
        transform: none;
    }

    .pro-rain { display: none; }
}
