.hero-visual-container {
    position: relative;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--mud-palette-primary) 0%, transparent 70%);
    filter: blur(110px);
    opacity: 0.18;
    z-index: 0;
}

/* کانتینر هر تصویر */
.hero-image {
    position: absolute;
    z-index: 1;
    border-radius: 20px;
    box-shadow: var(--mud-elevation-20);
    overflow: hidden;
}

/* خود تصویر */
.hero-img {
    width: 220px;
    height: auto;
    display: block;
}

/* موقعیت‌ها */
.hero-float-1 {
    left: 0;
    top: 20%;
    animation: floatY 6s ease-in-out infinite;
}

.hero-float-2 {
    z-index: 2;
    animation: floatY 7s ease-in-out infinite;
}

.hero-float-3 {
    right: 0;
    top: 35%;
    animation: floatY 5.5s ease-in-out infinite;
}

.hero-float-1,
.hero-float-2,
.hero-float-3 {
    will-change: transform;
}

.stats-container {
    width: 80%;
}


/* انیمیشن شناور */
@keyframes floatY {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -18px, 0);
    }
}

/* ریسپانسیو موبایل */
@media (max-width: 960px) {
    .hero-visual-container {
        display: none;
        height: 360px;
    }
    .stats-container {
        width: 100% !important;
    }
    
    .hero-img {
        width: 180px;
    }

    .hero-float-1 {
        left: 10%;
    }

    .hero-float-3 {
        right: 10%;
    }
}

@media (max-width: 600px) {
    .hero-visual-container {
        display: none;
    }
}


.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: var(--mud-palette-primary) !important;
}

.icon-container {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.1) !important;
}

.pricing-card {
    transition: all .35s ease;
    background: linear-gradient(180deg, #ffffff, #fafafa);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}


.faq-panels .mud-expand-panel {
    border-radius: 12px;
    border: 1px solid var(--mud-palette-divider);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-panels .mud-expand-panel-header {
    font-weight: 600;
}

.faq-panels .mud-expand-panel:hover {
    border-color: var(--mud-palette-primary);
}

.cta-section {
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent);
    top: -150px;
    right: -120px;
}


.footer-section {
    background: radial-gradient(circle at 20% 10%, rgba(210, 35, 55, 0.28), transparent 55%), radial-gradient(circle at 80% 20%, rgba(195, 25, 45, 0.25), transparent 55%), radial-gradient(circle at 50% 100%, rgba(155, 20, 35, 0.28), transparent 65%), #321014;
    color: white;
    margin-top: 80px;
}

.footer-section .mud-link {
    color: rgba(255, 255, 255, 0.75);
    transition: .2s;
}

.footer-section .mud-link:hover {
    color: white;
}

.footer-section .mud-icon-button {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section .mud-icon-button:hover {
    color: white;
}

.scroll-animate {
    scroll-margin-top: 60px;
}

/* Content stays visible before Blazor connects and when JavaScript is unavailable. */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate.animate-in {
        animation: section-enter 0.9s cubic-bezier(.2, .8, .2, 1);
    }
}

@keyframes section-enter {
    from { transform: translateY(24px); }
    to { transform: translateY(0); }
}

.blog-card {
    border-radius: 14px;
    overflow: hidden;
    transition: .35s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}


h1:focus {
    outline: none;
    box-shadow: none;
}


/* =========================================
        Main Layout
========================================= */
:root {
    --bg-dark: #0a0505;
    --accent-main: #d4af37;
    --accent-hover: #f3e5ab;
    --text-light: #fdfbf7;
    --text-muted: #a8a09b;
    --card-bg: rgba(20, 10, 15, 0.75);
    --glass-border: rgba(212, 175, 55, 0.2); /* حاشیه طلایی محو */
}

.event-glass {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.header-menu > button {
    transition: all 0.3s ease;
}

.header-menu > button:hover {
    color: var(--mud-palette-primary) !important;
    background-color: transparent !important;
}


.glass-footer {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.95));
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-link {
    color: var(--mud-palette-text-secondary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--mud-palette-primary) !important;
}

.social-btn {
    color: var(--mud-palette-text-secondary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    transition: all 0.3s ease;
}

.social-btn:hover {
    color: #0a0505 !important;
    background: var(--mud-palette-primary) !important;
    transform: translateY(-3px);
}

/* ========================================= */


/* =========================================
        About
========================================= */

.about-hero-banner {
    height: 250px;
    border-radius: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/about-bg.jpg') center/cover;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-card {
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--mud-palette-primary);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}


/* ========================================= */


/* =========================================
       ?????? ???????? ???? (Dark/Gold Theme)
       ========================================= */

.apex-ticket {
    display: flex;
    width: 100%;
    background: var(--card-bg); /* ??????? ?? ?? ????? ???? ?? ??? */
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    direction: rtl;
}

.apex-ticket:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15); /* ???? ????? ?? ???? */
}

.ticket-main {
    flex: 1;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* ??? ???????? ?????? */
.ticket-stub {
    width: 200px;
    padding: 30px 20px;
    border-right: 2px dashed rgba(212, 175, 55, 0.4); /* ?? ??? ????? ??? */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px 0 0 16px;
}

/* ????????? ???? ? ????? ?????? */
.ticket-stub::before,
.ticket-stub::after {
    content: '';
    position: absolute;
    right: -16px; /* ????? ??? ?? ??? */
    width: 30px;
    height: 30px;
    background-color: #0a0505; /* ????? ?? ????? ???? ???? */
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.ticket-stub::before {
    top: -16px;
    border-bottom-color: transparent;
}

.ticket-stub::after {
    bottom: -16px;
    border-top-color: transparent;
}

/* ??? ??? ???? */
.ticket-stamp {
    position: absolute;
    top: 25px;
    left: 25px;
    border: 2px solid var(--accent-main); /* ??? ????? */
    color: var(--accent-main);
    padding: 4px 12px;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-15deg);
    opacity: 0.6;
    border-radius: 6px;
    letter-spacing: 2px;
    pointer-events: none;
}

.ticket-stamp.sold-out {
    border-color: #a8a09b;
    color: #a8a09b;
}

/* ???? ???? */
.buy-btn {
    background-color: var(--accent-main) !important;
    color: #000 !important; /* ??? ???? ??? ???? ????? */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background-color: var(--accent-hover) !important;
    transform: scale(1.05);
}

/* ????? */
.ticket-barcode {
    width: 100%;
    height: 45px;
    margin-top: auto;
    background: repeating-linear-gradient(to right, var(--text-muted), var(--text-muted) 2px, transparent 2px, transparent 4px, var(--text-muted) 4px, var(--text-muted) 5px, transparent 5px, transparent 8px, var(--text-muted) 8px, var(--text-muted) 12px, transparent 12px, transparent 14px);
    opacity: 0.4;
}

/* ???????? ?????? */
@media (max-width: 768px) {
    .apex-ticket {
        flex-direction: column;
    }

    .ticket-stub {
        width: 100%;
        border-right: none;
        border-top: 2px dashed rgba(212, 175, 55, 0.4);
        border-radius: 0 0 16px 16px;
        flex-direction: row;
        padding: 20px;
        gap: 15px;
    }

    .ticket-stub::before {
        left: -16px;
        top: -16px;
        right: auto;
        border-right-color: transparent;
    }

    .ticket-stub::after {
        right: -16px;
        top: -16px;
        bottom: auto;
        border-left-color: transparent;
    }

    .ticket-barcode {
        display: none;
    }

    .ticket-stamp {
        left: 15px;
        top: 15px;
        font-size: 1rem;
    }
}


#components-reconnect-modal,
#components-reconnect-container,
#components-reconnect-dialog,
.components-reconnect-hide {
    display: none !important;
}

dialog#components-reconnect-modal {
    display: none !important;
}