/* ========================================
   CUSTOM DESIGN SYSTEM - GAME WEBSITE
   ======================================== */

/* ============ COLOR SYSTEM ============ */
:root {
    /* Primary Colors */
    --primary-main: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #7c8ff0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --gradient-warning: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.18);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ============ UTILITY CLASSES ============ */

/* Card Hover Effects */
.card-hover {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-hover-subtle {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-hover-subtle:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
    color: white !important;
}

.bg-gradient-danger {
    background: var(--gradient-danger) !important;
    color: white !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
    color: white !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
    color: white !important;
}

/* Gradient Text */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Stagger Animation Delays */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

.animate-delay-400 {
    animation-delay: 400ms;
}

.animate-delay-500 {
    animation-delay: 500ms;
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Shadows */
.shadow-custom {
    box-shadow: var(--shadow-md);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-custom-xl {
    box-shadow: var(--shadow-xl);
}

/* Smooth Transitions */
.transition-all {
    transition: all var(--transition-base);
}

.transition-fast {
    transition: all var(--transition-fast);
}

.transition-slow {
    transition: all var(--transition-slow);
}

/* ============ COMPONENT STYLES ============ */

/* Hero Section */
.hero-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

/* Section Headers */
.section-header {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title i {
    font-size: 2rem;
}

.section-description {
    color: #6c757d;
    margin-top: var(--spacing-xs);
    font-size: 1rem;
}

/* Enhanced Cards */
.enhanced-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.enhanced-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-gradient-border {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Badges with Gradients */
.badge-gradient {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
}

.badge-gradient.success {
    background: var(--gradient-success);
}

.badge-gradient.danger {
    background: var(--gradient-danger);
}

.badge-gradient.warning {
    background: var(--gradient-warning);
}

.badge-gradient.info {
    background: var(--gradient-info);
}

/* Buttons Enhancement */
.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-gradient-success {
    background: var(--gradient-success);
}

.btn-gradient-danger {
    background: var(--gradient-danger);
}

.btn-gradient-warning {
    background: var(--gradient-warning);
}

.btn-gradient-info {
    background: var(--gradient-info);
}

/* Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.icon-box.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.icon-box.success {
    background: var(--gradient-success);
}

.icon-box.danger {
    background: var(--gradient-danger);
}

.icon-box.warning {
    background: var(--gradient-warning);
}

.icon-box.info {
    background: var(--gradient-info);
}

/* Loading Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .icon-box.large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ============ GIFTCODE SECTION STYLES ============ */
.giftcode-card {
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.giftcode-card:hover {
    border-color: var(--primary-main);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.giftcode-code {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    border: 2px dashed var(--primary-main);
}

/* ============ TOP RANKINGS STYLES ============ */
.podium-card {
    position: relative;
    overflow: visible;
}

.podium-medal {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.podium-medal.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
}

.podium-medal.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #4a4a4a;
}

.podium-medal.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a864 100%);
    color: #5c3a1e;
}

.rank-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.rank-change.up {
    background: #d4edda;
    color: #155724;
}

.rank-change.down {
    background: #f8d7da;
    color: #721c24;
}

/* ============ PROFILE STYLES ============ */
.stat-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid #e9ecef;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--primary-main);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ DOWNLOAD PAGE STYLES ============ */
.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.platform-icon.ios {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    color: white;
}

.platform-icon.android {
    background: linear-gradient(135deg, #3ddc84 0%, #07c160 100%);
    color: white;
}

.platform-icon.windows {
    background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    color: white;
}

.file-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: #6c757d;
}

/* ============ TOAST NOTIFICATION ============ */
.toast-custom {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.toast-custom.success {
    border-left: 4px solid #28a745;
}

.toast-custom.error {
    border-left: 4px solid #dc3545;
}

.toast-custom.info {
    border-left: 4px solid #17a2b8;
}

/* ============ STICKY HEADER ENHANCEMENT ============ */
.app-header.sticky {
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

/* ============ LOGO RESPONSIVE SIZING ============ */
.navbar-brand img {
    max-height: 55px;
    width: auto;
    height: auto;
}

.brand-logo img {
    max-width: 180px;
    height: auto;
}

/* ============ MOBILE RESPONSIVE STYLES ============ */

/* Tablet & Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .mobile-card-stack {
        margin-bottom: var(--spacing-md);
    }

    .enhanced-card {
        margin-bottom: var(--spacing-md);
    }

    /* Container adjustments */
    .container-fluid,
    .container-sm {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Card padding reduction */
    .card-body {
        padding: 1.25rem !important;
    }

    /* Stat cards responsive */
    .stat-card {
        margin-bottom: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Logo responsive */
    .navbar-brand img {
        max-height: 48px;
    }
}

/* Small Tablet/Large Phone (max-width: 576px) */
@media (max-width: 576px) {

    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    /* Hero section mobile */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Section headers */
    .section-title {
        font-size: 1.25rem;
    }

    .section-title i {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    /* Buttons - Touch friendly (min 44x44px) */
    .btn {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    .btn-lg {
        padding: 0.85rem 1.25rem;
        min-height: 48px;
        font-size: 1rem;
    }

    /* Full-width buttons on mobile */
    .btn-gradient,
    .btn-gradient-primary,
    .btn-gradient-success,
    .btn-gradient-danger,
    .btn-gradient-warning,
    .btn-gradient-info {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Cards full width */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    /* Giftcode cards */
    .giftcode-card {
        margin-bottom: 1rem;
    }

    .giftcode-code {
        font-size: 1rem;
        padding: 1rem;
        letter-spacing: 1px;
    }

    /* Icon boxes smaller */
    .icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .icon-box.large {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    /* Platform icons */
    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Badges */
    .badge-gradient {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Spacing reduction */
    .hero-section {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    /* Podium medals */
    .podium-medal {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        top: -15px;
        right: -15px;
    }

    /* Navigation pills */
    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Download page adjustments */
    .file-info-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Logo responsive */
    .navbar-brand img {
        max-height: 42px;
    }

    .brand-logo img {
        max-width: 150px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

    /* Even smaller typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Tighter spacing */
    .container-fluid,
    .container-sm {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card-body {
        padding: 0.875rem !important;
    }

    /* Smaller icons */
    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .icon-box.large {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }

    .section-title i {
        font-size: 1.35rem;
    }

    /* Giftcode adjustments */
    .giftcode-code {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    /* Reduce badge size */
    .badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }

    /* Navigation */
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* Flex wrap adjustments */
    .d-flex.flex-wrap {
        gap: 0.5rem !important;
    }

    /* Logo responsive */
    .navbar-brand img {
        max-height: 38px;
    }
}

/* Extra Small Mobile (max-width: 375px) */
@media (max-width: 375px) {

    /* Ultra compact */
    .hero-title {
        font-size: 1.35rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    /* Stack everything */
    .row.align-items-center>div {
        text-align: center !important;
    }

    /* Button adjustments */
    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    /* Giftcode */
    .giftcode-code {
        font-size: 0.875rem;
        padding: 0.75rem;
        letter-spacing: 0.5px;
    }

    /* Logo responsive */
    .navbar-brand img {
        max-height: 35px;
    }
}

/* ============ UTILITY CLASSES FOR RESPONSIVE ============ */

/* Hide on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Touch-friendly target size */
.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prevent horizontal scroll */
body,
html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.875rem;
    }
}

/* Text wrapping */
@media (max-width: 576px) {
    .text-nowrap {
        white-space: normal !important;
    }

    /* Force wrap long words */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ============ MOBILE QUICK MENU STYLES - GAME STYLE ============ */

/* Auth Buttons - Style game */
.btn-game-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #f5e6c8;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #b8860b 0%, #8b6508 50%, #6b4c05 100%);
    border: 3px solid #f5e6c8;
    border-radius: 8px;
    box-shadow:
        0 4px 0 #4a3500,
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 10px rgba(245, 230, 200, 0.3);
    transition: all 0.2s ease;
}

.btn-game-auth:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow:
        0 6px 0 #4a3500,
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 15px rgba(245, 230, 200, 0.5);
}

.btn-game-auth:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #4a3500,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-game-auth.btn-register {
    background: linear-gradient(180deg, #c44536 0%, #a33327 50%, #822118 100%);
}

/* Download Buttons - Style game với icon */
.btn-game-download {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #5c3a1e;
    text-decoration: none;
    background: linear-gradient(180deg, #f7d794 0%, #e6b85c 30%, #d4a84a 70%, #c49638 100%);
    border: 3px solid #8b5a2b;
    border-radius: 10px;
    box-shadow:
        0 4px 0 #5c3a1e,
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.btn-game-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.btn-game-download:hover {
    transform: translateY(-2px);
    color: #3d2510;
    box-shadow:
        0 6px 0 #5c3a1e,
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(247, 215, 148, 0.4);
}

.btn-game-download:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #5c3a1e,
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.btn-game-download .download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #fff8e7 0%, #f5e6c8 100%);
    border-right: 2px solid #8b5a2b;
    font-size: 1.4rem;
    color: #5c3a1e;
}

.btn-game-download .download-label {
    flex: 1;
    padding: 0 16px;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* Navigation Buttons - Style game */
.btn-game-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5e6c8;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #c44536 0%, #a33327 50%, #822118 100%);
    border: 3px solid #f5e6c8;
    border-radius: 8px;
    box-shadow:
        0 3px 0 #4a1510,
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 8px rgba(196, 69, 54, 0.3);
    transition: all 0.2s ease;
}

.btn-game-nav:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow:
        0 5px 0 #4a1510,
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 12px rgba(196, 69, 54, 0.5);
}

.btn-game-nav:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 #4a1510,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-game-nav.btn-rank {
    background: linear-gradient(180deg, #f0c419 0%, #e0a800 50%, #c49600 100%);
    color: #5c3a1e;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #8b5a2b;
    box-shadow:
        0 3px 0 #5c3a1e,
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-game-nav.btn-rank:hover {
    color: #3d2510;
    box-shadow:
        0 5px 0 #5c3a1e,
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 12px rgba(240, 196, 25, 0.5);
}

/* Download section mobile styling */
.download-section-mobile {
    padding: 0 5px;
}

/* Quick nav mobile styling */
.quick-nav-mobile {
    padding: 0 5px;
}

/* User info mobile styling */
.user-info-mobile {
    box-shadow:
        0 4px 0 #c45a1a,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for mobile menu */
@media (max-width: 480px) {
    .btn-game-auth {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-game-download .download-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .btn-game-download .download-label {
        font-size: 0.9rem;
        padding: 0 12px;
    }

    .btn-game-nav {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Game Section Cards - Các card cho từng mục */
.game-section-card {
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.section-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.user-info-box {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow:
        0 3px 0 #c45a1a,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.fs-7 {
    font-size: 0.8rem !important;
}

/* Navigation button vertical layout */
.btn-game-nav.d-block {
    padding: 12px 8px;
}

/* ============ MENU GRID STYLES ============ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-decoration: none;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #adb5bd;
}

.menu-item:active {
    transform: translateY(0);
}

.menu-item .menu-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: white !important;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.menu-item .menu-icon i {
    color: white !important;
    -webkit-text-fill-color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
}

.menu-item .menu-icon.text-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 3px 8px rgba(17, 153, 142, 0.3);
}

.menu-item .menu-icon.text-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    box-shadow: 0 3px 8px rgba(235, 51, 73, 0.3);
}

.menu-item .menu-icon.text-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    box-shadow: 0 3px 8px rgba(247, 151, 30, 0.3);
}

.menu-item .menu-icon.text-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 3px 8px rgba(79, 172, 254, 0.3);
}

.menu-item .menu-icon.text-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.menu-item .menu-icon.text-dark {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.menu-item .menu-icon.text-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 3px 8px rgba(155, 89, 182, 0.3);
}

.menu-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 360px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .menu-item {
        padding: 12px 6px;
    }

    .menu-item .menu-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .menu-item span {
        font-size: 0.7rem;
    }
}