/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Root Variables */
:root {
    /* Màu sắc chính */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #64748b;
    
    /* Màu nền */
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    --card-bg: #ffffff;
    
    /* Text colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #f8fafc;
    
    /* Border & Shadow */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    /* Font families */
    --font-sans: 'Be Vietnam Pro', sans-serif;
    --font-heading: 'Inter', sans-serif;
  }

/* Base Styles */
body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navbar Styles */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: none !important; /* Ngăn chặn mọi transform */
    transition: none !important; /* Tắt mọi transition */
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Active state với gradient border */
.nav-link.active {
    background: rgba(79, 70, 229, 0.15);
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* Dropdown Styles */
.dropdown-menu {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    animation: slideIn 0.3s ease;
    position: absolute;
    z-index: 9999;
    min-width: 200px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(3px);
}

.dropdown-item:hover i {
    transform: scale(1.1) rotate(-5deg);
}

/* Danger Button */
.dropdown-item.text-danger {
    color: #ef4444 !important;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Username Display */
.nav-link.dropdown-toggle {
    font-weight: 600;
}

/* Auth Links */
.auth-link {
    background: rgba(228, 215, 215, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem !important;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Divider */
.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Card & Stats Styles */
.stat-card {
    background: var(--card-bg);
}

.stat-title {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.stat-value {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Profile Card Styles */
.profile-card {
    background: var(--card-bg);
    border-radius: 1rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-cover {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hover effect */
.profile-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Game Stats */
.game-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

.game-stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Form Elements */
.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    background: var(--input-bg);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}


/* Navigation Link Styles */
.nav-item .nav-link {
    position: relative; 
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Hover Effect */
.nav-item .nav-link:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

/* Active State */
.nav-item .nav-link.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

/* Icon Animation */
.nav-item .nav-link i {
    transition: transform 0.3s ease;
}

.nav-item .nav-link:hover i {
    transform: scale(1.2);
}

/* Ripple Effect */
.nav-item .nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--primary) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.nav-item .nav-link:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Auth Links Style */
.auth-link {
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.auth-link:hover {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.auth-link i {
    transition: transform 0.3s ease;
}

.auth-link:hover i {
    transform: translateX(3px);
}

/* Ripple effect */
.auth-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--primary) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.auth-link:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Dropdown Animation */
.dropdown-menu {
    animation: slideIn 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Navigation Indicator */
.nav-item .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-item .nav-link.active:hover::before {
    width: 80%;
}

/* Custom Alert Styles */
.auth-alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.3s ease;
}

.auth-alert-error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.auth-alert-success {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.auth-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auth-alert-content {
    flex-grow: 1;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Password Toggle Style */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #4a5056;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 140px 0 100px;
    overflow: hidden;
    background-image: url('../images/backgrounds/1.webp');
    background-color: var(--bg-dark);
    background-size: cover;
    min-height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Cải thiện hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: rgba(202, 170, 170, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #ffd700;
    margin-right: 12px;
    font-size: 18px;
}

/* Typography cải tiến */
.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(45deg, #60a5fa, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Stats cải tiến */
.hero-stats {
    display: flex;
    gap: 30px;  
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons cải tiến */
.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-glow {
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        gap: 40px;
        padding: 20px;
    }
    
    .stat-value {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Features Section Styles */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper i {
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-benefits {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.benefit-item i {
    color: #10b981;
    font-size: 14px;
}

/* Background colors for icons */
.bg-primary { background: linear-gradient(45deg, #3b82f6, #2563eb); }
.bg-danger { background: linear-gradient(45deg, #ef4444, #dc2626); }
.bg-success { background: linear-gradient(45deg, #10b981, #059669); }
.bg-info { background: linear-gradient(45deg, #6366f1, #4f46e5); }

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: white;
}

/* Dialog Styles */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-dialog {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.custom-dialog-overlay.active .custom-dialog {
    transform: translateY(0);
}

.dialog-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.dialog-icon i {
    font-size: 28px;
    color: white;
}

/* Dialog Types */
.dialog-icon.warning {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.dialog-icon.danger {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.dialog-icon.success {
    background: linear-gradient(45deg, #10b981, #059669);
}

.dialog-icon.info {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
}

/* Dialog Buttons */
.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.dialog-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 120px;
    border: none;
    cursor: pointer;
}

.dialog-btn-cancel {
    background: #f1f5f9;
    color: var(--text-secondary);
}

.dialog-btn-cancel:hover {
    background: #e2e8f0;
}

.dialog-btn-confirm {
    background: var(--primary);
    color: white;
}

.dialog-btn-confirm:hover {
    background: var(--primary-dark);
}

.dialog-btn-danger {
    background: #dc2626;
    color: white;
}

.dialog-btn-danger:hover {
    background: #b91c1c;
}

.dialog-btn-warning {
    background: #ea580c;
    color: white;
}

.dialog-btn-warning:hover {
    background: #c2410c;
}

.dialog-btn-success {
    background: #16a34a;
    color: white;
}

.dialog-btn-success:hover {
    background: #15803d;
}

.dialog-btn-info {
    background: #2563eb;
    color: white;
}

.dialog-btn-info:hover {
    background: #1d4ed8;
}

/* Footer Styles */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-top: 4rem;
}

.footer-top {
    padding-bottom: 3rem;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info p {
    color: #94a3b8;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 0.75rem;
    font-size: 1rem;
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-contact {
    margin-top: 2rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.footer-contact-item i {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
    }
    
    .footer-info, .footer-links, .social-links {
        margin-bottom: 2rem;
    }
}

/* Section Styles */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #12f7ff;
}

.section-description {
    font-size: 18px;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 48px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Auth Pages Styles */
.auth-wrapper {
    min-height: 100vh;
    padding: 120px 0 60px;
    background-color: var(--bg-dark);
    background-image: url('../images/backgrounds/3.webp');
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 150%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% -50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(253, 247, 247, 0.1);
    padding: 25px;
}

.auth-card .card-header h3 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.auth-form-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.auth-form-label i {
    color: var(--primary-light);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.auth-form-control {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 16px;
    height: auto;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.auth-form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    color: white !important;
}

.auth-btn {
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

/* Deposit Page Styles */
.deposit-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.deposit-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
}

.deposit-card .card-header h3 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-card .card-header h3 i {
    color: #ffd700;
    margin-right: 12px;
    font-size: 28px;
}

.deposit-form-control {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255) !important;
    padding: 16px;
    height: auto;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.deposit-form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.deposit-form-control::placeholder {
    color: rgba(255, 255, 255, 0.592);
}

.input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 0 20px;
    border-radius: 0 12px 12px 0;
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.form-text i {
    color: #10b981;
}

.deposit-btn {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 10px;
}

.deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Profile Card New */

.profile-card-new {
    position: relative;
    overflow: hidden;
}

.profile-banner {
    height: 120px;
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    position: relative;
    overflow: hidden;
}

.profile-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.profile-content {
    padding: 0 24px 24px;
    margin-top: -50px;
    position: relative;
}

.profile-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-status.online {
    background: #10b981;
}

.profile-info {
    text-align: center;
    margin-top: 20px;
}

.profile-info h4 {
    color: #fff;
    margin: 0;
    font-size: 24px;
}

.level-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 20px;
    color: var(--primary-light);
    font-size: 14px;
    margin-top: 8px;
}

.profile-exp-bar {
    margin: 24px 0;
}

.exp-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.exp-fill {
    height: 100%;
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.exp-text {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Character Info Card */
.character-card {
    height: 100%;
    padding: 25px;
}

.character-card .card-header {
    padding: 0 0 20px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.character-card .card-header h5 {
    color: #fff;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 20px;
    color: white;
}

/* Gradient backgrounds cho các icon */
.user-gradient { background: linear-gradient(45deg, #3b82f6, #1d4ed8); }
.level-gradient { background: linear-gradient(45deg, #ffd700, #ff9500); }
.gender-gradient { background: linear-gradient(45deg, #ec4899, #be185d); }
.birthday-gradient { background: linear-gradient(45deg, #f43f5e, #be123c); }
.drug-gradient { 
    font-size: 40px;
    background: linear-gradient(45deg, #334243, #0b2628); 
}
.dirty-money-gradient { background: linear-gradient(45deg, #f43f3f, #f01515); }
.piece-gradient { background: linear-gradient(45deg, #a14b9e, rgb(131, 13, 42)); }
.wood-normal-gradient { background: linear-gradient(45deg, #8d8d8d, rgb(63, 63, 63)); }
.wood-good-gradient { background: linear-gradient(45deg, #77ff92, rgb(9, 255, 62)); }
.wood-precious-gradient { background: linear-gradient(45deg, #ff51a8, rgb(255, 11, 174)); }
.wood-rare-gradient { background: linear-gradient(45deg, #ecff43, rgb(217, 249, 6)); }

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 6px;
}

.info-content span {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-container {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 140px 0 100px;
    overflow: hidden;
    background-image: url('../images/backgrounds/4.webp');
    background-color: var(--bg-dark);
    background-size: cover;
    min-height: 100vh;
    z-index: 1;
}

/* Profile Stats Cards */
.stat-card-new {
    padding: 25px;
    transition: all 0.3s ease;
}

.stat-card-new:hover {
    transform: translateY(-5px);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.coin-gradient { background: linear-gradient(45deg, #ffd700, #ffa500); }
.money-gradient { background: linear-gradient(45deg, #10b981, #059669); }
.bank-gradient { background: linear-gradient(45deg, #3b82f6, #1d4ed8); }
.time-gradient { background: linear-gradient(45deg, #8b5cf6, #6d28d9); }

.stat-icon-wrapper i {
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.stat-info .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 5px 0 0;
}

/* Profile Card Redesign */
.profile-card-new {
    padding: 0;
}

.profile-banner {
    height: 140px;
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    position: relative;
}

.profile-banner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.profile-content {
    padding: 20px;
    text-align: center;
}

.profile-avatar-wrapper {
    margin-top: -50px;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    border: 0px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar i {
    position: relative;
    right: -10px;
    font-size: 55px;
    color: white;
}

.profile-online-status {
    position: relative;
    top: 40px;
    right: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: glow 1.5s infinite alternate;
}

.level-badge {
    background: rgba(79, 70, 229, 0.15);
    color: #818cf8;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

/* EXP Bar */
.profile-exp-bar {
    margin: 25px 0;
    padding: 0 10px;
}

.exp-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.exp-fill {
    height: 100%;
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.exp-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

/* Character Info Card */
.character-card {
    height: 100%;
    padding: 25px;
}

.character-card .card-header {
    padding: 0 0 20px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.character-card .card-header h5 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Đảm bảo khoảng cách cho content bên dưới navbar */
.page-wrapper {
    padding-top: 80px; /* Điều chỉnh theo chiều cao của navbar */
}

/* Shop Styles */
.shop-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-color: #0f172a;
    background-image: url('../images/backgrounds/5.webp');
    min-height: 100vh;
    padding: 2rem 0;
}

.shop-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.shop-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.shop-filter-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shop-filter-btn:hover,
.shop-filter-btn.active {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Shop Item Card */
.shop-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.shop-item-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.shop-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-item:hover .shop-item-image img {
    transform: scale(1.05);
}

.shop-item-content {
    padding: 1.5rem;
}

.shop-item-content h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: 700;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* VIP Badge Styles */
.vip-badge {
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.vip-type-1 { background: linear-gradient(45deg, #b45309, #92400e); }
.vip-type-2 { background: linear-gradient(45deg, #94a3b8, #64748b); }
.vip-type-3 { background: linear-gradient(45deg, #fbbf24, #d97706); }
.vip-type-4 { background: linear-gradient(45deg, #e5e7eb, #9ca3af); }

/* Buy Button */
.btn-buy {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* News Styles */
.news-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
}

.news-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-header .header-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-header .header-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-item {
    background: rgba(31, 27, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.news-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    color: #fff;
    text-align: center;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.date-month {
    font-size: 0.8rem;
    opacity: 0.8;
}

.news-details {
    padding: 1.5rem;
}

.news-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    color: #818cf8;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.read-more {
    color: #818cf8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .page-link {
        padding: 0.6rem 1rem;
        min-width: 40px;
    }
}

/* Dialog Icons */
.dialog-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.dialog-icon i {
    font-size: 28px;
    color: white;
}

/* Icon colors */
.dialog-icon.warning {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.dialog-icon.danger {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.dialog-icon.success {
    background: linear-gradient(45deg, #10b981, #059669);
}

.dialog-icon.info {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
}

/* Button styles */
.dialog-btn-warning {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.dialog-btn-danger {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.dialog-btn-success {
    background: linear-gradient(45deg, #10b981, #059669);
}

.dialog-btn-info {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.text-muted {
    color: #94a3b8 !important;
}

.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
}

.error-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
}

.error-animation {
    position: relative;
    height: 200px;
    margin-bottom: 2rem;
}

.error-code {
    font-size: 150px;
    font-weight: 800;
    background: linear-gradient(45deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    margin-top: 20px;
    -webkit-text-fill-color: transparent;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.2);
    animation: floatText 3s ease-in-out infinite;
}

.error-ghost {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: rgba(255,255,255,0.8);
    animation: ghost 3s ease-in-out infinite;
}

@keyframes ghost {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.error-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.error-message {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-suggestions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.6);
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

.suggestion-item i {
    font-size: 1.2rem;
    color: #818cf8;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    border: none;
}

.btn-outline-light {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translate }
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

input[type="date"] {
    color-scheme: dark;
}

/* Đảm bảo dropdown-toggle hoạt động đúng */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Điều chỉnh glass-effect để không ảnh hưởng đến dropdown */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Điều chỉnh dashboard-container */
.dashboard-container {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* Đảm bảo navbar và dropdown luôn ở trên cùng */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000 !important; /* Tăng z-index lên cao hơn */
}

/* Điều chỉnh dropdown menu trong profile.php */
.navbar .nav-item.dropdown {
    position: static; /* Thay đổi thành static */
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10001 !important; /* Cao hơn navbar */
    min-width: 200px;
    margin-top: 0.5rem;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Đảm bảo dropdown-menu hiển thị khi hover hoặc show */
.navbar .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Điều chỉnh profile-card để không ảnh hưởng đến dropdown */
.profile-card-new {
    position: relative;
    z-index: 1;
}

/* Điều chỉnh các thành phần khác trong profile */
.stat-card-new,
.character-card {
    position: relative;
    z-index: 1;
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    max-height: calc(100vh - 40px);
    overflow: visible; /* Change from auto to visible */
    pointer-events: none; /* Allow clicking through container */
}

/* Alert Item */
.custom-alert {
    pointer-events: auto; /* Re-enable pointer events for alerts */
    position: relative;
    top: 90px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hide last margin */
.custom-alert:last-child {
    margin-bottom: 0;
}

/* Show animation */
.custom-alert.show {
    animation: slideIn 0.3s ease forwards;
}

/* Hide animation */
.custom-alert.hide {
    animation: slideOut 0.3s ease forwards;
}

/* Alert Types */
.custom-alert.success {
    background: rgba(46, 213, 115, 0.15);
    border-color: rgba(46, 213, 115, 0.3);
}

.custom-alert.error {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
}

.custom-alert.warning {
    background: rgba(255, 168, 1, 0.15);
    border-color: rgba(255, 168, 1, 0.3);
}

.custom-alert.info {
    background: rgba(84, 160, 255, 0.15);
    border-color: rgba(84, 160, 255, 0.3);
}

/* Alert Icon */
.alert-icon {
    font-size: 1.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success .alert-icon { color: #2ed573; }
.error .alert-icon { color: #ff4757; }
.warning .alert-icon { color: #ffa801; }
.info .alert-icon { color: #54a0ff; }

/* Alert Content */
.alert-content {
    flex: 1;
}

.alert-message {
    color: #fff;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Close Button */
.alert-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.alert-close:hover {
    color: #fff;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.custom-alert.hide {
    animation: slideOut 0.3s ease forwards;
}

/* Blog Post Styles */
.blog-post {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Section */
.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

/* Meta Information */
.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary);
}

.meta-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Featured Image */
.blog-featured-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

/* Content */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 2rem 0;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2,
.blog-content h3 {
    color: #fff;
    margin: 2rem 0 1rem;
}

/* Update Info */
.blog-update-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta-divider {
        display: none;
    }
}

.server-online-status {
    position: relative;
    top: 0px;
    right: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: glow 1.5s infinite alternate;
}

/* Inventory Container */
.inventory-container {
    background-color: var(--bg-dark);
    background-image: url('../images/backgrounds/6.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Header */
.inventory-header {
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
}

.inventory-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Filters */
.inventory-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.inventory-filter-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.inventory-filter-btn:hover,
.inventory-filter-btn.active {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Inventory Items */
.inventory-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.inventory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.inventory-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.inventory-item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5));
}

.inventory-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.inventory-item:hover .inventory-item-image img {
    transform: scale(1.05);
}

.inventory-item-content {
    padding: 1.5rem;
    color: #fff;
}

.inventory-item-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.inventory-item-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 3rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .inventory-filters {
        flex-direction: column;
    }
    
    .inventory-filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .inventory-header h2 {
        font-size: 2rem;
    }
}

/* Settings Page Styles */
.settings-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings-card .card-header {
    padding: 0 0 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-card .card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.st-info-grid {
    display: grid;
    gap: 1.5rem;
}

.st-info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-info-item label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.st-info-item .st-info-value {
    color: #ffffff;
    font-size: 1.1rem;
    word-break: break-all;
}

.st-section-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

/* Add to style.css */
.password-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.password-card .card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0;
    border: none;
}

.password-card .card-header h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.password-form-group {
    position: relative;
    margin-bottom: 2rem;
}

.password-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-label i {
    color: var(--primary-light);
}

.password-input-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.c-btn-password {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.c-btn-save {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
}

.c-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.c-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.c-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-weak { background: #ef4444; width: 33.33%; }
.strength-medium { background: #f59e0b; width: 66.66%; }
.strength-strong { background: #10b981; width: 100%; }

.resend-verify {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resend-verify:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.auth-alert a {
    color: inherit;
    text-decoration: underline;
}

.auth-alert a:hover {
    color: var(--primary-light);
}