@font-face {
    font-family: devix;
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/woff/YekanBakhFaNum-Regular.woff') format('woff'),url('../fonts/woff2/YekanBakhFaNum-Regular.woff2') format('woff2')
}

@font-face {
    font-family: devix;
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/woff/YekanBakhFaNum-SemiBold.woff') format('woff'),url('../fonts/woff2/YekanBakhFaNum-SemiBold.woff2') format('woff2')
}

@font-face {
    font-family: devix;
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/woff/YekanBakhFaNum-Bold.woff') format('woff'),url('../fonts/woff2/YekanBakhFaNum-Bold.woff2') format('woff2')
}
@font-face {
    font-family: VazirmatnFallback;
    src: local("Vazirmatn"), local("Tahoma");
}

:root {
    --primary: #7657FD;
    --primary-dark: #5d3df1;
    --primary-soft: rgba(118, 87, 253, .11);
    --secondary: #67BAA7;
    --secondary-dark: #3a9d88;
    --secondary-soft: rgba(103, 186, 167, .14);
    --ink: #172033;
    --muted: #667085;
    --surface: rgba(255, 255, 255, .86);
    --surface-solid: #ffffff;
    --line: rgba(118, 87, 253, .13);
    --shadow: 0 22px 70px rgba(26, 22, 70, .10);
    --shadow-hover: 0 28px 90px rgba(26, 22, 70, .16);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: devix, Tahoma, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(103, 186, 167, .20), transparent 28rem),
        radial-gradient(circle at 88% 6%, rgba(118, 87, 253, .22), transparent 30rem),
        linear-gradient(180deg, #fbfbff 0%, #f4f6fb 48%, #eef4f2 100%);
    overflow-x: hidden;
}

body::selection {
    background: var(--primary);
    color: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
}

.site-bg-orb {
    position: fixed;
    z-index: -1;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .35;
    pointer-events: none;
}

.site-bg-orb-one {
    top: 12%;
    right: -6rem;
    background: var(--primary);
}

.site-bg-orb-two {
    bottom: 8%;
    left: -7rem;
    background: var(--secondary);
}

.container {
    max-width: 1180px;
}

.site-main {
    padding-top: 30px;
}

.site-navbar {
    margin: 14px 0 0;
    padding: 0;
    background: transparent;
}

.site-navbar .container {
    min-height: 78px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(42, 33, 96, .10);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink) !important;
    margin-left: 22px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #fff;
    font-weight: 900;
}

.brand-mark strong,
.brand-mark small {
    display: block;
    line-height: 1.5;
}

.brand-mark strong {
    font-size: 1.04rem;
}

.brand-mark small {
    color: var(--muted);
    font-size: .75rem;
}

.nav-menu {
    gap: 8px;
}

.site-navbar .nav-link {
    color: #303a52;
    font-weight: 700;
    padding: 10px 14px !important;
    border-radius: 999px;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-actions {
    gap: 10px;
}

.navbar-toggler {
    border: 0;
    background: var(--primary-soft);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28118, 87, 253, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.user-chip {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink) !important;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: .9rem;
}

.btn {
    --bs-btn-border-radius: 999px;
    --bs-btn-font-weight: 800;
    padding: .72rem 1.15rem;
    border-width: 0;
    box-shadow: none;
}

.btn-sm {
    padding: .52rem .95rem;
}

.btn-lg {
    padding: .86rem 1.4rem;
    font-size: 1rem;
}

.btn-primary,
.btn-success {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary), #8b72ff);
    border: 0;
    color: #fff;
    box-shadow: 0 16px 34px rgba(118, 87, 253, .27);
}

.btn-primary:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(118, 87, 253, .36);
}

.btn-outline-primary,
.btn-outline-secondary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: rgba(118, 87, 253, .28);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    color: var(--primary);
    border: 1px solid rgba(118, 87, 253, .26);
    background: rgba(255, 255, 255, .72);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(118, 87, 253, .22);
}

.btn-soft-primary {
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(118, 87, 253, .08);
}

.btn-soft-primary:hover {
    color: #fff;
    background: var(--primary);
}

.btn-light {
    color: var(--ink);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .62);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
}

.card,
.auth-card,
.empty-state,
.checkout-card,
.watch-card,
.content-card,
.side-card,
.payment-result-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.alert {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(26, 22, 70, .08);
}

.alert-info {
    color: #25605a;
    background: var(--secondary-soft);
}

.alert-warning {
    color: #805900;
    background: rgba(255, 193, 7, .14);
}

.alert-danger {
    color: #9f1239;
    background: rgba(244, 63, 94, .11);
}

.messages-wrap {
    margin-bottom: 20px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(118, 87, 253, .08);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(103, 186, 167, .15);
}

.hero-box,
.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 64px);
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(118, 87, 253, .14), rgba(103, 186, 167, .15)),
        rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
}

.hero-box::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -90px -120px auto;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(118, 87, 253, .22), transparent 66%);
    pointer-events: none;
}

.hero-title,
.page-hero h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -1.5px;
}

.hero-text,
.page-hero p {
    max-width: 640px;
    color: #566074;
    font-size: 1.08rem;
    line-height: 2;
    margin-bottom: 26px;
}

.hero-actions,
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    position: relative;
    min-height: 330px;
    display: grid;
    place-items: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    filter: blur(.2px);
    box-shadow: 0 30px 80px rgba(118, 87, 253, .25);
}

.hero-visual-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(18, 24, 40, .14);
}

.hero-visual-card.main {
    width: min(100%, 310px);
    min-height: 210px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-visual-card.main span {
    color: var(--secondary-dark);
    font-weight: 900;
    margin-bottom: 8px;
}

.hero-visual-card.main strong {
    font-size: 1.55rem;
    font-weight: 950;
    margin-bottom: 8px;
}

.hero-visual-card.main small {
    color: var(--muted);
}

.hero-visual-card.floating {
    position: absolute;
    padding: 14px 18px;
    font-weight: 850;
    color: #303a52;
}

.top-card {
    top: 34px;
    right: 0;
}

.bottom-card {
    bottom: 24px;
    left: 0;
}

.page-hero.compact {
    padding: clamp(24px, 4vw, 42px);
}

.page-hero.compact h1 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    margin-bottom: 8px;
}

.page-hero.compact p,
.dashboard-hero p {
    margin-bottom: 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 950;
}

.products-grid {
    align-items: stretch;
}

.product-card,
.purchase-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card:hover,
.purchase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(118, 87, 253, .22) !important;
}

.product-media,
.detail-media-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

.product-cover {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(118, 87, 253, .12), rgba(103, 186, 167, .12));
    transition: transform .35s ease;
}

.product-card:hover .product-cover {
    transform: scale(1.05);
}

.product-cover-placeholder,
.product-detail-cover.product-cover-placeholder {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 950;
    background:
        radial-gradient(circle at 20% 22%, rgba(118, 87, 253, .22), transparent 12rem),
        radial-gradient(circle at 90% 90%, rgba(103, 186, 167, .20), transparent 12rem),
        #fff;
}

.product-cover-placeholder span {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--primary-soft);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .78rem;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(18, 24, 40, .16);
}

.product-badge.detail {
    top: 18px;
    right: 18px;
}

.product-title {
    margin-bottom: 12px;
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.75;
}

.product-title a {
    color: var(--ink);
}

.product-title a:hover {
    color: var(--primary);
}

.product-excerpt {
    color: var(--muted);
    line-height: 1.9;
    font-size: .94rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(118, 87, 253, .10);
}

.product-price {
    color: var(--primary-dark);
    font-size: 1.02rem;
}

.product-detail-layout .sticky-lg-top {
    top: 110px;
    z-index: 1;
}

.product-buy-card,
.content-card,
.side-card,
.checkout-card,
.payment-result-card,
.watch-card {
    border: 1px solid rgba(255, 255, 255, .72) !important;
}

.product-detail-cover {
    width: 100%;
    max-height: 430px;
    min-height: 310px;
    object-fit: cover;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--primary-soft);
    border-radius: 18px;
}

.price-row span {
    color: var(--muted);
}

.price-row strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.feature-list {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    color: var(--muted);
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(118, 87, 253, .09);
    border-radius: 16px;
}

.feature-list strong {
    color: var(--ink);
}

.detail-title {
    margin-bottom: 24px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 950;
    line-height: 1.45;
}

.content-body {
    color: #30384d;
    line-height: 2.15;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
    margin-top: 1.4em;
    margin-bottom: .65em;
    color: var(--ink);
    font-weight: 950;
    line-height: 1.5;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(26, 22, 70, .10);
}

.content-body table {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.content-body blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    color: #374151;
    background: var(--secondary-soft);
    border-right: 5px solid var(--secondary);
    border-radius: 18px;
}

.empty-state {
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(118, 87, 253, .28);
}

.auth-shell {
    min-height: 64vh;
    display: grid;
    place-items: center;
    padding: 20px 0 44px;
}

.auth-shell.wide {
    min-height: auto;
}

.auth-card {
    position: relative;
    width: min(100%, 560px);
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, .72);
}

.auth-card-wide {
    width: min(100%, 820px);
}

.auth-card h1 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 950;
}

.auth-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 950;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 34px rgba(118, 87, 253, .25);
}

.auth-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    font-weight: 800;
}

label.form-label {
    color: #30384d;
    font-weight: 800;
    margin-bottom: 8px;
}

input,
textarea,
select {
    display: block;
    width: 100%;
    padding: .82rem .9rem;
    color: var(--ink);
    border: 1px solid rgba(118, 87, 253, .17);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(118, 87, 253, .11);
    background: #fff;
}

.form-check input[type="radio"],
.form-check input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-left: .55rem;
}

.dashboard-hero {
    background:
        linear-gradient(135deg, rgba(118, 87, 253, .16), rgba(103, 186, 167, .13)),
        rgba(255, 255, 255, .78);
}

.quick-links {
    display: grid;
    gap: 12px;
}

.quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 16px;
    font-weight: 850;
}

.quick-links a:hover {
    color: var(--primary);
    transform: translateX(-3px);
    border-color: rgba(118, 87, 253, .26);
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(118, 87, 253, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .70);
}

.checkout-product img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 18px;
}

.checkout-product h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    font-weight: 950;
}

.checkout-price {
    min-width: 136px;
    text-align: left;
}

.checkout-price strong,
.checkout-price span {
    display: block;
}

.checkout-price strong {
    color: var(--primary-dark);
}

.checkout-price span {
    color: var(--muted);
    font-size: .86rem;
    margin-top: 4px;
}

.gateway-list {
    display: grid;
    gap: 12px;
}

.gateway-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 15px !important;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(118, 87, 253, .13);
    border-radius: 18px;
}

.gateway-option label {
    cursor: pointer;
    font-weight: 850;
}

.gateway-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.purchase-card .product-cover {
    height: 190px;
}

.status-pill {
    width: fit-content;
    margin-bottom: 12px;
    color: var(--secondary-dark);
    background: var(--secondary-soft);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: .78rem;
    font-weight: 900;
}

.purchase-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.purchase-meta p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(118, 87, 253, .09);
    color: var(--muted);
    font-size: .88rem;
}

.purchase-meta strong {
    color: var(--ink);
    text-align: left;
    overflow-wrap: anywhere;
}

.payment-result-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72) !important;
}

.success-card {
    background:
        radial-gradient(circle at 20% 0%, rgba(103, 186, 167, .22), transparent 18rem),
        var(--surface);
}

.failed-card {
    background:
        radial-gradient(circle at 20% 0%, rgba(244, 63, 94, .15), transparent 18rem),
        var(--surface);
}

.payment-result-icon {
    width: 78px;
    height: 78px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 950;
}

.payment-result-icon.success {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 18px 40px rgba(103, 186, 167, .28);
}

.payment-result-icon.failed {
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    box-shadow: 0 18px 40px rgba(225, 29, 72, .22);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(118, 87, 253, .10);
    border-radius: 22px;
}

.result-details div {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, .70);
    border-radius: 16px;
}

.result-details span {
    color: var(--muted);
    font-size: .85rem;
}

.result-details strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.watch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.watch-header h1 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    font-weight: 950;
    line-height: 1.45;
    margin-bottom: 8px;
}

.watch-header p {
    color: var(--muted);
    margin: 0;
}

.secure-notice {
    padding: 14px 16px;
    color: #805900;
    background: rgba(255, 193, 7, .14);
    border: 1px solid rgba(255, 193, 7, .18);
    border-radius: 18px;
    font-size: .92rem;
    font-weight: 750;
}

.viewer-box {
    background:
        radial-gradient(circle at 18% 12%, rgba(118, 87, 253, .20), transparent 18rem),
        linear-gradient(135deg, #101827, #141021);
    border-radius: 24px;
    padding: clamp(12px, 2vw, 22px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 60px rgba(15, 23, 42, .18);
}

.pdf-frame {
    width: 100%;
    height: 75vh;
    border: 0;
    background: #fff;
    border-radius: 16px;
}

.secure-viewer {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.secure-media {
    user-select: none;
    -webkit-user-drag: none;
}

.secure-media audio,
audio.secure-media {
    min-height: 54px;
}

/* Secure in-site PDF viewer. Raw PDFs are never embedded in iframe/object. */
.secure-media,
.secure-pdf-shell {
    -webkit-user-select: none;
    user-select: none;
}

.secure-pdf-shell {
    background: rgba(15, 23, 42, .76);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 14px;
}

.secure-pdf-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #e5e7eb;
    font-size: .95rem;
    padding: 4px 4px 14px;
}

.secure-pdf-pages {
    display: grid;
    gap: 20px;
}

.secure-pdf-page-wrap {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.secure-pdf-page-wrap::before {
    content: attr(data-page);
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: .8rem;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
}

.secure-pdf-page-wrap::after {
    content: attr(data-watermark);
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .075;
    color: #0f172a;
    font-size: clamp(24px, 5vw, 44px);
    font-weight: 900;
    transform: rotate(-24deg);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.secure-pdf-page {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.secure-pdf-page-wrap figcaption {
    background: #f8fafc;
    color: #475569;
    font-size: .85rem;
    text-align: center;
    padding: 8px;
}

.site-footer {
    padding: 0 0 28px;
}

.footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    color: #475467;
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    box-shadow: 0 14px 50px rgba(26, 22, 70, .07);
}

.footer-card strong {
    color: var(--ink);
    display: block;
    margin-bottom: 6px;
}

body.secure-print-blocked .secure-pdf-shell {
    display: none !important;
}

@media (max-width: 991.98px) {
    .site-navbar {
        margin-top: 8px;
    }

    .site-navbar .container {
        border-radius: 20px;
    }

    .navbar-collapse {
        padding-top: 14px;
    }

    .nav-menu,
    .nav-actions {
        gap: 8px;
        align-items: stretch !important;
    }

    .site-navbar .nav-link,
    .nav-actions .btn,
    .user-chip {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-visual {
        min-height: 260px;
    }

    .product-detail-layout .sticky-lg-top {
        position: static !important;
    }

    .watch-header {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .site-main {
        padding-top: 20px;
    }

    .hero-box,
    .page-hero,
    .auth-card,
    .checkout-card .card-body,
    .watch-card .card-body {
        border-radius: 22px;
    }

    .hero-title,
    .page-hero h1 {
        letter-spacing: -1px;
    }

    .hero-actions,
    .dashboard-actions,
    .section-head,
    .footer-card {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .dashboard-actions .btn,
    .section-head .btn,
    .footer-card .btn {
        width: 100%;
    }

    .hero-visual-card.floating {
        position: relative;
        inset: auto;
        width: 100%;
        text-align: center;
    }

    .hero-visual {
        display: grid;
        gap: 12px;
        min-height: auto;
    }

    .hero-visual::before {
        width: 180px;
        height: 180px;
    }

    .hero-visual-card.main {
        min-height: 180px;
    }

    .checkout-product {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-price {
        width: 100%;
        text-align: right;
        padding-top: 12px;
        border-top: 1px solid rgba(118, 87, 253, .10);
    }

    .result-details {
        grid-template-columns: 1fr;
    }

    .product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .product-footer .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .site-navbar .container {
        min-height: 68px;
        padding: 10px 12px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .brand-mark small {
        display: none;
    }

    .product-cover {
        height: 205px;
    }

    .product-detail-cover {
        min-height: 240px;
    }

    .payment-result-icon {
        width: 68px;
        height: 68px;
        border-radius: 22px;
        font-size: 36px;
    }
}

@media print {
    .secure-pdf-shell,
    .viewer-box,
    video,
    audio,
    .site-navbar,
    .site-footer {
        display: none !important;
    }
    body::before {
        content: "چاپ و خروجی گرفتن از محتوای خریداری‌شده مجاز نیست.";
        display: block;
        padding: 32px;
        font-size: 18px;
        direction: rtl;
    }
}
