/* ============================================ */
/* ACCOUNT BOTTOM SHEET - COMPLETE COMPONENT CSS */
/* ============================================ */

/* Main Sheet Container */
.account-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    border-radius: 32px 32px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(245, 166, 35, 0.2);
}

.account-bottom-sheet.open {
    transform: translateY(0);
}

/* Overlay */
.account-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10001;
}

.account-sheet-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Header */
.account-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    border-radius: 32px 32px 0 0;
    border-bottom: 1px solid rgba(245, 166, 35, 0.3);
}

.account-sheet-header h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.account-sheet-header h3 i {
    color: #F5A623;
    margin-right: 8px;
}

/* Close Button */
.account-sheet-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: #94A3B8;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-sheet-close:active {
    background: rgba(230, 57, 70, 0.2);
    color: #E63946;
    transform: rotate(90deg);
}

/* Content Area */
.account-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Scrollbar - Scoped */
.account-sheet-content::-webkit-scrollbar {
    width: 4px;
}

.account-sheet-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.account-sheet-content::-webkit-scrollbar-thumb {
    background: #F5A623;
    border-radius: 10px;
}

/* ============================================ */
/* PROFILE SECTION - SCOPED */
/* ============================================ */

.account-bottom-sheet .profile-section {
    text-align: center;
    padding: 32px 24px 24px 24px;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    border-bottom: 1px solid rgba(245, 166, 35, 0.15);
}

.account-bottom-sheet .profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F5A623, #E8871E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.account-bottom-sheet .profile-avatar:active {
    transform: scale(1.05);
}

.account-bottom-sheet .profile-avatar i {
    font-size: 2.5rem;
    color: white;
}

.account-bottom-sheet .profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #E2E8F0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.account-bottom-sheet .profile-email {
    font-size: 0.85rem;
    color: #94A3B8;
    word-break: break-all;
}

/* ============================================ */
/* MENU ITEMS - SCOPED */
/* ============================================ */

.account-bottom-sheet .menu-items {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 20px 16px;
    background: #0F2B1F;
}

.account-bottom-sheet .menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 14px;
    margin-bottom: 6px;
    border: 1px solid rgba(245, 166, 35, 0.08);
}

.account-bottom-sheet .menu-item:active {
    transform: scale(0.98);
    background: rgba(245, 166, 35, 0.1);
    border-color: rgba(245, 166, 35, 0.2);
}

.account-bottom-sheet .menu-item i:first-child {
    width: 24px;
    font-size: 1.1rem;
    color: #F5A623;
    transition: transform 0.2s;
}

.account-bottom-sheet .menu-item span {
    flex: 1;
    font-weight: 500;
    color: #E2E8F0;
    font-size: 0.95rem;
}

.account-bottom-sheet .menu-item .arrow {
    color: #4A5568;
    font-size: 0.8rem;
    transition: all 0.2s;
}

/* Logout Item */
.account-bottom-sheet .logout-item {
    margin-top: 12px;
    border-top: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: 14px;
}

.account-bottom-sheet .logout-item i:first-child {
    color: #E63946;
}

.account-bottom-sheet .logout-item span {
    color: #E63946;
}

.account-bottom-sheet .logout-item:active {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
}

/* ============================================ */
/* AUTH BUTTONS SECTION - SCOPED (Logged Out) */
/* ============================================ */

.account-bottom-sheet .auth-buttons-section {
    text-align: center;
    padding: 48px 24px 60px 24px;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
}

/* Welcome Message - SCOPED with !important to override conflicts */
.account-bottom-sheet .welcome-message {
    text-align: center !important;
    margin-bottom: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.account-bottom-sheet .welcome-message i {
    font-size: 3.5rem;
    color: #F5A623;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(245, 166, 35, 0.3));
}

.account-bottom-sheet .welcome-message h4 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #E2E8F0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.account-bottom-sheet .welcome-message p {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.5;
}

/* Auth Buttons Container */
.account-bottom-sheet .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

/* Login Button */
.account-bottom-sheet .btn-login-sheet {
    background: linear-gradient(135deg, #F5A623, #E8871E);
    color: #1B4D3E;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.account-bottom-sheet .btn-login-sheet:active {
    transform: scale(0.98);
}

/* Register Button */
.account-bottom-sheet .btn-register-sheet {
    background: rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.account-bottom-sheet .btn-register-sheet:active {
    background: rgba(245, 166, 35, 0.1);
    color: #F5A623;
    transform: scale(0.98);
}

/* Loading State */
.account-bottom-sheet .loading-account {
    text-align: center;
    padding: 60px 20px 80px 20px;
    color: #94A3B8;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
}

.account-bottom-sheet .loading-account i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: inline-block;
    color: #F5A623;
}

/* ============================================ */
/* MOBILE RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
    .account-bottom-sheet {
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
    }
    
    .account-sheet-header {
        padding: 16px 20px;
    }
    
    .account-sheet-header h3 {
        font-size: 1.1rem;
    }
    
    .account-bottom-sheet .profile-section {
        padding: 24px 20px 20px 20px;
    }
    
    .account-bottom-sheet .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .account-bottom-sheet .profile-avatar i {
        font-size: 2rem;
    }
    
    .account-bottom-sheet .profile-name {
        font-size: 1.1rem;
    }
    
    .account-bottom-sheet .profile-email {
        font-size: 0.8rem;
    }
    
    .account-bottom-sheet .menu-items {
        padding: 8px 16px 16px 16px;
    }
    
    .account-bottom-sheet .menu-item {
        padding: 12px 14px;
    }
    
    .account-bottom-sheet .menu-item i:first-child {
        font-size: 1rem;
    }
    
    .account-bottom-sheet .menu-item span {
        font-size: 0.9rem;
    }
    
    .account-bottom-sheet .auth-buttons-section {
        padding: 40px 32px 50px 32px;
    }
    
    .account-bottom-sheet .welcome-message i {
        font-size: 3rem;
    }
    
    .account-bottom-sheet .welcome-message h4 {
        font-size: 1.2rem;
    }
    
    .account-bottom-sheet .welcome-message p {
        font-size: 0.8rem;
    }
    
    .account-bottom-sheet .btn-login-sheet,
    .account-bottom-sheet .btn-register-sheet {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .account-bottom-sheet .loading-account {
        padding: 50px 20px 70px 20px;
    }
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

@keyframes sheetSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes sheetSlideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}