/* Game Làng Lá - Custom Styles */

/* Responsive media for news content */
.news-detail-content img,
.news-detail-content video,
.news-detail-content iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --bg-cream: #FFEFD5;
    --bg-light: #FFF8DC;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --green-btn: #5cb85c;
    --red-btn: #d9534f;
    --blue-btn: #5bc0de;
    --orange-btn: #f0ad4e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Homepage Container */
.homepage-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* Desktop Layout - Wider for all pages */
@media (min-width: 992px) {
    .homepage-container {
        max-width: 900px;
    }
    
    .homepage-container.deposit-page {
        max-width: 1200px;
    }
    
    .homepage-container.ranking-page {
        max-width: 1100px;
    }
    
    .homepage-container.forum-page {
        max-width: 1000px;
    }
}

.homepage-card {
    background: linear-gradient(180deg, #FFEFD5 0%, #FFE4B5 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 3px solid rgba(139, 69, 19, 0.3);
}

/* Desktop Layout for Card */
@media (min-width: 768px) {
    .homepage-card {
        padding: 30px;
    }
}

/* Logo */
.homepage-logo {
    text-align: center;
    margin-bottom: 20px;
}

.homepage-logo img {
    max-width: 200px;
    height: auto;
}

/* Desktop Layout for Logo */
@media (min-width: 768px) {
    .homepage-logo img {
        max-width: 250px;
    }
}

/* User Info */
.homepage-user-info {
    text-align: center;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.username-highlight {
    color: #d9534f;
    font-weight: bold;
}

.balance-highlight {
    color: #d9534f;
    font-weight: bold;
}

/* Action Buttons */
.homepage-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Desktop Layout for Actions */
@media (min-width: 768px) {
    .homepage-actions {
        gap: 12px;
    }
}

.homepage-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.homepage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.btn-red {
    background: linear-gradient(to bottom, #d9534f, #c9302c);
}

.btn-blue {
    background: linear-gradient(to bottom, #5bc0de, #46b8da);
}

.btn-orange {
    background: linear-gradient(to bottom, #f0ad4e, #ec971f);
}

.btn-green {
    background: linear-gradient(to bottom, #5cb85c, #4cae4c);
}

.btn-purple {
    background: linear-gradient(to bottom, #9b59b6, #8e44ad);
}

.btn-logout {
    background: linear-gradient(to bottom, #6c757d, #5a6268);
}

.btn-logout:hover {
    background: linear-gradient(to bottom, #5a6268, #495057);
}

/* Download Button */
.homepage-download {
    text-align: center;
    margin-bottom: 15px;
}

.homepage-download .homepage-btn {
    padding: 12px 40px;
    font-size: 15px;
}

/* Navigation Menu */
.homepage-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Desktop Layout for Menu */
@media (min-width: 768px) {
    .homepage-menu {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.menu-btn {
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.btn-red-menu {
    background: linear-gradient(to bottom, #d9534f, #c9302c);
}

.btn-orange-menu {
    background: linear-gradient(to bottom, #f0ad4e, #ec971f);
}

.menu-btn.active {
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

/* Intro Section */
.homepage-intro {
    padding: 20px;
}

.intro-heading {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.intro-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.intro-text strong {
    color: var(--primary-color);
}

.game-screenshot {
    text-align: center;
    margin-top: 20px;
}

.game-screenshot img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

/* Desktop Layout for Screenshots */
@media (min-width: 768px) {
    .game-screenshot {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .game-screenshot img {
        margin-bottom: 0;
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* Footer Notice */
.homepage-footer {
    background: linear-gradient(180deg, #FFE4B5 0%, #FFDAB9 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 3px solid rgba(139, 69, 19, 0.3);
}

/* Desktop Layout for Footer */
@media (min-width: 768px) {
    .homepage-footer {
        padding: 25px 30px;
    }
}

.footer-notice {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-notice i {
    color: #5bc0de;
    margin-right: 5px;
}

.footer-warning {
    font-size: 13px;
    color: #d9534f;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content-box {
    background: linear-gradient(180deg, #FFEFD5 0%, #FFE4B5 100%);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid rgba(139, 69, 19, 0.3);
}

/* Desktop Layout for Modal */
@media (min-width: 768px) {
    .modal-content-box {
        max-width: 500px;
        padding: 40px;
    }
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
}

/* Community Section */
.community-section {
    padding: 30px;
}

.community-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Desktop Layout for Community */
@media (min-width: 768px) {
    .community-boxes {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

.community-box {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 35px 20px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.community-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    color: white;
}

/* Desktop Layout for Community Box */
@media (min-width: 768px) {
    .community-box {
        padding: 45px 25px;
        min-height: 240px;
    }
}

.community-box-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 18px;
    line-height: 1.4;
}

.community-box-icon {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.community-box-icon i {
    font-size: 26px;
}

.facebook-icon {
    color: #1877f2;
}

.zalo-icon {
    color: #0068ff;
}

.community-box-subtitle {
    font-size: 13px;
    opacity: 0.9;
}

/* Ranking Section */
.ranking-section {
    padding: 25px;
}

.ranking-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: column;
}

/* Desktop Layout for Ranking Tabs */
@media (min-width: 768px) {
    .ranking-tabs {
        flex-direction: row;
        gap: 12px;
    }
}

.ranking-tab {
    flex: 1;
    padding: 12px 15px;
    background: linear-gradient(to bottom, #f0ad4e, #ec971f);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.ranking-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
    color: white;
}

.ranking-tab.active {
    background: linear-gradient(to bottom, #d9534f, #c9302c);
}

.ranking-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Desktop Layout for Ranking */
@media (min-width: 768px) {
    .ranking-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.ranking-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.ranking-box-header {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 15px;
}

.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Desktop Layout for Ranking List */
@media (min-width: 768px) {
    .ranking-list {
        max-height: 500px;
    }
}

.ranking-list-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.ranking-list-item:hover {
    background: #f8f9fa;
}

.ranking-list-item:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #95a5a6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 12px;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.5);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.5);
}

.player-details {
    flex: 1;
}

.player-name-rank {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 3px;
}

.player-stats-rank {
    font-size: 12px;
    color: var(--text-light);
}

.player-score-rank {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-data p {
    margin: 0;
    font-size: 14px;
}

/* Deposit Section */
.deposit-section {
    padding: 25px;
}

.deposit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Desktop Layout for Deposit Grid */
@media (min-width: 992px) {
    .deposit-grid {
        grid-template-columns: 380px 1fr;
        gap: 25px;
    }
}

.deposit-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    transition: all 0.3s;
}

.deposit-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.deposit-box-header {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 15px;
}

.deposit-box-content {
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.instruction-list {
    margin: 0;
    padding-left: 20px;
    line-height: 2;
}

.form-section {
    margin-bottom: 20px;
}

.form-section-title {
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: block;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Desktop Layout for Amount Grid */
@media (min-width: 992px) {
    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.amount-option input[type="radio"] {
    display: none;
}

.amount-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.amount-option input[type="radio"]:checked + .amount-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #FFEFD5, #FFE4B5);
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
}

.amount-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.amount-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.amount-coin {
    font-size: 13px;
    color: var(--text-light);
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    background: white;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: var(--green-btn);
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    box-shadow: 0 3px 10px rgba(92, 184, 92, 0.3);
}

.payment-card:hover {
    border-color: var(--green-btn);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.payment-card i {
    color: var(--green-btn);
    margin-bottom: 10px;
}

.bank-info-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.bank-info-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-info-title i {
    color: #ffc107;
}

.bank-info-content .info-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.bank-note {
    margin-top: 10px;
    font-size: 13px;
    color: #d9534f;
    font-weight: 600;
}

.btn-submit-deposit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to bottom, var(--green-btn), #4cae4c);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.history-table {
    max-height: 400px;
    overflow-y: auto;
}

.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-row:last-child {
    border-bottom: none;
}

.history-time {
    font-size: 13px;
    color: var(--text-light);
}

.history-amount {
    font-weight: bold;
    color: var(--text-dark);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.mt-3 {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .deposit-grid {
        grid-template-columns: 1fr;
    }
    
    .amount-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-card {
        min-width: auto;
    }
}


/* ===== STYLES FOR OTHER PAGES (Header with navigation) ===== */

.ranking-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.ranking-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.ranking-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank-number {
    background: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.rank-number.gold {
    background: #ffd700;
    color: #333;
}

.rank-number.silver {
    background: #c0c0c0;
    color: #333;
}

.rank-number.bronze {
    background: #cd7f32;
    color: white;
}

.player-info {
    flex-grow: 1;
    margin-left: 1rem;
}

.player-name {
    font-weight: bold;
    color: var(--text-dark);
}

.player-stats {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-play {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-label {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.news-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.forum-post {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.chat-container {
    background: white;
    border-radius: 10px;
    height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.chat-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    max-width: 70%;
}

.message.own {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.message.other {
    background: #f8f9fa;
    color: var(--text-dark);
}

.login-form, .register-form {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 2rem auto;
}

.form-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .homepage-container {
        max-width: 100%;
    }
    
    .homepage-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .homepage-logo img {
        max-width: 140px;
    }
    
    .homepage-user-info {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .homepage-actions {
        gap: 6px;
    }
    
    .homepage-btn {
        padding: 7px 12px;
        font-size: 11px;
        gap: 4px;
    }
    
    .homepage-download .homepage-btn {
        padding: 9px 20px;
        font-size: 13px;
    }
    
    .menu-btn {
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .intro-heading {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .intro-text {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .game-screenshot {
        margin-top: 15px;
    }
    
    .game-screenshot img {
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .community-section {
        padding: 15px;
    }
    
    .community-boxes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .community-box {
        min-height: 150px;
        padding: 25px 15px;
    }
    
    .community-box-title {
        font-size: 15px;
    }
    
    .community-box-icon {
        width: 45px;
        height: 45px;
    }
    
    .community-box-icon i {
        font-size: 22px;
    }
    
    .ranking-section {
        padding: 15px;
    }
    
    .ranking-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .ranking-tabs {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .ranking-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .ranking-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ranking-box-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .ranking-list {
        max-height: 300px;
    }
    
    .ranking-list-item {
        padding: 10px 12px;
    }
    
    .rank-badge {
        width: 26px;
        height: 26px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .player-name-rank {
        font-size: 13px;
    }
    
    .player-stats-rank {
        font-size: 11px;
    }
    
    .player-score-rank {
        font-size: 12px;
    }
    
    .deposit-section {
        padding: 15px;
    }
    
    .deposit-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .deposit-box {
        margin-bottom: 12px;
    }
    
    .deposit-box-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .deposit-box-content {
        padding: 12px;
    }
    
    .amount-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .amount-card {
        padding: 12px;
    }
    
    .amount-value {
        font-size: 14px;
    }
    
    .amount-coin {
        font-size: 12px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-card {
        min-width: auto;
        padding: 15px;
    }
    
    .bank-info-box {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .bank-info-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .info-row {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .btn-submit-deposit {
        padding: 12px;
        font-size: 14px;
    }
    
    .news-list {
        gap: 10px;
    }
    
    .news-item {
        padding: 10px 12px;
    }
    
    .news-item-title {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .news-item-excerpt {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .news-category {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .news-date {
        font-size: 10px;
    }
    
    .news-detail-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .news-detail-meta {
        font-size: 12px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .news-detail-content {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .homepage-footer {
        padding: 15px;
    }
    
    .footer-notice,
    .footer-warning {
        font-size: 11px;
    }
    
    .modal-content-box {
        padding: 20px;
        max-width: 90%;
    }
    
    .modal-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .modal-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .homepage-card {
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .homepage-logo img {
        max-width: 120px;
    }
    
    .homepage-user-info {
        font-size: 11px;
    }
    
    .homepage-actions {
        gap: 5px;
    }
    
    .homepage-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .homepage-download .homepage-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    .menu-btn {
        padding: 7px 8px;
        font-size: 10px;
        gap: 3px;
    }
    
    .intro-heading {
        font-size: 14px;
    }
    
    .intro-text {
        font-size: 11px;
    }
    
    .community-section {
        padding: 12px;
    }
    
    .community-boxes {
        gap: 10px;
    }
    
    .community-box {
        min-height: 140px;
        padding: 20px 12px;
    }
    
    .community-box-title {
        font-size: 14px;
    }
    
    .community-box-icon {
        width: 40px;
        height: 40px;
    }
    
    .community-box-icon i {
        font-size: 20px;
    }
    
    .ranking-section {
        padding: 12px;
    }
    
    .ranking-title {
        font-size: 16px;
    }
    
    .ranking-tabs {
        gap: 6px;
    }
    
    .ranking-tab {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .ranking-content {
        gap: 10px;
    }
    
    .ranking-box-header {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .ranking-list {
        max-height: 250px;
    }
    
    .ranking-list-item {
        padding: 8px 10px;
    }
    
    .rank-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin-right: 8px;
    }
    
    .player-name-rank {
        font-size: 12px;
    }
    
    .player-stats-rank {
        font-size: 10px;
    }
    
    .player-score-rank {
        font-size: 11px;
    }
    
    .deposit-section {
        padding: 12px;
    }
    
    .deposit-grid {
        gap: 12px;
    }
    
    .deposit-box {
        margin-bottom: 10px;
    }
    
    .deposit-box-header {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .deposit-box-content {
        padding: 10px;
    }
    
    .amount-card {
        padding: 10px;
    }
    
    .amount-value {
        font-size: 13px;
    }
    
    .amount-coin {
        font-size: 11px;
    }
    
    .payment-card {
        padding: 12px;
    }
    
    .bank-info-box {
        padding: 10px;
    }
    
    .btn-submit-deposit {
        padding: 10px;
        font-size: 13px;
    }
    
    .news-item {
        padding: 8px 10px;
    }
    
    .news-item-title {
        font-size: 12px;
    }
    
    .news-item-excerpt {
        font-size: 10px;
    }
    
    .news-detail-title {
        font-size: 18px;
    }
    
    .news-detail-content {
        font-size: 13px;
    }
    
    .homepage-footer {
        padding: 12px;
    }
    
    .footer-notice,
    .footer-warning {
        font-size: 10px;
    }
    
    .modal-content-box {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 14px;
    }
    
    .modal-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}


/* Additional Styles for Other Pages */
.ranking-card {
    background: var(--bg-cream);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.ranking-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.ranking-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank-number {
    background: var(--accent-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-number.gold {
    background: #ffd700;
    color: #333;
}

.rank-number.silver {
    background: #c0c0c0;
    color: #333;
}

.rank-number.bronze {
    background: #cd7f32;
    color: white;
}

.player-info {
    flex-grow: 1;
    margin-left: 1rem;
}

.player-name {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 16px;
}

.player-stats {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 4px;
}

.player-score {
    text-align: right;
}

/* Forum Styles */
.forum-post {
    background: var(--bg-cream);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.forum-post:hover {
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-content {
    margin: 1rem 0;
    line-height: 1.6;
}

.post-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Card Styles */
.card {
    background: var(--bg-cream);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--green-btn);
    color: white;
}

.btn-success:hover {
    background: #4cae4c;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-outline-info {
    border: 2px solid #17a2b8;
    color: #17a2b8;
    background: transparent;
}

.btn-outline-info:hover {
    background: #17a2b8;
    color: white;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table-hover tbody tr:hover {
    background: rgba(139, 69, 19, 0.1);
}

/* Badge Styles */
.badge {
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

.bg-success {
    background: #28a745 !important;
}

.bg-warning {
    background: #ffc107 !important;
    color: #333 !important;
}

.bg-danger {
    background: #dc3545 !important;
}

.bg-secondary {
    background: #6c757d !important;
}

.bg-info {
    background: #17a2b8 !important;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--primary-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    background: rgba(139, 69, 19, 0.1);
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}

/* Pagination */
.pagination {
    gap: 5px;
}

.pagination .page-link {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1rem 2rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control, .form-select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Utility Classes */
.text-muted {
    color: var(--text-light) !important;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.w-100 { width: 100% !important; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-lg-3, .col-lg-9, .col-12 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666%; }
    .col-md-9 { width: 75%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-9 { width: 75%; }
}


/* Header Section for other pages */
.game-header {
    background: var(--bg-cream);
    padding: 20px 0;
    border-bottom: 3px solid var(--primary-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo-section {
    text-align: center;
    flex: 1;
}

.logo-section img {
    max-height: 80px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-welcome {
    color: var(--text-dark);
    font-size: 14px;
}

.user-welcome .username {
    color: var(--primary-color);
    font-weight: bold;
}

.user-welcome .balance {
    color: #d9534f;
    font-weight: bold;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-header {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-deposit {
    background: linear-gradient(to bottom, #d9534f, #c9302c);
    color: white;
}

.btn-history {
    background: linear-gradient(to bottom, #5bc0de, #46b8da);
    color: white;
}

.btn-admin {
    background: linear-gradient(to bottom, #f0ad4e, #ec971f);
    color: white;
}

.btn-download {
    background: linear-gradient(to bottom, var(--green-btn), #4cae4c);
    color: white;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Navigation Menu */
.main-nav {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    overflow: hidden;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.nav-menu li:last-child a {
    border-right: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
}

.nav-menu i {
    margin-right: 5px;
}

/* Content wrapper for other pages */
.content-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    background: transparent;
}

/* Responsive for header pages */
@media (max-width: 992px) {
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* QR Code Section */
.qr-code-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #ddd;
}

.qr-code-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.qr-code-container img {
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.qr-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.text-success {
    color: #28a745 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* News List Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    background: white;
    border-radius: 6px;
    padding: 12px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    border-left: 3px solid transparent;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border-left-color: var(--primary-color);
    text-decoration: none;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.news-category {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.news-date {
    color: var(--text-light);
    font-size: 11px;
}

.news-item-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.news-item-excerpt {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Desktop Layout for News */
@media (min-width: 768px) {
    .news-list {
        gap: 12px;
    }
    
    .news-item {
        padding: 14px 18px;
    }
    
    .news-item-title {
        font-size: 15px;
    }
    
    .news-item-excerpt {
        font-size: 13px;
    }
    
    .news-category {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .news-date {
        font-size: 12px;
    }
}

/* News Detail Page */
.news-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.news-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-detail-meta {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-meta i {
    color: var(--primary-color);
}

.news-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.news-detail-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Desktop Layout for News Detail */
@media (min-width: 768px) {
    .news-detail-title {
        font-size: 28px;
    }
    
    .news-detail-content {
        font-size: 16px;
        line-height: 1.9;
    }
}

/* Lightbox Modal */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #f0ad4e;
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    text-align: center;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Screenshot hover effect */
.game-screenshot img {
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.game-screenshot img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

.game-screenshot img:active {
    transform: scale(0.98);
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
}

/* ===== HIỆU ỨNG ĐẶC BIỆT CHO TRANG CHỦ ===== */

/* Animation fade in khi load trang */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5); }
}

/* Áp dụng animation cho các phần tử */
.homepage-card {
    animation: fadeInUp 0.6s ease-out;
}

.homepage-card:nth-child(1) {
    animation-delay: 0.1s;
}

.homepage-card:nth-child(2) {
    animation-delay: 0.2s;
}

.homepage-card:nth-child(3) {
    animation-delay: 0.3s;
}

.homepage-logo {
    animation: fadeIn 0.8s ease-out, pulse 2s ease-in-out infinite;
}

.homepage-user-info {
    animation: slideInLeft 0.6s ease-out;
}

.homepage-actions {
    animation: fadeInUp 0.7s ease-out;
}

.homepage-download {
    animation: bounce 2s ease-in-out infinite;
}

.homepage-menu {
    animation: fadeInUp 0.8s ease-out;
}

/* Hiệu ứng cho buttons */
.homepage-btn {
    position: relative;
    overflow: hidden;
}

.homepage-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.homepage-btn:hover::before {
    width: 300px;
    height: 300px;
}

.homepage-btn:active {
    transform: translateY(-2px) scale(0.95);
}

/* Hiệu ứng cho menu buttons */
.menu-btn {
    position: relative;
    overflow: hidden;
}

.menu-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s;
}

.menu-btn:hover::after {
    width: 100%;
}

/* Hiệu ứng cho cards */
.homepage-card {
    position: relative;
    transition: all 0.3s;
}

.homepage-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8B4513, #D2691E, #CD853F, #8B4513);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    background-size: 400%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.homepage-card:hover::before {
    opacity: 1;
}

/* Hiệu ứng cho ảnh game */
.game-screenshot img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.game-screenshot img::after {
    content: '🔍 Click để phóng to';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.game-screenshot img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    filter: brightness(1.1) contrast(1.1);
}

/* Hiệu ứng cho tin tức */
.news-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(139, 69, 19, 0.1), transparent);
    transition: width 0.3s;
    border-radius: 6px 0 0 6px;
}

.news-item:hover::before {
    width: 100%;
}

/* Hiệu ứng cho community boxes */
.community-box {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.community-box:nth-child(1) { animation-delay: 0.2s; }
.community-box:nth-child(2) { animation-delay: 0.3s; }
.community-box:nth-child(3) { animation-delay: 0.4s; }

.community-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s;
}

.community-box:hover::before {
    transform: scale(1);
}

.community-box-icon {
    transition: all 0.4s;
}

.community-box:hover .community-box-icon {
    transform: rotateY(360deg) scale(1.1);
}

/* Hiệu ứng cho ranking items */
.ranking-list-item {
    animation: slideInLeft 0.4s ease-out;
    animation-fill-mode: both;
}

.ranking-list-item:nth-child(1) { animation-delay: 0.1s; }
.ranking-list-item:nth-child(2) { animation-delay: 0.15s; }
.ranking-list-item:nth-child(3) { animation-delay: 0.2s; }
.ranking-list-item:nth-child(4) { animation-delay: 0.25s; }
.ranking-list-item:nth-child(5) { animation-delay: 0.3s; }

.rank-badge.gold {
    animation: glow 2s ease-in-out infinite;
}

.rank-badge.silver {
    animation: pulse 2s ease-in-out infinite;
}

.rank-badge.bronze {
    animation: pulse 2.5s ease-in-out infinite;
}

/* Hiệu ứng particles nền (tùy chọn) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Hiệu ứng cho footer */
.homepage-footer {
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

/* Hiệu ứng loading cho trang */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.homepage-container {
    animation: pageLoad 0.5s ease-out;
}

/* Hiệu ứng cho modal */
.modal-overlay {
    backdrop-filter: blur(5px);
}

.modal-content-box {
    animation: fadeInUp 0.4s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Disable animations on mobile for performance */
@media (max-width: 768px) {
    * {
        animation-duration: 0.3s !important;
    }
    
    .homepage-logo {
        animation: fadeIn 0.5s ease-out;
    }
    
    .homepage-download {
        animation: none;
    }
}

/* ===== HIỆU ỨNG LÁ RƠI ===== */

#falling-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -50px;
    font-size: 20px;
    opacity: 0.8;
    animation: fall linear infinite, rotate linear infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

@keyframes fall {
    0% {
        top: -50px;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(20px);
    }
    50% {
        transform: rotate(180deg) translateX(0);
    }
    75% {
        transform: rotate(270deg) translateX(-20px);
    }
    100% {
        transform: rotate(360deg) translateX(0);
    }
}

/* Tối ưu hiệu ứng lá rơi cho mobile */
@media (max-width: 768px) {
    .leaf {
        font-size: 15px;
        animation-duration: 6s !important;
    }
    
    /* Chỉ hiển thị 5 lá đầu tiên trên mobile */
    .leaf:nth-child(n+6) {
        display: none;
    }
}

/* Giảm số lượng lá trên tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .leaf:nth-child(n+8) {
        display: none;
    }
}

/* ===== LOGIN & REGISTER FORMS ===== */

.login-form-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.form-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(139, 69, 19, 0.1);
}

.form-footer p {
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.form-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Alert styles */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.alert i {
    font-size: 18px;
}

/* Responsive for forms */
@media (max-width: 768px) {
    .login-form-container {
        padding: 20px 15px;
    }
    
    .form-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-buttons {
        gap: 8px;
        margin-top: 15px;
    }
    
    .form-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .form-footer p {
        font-size: 13px;
    }
    
    .alert {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 15px 12px;
    }
    
    .form-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .form-label {
        font-size: 12px;
    }
    
    .form-input {
        padding: 9px 10px;
        font-size: 12px;
    }
    
    .form-footer p {
        font-size: 12px;
    }
}

/* ============================================================
   SEPAY AUTO DEPOSIT - Tab Switcher & UI Components
   ============================================================ */

/* Tab Switcher */
.deposit-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    background: rgba(0,0,0,0.05);
    padding: 6px;
    border-radius: 12px;
}

.deposit-tab-btn {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #666;
}

.deposit-tab-btn.active {
    background: #c0392b;
    color: white;
    box-shadow: 0 4px 12px rgba(192,57,43,0.35);
}

.deposit-tab-btn.sepay-tab.active {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}

.deposit-tab-btn.sepay-tab:not(.active):hover {
    background: rgba(243,156,18,0.15);
    color: #e67e22;
}

.badge-auto {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* SePay Banner */
.sepay-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.sepay-banner-icon {
    font-size: 28px;
    animation: bolt-flash 1.5s infinite;
    flex-shrink: 0;
}

@keyframes bolt-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sepay-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sepay-banner-text strong { font-size: 16px; font-weight: 700; }
.sepay-banner-text span { font-size: 13px; opacity: 0.9; }

/* Guide Box */
.sepay-guide-box .deposit-box-header {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* Warning & Promo */
.sepay-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}
.sepay-warning i { color: #e67e22; margin-right: 6px; }

.sepay-promo {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #155724;
    font-weight: 600;
}
.sepay-promo i { margin-right: 6px; }

/* QR Section */
.sepay-qr-section {
    margin-top: 15px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
    padding: 0 10px;
    overflow-x: hidden;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sepay-qr-header {
    font-size: 14px;
    font-weight: 600;
    color: #c0392b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sepay-qr-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
    max-width: 100%;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.sepay-qr-img {
    max-width: 100%;
    width: 220px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 3px solid #e74c3c;
    box-shadow: 0 8px 24px rgba(231,76,60,0.3);
    display: block;
    margin: 0 auto;
}

.sepay-qr-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 2px solid #e74c3c;
    animation: qr-pulse 2s infinite;
    pointer-events: none;
}

@keyframes qr-pulse {
    0% { opacity: 1; transform: scale(1); }
    70% { opacity: 0; transform: scale(1.08); }
    100% { opacity: 0; }
}

.sepay-bank-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
}

/* Status */
.sepay-status { margin-top: 14px; }

.sepay-status-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f39c12;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px dashed #f39c12;
}

/* Spinner */
.sepay-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid #ffc107;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Placeholder */
.sepay-qr-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
}

.sepay-qr-placeholder i {
    display: block;
    margin-bottom: 10px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.sepay-qr-placeholder p { font-size: 14px; margin: 0; }

/* Responsive SePay */
@media (max-width: 768px) {
    .deposit-tab-btn { font-size: 12px; padding: 10px 12px; }
    .sepay-banner { padding: 12px 14px; gap: 12px; }
    .sepay-banner-icon { font-size: 22px; }
    .sepay-banner-text strong { font-size: 14px; }
    .sepay-qr-img { 
        width: 200px;
        max-width: 90vw;
    }
    .sepay-qr-wrapper {
        width: 100%;
        max-width: 250px;
        margin: 0 auto 14px;
    }
    .deposit-box-content {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .sepay-qr-img { 
        width: 170px;
        max-width: 80vw;
    }
    .sepay-qr-header {
        font-size: 13px;
    }
    .sepay-bank-info {
        font-size: 12px;
        padding: 10px 12px;
    }
    .sepay-bank-info .info-row {
        font-size: 11px;
        padding: 5px 0;
    }
    .deposit-box {
        padding: 12px;
    }
    .deposit-box-header {
        font-size: 13px;
        padding: 8px 10px;
    }
    .deposit-box-content {
        padding: 10px 8px;
    }
    .sepay-qr-section {
        padding: 0 5px;
    }
}

@media (max-width: 360px) {
    .sepay-qr-img { 
        width: 150px;
        max-width: 75vw;
    }
    .deposit-tabs {
        gap: 6px;
        padding: 4px;
    }
    .deposit-tab-btn {
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
    }
    .sepay-bank-info {
        font-size: 11px;
        padding: 8px 10px;
    }
    .sepay-bank-info .info-row {
        font-size: 10px;
    }
}
