/**
 * UFA Landing Theme Stylesheet
 * Premium Dark Theme, Gold Accents, Neon Glows
 */

/* 1. DESIGN TOKENS & BASE CSS */
:root {
    --bg-main: #0a0b0d;
    --bg-sec: #13161b;
    --bg-card: #181d24;
    --border-color: #262e3b;
    --color-text: #c5c6c7;
    --color-light: #ffffff;
    --color-gold: #e5c060;
    --color-gold-hover: #f1d382;
    --color-line: #06c755;
    --color-line-hover: #05b04b;
    --font-primary: 'Prompt', sans-serif;
    --glow-gold: 0 0 10px rgba(229, 192, 96, 0.4);
    --glow-gold-strong: 0 0 20px rgba(229, 192, 96, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-light);
    font-weight: 600;
    margin-bottom: 0.5em;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
}

.section-title span {
    color: var(--color-gold);
    text-shadow: var(--glow-gold);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-gold {
    background: linear-gradient(135deg, #e5c060 0%, #b89130 100%);
    color: #000;
    font-weight: 600;
    box-shadow: var(--glow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f1d382 0%, #cfa644 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--glow-gold-strong);
}

.btn-gold-outline {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

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

/* Pulse Animation */
.btn-pulse {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(229, 192, 96, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(229, 192, 96, 0.8);
    }
}

/* 2. HEADER AREA */
.site-header {
    background-color: var(--bg-sec);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: var(--glow-gold);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--color-text);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--color-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 3. LOGIN BAR */
.top-login-bar {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.login-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.login-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-inputs-group {
    display: flex;
    gap: 10px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-with-icon input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px 8px 32px;
    color: var(--color-light);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    width: 160px;
    transition: var(--transition-smooth);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 5px rgba(229, 192, 96, 0.3);
}

.form-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    background-color: var(--color-gold);
    color: #000;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    background-color: var(--color-gold-hover);
    box-shadow: var(--glow-gold);
}

.link-forgot {
    font-size: 0.85rem;
    color: #8c8f94;
}

.link-forgot:hover {
    color: var(--color-gold);
}

.quick-support-buttons {
    display: flex;
    gap: 10px;
}

.btn-quick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-quick-register {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: var(--color-light);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.4);
    animation: fastPulseRed 0.6s infinite ease-in-out;
}

.btn-quick-register:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 75, 43, 0.9);
}

@keyframes fastPulseRed {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 5px rgba(255, 65, 108, 0.6);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 22px rgba(255, 75, 43, 0.95), 0 0 35px rgba(255, 75, 43, 0.6);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(0.96);
        box-shadow: 0 0 5px rgba(255, 65, 108, 0.6);
        filter: brightness(1);
    }
}

@keyframes fastPulseGold {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 5px rgba(229, 192, 96, 0.6);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 22px rgba(229, 192, 96, 0.95), 0 0 35px rgba(229, 192, 96, 0.6);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(0.96);
        box-shadow: 0 0 5px rgba(229, 192, 96, 0.6);
        filter: brightness(1);
    }
}

.btn-quick-register-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: var(--color-light);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(56, 239, 125, 0.4);
}

.btn-quick-register-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(56, 239, 125, 0.6);
}

.btn-quick-line {
    background-color: var(--color-line);
    color: var(--color-light);
}

.btn-quick-line:hover {
    background-color: var(--color-line-hover);
    box-shadow: 0 0 10px rgba(6, 199, 85, 0.4);
}

/* 4. HERO BANNER */
.hero-banner-section {
    position: relative;
    border-bottom: 2px solid var(--color-gold);
}

.hero-banner-link {
    display: block;
    line-height: 0;
}

.hero-banner-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-img-mobile {
    display: none;
}

/* Quick Stats Bar */
.quick-stats-bar {
    background-color: var(--bg-sec);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    font-size: 2.2rem;
    text-shadow: var(--glow-gold);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
}

.stat-label {
    font-size: 0.85rem;
    color: #8c9baf;
}

/* 5. STEP GUIDES */
.step-guides-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: var(--glow-gold);
}

.step-icon-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background-color: var(--bg-sec);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--glow-gold);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-gold);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--bg-card);
}

.step-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.default-step-icon {
    font-size: 2rem;
    color: var(--color-gold);
}

.step-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.step-desc {
    color: #8c9baf;
    font-size: 0.95rem;
}

/* 6. GAME CATEGORIES & GRID */
.game-categories-section {
    padding: 60px 0;
    background-color: var(--bg-sec);
    border-top: 1px solid var(--border-color);
}

.game-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.game-tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--color-light);
    font-family: var(--font-primary);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.game-tab-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.game-tab-btn.active {
    background: linear-gradient(135deg, #e5c060 0%, #b89130 100%);
    color: #000;
    border-color: var(--color-gold);
    box-shadow: var(--glow-gold);
}

.tab-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.game-tab-btn.active .tab-icon {
    filter: brightness(0);
}

.game-tabs-content {
    position: relative;
}

.game-tab-pane {
    display: none;
}

.game-tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: var(--glow-gold);
}

.game-card-img-wrap {
    position: relative;
    padding-top: 66.6%; /* 3:2 Aspect Ratio */
    background-color: var(--bg-main);
    overflow: hidden;
}

.game-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-card:hover .game-img {
    transform: scale(1.1);
}

.game-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2b3543;
}

.game-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.game-card:hover .game-card-hover {
    opacity: 1;
}

.game-card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.game-name {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-play {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text);
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.game-card:hover .btn-play {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: #000;
    font-weight: 600;
    box-shadow: var(--glow-gold);
}

/* HOT Ribbon Badge */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-hot {
    background-color: #ff3838;
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 56, 56, 0.7);
    animation: pulseRed 1.5s infinite alternate;
}

@keyframes pulseRed {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* 7. PROMOTIONS */
.promotions-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
}

.promo-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.promo-table th,
.promo-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.promo-table th {
    background-color: var(--bg-sec);
    color: var(--color-light);
    font-weight: 600;
    font-size: 1rem;
}

.promo-table tbody tr:last-child td {
    border-bottom: none;
}

.promo-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-light);
}

.promo-name-cell i {
    font-size: 1.15rem;
    text-shadow: var(--glow-gold);
}

.badge-cond {
    background-color: #1e2633;
    border: 1px solid #36445a;
    color: #92a4bd;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* 8. FAQ ACCORDION */
.faq-section {
    padding: 60px 0;
    background-color: var(--bg-sec);
    border-top: 1px solid var(--border-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--color-gold);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-icon {
    font-size: 1rem;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 0 solid var(--border-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* arbitrary high value for expansion */
    padding: 20px 25px;
    border-top-width: 1px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.faq-answer p {
    margin: 0;
    color: #8c9baf;
}

/* 9. SEO ACCORDION CONTENT */
.seo-content-section {
    padding: 60px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.seo-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.seo-content-inner {
    max-height: 250px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.seo-content-inner.expanded {
    max-height: 5000px; /* expand completely */
}

/* Bottom fade shadow when collapsed */
.seo-content-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--bg-card) 0%, rgba(24, 29, 36, 0) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.seo-content-inner.expanded::after {
    opacity: 0;
}

.text-editor-content p {
    margin-bottom: 1.5rem;
}

.text-editor-content p:last-child {
    margin-bottom: 0;
}

.seo-readmore-trigger {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 5;
}

.btn-seo-toggle {
    background-color: var(--bg-sec);
    border: 1px solid var(--border-color);
    color: var(--color-gold);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-seo-toggle:hover {
    background-color: var(--bg-main);
    box-shadow: var(--glow-gold);
}

.btn-seo-toggle i {
    transition: transform 0.3s ease;
}

.btn-seo-toggle.active i {
    transform: rotate(180deg);
}

/* 10. PAYMENTS, PARTNERS, CERTIFICATIONS */
.site-footer {
    background-color: #06070a;
    border-top: 2px solid var(--color-gold);
    padding: 50px 0 100px; /* extra space at bottom for mobile sticky navigation */
    font-size: 0.9rem;
    color: #8c8f94;
}

.footer-section {
    margin-bottom: 40px;
    text-align: center;
}

.footer-section h4 {
    color: var(--color-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Logo image */
.site-logo-img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.site-logo-img:hover {
    transform: scale(1.03);
}

/* Footer Top Row Flex Layout */
.footer-top-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important; /* Force columns to stay in a single horizontal row */
    gap: 40px !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-col {
    flex: 1 !important;
    min-width: 0 !important; /* Allow columns to shrink properly without wrapping */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.footer-col-title {
    color: var(--color-gold) !important; /* Gold title */
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 25px !important;
    letter-spacing: 1px !important;
    text-align: center;
}

/* Payment Method Styles */
.bank-logos-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.footer-bank-img-large {
    width: 100% !important;
    max-width: 250px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Partnership Grid Styles */
.partnership-grid-large {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 18px !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 280px !important;
}

.partnership-grid-large img {
    width: 100% !important;
    max-width: 80px !important;
    height: auto !important;
    object-fit: contain !important;
    filter: brightness(0.85) !important;
    transition: var(--transition-smooth) !important;
}

.partnership-grid-large img:hover {
    filter: brightness(1) drop-shadow(0 0 5px rgba(229,192,96,0.3)) !important;
    transform: translateY(-2px) !important;
}

/* Certifications Styles */
.certifications-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-cert-img-large {
    width: 100%;
    max-width: 280px; /* Adjust to match the screenshot */
    height: auto;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 8px;
    color: #8c8f94;
}

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

/* 11. SIDEBAR & WIDGETS */
.floating-line-widget {
    position: fixed;
    right: 25px;
    bottom: 90px; /* placement above mobile navigation */
    z-index: 999;
}

.line-badge-link {
    display: flex;
    align-items: center;
    background-color: #000;
    border: 2px solid var(--color-line);
    border-radius: 40px;
    padding: 8px 20px 8px 8px;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
    transition: var(--transition-smooth);
}

.line-badge-link:hover {
    transform: scale(1.05);
    background-color: #111;
    border-color: #06ff66;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.6);
}

.line-icon-wrap {
    background-color: var(--color-line);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.line-text-wrap {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

.line-title {
    font-size: 0.75rem;
    color: #8c9baf;
    text-transform: uppercase;
}

.line-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.line-qr-hover {
    position: absolute;
    bottom: 75px;
    right: 0;
    background-color: var(--bg-card);
    border: 2px solid var(--color-line);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.floating-line-widget:hover .line-qr-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.line-qr-hover img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.line-qr-hover p {
    font-size: 0.75rem;
    color: var(--color-light);
    margin: 0;
    text-align: center;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(60px + env(safe-area-inset-bottom)) !important;
    background-color: #06070a !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: flex-start !important;
    z-index: 99999 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    box-sizing: border-box !important;
    will-change: transform !important;
    transition: none !important;
    -webkit-transition: none !important;
}

.sticky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8c8f94;
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
    height: 60px !important;
    box-sizing: border-box !important;
}

.sticky-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.sticky-item:hover,
.sticky-item.active {
    color: var(--color-gold);
}

.sticky-item.highlight {
    background: linear-gradient(135deg, #e5c060 0%, #b89130 100%);
    color: #000 !important;
    font-weight: 700;
    height: 60px !important;
    justify-content: center;
    animation: fastPulseGold 0.6s infinite ease-in-out;
}

.sticky-item.highlight:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

/* 12. RESPONSIVENESS */
@media screen and (max-width: 991px) {
    .site-header {
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none; /* JS will toggle this */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-sec);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .header-cta {
        display: none;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .step-card {
        padding: 20px 10px;
    }
    
    .step-icon-wrap {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
    
    .step-icon {
        max-width: 30px;
        max-height: 30px;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
        line-height: 20px;
        top: -5px;
        right: -5px;
    }
    
    .step-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .step-desc {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media screen and (max-width: 767px) {
    .hero-img-desktop {
        display: none;
    }
    
    .hero-img-mobile {
        display: block;
    }
    
    .login-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .login-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inputs-group {
        flex-direction: column;
    }
    
    .input-with-icon input {
        width: 100%;
    }
    
    .form-actions-group {
        justify-content: space-between;
    }
    
    .quick-support-buttons {
        justify-content: space-between;
    }
    
    .btn-quick {
        flex: 1;
        justify-content: center;
    }

    .stats-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    .floating-line-widget {
        right: 15px;
        bottom: 75px;
    }
    
    .line-text-wrap {
        display: none; /* compact for mobile screen */
    }
    
    .line-badge-link {
        padding: 8px;
    }
    
    .line-qr-hover {
        display: none !important;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-card-info {
        padding: 10px;
        gap: 8px;
    }
    
    .game-name {
        font-size: 0.95rem;
    }
    
    .btn-play {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .footer-top-row {
        gap: 30px;
        padding-bottom: 20px;
    }
}

/* 11. BLOG POSTS & CATEGORIES SECTIONS */
.blog-grid-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.gold-title {
    color: var(--color-gold) !important;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card-item {
    background-color: #151821;
    border: 1px solid rgba(229, 192, 96, 0.15);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.blog-card-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 8px 25px rgba(229,192,96,0.15);
}

.blog-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #0c0e14;
    overflow: hidden;
}

.blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-item:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a4f5b;
    font-size: 3rem;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    color: var(--color-light);
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-weight: 500;
    height: 3.15rem; /* Exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #8c8f94;
}

.blog-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-date i {
    color: var(--color-gold);
}

.btn-blog-readmore {
    display: block;
    text-align: center;
    background-color: rgba(229, 192, 96, 0.12);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 10px 0;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-blog-readmore:hover {
    background-color: var(--color-gold);
    color: #000 !important;
    box-shadow: var(--glow-gold);
}

/* Blog Pagination */
.blog-pagination {
    margin: 40px 0 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background-color: #151821;
    color: var(--color-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.blog-pagination span.current {
    background-color: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    font-weight: 600;
}

.category-title-spacing {
    margin-top: 60px !important;
}

/* Blog Categories Grid */
.blog-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.blog-category-tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #151821;
    border: 1px solid rgba(229, 192, 96, 0.2);
    border-radius: 6px;
    padding: 12px 18px;
    color: var(--color-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-category-tag-item:hover {
    border-color: var(--color-gold);
    background-color: #1c202a;
    box-shadow: 0 4px 15px rgba(229,192,96,0.1);
    transform: translateY(-2px);
}

.cat-tag-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-tag-left i {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.cat-tag-name {
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.cat-tag-count {
    background-color: rgba(255,255,255,0.05);
    color: var(--color-gold);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Blog Responsiveness */
@media screen and (max-width: 991px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 576px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .gold-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Blog Slider Styles
   ========================================================================== */
.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    border-bottom: 1px solid rgba(229, 192, 96, 0.15);
    padding-bottom: 15px;
}
.blog-section-header .section-title {
    margin-bottom: 0 !important;
}
.btn-view-all-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #000 !important;
    background: linear-gradient(180deg, #fff2a3 0%, #d1a13b 100%);
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-view-all-header:hover {
    background: linear-gradient(180deg, #d1a13b 0%, #fff2a3 100%);
    box-shadow: 0 0 15px rgba(209, 161, 59, 0.4);
}
.blog-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.blog-slider-container {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    width: 100%;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none; /* Firefox */
}
.blog-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.blog-slider-container .blog-card-item {
    flex: 0 0 calc(33.333% - 14px) !important;
    width: calc(33.333% - 14px) !important;
    scroll-snap-align: start;
    margin-bottom: 0 !important;
}
.blog-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #d1a13b;
    color: #d1a13b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.blog-slider-arrow:hover {
    background: #d1a13b;
    color: #000;
    box-shadow: 0 0 10px rgba(209, 161, 59, 0.6);
}
.blog-slider-arrow.prev {
    left: -22px;
}
.blog-slider-arrow.next {
    right: -22px;
}
.view-all-mobile-wrap {
    display: none;
    margin-top: 15px;
    margin-bottom: 30px;
}
.btn-view-all-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #000 !important;
    background: linear-gradient(180deg, #fff2a3 0%, #d1a13b 100%);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-view-all-mobile:hover {
    background: linear-gradient(180deg, #d1a13b 0%, #fff2a3 100%);
    box-shadow: 0 0 15px rgba(209, 161, 59, 0.4);
}
@media (max-width: 1024px) {
    .blog-slider-container .blog-card-item {
        flex: 0 0 calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
    }
}
@media (max-width: 768px) {
    .blog-section-header .btn-view-all-header {
        display: none;
    }
    .view-all-mobile-wrap {
        display: block;
    }
    .blog-slider-container .blog-card-item {
        flex: 0 0 85% !important;
        width: 85% !important;
    }
    .blog-slider-arrow {
        display: none !important; /* Hide arrows on touch screens, swipe is enough */
    }
    .blog-slider-wrapper {
        margin: 0 -15px;
        width: calc(100% + 30px);
    }
    .blog-slider-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 4.5 LANDING PAGE EDITOR CONTENT SECTION */
.landing-page-editor-content-section {
    padding: 60px 0 20px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-editor-content {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.8;
}

.landing-editor-content h1,
.landing-editor-content h2,
.landing-editor-content h3,
.landing-editor-content h4,
.landing-editor-content h5,
.landing-editor-content h6 {
    color: var(--color-gold);
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 700;
}

.landing-editor-content h1 { font-size: 2.2rem; }
.landing-editor-content h2 { font-size: 1.8rem; }
.landing-editor-content h3 { font-size: 1.5rem; }

.landing-editor-content p {
    margin-bottom: 1.6em;
}

.landing-editor-content a {
    color: var(--color-gold);
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.landing-editor-content a:hover {
    color: var(--color-light);
}

.landing-editor-content ul,
.landing-editor-content ol {
    margin-bottom: 1.6em;
    padding-left: 20px;
}

.landing-editor-content li {
    margin-bottom: 0.5em;
}

.landing-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* =============================================
   ARTICLES LISTING PAGE (page-articles.php)
   ============================================= */

.articles-listing-page {
    padding-bottom: 80px;
}

/* Hero Section */
.articles-hero-section {
    background: linear-gradient(135deg, var(--bg-sec) 0%, #0d1117 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 50px 0 40px;
    text-align: center;
}

.articles-page-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: var(--glow-gold);
    margin-bottom: 12px;
}

.articles-page-title i {
    margin-right: 12px;
    opacity: 0.85;
}

.articles-page-subtitle {
    color: var(--color-text);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid Section */
.articles-grid-section {
    padding: 50px 0;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

/* Article Card */
.article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.article-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-gold);
}

/* Thumbnail */
.article-card-thumbnail-link {
    display: block;
    overflow: hidden;
}

.article-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-thumbnail .article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-thumbnail .article-img {
    transform: scale(1.05);
}

.article-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    pointer-events: none;
}

.article-no-thumb {
    background: var(--bg-sec);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-no-thumb i {
    font-size: 3.5rem;
    color: var(--border-color);
}

/* Card Body */
.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Meta */
.article-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-date,
.article-category {
    font-size: 0.78rem;
    color: #8c8f94;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-category {
    color: var(--color-gold);
}

/* Title */
.article-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.article-card-title a {
    color: var(--color-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-card-title a:hover {
    color: var(--color-gold);
}

/* Excerpt */
.article-card-excerpt {
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.65;
    margin: 0;
    /* Clamp to 3 lines maximum */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Fixed height = 3 lines × line-height */
    max-height: calc(1.65em * 3);
}

/* Read More */
.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition-smooth);
}

.article-read-more:hover {
    color: var(--color-gold-hover);
    gap: 10px;
}

/* Pagination */
.articles-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.articles-pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.articles-pagination .page-numbers li a,
.articles-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--color-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.articles-pagination .page-numbers li a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.articles-pagination .page-numbers li span.current {
    background: linear-gradient(135deg, #e5c060 0%, #b89130 100%);
    border-color: var(--color-gold);
    color: #000;
    font-weight: 700;
}

/* Empty State */
.articles-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text);
}

.articles-empty i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
    display: block;
}

.articles-empty h3 {
    font-size: 1.4rem;
    color: var(--color-light);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .articles-page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-card-thumbnail {
        height: 180px;
    }
}
