/* ============================================
   LUXURY CASINO THEME
   สีหลัก: ดำ (#0d0d0d) ทอง (#FFD700) แดง (#DC143C)
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0d0d0d;
    --bg-dark-2: #1a1a1a;
    --bg-dark-3: #2d2d2d;
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --gold-darker: #B8860B;
    --red: #DC143C;
    --red-dark: #8B0000;
    --white: #ffffff;
    --white-soft: #f5f5f5;
    --gray: #888888;
}

body {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--bg-dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid var(--gold-dark);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.tagline {
    color: var(--gray);
    font-size: 14px;
    font-weight: 300;
}

.header-cta {
    display: flex;
    gap: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: 
        radial-gradient(ellipse at top, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
        var(--bg-dark-2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--white-soft);
    font-weight: 300;
}

/* ============================================
   DAILY PROMOTION
   ============================================ */
.daily-promotion {
    background: linear-gradient(135deg, var(--bg-dark-3) 0%, var(--bg-dark-2) 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    border: 2px solid var(--gold-dark);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.1);
    position: relative;
}

.daily-promotion::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.promotion-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promotion-content h3 {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 700;
}

.promotion-date {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 10px;
}

.promotion-desc {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.promotion-detail {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   RATING DISPLAY
   ============================================ */
.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
    background: var(--bg-dark-3);
    border-radius: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--gold-dark);
}

.stars {
    font-size: 32px;
}

.star {
    color: var(--gray);
}

.star.filled {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.rating-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
}

.rating-count {
    font-size: 14px;
    color: var(--gray);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--bg-dark);
    padding: 80px 0;
    border-top: 1px solid var(--bg-dark-3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark-3) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--bg-dark-3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-dark);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games-section {
    background: var(--bg-dark-2);
    padding: 80px 0;
    border-top: 1px solid var(--bg-dark-3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.game-card {
    background: var(--bg-dark);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--bg-dark-3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.game-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.game-card h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.game-card p {
    color: var(--gray);
    font-size: 13px;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
    background: var(--bg-dark);
    padding: 80px 0;
    border-top: 1px solid var(--bg-dark-3);
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 18px;
    font-weight: 300;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark-3) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--bg-dark-3);
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.reviewer-details h3 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 600;
}

.review-stars {
    font-size: 16px;
}

.review-date {
    color: var(--gray);
    font-size: 13px;
}

.review-text {
    color: var(--white-soft);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================
   MAIN CONTENT / ARTICLE
   ============================================ */
.main-content {
    background: var(--bg-dark-2);
    padding: 80px 0;
    border-top: 1px solid var(--bg-dark-3);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: var(--white-soft);
    background: var(--bg-dark);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--bg-dark-3);
}

.article-content h1 {
    font-size: 38px;
    color: var(--gold);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.article-content h2 {
    font-size: 28px;
    color: var(--gold);
    margin: 50px 0 20px;
    padding-left: 20px;
    border-left: 4px solid var(--red);
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content strong {
    color: var(--gold);
    font-weight: 600;
}

.article-content em {
    color: var(--red);
    font-style: italic;
}

.article-content u {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: 
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%),
        var(--bg-dark);
    padding: 100px 0;
    text-align: center;
    border-top: 2px solid var(--gold-dark);
    border-bottom: 2px solid var(--gold-dark);
}

.cta-content h2 {
    font-size: 38px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 1px solid var(--bg-dark-3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gold);
    font-weight: 600;
}

.footer-section p,
.footer-section ul {
    color: var(--gray);
    line-height: 2;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section ul li:hover {
    color: var(--gold);
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--bg-dark-3);
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .article-content h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .daily-promotion {
        margin: 30px 15px;
        padding: 25px 20px;
    }
    
    .promotion-desc {
        font-size: 18px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.btn-primary {
    animation: glow 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-icon {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--bg-dark);
    padding: 60px 0;
    border-top: 1px solid var(--bg-dark-3);
    border-bottom: 1px solid var(--gold-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-dark-2);
    border-radius: 15px;
    border: 1px solid var(--bg-dark-3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-label {
    font-size: 16px;
    color: var(--gray);
}

/* ============================================
   HOW TO SECTION
   ============================================ */
.howto-section {
    background: var(--bg-dark-2);
    padding: 80px 0;
    border-top: 1px solid var(--bg-dark-3);
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.howto-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
    z-index: 0;
}

.howto-step {
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    border: 1px solid var(--bg-dark-3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.howto-step:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.howto-step h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.howto-step p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.howto-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   PROVIDERS SECTION
   ============================================ */
.providers-section {
    background: var(--bg-dark);
    padding: 80px 0;
    border-top: 1px solid var(--bg-dark-3);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.provider-card {
    background: var(--bg-dark-2);
    border-radius: 15px;
    padding: 30px 15px;
    text-align: center;
    border: 1px solid var(--bg-dark-3);
    transition: all 0.3s ease;
}

.provider-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.provider-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.provider-card h3 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
}

.provider-card p {
    color: var(--gray);
    font-size: 12px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: var(--bg-dark-2);
    padding: 80px 0;
    border-top: 1px solid var(--bg-dark-3);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-dark);
    border-radius: 15px;
    padding: 25px 30px;
    border: 1px solid var(--bg-dark-3);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gold-dark);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.faq-icon {
    font-size: 24px;
}

.faq-question h3 {
    color: var(--gold);
    font-size: 18px;
    font-weight: 600;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.8;
    padding-left: 40px;
}

/* ============================================
   OVERALL RATING
   ============================================ */
.overall-rating {
    text-align: center;
    margin-bottom: 50px;
}

.rating-big {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-dark-2);
    padding: 40px 60px;
    border-radius: 20px;
    border: 2px solid var(--gold-dark);
}

.rating-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.rating-stars {
    font-size: 32px;
    margin: 15px 0;
}

.rating-total {
    color: var(--gray);
    font-size: 16px;
}

/* ============================================
   GAME CARD BUTTON
   ============================================ */
.game-card .btn-small {
    padding: 8px 20px;
    font-size: 12px;
    margin-top: 15px;
}

/* ============================================
   FOOTER RATING
   ============================================ */
.footer-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.footer-rating span {
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   ARTICLE TABLES & LISTS
   ============================================ */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content ul {
    list-style: none;
    padding-left: 0;
}

.article-content ul li {
    padding-left: 30px;
    position: relative;
}

.article-content ol li {
    padding-left: 10px;
}

.article-content h3 {
    font-size: 22px;
    color: var(--gold);
    margin: 40px 0 15px;
    font-weight: 600;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-dark-2);
    border-radius: 10px;
    overflow: hidden;
}

.article-content table thead {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.article-content table th {
    color: var(--bg-dark);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 15px;
    border-bottom: 1px solid var(--bg-dark-3);
    color: var(--white-soft);
}

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content table tr:hover td {
    background: var(--bg-dark-3);
}

/* ============================================
   RESPONSIVE - ADDITIONAL
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .howto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .howto-grid::before {
        display: none;
    }
    
    .providers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .howto-grid {
        grid-template-columns: 1fr;
    }
    
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rating-big {
        padding: 30px 40px;
    }
    
    .rating-number {
        font-size: 56px;
    }
    
    .faq-answer p {
        padding-left: 0;
    }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--gold);
    color: var(--bg-dark);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 1px solid var(--gold-dark);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-small {
    max-width: 350px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--gold-dark);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.modal-header h2 {
    color: var(--gold);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: var(--red);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-light);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.modal-footer-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-footer-link p {
    color: var(--text-muted);
    margin: 0;
}

.modal-footer-link a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-footer-link a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Demo Modal Styles */
.demo-info {
    text-align: center;
}

.demo-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.demo-info h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.demo-info > p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.demo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
    background: var(--bg-darker);
    border-radius: 10px;
    padding: 20px;
}

.demo-features li {
    color: var(--text-light);
    padding: 8px 0;
    font-size: 1rem;
}

.demo-register {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.demo-register p {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.demo-register a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.demo-register a:hover {
    text-decoration: underline;
}

/* Success Modal */
.success-body {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-body h2 {
    color: var(--gold);
    margin-bottom: 10px;
}

.success-body p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Modal Responsive */
@media (max-width: 576px) {
    .modal-content {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
}
