:root {
    --gold: #FFD700;
    --gold-dark: #C19A00;
    --red-casino: #C41E3A;
    --dark-bg: #0F0F0F;
    --darker: #0A0A0A;
    --purple-glow: #9D00FF;
}

html {
    scroll-behavior: smooth;
}

/* بدنه در حالت دارک */
body.dark-theme {
    background: linear-gradient(135deg, #0F0F0F 0%, #1A001A 100%);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    padding-top: 70px;
    /* فاصله برای نوار بالایی ثابت */
    padding-bottom: 80px;
    /* فاصله برای نوار پایینی ثابت */
}

/* بدنه در حالت لایت */
body.light-theme {
    background: linear-gradient(135deg, #ffffff 0%, #ffe9c7 100%);
    color: #111;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    padding-top: 70px;
    padding-bottom: 80px;
}

.text-gold {
    color: var(--gold) !important;
}

/* نوار ناوبری بالای صفحه */
.top-navbar {
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

body.dark-theme .top-navbar {
    background: rgba(10, 10, 10, 0.95);
}

body.light-theme .top-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--gold-dark);
}

.navbar.top-navbar .nav-link {
    font-weight: 500;
}

body.dark-theme .navbar.top-navbar .nav-link {
    color: #ffffff !important;
}

body.light-theme .navbar.top-navbar .nav-link {
    color: #111111 !important;
}

.navbar.top-navbar .nav-link:hover {
    color: var(--gold) !important;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--gold), #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-toggler {
    border-color: var(--gold);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 215, 0, 0.5);
}

/* اسلایدر هدر */
.hero-slider {
    position: relative;
}

.hero-slider .carousel-item {
    height: 92vh;
    min-height: 600px;
    background: #000;
    position: relative;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.4);
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(157, 0, 255, 0.3), transparent 60%);
    z-index: 1;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    padding: 0 15px;
}

.hero-caption h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--gold), #FFF, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.7);
}

.win-amount {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold);
}

/* بخش اسکناس‌ها */
.money-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

body.dark-theme .money-section {
    background: linear-gradient(180deg, #000 0%, #1a001a 100%);
}

body.light-theme .money-section {
    background: linear-gradient(180deg, #fff 0%, #ffe6ff 100%);
}

.money-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(157, 0, 255, 0.15) 0%, transparent 70%);
}

.lira-bill {
    transition: all 0.4s;
    border: 3px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.lira-bill:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 0 60px var(--gold);
}

/* نوار برندگان در حال حرکت */
.winners-ticker {
    background: linear-gradient(90deg, #C41E3A, #000, #C41E3A);
    padding: 15px 0;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* نوار ناوبری پایینی */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold);
}

body.dark-theme .bottom-nav {
    background: rgba(10, 10, 10, 0.98);
}

body.light-theme .bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: var(--gold-dark);
}

.bottom-nav a {
    font-size: 0.8rem;
    text-decoration: none;
}

body.dark-theme .bottom-nav a {
    color: #aaa;
}

body.light-theme .bottom-nav a {
    color: #444;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--gold);
}

body.light-theme .bottom-nav a.active,
body.light-theme .bottom-nav a:hover {
    color: var(--gold-dark);
}

.bottom-nav i {
    font-size: 1.5rem;
}

/* سکشن‌های عمومی */
section {
    padding: 100px 0;
}

h2.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, var(--gold), #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* کارت برندگان */
.winner-card {
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

body.dark-theme .winner-card {
    background: #2b2b2b;
    color: #ffffff;
}

body.light-theme .winner-card {
    background: #ffffff;
    color: #111111;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

/* پس‌زمینه سکشن‌های تیره */
body.dark-theme #winners,
body.dark-theme #faq,
body.dark-theme #terms,
body.dark-theme #rules {
    background-color: #000000;
}

body.light-theme #winners,
body.light-theme #faq,
body.light-theme #terms,
body.light-theme #rules {
    background-color: #f4f4f4;
}

body.dark-theme #about,
body.dark-theme #contact,
body.dark-theme #privacy {
    background-color: transparent;
}

body.light-theme #about,
body.light-theme #contact,
body.light-theme #privacy {
    background-color: #ffffff;
}

/* فرم‌ها در حالت لایت/دارک */
body.dark-theme .form-control {
    background-color: #1f1f1f;
    border-color: #444;
    color: #ffffff;
}

body.light-theme .form-control {
    background-color: #ffffff;
    border-color: #ccc;
    color: #111111;
}

body.dark-theme .form-control::placeholder {
    color: #999999;
}

body.light-theme .form-control::placeholder {
    color: #888888;
}

/* دکمه لایت/دارک */
#themeToggle {
    border-width: 1px;
}

body.dark-theme #themeToggle {
    color: #ffffff;
    border-color: #ffffff44;
}

body.light-theme #themeToggle {
    color: #111111;
    border-color: #11111144;
}

/* واکنش‌گرا */
@media (max-width: 992px) {
    .hero-caption h1 {
        font-size: 3rem;
    }

    .win-amount {
        font-size: 2.4rem;
    }
}

@media (max-width: 576px) {
    .hero-caption h1 {
        font-size: 2.4rem;
    }

    .win-amount {
        font-size: 2rem;
    }

    h2.section-title {
        font-size: 2.4rem;
    }
}

/* winners table */
.table-dark-custom {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow: hidden;
}

/* faq */
section {
    padding: 80px 0;
}

h1.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--gold), #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.accordion-button {
    background-color: #181818;
    color: #fff;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: #252525;
    color: var(--gold);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.accordion-body {
    background-color: #141414;
    color: #ddd;
}

.accordion-item {
    border: 1px solid #333;
}

/* top menu */
/* چیدمان کلی ناوبار */
.winlux-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* موبایل: چپ/وسط/راست */
}

/* لوگو در موبایل/تبلت همیشه وسط */
.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* بقیه استایل‌های لوگو از قبل (font, color, ...) از کلاس logo میاد */
}

/* مطمئن بشیم بخش‌های چپ و راست روی لوگو نمی‌افتن */
.nav-left,
.nav-right {
    z-index: 2;
}

/* کانتینر ناوبار */
.winlux-navbar {
    position: relative;
    /* برای absolute شدن لوگو */
}

/* فلکس چپ/راست */
.winlux-bar-inner {
    position: relative;
    z-index: 1;
    /* پایین‌تر از لوگو */
}

/* لوگو همیشه وسط ناوبار، مستقل از چپ و راست */
.winlux-center-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* روی چپ/راست قرار بگیره */
    /* فونت و رنگ و ... از کلاس logo میاد، دست نمی‌زنیم */
}

/* برای اینکه bottom-nav یا چیز دیگه offcanvas رو نپوشونه */
.offcanvas {
    height: 100vh;
    z-index: 2000;
}



/* در دسکتاپ: سه ستون چپ | وسط | راست */
@media (min-width: 992px) {
    .winlux-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .nav-left {
        justify-self: start;
    }

    .nav-right {
        justify-self: end;
    }

    .nav-logo {
        position: static;
        transform: none;
        justify-self: center;
        text-align: center;
    }

}

/* Footer */
.bottom-nav a {
    color: #ffffff;
    /* رنگ عادی */
    text-decoration: none;
}

.bottom-nav a i {
    display: block;
}

/* وقتی لینک active است، هم خودش هم آیکونش گلد بشن */
.bottom-nav a.active,
.bottom-nav a.active i {
    color: var(--gold);
    /* همون طلایی خودت */
}

/* register and login */
.auth-modal .modal-content {
    background: radial-gradient(circle at top, rgba(157, 0, 255, 0.25), #050505);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
}

.auth-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-modal .modal-title {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-modal .form-control {
    background-color: #111;
    border-color: #444;
    color: #fff;
}

.auth-modal .form-control:focus {
    background-color: #111;
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 215, 0, 0.25);
}

.auth-modal .form-label {
    font-weight: 600;
}

.auth-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

/* pul size */
.wh-pul {
    width: 3231px;
    height: auto;
}

/* Toast/Flash/Alert/Success/Error */
.winlux-alert-container {
    position: fixed;
    top: 80px;
    /* زیر نوار بالا */
    right: 20px;
    z-index: 99999;
    width: min(340px, 90vw);
}

.winlux-alert {
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.9), #041704);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

/* نسخه danger */
.winlux-alert.alert-danger {
    background: linear-gradient(135deg, rgba(162, 0, 0, 0.95), #190101);
}

@media (max-width: 576px) {
    .winlux-alert-container {
        top: 70px;
        right: 10px;
        left: 10px;
        /* روی موبایل بیاد وسط */
        width: auto;
    }
}

/* account page */
.account-section {
    /* می‌تونی اینجا هم گرادینت بزنی یا خالی بذاری چون body already gradient داره */
}

.account-card {
    background: radial-gradient(circle at top, rgba(157, 0, 255, 0.22), #050505);
    border-radius: 22px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
}

.account-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.1rem;
    background: linear-gradient(45deg, var(--gold), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.account-info-box {
    background: rgba(10, 10, 10, 0.88);
    border-radius: 16px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.winlux-tabs .nav-link {
    border-radius: 999px;
    color: #aaa;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid transparent;
}

.winlux-tabs .nav-link i {
    font-size: 0.95rem;
}

.winlux-tabs .nav-link.active {
    color: #000;
    background: linear-gradient(45deg, var(--gold), #ffffff);
    border-color: rgba(255, 215, 0, 0.8);
}

.payment-method {
    padding: 10px 12px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
}


/* Pagination (Bootstrap 5) */
.pagination {
    gap: 8px;
}

.pagination .page-link {
    border-radius: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: rgba(99, 65, 65, 0.9);
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .18);
}

.pagination .page-item.active .page-link {
    background: rgba(255, 215, 0, .18);
    border-color: rgba(255, 215, 0, .35);
    color: #9f9b84;
}

.pagination .page-item.disabled .page-link {
    opacity: .45;
    pointer-events: none;
}