/* ==================== ACCOUNT BOTTOM SHEET ==================== */
.account-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    height: 80vh; /* Changed from max-height to fixed height */
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(242, 168, 58, 0.2);
}

/* For smaller phones, ensure it doesn't get too tall */
@media (max-width: 480px) {
    .account-bottom-sheet {
        height: 85vh;
        max-height: 85vh;
    }
}

/* For very tall screens, limit to 80% */
@media (min-height: 800px) {
    .account-bottom-sheet {
        height: 70vh;
        max-height: 70vh;
    }
}

.account-bottom-sheet.open {
    transform: translateY(0);
}

.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;
}

.account-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1f2a44, #2d3a5e);
    border-radius: 28px 28px 0 0;
    border-bottom: 1px solid rgba(242, 168, 58, 0.3);
    flex-shrink: 0;
}

.account-sheet-header h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.account-sheet-header h3 i {
    color: #f2a83a;
    margin-right: 8px;
}

.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(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.account-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #1a1f2e, #151a28);
    border-bottom: 1px solid rgba(242, 168, 58, 0.15);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(242, 168, 58, 0.3);
}

.profile-avatar i {
    font-size: 2.5rem;
    color: white;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 0.8rem;
    color: #94a3b8;
    word-break: break-all;
}

/* Menu Items */
.menu-items {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: #0f1419;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #151a28;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 14px;
    margin-bottom: 6px;
    border: 1px solid rgba(242, 168, 58, 0.08);
}

.menu-item:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, #1a2035, #151a28);
}

.menu-item i:first-child {
    width: 24px;
    font-size: 1.1rem;
    color: #f2a83a;
}

.menu-item span {
    flex: 1;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.menu-item .arrow {
    color: #4a5568;
    font-size: 0.8rem;
}

.logout-item {
    margin-top: 12px;
    border-top: 1px solid rgba(239, 68, 68, 0.15);
}

.logout-item i:first-child {
    color: #ef4444;
}

.logout-item span {
    color: #ef4444;
}

/* Auth Buttons Section */
.auth-buttons-section {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
}

.welcome-message {
    margin-bottom: 32px;
}

.welcome-message i {
    font-size: 3.5rem;
    color: #f2a83a;
    margin-bottom: 16px;
    display: inline-block;
}

.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;
}

.welcome-message p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.btn-login-sheet {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login-sheet:active {
    transform: scale(0.98);
}

.btn-register-sheet {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(242, 168, 58, 0.3);
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-register-sheet:active {
    background: rgba(242, 168, 58, 0.1);
    color: #f2a83a;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .account-bottom-sheet {
        height: 80vh;
        max-height: 80vh;
    }
}