/* Rail724 Custom Styles - Dark Blue & Gold Theme */

:root {
    --bg-darkest: #060a15;
    --bg-dark: #0a0f1f;
    --bg-card: #101829;
    --bg-card-hover: #151f35;
    --gold: #d4a017;
    --gold-light: #f5c518;
    --gold-dark: #b8860b;
    --blue-accent: #1e40af;
    --blue-light: #3b82f6;
    --text-primary: #e8ecf1;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --navbar-h: 72px;
    --top-promo-h: 0px;
    --site-header-offset: var(--navbar-h);
    --font-sans: 'Vazirmatn', Tahoma, sans-serif;
    --font-brand: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
}

body.has-top-promo {
    /* نسبت عکس موبایل پیشنهادی: ۷۵۰×۱۲۰ */
    --top-promo-h: min(calc(100vw * 120 / 750), 120px);
    --site-header-offset: calc(var(--navbar-h) + var(--top-promo-h));
}
@media (min-width: 769px) {
    body.has-top-promo {
        --top-promo-h: min(calc(100vw * 80 / 1920), 80px);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

html {
    scroll-behavior: auto;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── Glass Effect ─── */
.glass {
    background: rgba(16, 24, 41, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 160, 23, 0.1);
}

/* ─── Gold Gradient Text ─── */
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ─── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.3);
}

/* دکمه ورود / OTP — خواناتر، کمتر زرد تند */
.btn-gold-soft {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.88), rgba(180, 130, 20, 0.95));
    color: #0a0e17;
    padding: 12px 32px;
    border: 1px solid rgba(212, 160, 23, 0.45);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.btn-gold-soft:hover {
    background: linear-gradient(135deg, rgba(232, 180, 40, 0.95), rgba(212, 160, 23, 0.92));
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.22);
}
.btn-gold-soft .btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.navbar-auth-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    padding: 12px 32px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

.btn-blue {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-accent));
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-blue:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* ─── Cards ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-gold {
    border: 2px solid rgba(212, 160, 23, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 160, 23, 0.05));
}

.card-gold:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(212, 160, 23, 0.15);
}

/* ─── Hero Section ─── */
.hero {
    background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-particles {
    display: none !important;
}

.hero-particles span {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-40px); opacity: 0.55; }
}

@media (max-width: 768px) {
    .hero-particles {
        display: none;
    }
}

/* توقف انیمیشن‌ها هنگام اسکرول سریع — روان‌تر شدن صفحه */
html.is-scrolling .badge-pulse,
html.is-scrolling .home-products-showcase .hps-pulse,
html.is-scrolling .home-products-showcase .hps-pulse::after {
    animation-play-state: paused !important;
}

/* ─── هدر ثابت سایت: بنر تبلیغ + منو (یک بلوک) ─── */
.site-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.site-top-spacer {
    display: block;
    width: 100%;
    height: calc(var(--top-promo-h) + var(--navbar-h));
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    pointer-events: none;
}

/* ─── نوار تبلیغاتی بالای هدر (Top Promo Strip) ─── */
.top-promo {
    display: block;
    position: relative;
    width: 100%;
    height: var(--top-promo-h);
    min-height: var(--top-promo-h);
    max-height: var(--top-promo-h);
    overflow: hidden;
    background: var(--bg-darkest);
    border: none;
    margin: 0;
    padding: 0;
    line-height: 0;
    flex-shrink: 0;
    text-decoration: none;
}
.top-promo picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.top-promo-img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    object-fit: cover;
    object-position: center center;
    vertical-align: top;
}

/* ─── Navigation ─── */
.navbar {
    background: rgba(6, 10, 21, 0.97);
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    margin: 0;
    position: relative;
    width: 100%;
    padding: 0 24px;
    overflow: visible;
    flex-shrink: 0;
}

.navbar.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ─── منوی حساب کاربری ─── */
.user-dropdown {
    position: relative;
    display: inline-block;
    z-index: 10002;
}
.user-menu-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: var(--bg-primary);
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 10003;
    min-width: 220px;
    background: #fffef5;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.user-dropdown-menu.is-open {
    display: block;
}
.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1a2035;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.22);
    transition: background 0.18s ease;
}
.user-dropdown-menu a:last-child {
    border-bottom: none;
}
.user-dropdown-menu a:hover {
    background: #fef3c7;
}
.user-dropdown-menu a.user-menu-logout {
    color: #c62828;
}
.user-dropdown-menu a.user-menu-logout:hover {
    background: #ffebee;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 72px;
    overflow: visible;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-start;
    overflow: visible;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: auto;
}

.navbar-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}

.navbar-logo .logo-text {
    font-size: 22px;
}

@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
    .mobile-menu-btn { display: none !important; }
}

.navbar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.navbar a:hover, .navbar a.active {
    color: var(--gold);
    background: rgba(212, 160, 23, 0.1);
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold) !important;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--blue-light);
}

/* ─── Product Cards ─── */
.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.4s ease;
}

.product-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.12);
}

.product-card.featured {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, rgba(212, 160, 23, 0.05), var(--bg-card));
}

.product-card.featured::before {
    content: 'پرفروش‌ترین';
    position: absolute;
    top: -1px;
    right: 30px;
    background: var(--gold);
    color: #000;
    padding: 2px 16px 6px;
    border-radius: 0 0 10px 10px;
    font-size: 12px;
    font-weight: 700;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.2), rgba(30, 64, 175, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.price-tag {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
}

.price-tag small {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 16px;
}

/* ─── Feature List ─── */
.feature-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
    min-width: 20px;
}

/* ─── Section Titles ─── */
.section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 48px;
}

/* ─── Video Box ─── */
.video-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-box:hover {
    border-color: rgba(212, 160, 23, 0.3);
}

.video-box video,
.video-box iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.video-box .video-info {
    padding: 16px 20px;
}

/* ─── Forms ─── */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    direction: rtl;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* ─── Alerts ─── */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #4ade80; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }
.alert-info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa; }

/* ─── Grid ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 32px !important; }
    .section-title { font-size: 28px; }
    .navbar-links { display: none; }
    .mobile-menu-btn { display: block !important; }
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .card { border-radius: 12px; }
    .product-card { padding: 24px 20px; }
    .price-tag { font-size: 22px; }
    .flex.justify-center { gap: 24px !important; }
    .flex.justify-center > div .stat-value,
    .flex.justify-center > div > div:first-child { font-size: 28px !important; }
    .btn-gold, .btn-outline-gold { padding: 10px 24px; font-size: 14px; }
    .footer .grid-3 { gap: 32px !important; }
    /* Checkout responsive */
    .checkout-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px !important; }
    .hero p { font-size: 15px !important; }
    .section-title { font-size: 24px; }
    .product-icon { width: 64px; height: 64px; font-size: 26px; }
    .price-tag { font-size: 20px; }
    .p-6 { padding: 16px; }
    .stat-card { padding: 16px; }
    .stat-icon { width: 44px; height: 44px; font-size: 20px; }
}

/* ─── Footer ─── */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--gold);
}

/* ─── Badge ─── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-gold { background: rgba(212, 160, 23, 0.2); color: var(--gold); }
.badge-green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-raja-vip {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(124, 58, 237, 0.2));
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.4);
    font-weight: 800;
}
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-gray { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* ─── Table ─── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-dark);
    padding: 14px 16px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ─── Stats Cards ─── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Mobile Menu ─── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--site-header-offset);
    right: 0;
    left: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    z-index: 999;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: rgba(212, 160, 23, 0.1);
    color: var(--gold);
}

/* ─── Animations ─── */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Pulse dot ─── */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Section spacing */
.section { padding: 80px 0; }

/* Text helpers */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.rounded { border-radius: 12px; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* ─── Enhanced UI — Glow & Neon ─── */

/* Gold glow on product cards */
.product-card.featured {
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.08);
}
.product-card.featured:hover {
    box-shadow: 0 0 50px rgba(212, 160, 23, 0.2), 0 20px 60px rgba(212, 160, 23, 0.12);
}

/* Neon button glow */
.btn-gold {
    position: relative;
    overflow: hidden;
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transition: transform 0.6s;
    transform: translateX(-100%);
}
.btn-gold:hover::after {
    transform: translateX(100%);
}

/* Glowing border cards on hover */
.card-gold:hover {
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.15), 0 12px 40px rgba(212, 160, 23, 0.12);
}

/* Hero gradient animated */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--bg-darkest));
    pointer-events: none;
}

/* Feature cards icon pulse */
.card.p-6.text-center:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(212, 160, 23, 0.1);
}
.card.p-6.text-center:hover > div:first-child {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* Smooth page transition — سبک تا لگ ندهد */
main {
    animation: pageIn 0.25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    main,
    .fade-in,
    .slide-up {
        animation: none !important;
    }
}
@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Toast animation */
@keyframes toastSlideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Cart badge pulse */
#cartBadge {
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Better focus states */
.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15), 0 0 20px rgba(212, 160, 23, 0.05);
}

/* Checkout grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ─── Checkout page (modern) ─── */
.checkout-page { padding-top: 32px; padding-bottom: 100px; }
.checkout-container { max-width: 1040px; }
.checkout-head { text-align: center; margin-bottom: 28px; }
.checkout-head h1 { font-size: 30px; font-weight: 900; margin-bottom: 20px; }
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-secondary); }
.checkout-step.is-active { color: var(--gold); }
.checkout-step-num {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; background: var(--border-color); color: var(--text-secondary);
}
.checkout-step.is-active .checkout-step-num { background: var(--gold); color: #1a1205; }
.checkout-step-line { width: 48px; height: 2px; background: var(--border-color); }
.checkout-card {
    padding: 22px; border-radius: 18px; margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(20,28,48,0.85), rgba(8,12,22,0.94));
    border: 1px solid var(--border-color);
}
.checkout-card h3 { font-weight: 800; font-size: 17px; margin-bottom: 18px; }
.checkout-field { margin-bottom: 16px; }
.checkout-readonly { opacity: 0.88; direction: ltr; text-align: center; background: rgba(255,255,255,0.03); }
.checkout-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.checkout-hint-ok { color: var(--success); }
.checkout-coupon-row { display: flex; gap: 10px; }
.checkout-coupon-row .form-input { flex: 1; }
.checkout-summary {
    position: sticky; top: 90px; padding: 22px; border-radius: 20px;
    background: linear-gradient(180deg, rgba(212,160,23,0.08), rgba(8,12,22,0.95));
    border: 1px solid rgba(212,160,23,0.3);
}
.checkout-summary h3 { font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.checkout-summary-item {
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid var(--border-color);
}
.checkout-summary-name { font-weight: 700; margin-bottom: 4px; }
.checkout-summary-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.checkout-summary-price { font-weight: 800; color: var(--gold); white-space: nowrap; }
.checkout-summary-price small { color: var(--text-muted); font-weight: 500; }
.checkout-summary-total { margin-top: 14px; padding-top: 14px; border-top: 2px solid rgba(212,160,23,0.35); }
.checkout-summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.checkout-summary-pay { font-size: 18px; font-weight: 900; margin-top: 8px; }
.checkout-summary-pay span:last-child { color: var(--gold); }
.checkout-submit-desktop { justify-content: center; margin-top: 18px; }
.checkout-sticky-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(8,12,22,0.96); border-top: 1px solid rgba(212,160,23,0.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
}
.checkout-sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1040px; margin: 0 auto; }
.checkout-sticky-price strong { display: block; color: var(--gold); font-size: 18px; font-weight: 900; }
.checkout-sticky-btn { flex-shrink: 0; white-space: nowrap; padding: 12px 20px; }

@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .checkout-submit-desktop { display: none; }
    .checkout-sticky-bar { display: block; }
    .checkout-page { padding-bottom: 88px; }
}

/* Smooth scrollbar for contract text */
#contractText::-webkit-scrollbar { width: 6px; }
#contractText::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
#contractText::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* Link hover underline animation */
.footer a {
    position: relative;
}
.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.footer a:hover::after {
    width: 100%;
}

/* Number counter glow */
.stat-value {
    text-shadow: 0 0 20px rgba(212, 160, 23, 0.15);
}

/* ─── Platform strip & product dots ─── */
.section-sm { padding: 40px 0; }
.platforms-strip {
    background: linear-gradient(180deg, transparent, rgba(16,24,41,0.6));
    border-bottom: 1px solid var(--border-color);
}
.platforms-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.platform-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 28px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s;
}
.platform-chip:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(212, 160, 23, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.platform-chip img {
    max-height: 44px;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.platform-fallback {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    align-items: center;
    gap: 8px;
}
.product-platform-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}
.plat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.plat-raja { background: #3498db; box-shadow: 0 0 8px #3498db88; }
.plat-raja-vip { background: linear-gradient(135deg, #2dd4bf, #7c3aed); box-shadow: 0 0 10px #2dd4bf88; }
.plat-masterbilit { background: #9b59b6; box-shadow: 0 0 8px #9b59b688; }
.plat-mrbilit { background: #9b59b6; box-shadow: 0 0 8px #9b59b688; }
.plat-safir { background: #e67e22; box-shadow: 0 0 8px #e67e2288; }
.plat-alibaba { background: #D4A017; box-shadow: 0 0 8px #D4A01788; }

.product-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease !important;
}
.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 160, 23, 0.15) !important;
}

@media (max-width: 768px) {
    .platform-chip { min-width: calc(50% - 16px); padding: 12px 16px; }
    .hero h1 { font-size: 32px !important; }
    .hero-logo-ring { display: none; }
}

/* ─── Modern hero refresh ─── */
.hero-modern {
    text-align: center;
    padding: 100px 0 90px;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.18), transparent),
                radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 160, 23, 0.12), transparent),
                linear-gradient(180deg, #050810 0%, #0a0f1f 45%, #060a15 100%);
}

/* ─── Hero با اسلایدر عکس پس‌زمینه ─── */
.hero-slider { position: relative; }
.hero-bg-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.6s ease-in-out, transform 7s ease-out;
}
.hero-slide-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: blur(var(--hero-blur, 0px));
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
/* لایه تیره برای خوانایی متن روی عکس */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5, 8, 16, 0.72) 0%, rgba(5, 8, 16, 0.55) 45%, rgba(6, 10, 21, 0.92) 100%),
        radial-gradient(ellipse 70% 60% at 50% 38%, rgba(5, 8, 16, 0.25), rgba(5, 8, 16, 0.78));
}
/* overlay با تیرگی قابل تنظیم از پنل */
.hero-overlay-dynamic {
    background:
        linear-gradient(180deg,
            rgba(5, 8, 16, calc(var(--hero-dark, 0.6) * 1.05)) 0%,
            rgba(5, 8, 16, calc(var(--hero-dark, 0.6) * 0.8)) 45%,
            rgba(6, 10, 21, calc(var(--hero-dark, 0.6) * 1.2 + 0.1)) 100%);
}
.hero-slider .hero-mesh { z-index: 1; }
.hero-slider .hero-particles { z-index: 1; }
.hero-slider .hero-content { position: relative; z-index: 3; }

/* ══════════════════════════════════════════════════
   اسلایدر تبلیغاتی تمام‌عرض (ha = hero-advert)
   نسبت ثابت ۱۹۲۰×۶۵۰ — عرض کامل، ارتفاع متناسب هر دیوایس
   ══════════════════════════════════════════════════ */
.ha-wrap {
    margin: 0;
    padding: 0;
    width: 100%;
    background: #050810;
    position: relative;
    z-index: 1;
}
.ha-section {
    position: relative;
    width: 100%;
    /* دسکتاپ: ۱۹۲۰×۶۵۰ */
    aspect-ratio: 1920 / 650;
    height: min(calc(100vw * 650 / 1920), 650px);
    max-height: 650px;
    overflow: hidden;
    background: #050810;
    user-select: none;
    line-height: 0;
}
@media (max-width: 768px) {
    .ha-section {
        /* موبایل: ۱۰۰۰×۷۵۰ */
        aspect-ratio: 1000 / 750;
        height: min(calc(100vw * 750 / 1000), 750px);
        max-height: 750px;
    }
}
.ha-track {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.ha-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    background: #050810;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ha-slide.active { opacity: 1; z-index: 1; }
.ha-section.ha-slide-mode .ha-slide {
    opacity: 1;
    transition: transform 0.78s cubic-bezier(0.4, 0, 0.2, 1);
}
/* عکس اسلاید — مرورگر فقط عکس مناسب همان عرض را لود می‌کند (picture + source) */
.ha-slide-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.ha-slide-picture img,
.ha-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    filter: blur(var(--ha-blur, 0px));
    pointer-events: none;
}
/* ─ overlay تیرگی (اختیاری از پنل) ─ */
.ha-overlay {
    position: absolute;
    inset: 0; z-index: 2;
    background: rgba(5, 8, 16, calc(var(--ha-dark, 0.35) * 0.55));
    pointer-events: none;
}
.ha-link { position: absolute; inset: 0; z-index: 3; display: block; }
.ha-link--mobile { display: none; }
@media (max-width: 768px) {
    .ha-link--desktop { display: none; }
    .ha-link--mobile { display: block; }
}
/* ─ دکمه‌های ناوبری ─ */
.ha-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 50px; height: 50px; border-radius: 50%;
    border: 2px solid rgba(212,160,23,0.5);
    background: rgba(5,8,16,0.55);
    color: var(--gold); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; line-height: 1;
    backdrop-filter: blur(10px);
    transition: all 0.22s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.ha-btn:hover {
    background: rgba(212,160,23,0.22);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.08);
}
.ha-prev { right: 24px; }
.ha-next { left: 24px; }
/* ─ نقطه‌ها ─ */
.ha-dots {
    position: absolute; bottom: 20px; right: 20px; left: auto;
    transform: none;
    z-index: 10; display: flex; gap: 8px; align-items: center;
}
.ha-dot {
    width: 8px; height: 8px; border-radius: 8px;
    border: none; padding: 0;
    background: rgba(255,255,255,0.45); cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.ha-dot.active {
    background: var(--gold); width: 26px;
    box-shadow: 0 0 10px rgba(212,160,23,0.6);
}
/* ─ آمار زیر بنر اسلایدر ─ */
.ha-stats-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    background: linear-gradient(180deg, #050810 0%, #060a15 100%);
    padding: 20px 16px 24px;
    line-height: 1.2;
    border-bottom: 1px solid rgba(212,160,23,0.12);
    box-shadow: inset 0 1px 0 rgba(212,160,23,0.06);
}
.ha-stat {
    min-width: 0;
    text-align: center;
    padding: 0 6px;
}
.ha-stat-n {
    display: block;
    font-size: clamp(20px, 3.8vw, 36px);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -.02em;
    text-shadow: 0 0 24px rgba(212,160,23,0.15);
}
.ha-stat-n small { font-size: 0.42em; letter-spacing: 0; }
.ha-stat-l {
    display: block;
    font-size: clamp(10px, 2vw, 12px);
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    max-width: 6.5em;
    margin-inline: auto;
}
.ha-stat-sep {
    width: 1px;
    height: clamp(32px, 7vw, 44px);
    background: linear-gradient(180deg, transparent, var(--border-color), transparent);
    flex-shrink: 0;
    justify-self: center;
}
@media (max-width: 900px) {
    .ha-btn { width: 38px; height: 38px; font-size: 13px; }
    .ha-prev { right: 10px; }
    .ha-next { left: 10px; }
    .ha-dots { bottom: 10px; right: 12px; }
}
@media (max-width: 768px) {
    /* موبایل همان نسبت ۱۹۲۰×۶۵۰ — عکس کامل مثل دسکتاپ */
    .ha-stats-strip {
        max-width: none;
        padding: 10px 6px 14px;
    }
    .ha-stat-n {
        font-size: clamp(15px, 4vw, 22px);
        margin-bottom: 3px;
    }
    .ha-stat-l {
        font-size: clamp(8px, 2vw, 10px);
        max-width: 5.2em;
    }
    .ha-stat-sep {
        height: clamp(28px, 7vw, 36px);
    }
    .ha-stat {
        padding: 0 2px;
    }
}
@media (max-width: 380px) {
    .ha-stat-l { font-size: 7px; max-width: 4.8em; }
    .ha-stats-strip { padding: 8px 4px 12px; }
}

/* ─ سامانه‌های تحت پشتیبانی — هم‌عرض جشنواره / گرید ۳ محصول (استایل آفلاین) ─ */
.sp-home {
    max-width: 1280px;
    margin: 0 auto 32px;
    padding: 0 24px;
    line-height: 1.35;
    font-family: var(--font-sans);
}
.sp-home-shell {
    position: relative;
    width: 100%;
    border-radius: 20px;
    padding: clamp(18px, 2.5vw, 26px) clamp(14px, 2vw, 22px) 0;
    background:
        radial-gradient(ellipse 85% 55% at 50% -8%, rgba(214, 161, 0, 0.09), transparent 58%),
        radial-gradient(ellipse 45% 35% at 12% 100%, rgba(59, 130, 246, 0.06), transparent 55%),
        linear-gradient(165deg, #060a14 0%, #050810 48%, #08060c 100%);
    border: 1px solid rgba(214, 161, 0, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(214, 161, 0, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 16px 48px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.sp-home-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.sp-home-accent {
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(214, 161, 0, 0.35) 18%,
        rgba(245, 197, 24, 0.9) 50%,
        rgba(214, 161, 0, 0.35) 82%,
        transparent 100%);
}
.sp-home-head {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    padding: 0 4px;
}
.sp-home-pre {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.22);
}
.sp-home-pre i { font-size: 0.88em; opacity: 0.9; }
.sp-home-title {
    font-size: clamp(1.15rem, 2.8vw, 1.9rem);
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.sp-home-desc {
    margin: 0 auto;
    max-width: 580px;
    font-size: clamp(0.8rem, 1.8vw, 0.96rem);
    color: #94a3b8;
    line-height: 1.7;
}
.sp-home-platforms {
    --pcard-logo-stage-h: clamp(4.5rem, 12vw, 7.5rem);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 18px);
    padding: clamp(14px, 2.2vw, 26px) clamp(8px, 1.5vw, 14px);
    align-items: start;
}
.sp-home-plat {
    --pcard-accent-soft: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.4vw, 14px);
    min-width: 0;
    text-align: center;
}
.sp-home-plat-stage {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    align-self: stretch !important;
    margin-bottom: 0 !important;
    border-radius: clamp(12px, 2vw, 18px);
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 6px 20px rgba(0, 0, 0, 0.28);
}
.sp-home-plat .sp-home-plat-orb {
    width: 78%;
    max-height: 82%;
    border-radius: clamp(10px, 1.8vw, 16px);
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 14px rgba(0, 0, 0, 0.3);
}
.sp-home-plat-name {
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: var(--font-sans);
    font-size: clamp(12px, 2.4vw, 16px);
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.35;
    letter-spacing: -0.01em;
    padding: clamp(5px, 0.9vw, 8px) clamp(4px, 0.8vw, 8px);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(5, 8, 16, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    word-break: break-word;
    hyphens: auto;
}
.sp-home-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-top: 1px solid rgba(212, 160, 23, 0.16);
    background:
        linear-gradient(180deg, rgba(5, 8, 16, 0.45) 0%, #050810 100%);
    padding: clamp(14px, 2.5vw, 22px) clamp(10px, 2vw, 18px);
}
.sp-home-stat {
    min-width: 0;
    text-align: center;
    padding: 0 clamp(6px, 1.2vw, 14px);
}
.sp-home-stat-n {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(22px, 4.2vw, 40px);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: clamp(4px, 0.8vw, 8px);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(212, 160, 23, 0.18);
}
.sp-home-stat-l {
    display: block;
    font-size: clamp(10px, 1.9vw, 14px);
    color: #94a3b8;
    font-weight: 700;
    line-height: 1.4;
}
.sp-home-stat-sep {
    width: 1px;
    height: clamp(34px, 7vw, 50px);
    background: linear-gradient(180deg, transparent, rgba(212, 160, 23, 0.28), transparent);
    justify-self: center;
}
@media (max-width: 768px) {
    .sp-home { padding: 0 16px; }
    /* موبایل: ۲ ستون تا لوگوها بزرگ و خوانا باشند */
    .sp-home-platforms {
        --pcard-logo-stage-h: clamp(5.75rem, 38vw, 7rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
        max-width: 360px;
        margin-inline: auto;
        padding: 18px 8px 8px;
    }
    .sp-home-plat:nth-child(5) {
        grid-column: 1 / -1;
        width: 48%;
        max-width: 160px;
        justify-self: center;
    }
    .sp-home-plat .sp-home-plat-orb {
        width: 82%;
        max-height: 86%;
    }
    .sp-home-plat-name {
        font-size: 13px;
        padding: 7px 6px;
    }
}
@media (max-width: 400px) {
    .sp-home-platforms {
        --pcard-logo-stage-h: clamp(5.5rem, 40vw, 6.5rem);
        gap: 14px 12px;
        max-width: 320px;
    }
    .sp-home-plat-name {
        font-size: 12.5px;
        padding: 6px 4px;
        border-radius: 8px;
    }
}

/* لینک روی اسلاید پس‌زمینه */
.hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}
.hero-slide-link--mobile { display: none; }
@media (max-width: 768px) {
    .hero-slide-link--desktop { display: none; }
    .hero-slide-link--mobile { display: block; }
}

/* دکمه‌های ناوبری پس‌زمینه Hero */
.hero-bg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 160, 23, 0.45);
    background: rgba(5, 8, 16, 0.55);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.hero-bg-nav:hover { background: rgba(212, 160, 23, 0.2); border-color: var(--gold); }
.hero-bg-prev { right: 16px; }
.hero-bg-next { left: 16px; }

/* حالت اسلاید چپ/راست برای پس‌زمینه */
.hero-slider.is-slide-mode .hero-bg-slides {
    display: flex;
    flex-direction: row;
    transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slider.is-slide-mode .hero-slide {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    opacity: 1 !important;
    transform: none !important;
    transition: none;
}

/* کلاس‌های قدیمی (legacy) — نگه‌داشته شده برای سازگاری */
.hero-carousel-only { display: none; }

.hero-title {
    font-size: 54px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.hero-subtitle {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 2;
    color: #e8edf6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.hero-stats .text-muted { color: #cbd5e1 !important; }

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(212, 160, 23, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(212, 160, 23, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-rails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.15) 20%, rgba(59,130,246,0.2) 50%, rgba(212,160,23,0.15) 80%, transparent);
    opacity: 0.5;
}

.hero-content { position: relative; z-index: 2; }

.hero-logo-ring {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-orbit-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(16, 24, 41, 0.9);
    border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 25%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    animation: floatLogo 4s ease-in-out infinite;
}

.hero-orbit-logo:nth-child(2) { animation-delay: 0.5s; }
.hero-orbit-logo:nth-child(3) { animation-delay: 1s; }
.hero-orbit-logo:nth-child(4) { animation-delay: 1.5s; }

.hero-orbit-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.platforms-row-modern {
    gap: 24px;
}

.platform-chip-glass {
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
    background: rgba(16, 24, 41, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--plat-color) 35%, transparent);
    border-radius: 16px;
    padding: 16px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-chip-glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--plat-color) 20%, transparent);
}

.platform-chip-inner {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-chip-inner img {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
}

.platform-chip-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.product-icon-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 16px;
    padding: 0;
    background: none;
    border-radius: 0;
}

/* لوگوهای ترکیبی — افقی، یک اندازه، بدون باکس خالی */
.product-platform-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.5vw, 16px);
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.product-icon-modern .product-plat-logo {
    display: block;
    height: 44px;
    width: auto;
    max-height: 44px;
    max-width: min(72px, 22vw);
    min-width: 0;
    flex: 0 1 auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.product-plat-logo--single {
    height: 52px;
    max-width: 140px;
}

/* ۳–۴ لوگو در کارت باریک‌تر */
.product-platform-logos--3 .product-plat-logo,
.product-platform-logos--4 .product-plat-logo {
    height: 38px;
    max-height: 38px;
    max-width: min(60px, 18vw);
}

.product-platform-logos--4 {
    gap: clamp(6px, 1.5vw, 12px);
}

@media (max-width: 480px) {
    .product-icon-modern .product-plat-logo {
        height: 36px;
        max-height: 36px;
        max-width: min(56px, 20vw);
    }
    .product-platform-logos--4 .product-plat-logo {
        height: 32px;
        max-height: 32px;
        max-width: min(48px, 17vw);
    }
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.25), rgba(212, 160, 23, 0.15));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold);
}

.login-section { padding-top: 100px; }
.login-wrap { max-width: 420px; margin: 0 auto; }
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 20px rgba(30, 64, 175, 0.35));
}
.login-brand h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.login-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.login-phone-wrap { position: relative; margin-bottom: 20px; }
.login-phone-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 18px;
    pointer-events: none;
}
.login-phone-input {
    padding-right: 44px !important;
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}
.login-submit { justify-content: center; padding: 14px; }
.login-footnote { text-align: center; margin-top: 20px; }
.login-phone-display {
    color: var(--gold);
    direction: ltr;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
}
.login-otp-wrap { margin-bottom: 20px; }
.login-otp-input {
    text-align: center;
    font-size: 26px;
    letter-spacing: 12px;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    padding: 16px !important;
}
.login-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.login-back-link:hover { color: var(--gold); }

.product-card.featured {
    border: 2px solid rgba(212, 160, 23, 0.45);
    background: linear-gradient(145deg, var(--bg-card), rgba(212, 160, 23, 0.06));
}

/* ─── وبلاگ ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.blog-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 160, 23, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.blog-card-img {
    height: 170px;
    background-size: cover;
    background-position: center;
}
.blog-card-body { padding: 18px 20px; }
.blog-card-title { font-size: 18px; font-weight: 800; line-height: 1.6; margin-bottom: 8px; }
.blog-card-summary {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.blog-tag-chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s ease;
}
.blog-tag-chip:hover,
.blog-tag-chip.is-active {
    background: rgba(212, 160, 23, 0.15);
    border-color: rgba(212, 160, 23, 0.45);
    color: var(--gold);
}
.blog-tag-sm { padding: 3px 12px; font-size: 12px; }

/* ─── Feature chips (فقط سرتیتر) ─── */
.feature-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .feature-chips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .feature-chips { grid-template-columns: 1fr; }
}
.feature-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(212,160,23,0.07), rgba(6,10,21,0.4));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-chip:hover {
    transform: translateY(-4px);
    border-color: rgba(212,160,23,0.45);
    box-shadow: 0 14px 34px rgba(0,0,0,0.32);
}
.feature-chip-ico {
    width: 46px; height: 46px; min-width: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #1a1205; font-size: 20px;
    box-shadow: 0 6px 16px rgba(212,160,23,0.3);
}
.feature-chip h4 { font-size: 15px; font-weight: 800; margin: 0; }

/* ─── Product cards (static premium) ─── */
.products-grid-modern { gap: 24px; }

.product-item.is-filtered-out { display: none !important; }

/* ══════════════════════════════════════════════════
   Product Card — سبک، شیک، یک‌لایه
   ══════════════════════════════════════════════════ */
.pcard {
    --pcard-accent: #f5c518;
    --pcard-accent-soft: rgba(245, 197, 24, 0.14);
    --pcard-logo-stage-h: clamp(5.5rem, 20vw, 6.5rem);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 20px;
    background: linear-gradient(165deg, #141c2e 0%, #0c1220 55%, #090e18 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
    cursor: default;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}
.pcard::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pcard-accent), transparent);
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
}

.pcard[data-type="single"] { --pcard-accent: #38bdf8; --pcard-accent-soft: rgba(56, 189, 248, 0.14); }
.pcard[data-type="combo_2"] { --pcard-accent: #34d399; --pcard-accent-soft: rgba(52, 211, 153, 0.14); }
.pcard[data-type="combo_3"] { --pcard-accent: #22d3ee; --pcard-accent-soft: rgba(34, 211, 238, 0.14); }
.pcard[data-type="combo_4"] { --pcard-accent: #fbbf24; --pcard-accent-soft: rgba(251, 191, 36, 0.16); }
.pcard[data-type="combo_5"] { --pcard-accent: var(--gold); --pcard-accent-soft: rgba(212, 160, 23, 0.2); }

/* لایه‌های تزئینی قدیمی — خاموش (اگر جایی در HTML مانده باشد) */
.pcard-accent-bar,
.pcard-border-glow,
.pcard-mesh,
.pcard-glow,
.pcard-corner {
    display: none !important;
}

.pcard-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: stretch;
    padding: 20px;
}

.pcard-featured {
    border-color: rgba(212, 160, 23, 0.4);
    box-shadow: 0 14px 40px rgba(212, 160, 23, 0.1), 0 10px 28px rgba(0, 0, 0, 0.4);
}
.pcard-ultimate {
    background: linear-gradient(165deg, #261e0e 0%, #12100c 50%, #0a090f 100%);
    border-color: rgba(212, 160, 23, 0.42);
}
.pcard-premium {
    background: linear-gradient(165deg, #1c180c 0%, #0e101c 50%, #080c14 100%);
    border-color: rgba(251, 191, 36, 0.35);
}

.pcard-raja-vip {
    --pcard-accent: #2dd4bf;
    --pcard-accent-soft: rgba(45, 212, 191, 0.18);
    background: linear-gradient(165deg, #061c26 0%, #0a122a 50%, #0c101c 100%);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 14px 40px rgba(45, 212, 191, 0.1), 0 10px 28px rgba(0, 0, 0, 0.4);
}
.pcard-raja-vip .pcard-title {
    background: linear-gradient(135deg, #99f6e4, #2dd4bf, #fde68a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pcard-vip-tagline {
    margin: -4px 0 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    color: #ccfbf1;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.28);
}
.pcard-vip-tagline i {
    color: #2dd4bf;
    margin-left: 6px;
}
.pcard-desc-vip {
    color: #a5f3fc;
    font-weight: 600;
}

.pcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pcard-type-badge,
.pcard-main-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.pcard-type-badge {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}
.pcard-type-badge i { font-size: 10px; opacity: 0.85; }
.pcard-type-badge.type-single { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }
.pcard-type-badge.type-combo_2 { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.pcard-type-badge.type-combo_3 { color: #67e8f9; border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.1); }
.pcard-type-badge.type-combo_4 { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.12); }
.pcard-type-badge.type-combo_5 { color: var(--gold-light); border-color: rgba(212, 160, 23, 0.5); background: rgba(212, 160, 23, 0.14); }

.pcard-main-badge--vip {
    background: linear-gradient(135deg, #2dd4bf, #06b6d4);
    color: #042f2e;
}
.pcard-main-badge--hot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a1205;
}
.pcard-main-badge--ultimate {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1205;
}
.pcard-main-badge--premium {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #1a1205;
}

.pcard-plat-count {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--pcard-accent);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.pcard-plat-count i { font-size: 9px; margin-left: 3px; }

.pcard-logos-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px -20px 16px;
    height: var(--pcard-logo-stage-h);
    min-height: var(--pcard-logo-stage-h);
    max-height: var(--pcard-logo-stage-h);
    padding: 0 clamp(16px, 4vw, 24px);
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 80% 100% at 50% 0%, var(--pcard-accent-soft), transparent 70%),
        rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pcard-logos-stage--single,
.pcard-logos-stage--multi,
.pcard-logos-stage[data-plats="4"],
.pcard-logos-stage[data-plats="5"] {
    align-self: stretch;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
}

.pcard-logos {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.pcard-logos-single { gap: 0; width: auto; }
.pcard-logos-multi {
    gap: clamp(6px, 1.4vw, 12px);
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.pcard-logo-orb {
    position: relative;
    flex: 0 1 auto;
    box-sizing: border-box;
    /* پایه: نزدیک به ارتفاع باکس لوگو */
    width: calc(var(--pcard-logo-stage-h) * 0.88);
    height: auto;
    max-height: 88%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.pcard-logo-orb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
}
.pcard-logo-shine { display: none !important; }
.pcard-logos-single .pcard-logo-orb {
    width: calc(var(--pcard-logo-stage-h) * 0.92);
    max-height: 92%;
}
/* چند لوگو: اندازه از ارتفاع باکس؛ فقط وقتی جا نباشد کوچک‌تر می‌شود */
.pcard-logos-stage[data-plats="2"] .pcard-logo-orb {
    width: min(calc(var(--pcard-logo-stage-h) * 0.88), calc((100% - 12px) / 2));
}
.pcard-logos-stage[data-plats="3"] .pcard-logo-orb {
    width: min(calc(var(--pcard-logo-stage-h) * 0.86), calc((100% - 24px) / 3));
}
.pcard-logos-stage[data-plats="4"] .pcard-logos-multi,
.pcard-logos-stage[data-plats="5"] .pcard-logos-multi {
    gap: clamp(4px, 1vw, 8px);
}
.pcard-logos-stage[data-plats="4"] .pcard-logo-orb {
    width: min(calc(var(--pcard-logo-stage-h) * 0.82), calc((100% - 24px) / 4));
}
.pcard-logos-stage[data-plats="5"] .pcard-logo-orb {
    width: min(calc(var(--pcard-logo-stage-h) * 0.78), calc((100% - 32px) / 5));
}

.pcard-title {
    margin: 0 0 8px;
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 800;
    line-height: 1.45;
    color: var(--text-primary);
}
.pcard-desc {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--text-secondary);
    flex: 0 0 auto;
}

/* ── Edition boxes — تخت و خوانا ── */
.pcard-edition-box {
    position: relative;
    background: rgba(10, 14, 24, 0.72);
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 14px;
    padding: 12px 14px 14px;
    margin-bottom: 10px;
}
.pcard-edition-box::before { display: none; }
.pcard-edition-box:hover {
    border-color: rgba(212, 160, 23, 0.32);
}
.pcard-edition-partner {
    border-color: rgba(232, 185, 35, 0.28);
    background: rgba(18, 14, 6, 0.55);
}
.pcard-contact-only {
    margin: 8px 0 12px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 14px;
}
.pcard-edition-head { margin-bottom: 10px; }
.pcard-edition-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
}
.pcard-edition-private .pcard-edition-badge {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.35);
}
.pcard-edition-badge i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(145deg, #60a5fa, #2563eb);
}
.pcard-edition-badge-partner {
    color: #fde68a;
    background: rgba(212, 160, 23, 0.12);
    border-color: rgba(212, 160, 23, 0.35);
}
.pcard-edition-badge-partner i {
    background: linear-gradient(145deg, #f5c518, #b8860b);
    color: #1a1205;
}

.pcard-edition-prices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ── Price cells — تخت ── */
.pcard-price-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.pcard-edition-box:hover .pcard-price-cell-primary {
    border-color: rgba(56, 189, 248, 0.22);
}
.pcard-edition-partner:hover .pcard-price-cell-partner {
    border-color: rgba(232, 185, 35, 0.28);
}
.pcard-price-cell-primary {
    border-color: rgba(56, 189, 248, 0.14);
    background: rgba(56, 189, 248, 0.04);
}
.pcard-price-cell-secondary {
    padding: 10px 12px;
}
.pcard-price-cell-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.pcard-price-cell-ico {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(145deg, #38bdf8, #0284c7);
    border: 1px solid rgba(125, 211, 252, 0.4);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}
.pcard-price-cell-ico i { line-height: 1; }
.pcard-price-cell-ico-sec {
    background: linear-gradient(145deg, #7dd3fc, #0369a1);
    border-color: rgba(147, 197, 253, 0.35);
    box-shadow: 0 3px 10px rgba(56, 189, 248, 0.18);
    width: 28px;
    height: 28px;
    font-size: 11px;
}
.pcard-price-cell-amt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: left;
    min-width: 0;
    flex: 1;
}
.pcard-price-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px 6px;
    direction: rtl;
}
.pcard-price-was {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.85;
    width: 100%;
    text-align: left;
}
.pcard-price-num {
    font-family: var(--font-sans);
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(168deg, #fff8d6 0%, #ffe066 12%, #f5c518 45%, #e8b923 75%, #d4a017 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(245, 197, 24, 0.25));
}
.pcard-price-num-sec {
    font-size: clamp(15px, 1.9vw, 18px);
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 40%, #38bdf8 85%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.2));
}
.pcard-price-cur {
    font-size: 11px;
    font-weight: 800;
    color: rgba(245, 197, 24, 0.9);
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.pcard-price-cur-sec {
    color: rgba(125, 211, 252, 0.95);
    font-size: 10px;
}

/* Partner price cells */
.pcard-price-cell-partner {
    border-color: rgba(232, 185, 35, 0.22);
    background: linear-gradient(135deg, rgba(232, 185, 35, 0.07), rgba(12, 10, 4, 0.5));
}
.pcard-price-cell-partner-sec {
    border-color: rgba(245, 197, 24, 0.12);
}
.pcard-price-cell-ico-partner {
    background: linear-gradient(145deg, #fbbf24, #b45309);
    border-color: rgba(252, 211, 77, 0.45);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.pcard-price-cell-ico-partner-sec {
    background: linear-gradient(145deg, #fcd34d, #d97706);
    border-color: rgba(252, 211, 77, 0.35);
    width: 28px;
    height: 28px;
    font-size: 11px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
}
.pcard-price-num-partner {
    background: linear-gradient(168deg, #fffbeb 0%, #fde68a 15%, #fbbf24 50%, #f59e0b 85%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.3));
}
.pcard-price-num-partner-sec {
    font-size: clamp(15px, 1.9vw, 18px);
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 45%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.2));
}
.pcard-price-cur-partner { color: rgba(251, 191, 36, 0.95); }
.pcard-price-cur-partner-sec { color: rgba(252, 211, 77, 0.9); font-size: 10px; }

/* legacy edition price (product detail etc.) */
.pcard-edition-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.pcard-edition-price-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.pcard-edition-price-label i { font-size: 10px; color: var(--pcard-accent); }
.pcard-edition-partner .pcard-edition-price-label i { color: var(--gold); }
.pcard-edition-price-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.pcard-edition-price-value strong {
    font-family: var(--font-sans);
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    background: linear-gradient(168deg, #fff8d6 0%, #ffe066 18%, #f5c518 48%, #d4a017 82%, #a67c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.pcard-edition-price-value small {
    font-size: 11px;
    font-weight: 700;
    color: rgba(245, 197, 24, 0.82);
}
.pcard-edition-price-sec strong {
    font-size: 16px;
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 45%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.pcard-edition-price-partner strong {
    background: linear-gradient(168deg, #fff8d6 0%, #ffe066 30%, #f5c518 70%, #d4a017 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.pcard-edition-price-partner-sec strong {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.pcard-btn-partner {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-weight: 800;
}
.pcard-qty-partner {
    border-color: rgba(232, 185, 35, 0.35);
    background: rgba(232, 185, 35, 0.06);
}
.pcard-actions-detail-only {
    margin-top: auto !important;
    margin-bottom: 0;
}
.pcard-edition-partner { margin-top: 0; }
.pcard-btn-detail-full {
    width: 100%;
    justify-content: center;
    min-height: 42px;
}

.pcard-trial {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.pcard-actions { display: flex; gap: 10px; margin-top: auto; align-items: stretch; }
.pcard-cart-widget { flex: 1; min-width: 0; }
.pcard-btn-buy {
    flex: 1;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.3);
}
.inline-cart-add.is-hidden { display: none !important; }
.inline-cart-widget { width: 100%; }

/* toast سبد خرید — ریسپانسیو موبایل/دسکتاپ */
.cart-toast {
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: min(520px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    transform: translateX(-50%) translateY(120%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-toast.is-visible {
    transform: translateX(-50%) translateY(0);
}
.cart-toast.is-error {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}
.cart-toast-icon {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 18px;
    line-height: 1;
}
.cart-toast.is-error .cart-toast-icon { color: #fff; }
.cart-toast-msg {
    flex: 1 1 120px;
    min-width: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}
.cart-toast-btn {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--gold);
    color: #0b1220 !important;
    font-weight: 700;
    font-size: 13px;
    min-height: 40px;
}
.cart-toast-btn:hover { filter: brightness(1.05); }
@media (max-width: 480px) {
    .cart-toast {
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        padding: 12px;
        gap: 8px;
    }
    .cart-toast-msg {
        flex: 1 1 100%;
        text-align: center;
        font-size: 13px;
    }
    .cart-toast-btn {
        width: 100%;
        min-height: 44px;
    }
}
.inline-cart-qty,
.pd-qty-widget,
.pcard-qty-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-height: 46px;
}
.inline-cart-qty .qty-btn,
.pd-qty-widget .qty-btn,
.pcard-qty-widget .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 10px;
    flex-shrink: 0;
}
.inline-cart-qty .qty-num,
.pd-qty-widget .qty-num,
.pcard-qty-widget .qty-num {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}
.pcard-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pcard-btn-detail:hover {
    color: var(--gold);
    border-color: rgba(212, 160, 23, 0.4);
    background: rgba(212, 160, 23, 0.08);
}

@media (max-width: 768px) {
    .pcard {
        /* لوگوها روی موبایل خوانا و بزرگ‌تر — بدون ترکیدن کارت */
        --pcard-logo-stage-h: clamp(7.25rem, 34vw, 8.75rem);
    }
    .pcard { border-radius: 22px; }
    .pcard-body { padding: 18px 18px 18px; }
    .pcard-logos-stage {
        padding: 10px clamp(12px, 3vw, 16px);
    }
    .pcard-logos-stage,
    .pcard-logos-stage--single,
    .pcard-logos-stage--multi,
    .pcard-logos-stage[data-plats="4"],
    .pcard-logos-stage[data-plats="5"] {
        margin-left: -18px;
        margin-right: -18px;
    }
    .pcard-logos-multi {
        gap: clamp(6px, 2vw, 10px);
        flex-wrap: nowrap !important;
    }
    /* موبایل هم بر اساس ارتفاع باکس — ۲/۳ مثل تکی بزرگ می‌مانند */
    .pcard-logos-stage[data-plats="1"] .pcard-logo-orb {
        width: min(calc(var(--pcard-logo-stage-h) * 0.9), 90%);
    }
    .pcard-logos-stage[data-plats="2"] .pcard-logo-orb {
        width: min(calc(var(--pcard-logo-stage-h) * 0.88), calc((100% - 10px) / 2));
    }
    .pcard-logos-stage[data-plats="3"] .pcard-logo-orb {
        width: min(calc(var(--pcard-logo-stage-h) * 0.84), calc((100% - 16px) / 3));
    }
    .pcard-logos-stage[data-plats="4"] .pcard-logo-orb {
        width: min(calc(var(--pcard-logo-stage-h) * 0.8), calc((100% - 20px) / 4));
    }
    .pcard-logos-stage[data-plats="5"] .pcard-logo-orb {
        width: min(calc(var(--pcard-logo-stage-h) * 0.74), calc((100% - 24px) / 5));
    }
    .pcard-price-num { font-size: 22px; }
}

/* ══════════════════════════════════════════════════
   Section Title Block (مشترک همه بخش‌ها)
   ══════════════════════════════════════════════════ */
.sec-title-block { text-align: center; margin-bottom: 52px; }
.sec-pre-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold); opacity: .85; margin-bottom: 14px;
}
.sec-heading {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900; line-height: 1.25; margin-bottom: 14px;
}
.sec-sub { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 22px; line-height: 1.8; }
.sec-line {
    width: 60px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), #3b82f6);
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   Products Section
   ══════════════════════════════════════════════════ */
.products-section-v2 {
    padding: 72px 0 90px;
    position: relative;
    overflow: visible;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(59, 130, 246, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 45% at 80% 10%, rgba(212, 160, 23, 0.09), transparent 45%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(0, 137, 123, 0.06), transparent 50%),
        #050810;
}
.products-section-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .products-section-v2::before {
        display: none;
    }
}

.home-products-showcase .hps-block {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
}

.home-products-showcase .pcard {
    contain: layout style paint;
}

/* ─── فیلتر محصولات (premium) ─── */
.prod-filter-wrap {
    margin-bottom: 52px;
    text-align: center;
}
.prod-filter-head {
    margin-bottom: 20px;
}
.prod-filter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.22);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.1);
}
.prod-filter-eyebrow i { font-size: 11px; opacity: 0.9; }
.prod-filter-hint {
    margin: 12px auto 0;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.7;
}

.prod-filter-bar {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    padding: 8px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(14, 20, 38, 0.92), rgba(6, 10, 22, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}
.pf-bar-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(212, 160, 23, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.pf-bar-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.pf-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.2s ease;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    box-shadow:
        0 6px 24px rgba(212, 160, 23, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pf-indicator.is-ready {
    opacity: 1;
}
.pf-indicator[data-filter="single"] {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pf-indicator[data-filter="combo_2"] {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6, #7c3aed);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pf-indicator[data-filter="combo_3"] {
    background: linear-gradient(135deg, #22d3ee, #06b6d4, #0891b2);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pf-indicator[data-filter="combo_4"] {
    background: linear-gradient(135deg, #a5b4fc, #6366f1, #4f46e5);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pf-indicator[data-filter="combo_5"] {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    box-shadow: 0 6px 24px rgba(212, 160, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pf-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.25s ease;
}
.pf-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.pf-btn-text {
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.pf-btn:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}
.pf-btn:hover .pf-btn-icon {
    color: var(--gold);
    border-color: rgba(212, 160, 23, 0.35);
    background: rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.15);
}
.pf-btn.active {
    color: #0a0f1a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pf-btn[data-filter="all"].active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
}
.pf-btn[data-filter="single"].active {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.pf-btn[data-filter="combo_2"].active {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}
.pf-btn[data-filter="combo_3"].active {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}
.pf-btn[data-filter="combo_4"].active {
    background: linear-gradient(135deg, #a5b4fc, #6366f1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.pf-btn[data-filter="combo_5"].active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.45);
}
.pf-btn.active .pf-btn-icon {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
    color: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pf-btn-vip .pf-btn-icon {
    background: rgba(212, 160, 23, 0.14);
    border-color: rgba(212, 160, 23, 0.35);
    color: var(--gold-light);
}
.pf-btn-vip:hover .pf-btn-icon {
    color: var(--gold-light);
    border-color: rgba(212, 160, 23, 0.5);
    background: rgba(212, 160, 23, 0.2);
}
.pf-btn-premium .pf-btn-icon {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}
.pf-btn-premium:hover .pf-btn-icon {
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.2);
}
.pf-btn-vip.active .pf-btn-icon {
    background: rgba(0, 0, 0, 0.12);
    color: inherit;
}

@media (max-width: 900px) {
    .prod-filter-bar {
        display: flex;
        width: 100%;
        border-radius: 18px;
        padding: 8px;
        gap: 6px;
    }
    .pf-btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        padding: 11px 12px;
        min-width: 0;
    }
    .pf-btn-text { font-size: 12px; }
    .pf-indicator { display: none; }
    .pf-btn.active {
        border-color: rgba(255, 255, 255, 0.12);
    }
    .pf-btn[data-filter="all"].active {
        background: linear-gradient(135deg, var(--gold-light), var(--gold));
        box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
    }
    .pf-btn[data-filter="single"].active {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    }
    .pf-btn[data-filter="combo_2"].active {
        background: linear-gradient(135deg, #a78bfa, #8b5cf6);
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    }
    .pf-btn[data-filter="combo_3"].active {
        background: linear-gradient(135deg, #22d3ee, #06b6d4);
        box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
    }
    .pf-btn[data-filter="combo_4"].active {
        background: linear-gradient(135deg, #a5b4fc, #6366f1);
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    }
    .pf-btn[data-filter="combo_5"].active {
        background: linear-gradient(135deg, var(--gold-light), var(--gold));
        box-shadow: 0 4px 16px rgba(212, 160, 23, 0.45);
    }
}

@media (max-width: 480px) {
    .pf-btn { flex: 1 1 100%; }
    .prod-filter-hint { font-size: 13px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-indicator { transition: none; }
}

/* ══════════════════════════════════════════════════
   Why Section
   ══════════════════════════════════════════════════ */
.why-section {
    padding: 80px 0 90px;
    background:
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59,130,246,0.06), transparent),
        #0a0f1f;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.why-card {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(20,28,48,0.9), rgba(8,12,22,0.95));
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,160,23,0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.why-card::before {
    content: '';
    position: absolute; inset: 0; border-radius: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(212,160,23,0.08), transparent 55%);
    opacity: 0; transition: opacity .3s ease;
    pointer-events: none;
}
.why-card:hover::before { opacity: 1; }
.why-ico {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--gold);
    background: linear-gradient(135deg, rgba(212,160,23,0.2), rgba(212,160,23,0.05));
    border: 1px solid rgba(212,160,23,0.3);
    box-shadow: 0 8px 20px rgba(212,160,23,0.12);
}
.why-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.85; margin: 0; }

@media (max-width: 900px) {
    .why-grid { gap: 14px; }
    .why-card { padding: 16px 12px 14px; border-radius: 14px; }
    .why-ico {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        margin: 0 auto 10px;
        font-size: 17px;
    }
    .why-card h4 {
        font-size: 13px;
        margin: 0 0 6px;
        text-align: center;
        line-height: 1.6;
    }
    .why-card p {
        font-size: 12px;
        text-align: center;
        line-height: 1.7;
    }
}

@media (max-width: 560px) {
    .why-grid { gap: 10px; }
    .why-card { padding: 14px 10px 12px; }
    .why-ico {
        width: 34px;
        height: 34px;
        font-size: 15px;
        margin-bottom: 8px;
    }
    .why-card h4 { font-size: 12px; line-height: 1.5; }
    .why-card p { font-size: 11px; }
}

/* ══════════════════════════════════════════════════
   Hero Badge & Buttons
   ══════════════════════════════════════════════════ */
.hero-badge-row { margin-bottom: 24px; }
.badge-pulse { animation: none; }
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0.35); }
    50% { box-shadow: 0 0 0 8px rgba(212,160,23,0); }
}

/* بج خوانده‌نشده تیکت در ناوبار (قبلاً در support-ticket-room بود) */
.ticket-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 6px;
    vertical-align: middle;
}
.nav-ticket-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    margin-right: 4px;
}
.hero-actions {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px;
}
.btn-hero { padding: 14px 32px; font-size: 15px; text-decoration: none; }
.hero-stats-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
    gap: 0;
}
.hs-item { text-align: center; padding: 0 20px; min-width: 0; }
.hs-num { display: block; font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 8px; text-shadow: 0 0 24px rgba(212,160,23,0.15); }
.hs-num small { font-size: 0.45em; }
.hs-lbl { display: block; font-size: clamp(11px, 1.8vw, 13px); color: #94a3b8; line-height: 1.35; max-width: 6.5em; margin-inline: auto; }
.hs-sep { width: 1px; height: 52px; background: linear-gradient(180deg, transparent, var(--border-color), transparent); flex-shrink: 0; justify-self: center; }
@media (max-width: 640px) {
    .hero-stats-row { max-width: none; }
    .hs-item { padding: 12px 8px; }
    .hs-sep { height: 40px; }
    .hs-num { font-size: clamp(22px, 5.5vw, 30px); }
    .hs-lbl { font-size: 10px; max-width: 5em; }
}

/* ══════════════════════════════════════════════════
   CTA Section
   ══════════════════════════════════════════════════ */
.cta-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #050810 0%, #060a15 100%);
}
.cta-card {
    position: relative; overflow: hidden;
    border-radius: 28px; padding: 70px 40px;
    background: linear-gradient(135deg, rgba(212,160,23,0.1) 0%, rgba(6,10,21,0.97) 40%, rgba(59,130,246,0.08) 100%);
    border: 1px solid rgba(212,160,23,0.3);
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
.cta-glow-left {
    position: absolute; top: -60px; right: -60px;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,0.25), transparent 65%);
    filter: blur(40px); pointer-events: none;
}
.cta-glow-right {
    position: absolute; bottom: -60px; left: -60px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 65%);
    filter: blur(40px); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-icon-ring {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--gold);
    background: rgba(212,160,23,0.12); border: 2px solid rgba(212,160,23,0.4);
    box-shadow: 0 0 30px rgba(212,160,23,0.2);
    animation: ctaPulse 3s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(212,160,23,0.2); }
    50% { box-shadow: 0 0 50px rgba(212,160,23,0.4); }
}
.cta-card h2 { font-size: clamp(24px,3.5vw,38px); font-weight: 900; margin-bottom: 16px; }
.cta-card p { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto 36px; line-height: 1.9; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-lg { padding: 15px 40px; font-size: 16px; text-decoration: none; }
@media (max-width: 640px) {
    .cta-card { padding: 44px 22px; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
}

/* ─── Modern Cart ─── */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center; gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(20,28,48,0.85), rgba(8,12,22,0.94));
    border: 1px solid var(--border-color);
    border-radius: 18px;
    transition: border-color .2s ease, transform .2s ease;
}
.cart-item:hover { border-color: rgba(212,160,23,0.35); transform: translateY(-2px); }
.cart-item-logos { display: flex; align-items: center; gap: 6px; }
.cart-logo-orb {
    width: 50px; height: 50px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    border: 1px solid var(--border-color);
}
.cart-item-logos.multi .cart-logo-orb { width: 38px; height: 38px; border-radius: 10px; }
.cart-logo-orb img { width: 70%; height: 70%; object-fit: contain; }
.cart-item-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.cart-item-edition { margin-bottom: 6px; }
.cart-edition-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.cart-edition-partner { background: rgba(232,185,35,0.15); color: var(--gold); }
.cart-edition-private { background: rgba(96,165,250,0.15); color: #60a5fa; }
.cart-item-meta { display: flex; flex-direction: column; gap: 4px; }
.cart-chip {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-size: 12px; font-weight: 700; color: var(--gold);
    background: rgba(212,160,23,0.1); border: 1px solid rgba(212,160,23,0.3);
    padding: 3px 10px; border-radius: 999px;
}
.cart-price-hint { font-size: 12px; color: var(--text-muted); }
.cart-item-qty {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(6,10,21,0.6); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 4px;
}
.qty-btn {
    width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
    border: none; background: rgba(255,255,255,0.06); color: var(--text-primary);
    font-size: 20px; font-weight: 700; line-height: 1; transition: background .15s ease;
}
.qty-btn:hover { background: rgba(255,255,255,0.14); }
.qty-btn-add { background: var(--gold); color: #1a1205; }
.qty-btn-add:hover { background: #e8b923; }
.qty-num { min-width: 30px; text-align: center; font-weight: 800; font-size: 16px; }
.cart-item-total { font-weight: 800; color: var(--gold); white-space: nowrap; font-size: 16px; }
.cart-item-total small { color: var(--text-muted); font-weight: 500; margin-right: 3px; font-size: 11px; }
.cart-item-remove {
    width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(239,68,68,0.25); background: rgba(239,68,68,0.08);
    color: #ef4444; font-size: 15px; transition: background .15s ease;
}
.cart-item-remove:hover { background: rgba(239,68,68,0.18); }

.cart-summary {
    position: sticky; top: 90px;
    padding: 22px; border-radius: 20px;
    background: linear-gradient(180deg, rgba(212,160,23,0.08), rgba(8,12,22,0.95));
    border: 1px solid rgba(212,160,23,0.3);
}
.cart-summary-title { font-weight: 800; font-size: 17px; margin-bottom: 18px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.cart-summary-total {
    border-top: 2px solid rgba(212,160,23,0.4); margin-top: 6px; padding-top: 16px;
    font-size: 18px; font-weight: 900;
}
.cart-summary-total strong { color: var(--gold); }
.cart-summary-total small { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.cart-checkout-btn { justify-content: center; margin-top: 16px; text-decoration: none; }
.cart-continue-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 12px; color: var(--text-secondary); text-decoration: none; font-size: 14px;
}
.cart-continue-link:hover { color: var(--gold); }
.cart-note {
    margin-top: 18px; padding: 12px 14px; border-radius: 12px;
    background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
    font-size: 12px; line-height: 1.9; color: var(--text-secondary);
}
.cart-empty-ico { font-size: 56px; color: var(--gold); opacity: 0.7; }

@media (max-width: 860px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: auto 1fr; grid-template-areas: "logo body" "qty total" "remove remove"; gap: 12px; }
    .cart-item-logos { grid-area: logo; }
    .cart-item-body { grid-area: body; }
    .cart-item-qty { grid-area: qty; }
    .cart-item-total { grid-area: total; text-align: left; }
    .cart-item-remove { grid-area: remove; width: 100%; }
}

/* ─── Verify page: alert box + resend timer button ─── */
.verify-alert {
    margin: 0 0 18px; padding: 12px 16px; border-radius: 12px;
    font-size: 13px; line-height: 1.8; text-align: center;
}
.verify-alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #4ade80; }
.verify-alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #f87171; }
.verify-alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35); color: #fbbf24; }
.verify-alert-info { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

.verify-resend-btn {
    width: 100%; margin-top: 14px; padding: 12px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
    color: var(--gold); font-family: inherit; transition: all .2s ease;
}
.verify-resend-btn:not(:disabled):hover { background: rgba(212,160,23,0.12); border-color: rgba(212,160,23,0.45); }
.verify-resend-btn.is-waiting { cursor: not-allowed; color: var(--text-secondary); }
.verify-resend-main { font-size: 15px; font-weight: 700; }
.verify-resend-timer { font-size: 12px; color: var(--text-muted); }
.verify-resend-btn:disabled { opacity: 0.95; }

/* محتوای مقاله */
.blog-content { font-size: 17px; line-height: 2.1; color: #e8edf6; }
.blog-content .blog-para { margin: 0 0 22px; }
.blog-figure { margin: 28px 0; text-align: center; }
.blog-media {
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
    display: block;
}
.blog-media-cap {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.blog-toc {
    margin-bottom: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 14px;
    background: rgba(6, 10, 21, 0.55);
}
.blog-toc-title { font-size: 16px; font-weight: 800; margin: 0 0 12px; color: var(--gold); }
.blog-toc-list { margin: 0; padding-right: 20px; }
.blog-toc-list a { color: #e8edf6; text-decoration: none; }
.blog-toc-list a:hover { color: var(--gold); }
.blog-toc-l2 { margin: 6px 0; font-weight: 700; }
.blog-toc-l3 { margin: 4px 0 4px 16px; font-size: 14px; color: var(--text-muted); }
.blog-heading { scroll-margin-top: 100px; margin: 28px 0 14px; font-weight: 800; }
.blog-h2 { font-size: 24px; color: var(--gold); }
.blog-h3 { font-size: 19px; color: #e8edf6; }
.blog-list { margin: 0 0 22px; padding-right: 24px; }
.blog-list li { margin: 8px 0; }
.blog-list-ol { padding-right: 28px; }
.blog-quote {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-right: 3px solid rgba(212, 160, 23, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
}
.blog-inline-code {
    font-family: monospace;
    font-size: 0.92em;
    background: rgba(212, 160, 23, 0.12);
    color: #fde68a;
    padding: 2px 7px;
    border-radius: 6px;
}
.blog-content a { color: #93c5fd; text-decoration: underline; }
.blog-media-link { display: block; }
.blog-media-placeholder {
    padding: 40px 20px;
    border: 1px dashed rgba(212, 160, 23, 0.35);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* جدول رسپانسیو */
.blog-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.blog-content table,
.blog-content .blog-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: auto;
}
.blog-content table th,
.blog-content table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    text-align: right;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}
.blog-content img {
    max-width: 100% !important;
    height: auto !important;
}
.blog-content table th {
    background: rgba(212, 160, 23, 0.12);
    color: #fde68a;
    font-weight: 800;
}
.blog-table-striped tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }

/* باکس تبلیغ جدا */
.blog-promo-box {
    position: relative;
    margin: 28px 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(232, 185, 35, 0.35);
    background: linear-gradient(145deg, rgba(232, 185, 35, 0.08), rgba(8, 12, 24, 0.6));
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}
.blog-promo-link { display: block; line-height: 0; }
.blog-promo-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 0 auto;
}
.blog-promo-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(232, 185, 35, 0.15);
    border: 1px solid rgba(232, 185, 35, 0.3);
    color: #fde68a;
}
@media (max-width: 600px) {
    .blog-content table th,
    .blog-content table td { padding: 8px; font-size: 13px; }
    .blog-promo-box { padding: 10px; margin: 20px 0; }
}

.prod-filter-mobile-only { display: none; }
.prod-filter-mobile-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.prod-filter-select { width: 100%; max-width: 100%; }

@media (max-width: 768px) {
    .prod-filter-bar { display: none !important; }
    .prod-filter-mobile-only { display: block; margin-top: 12px; }
}

/* ─── Product detail page ─── */
.pd-page { padding-top: 20px; }
.pd-cart-widget { margin-bottom: 12px; }
.pd-cart-add-btn { display: flex; width: 100%; }
.pd-qty-widget { min-height: 50px; padding: 10px 14px; }
.pd-qty-widget .qty-btn { width: 44px; height: 44px; font-size: 22px; }
.pd-qty-widget .qty-num { font-size: 22px; }
.pd-breadcrumb { margin-bottom: 20px; font-size: 13px; }
.pd-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--gold); }
.pd-layout {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    gap: 32px;
    align-items: start;
}
.pd-hero-card {
    border-radius: 24px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(212,160,23,0.06), rgba(8,12,22,0.92));
    border: 1px solid rgba(212,160,23,0.22);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.pd-hero-raja-vip {
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.08), rgba(124, 58, 237, 0.06), rgba(8, 12, 22, 0.95));
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 20px 60px rgba(45, 212, 191, 0.08), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.pd-hero-raja-vip .pd-title {
    background: linear-gradient(135deg, #99f6e4, #2dd4bf, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pd-title { font-size: clamp(26px, 4vw, 40px); font-weight: 900; line-height: 1.35; margin-bottom: 14px; }
.pd-desc { font-size: 16px; line-height: 2.2; color: var(--text-secondary); margin-bottom: 24px; }
.pd-desc p { margin: 0 0 14px; }
.pd-desc p:last-child { margin-bottom: 0; }
.pd-desc strong { color: var(--text-primary); font-weight: 700; }
.pd-desc .pd-video-hint { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(212,160,23,.35); border-radius: 12px; background: rgba(212,160,23,.08); }
.pd-videos-empty { margin-top: 40px; padding: 28px 20px; border: 1px dashed rgba(212,160,23,.35); border-radius: 16px; text-align:center; }
.pd-product-image {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(160deg, rgba(18, 26, 42, 0.98), rgba(6, 10, 18, 0.98));
}
.pd-product-image-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 — همان نسبت پوستر ویدیو */
    background: #0a101a;
}
.pd-product-image-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 18px;
}
.pd-product-logos .pd-logos-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 220px;
    padding: 28px 20px;
}
.pd-product-logos .pd-logos-frame--single img {
    width: min(220px, 58%);
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px;
}
.pd-product-logos .pd-logo-item {
    width: clamp(84px, 16vw, 120px);
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
}
.pd-product-logos .pd-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-features { margin-bottom: 24px; }
.pd-features h3 { color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.pd-license {
    border-radius: 16px; padding: 20px;
    border: 1px solid rgba(212,160,23,0.2);
    background: rgba(212,160,23,0.04);
}
.pd-buy-card {
    position: sticky; top: 96px;
    border-radius: 22px; padding: 24px;
    background: linear-gradient(180deg, rgba(212,160,23,0.1), rgba(8,12,22,0.98));
    border: 1px solid rgba(212,160,23,0.35);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.pd-buy-card .pd-edition-box {
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(4, 8, 18, 0.92), rgba(8, 14, 28, 0.88));
}
.pd-buy-card .pd-edition-box:last-of-type { margin-bottom: 0; }
.pd-price-block {
    background: var(--bg-dark); border-radius: 14px; padding: 18px; margin-bottom: 14px;
    border: 1px solid var(--border-color);
}
.pd-videos { margin-top: 48px; }
.pd-videos-head { text-align: center; margin-bottom: 28px; }
.pd-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 24px;
}
.pd-video-item {
    border-radius: 18px; overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform .25s ease, box-shadow .25s ease;
}
.pd-video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.pd-video-frame {
    position: relative; width: 100%; padding-top: 56.25%;
    background: #000;
}
.pd-video-frame iframe,
.pd-video-frame video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; object-fit: contain;
}
.pd-video-caption { padding: 16px 18px 20px; }
.pd-video-caption h4 { font-weight: 800; margin-bottom: 6px; }

@media (max-width: 900px) {
    .pd-layout { grid-template-columns: 1fr; }
    .pd-buy-card { position: static; }
    .pd-hero-card { padding: 20px; }
}

.checkout-coupon-box {
    margin-top: 16px; padding: 16px !important;
    background: rgba(212,160,23,0.04);
    border: 1px dashed rgba(212,160,23,0.35);
    border-radius: 14px;
}
.checkout-coupon-box h3 { font-size: 15px; margin-bottom: 10px; }

.admin-menu-btn {
    background: rgba(212,160,23,0.12);
    border: 1px solid rgba(212,160,23,0.3);
    color: var(--gold);
    width: 42px; height: 42px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

/* ─── Glass Auth Modal ─── */
.auth-glass-modal {
    position: fixed; inset: 0; z-index: 12000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; pointer-events: none; opacity: 0;
    transition: opacity 0.35s ease;
}
.auth-glass-modal.is-open {
    pointer-events: auto; opacity: 1;
}
.auth-glass-backdrop {
    position: absolute; inset: 0;
    background: rgba(2, 6, 18, 0.72);
    backdrop-filter: blur(8px);
}
.auth-glass-panel {
    position: relative; width: 100%; max-width: 420px;
    padding: 28px 24px 24px; border-radius: 24px;
    background: linear-gradient(145deg, rgba(20,30,55,0.82), rgba(8,12,24,0.92));
    border: 1px solid rgba(212,160,23,0.28);
    box-shadow: 0 24px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    box-sizing: border-box;
}
.auth-glass-panel #authStepPhone,
.auth-glass-panel #authStepOtp {
    width: 100%;
}
.auth-glass-modal.is-open .auth-glass-panel {
    transform: translateY(0) scale(1);
}
.auth-glass-glow {
    position: absolute; top: -40%; right: -20%; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(212,160,23,0.22), transparent 70%);
    pointer-events: none;
}
.auth-glass-close {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary); width: 36px; height: 36px; border-radius: 10px;
    cursor: pointer; z-index: 2;
}
.auth-glass-header { text-align: center; margin-bottom: 20px; position: relative; }
.auth-glass-header h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.auth-glass-header p { margin: 0; color: var(--text-muted); font-size: 13px; }
.auth-glass-logo { width: 48px; height: 48px; margin-bottom: 10px; border-radius: 12px; }
.auth-glass-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 10px;
}
.auth-phone-wrap {
    position: relative; margin-bottom: 18px; width: 100%;
}
.auth-phone-icon {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--gold); font-size: 20px; pointer-events: none; z-index: 1;
}
.auth-glass-panel .auth-phone-input {
    width: 100% !important;
    box-sizing: border-box;
    min-height: 54px;
    padding: 14px 48px 14px 16px !important;
    text-align: center;
    direction: ltr;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    border-radius: 14px;
    border: 1px solid rgba(212,160,23,0.35);
    background: rgba(6,10,21,0.55);
}
.auth-glass-panel .auth-phone-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
    outline: none;
}
.auth-glass-submit {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 20px !important;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 14px;
    margin-top: 4px;
}
.auth-btn-icon {
    width: 32px; height: 32px; border-radius: 10px;
    background: rgba(0,0,0,0.14);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.auth-otp-hint {
    text-align: center; font-size: 13px; color: var(--text-secondary);
    margin: 0 0 16px; line-height: 1.8;
}
.auth-phone-display {
    color: var(--gold); direction: ltr; display: inline-block;
    font-weight: 700; letter-spacing: 1px;
}
.auth-glass-btn { margin-top: 14px; justify-content: center; padding: 14px !important; }
.auth-otp-row {
    display: flex; gap: 8px; justify-content: center; direction: ltr;
}
.auth-otp-digit {
    width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700;
    border-radius: 12px; border: 1px solid rgba(212,160,23,0.35);
    background: rgba(6,10,21,0.6); color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-otp-digit:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.2);
}
.auth-glass-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}
.auth-glass-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(212, 160, 23, 0.4);
    background: linear-gradient(145deg, rgba(212, 160, 23, 0.14), rgba(212, 160, 23, 0.06));
    color: var(--gold);
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.1);
}
.auth-glass-action-btn i {
    font-size: 14px;
    opacity: 0.9;
}
.auth-glass-action-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, rgba(212, 160, 23, 0.24), rgba(212, 160, 23, 0.12));
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 160, 23, 0.18);
}
.auth-glass-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.auth-glass-action-btn--secondary {
    border-color: rgba(96, 165, 250, 0.4);
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.14), rgba(96, 165, 250, 0.06));
    color: var(--blue-light);
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.1);
}
.auth-glass-action-btn--secondary:hover:not(:disabled) {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.24), rgba(96, 165, 250, 0.12));
    border-color: var(--blue-light);
    box-shadow: 0 8px 22px rgba(96, 165, 250, 0.18);
}
@media (max-width: 420px) {
    .auth-glass-actions {
        grid-template-columns: 1fr;
    }
}
.auth-glass-error {
    margin-top: 12px; padding: 10px 12px; border-radius: 10px;
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3);
    color: #f87171; font-size: 13px; line-height: 1.7;
}
.auth-glass-hint {
    margin-top: 8px; font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.8;
}
.auth-glass-modal.is-open .auth-glass-panel { animation: authPanelIn 0.45s ease; }
@keyframes authPanelIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
