/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(8px);
}

.auth-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: authFadeIn 0.3s ease-out forwards;
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal-content {
    background: rgba(30, 20, 50, 0.95);
    border: 1px solid var(--color-gold);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-20px);
    animation: authSlideUp 0.3s ease-out forwards;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes authSlideUp {
    to { transform: translateY(0); }
}

.auth-modal-content h3 {
    text-transform: uppercase;
    white-space: nowrap;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
}

.auth-modal-close {
    position: absolute;
    top: 5px;
    right: 12px;
    color: #ccc;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 100;
}

.auth-modal-close:hover {
    color: var(--color-gold);
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.auth-form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.auth-btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b38b22 100%);
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Dropdown Menu Styles for User */
.nav-item.dropdown .dropdown-menu,
#userMenu .dropdown-menu {
    background: rgba(18, 12, 32, 0.98);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 99999 !important;
}

.nav-item.dropdown .dropdown-menu .dropdown-item {
    color: #fff;
    transition: all 0.2s ease;
}

.nav-item.dropdown .dropdown-menu .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}

/* Custom Notice Modal (Bảng Thông Báo Custom) */
.custom-notice-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 5, 22, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-notice-modal.active {
    display: flex;
    animation: noticeFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes noticeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-notice-content {
    background: linear-gradient(145deg, rgba(28, 18, 48, 0.96) 0%, rgba(14, 9, 28, 0.98) 100%);
    border: 1px solid var(--color-gold, #d4af37);
    border-radius: 20px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.05);
    text-align: center;
    color: #fff;
}

.custom-notice-close {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #a09eb0;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.custom-notice-close:hover {
    color: var(--color-gold, #d4af37);
    transform: scale(1.1);
}

.custom-notice-icon-wrapper {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.custom-notice-icon-wrapper i {
    font-size: 36px;
    color: var(--color-gold, #d4af37);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.custom-notice-title {
    font-family: var(--font-heading, "Times New Roman", serif);
    color: var(--color-gold, #d4af37);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.custom-notice-message {
    color: #d1cfdf;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-notice-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-notice-primary {
    background: linear-gradient(135deg, var(--color-gold, #d4af37) 0%, #b38b22 100%);
    border: none;
    color: #0d0818;
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 130px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-notice-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-notice-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-notice-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

